What is the adb command to display all browsers installed on an Android device?

I would like to list all browser package names from an Android device.

How (Chrome browser, Mozilla and UC)

Is there a generic adb command?

+4
source share
2 answers

Depends on your definition browser. If this is an application with registered intent filters in a category android.intent.category.APP_BROWSER, you can get a list with the following command adb shell:

for P in $(pm list packages); do test -n "$(dumpsys package ${P#package:} | grep APP_BROWSER)" && echo ${P#package:}; done
+6
source

Is there a generic adb command?

Short answer: No

Currently, the ADB shell only supports its own list of available commands; you simply cannot filter them into an application type, such as a browser.

adb shell pm list packages []

adb shell pm list packages
adb shell pm list packages -f See their associated file.
adb shell pm list packages -d Filter to only show disabled packages.
adb shell pm list packages -e Filter to only show enabled packages.
adb shell pm list packages -s Filter to only show system packages.
adb shell pm list packages -3 Filter to only show third party packages.
adb shell pm list packages -i See the installer for the packages.
adb shell pm list packages -u Also include uninstalled packages.
adb shell pm list packages --user <USER_ID> The user space to query.
+2

Source: https://habr.com/ru/post/1608409/


All Articles