I can get all the package names of android apps on a phone. But I don't know how to get the app label of each of them.
I tried to find information in dumpsys, but did not find any.
To retrieve the Android app's label name (application name) using its package name, you can utilize the aapt tool (part of Android SDK) and subprocess in Python. The process involves extracting the app's APK from the device and then reading its manifest for the label.