I'm looking for a way to programmatically list all apps on a Chromebook. By apps, I mean the Chrome browser itself, additionally installed Chrome apps (like Calculator), Android apps, and Linux apps... as well as any other types of apps that don't fall into these categories. Basically, I want to programmatically mimic the device's own launcher-app-list screen.
There are several apps in the Google Play Store that supposedly list the applications on your device. But they not only fail to list Linux apps (like Android Studio, for example), they don't even list Chrome browser as an app. https://play.google.com/store/search?q=my%20app%20list&hl=en_US
Chrome extensions have a management API that lists Chrome apps, but it doesn't list Android apps or Linux apps (like Android Studio, or Gedit, or the Play Store itself). https://developer.chrome.com/extensions/management#method-getAll
Finally, these terminal commands show me Debian packages that were installed, but they miss Android apps and also leave the Chrome browser off the list.
dpkq-query --show
dpkg-query --list
apt list --installed
So how can I write code in one app that will list everything?