I wanted to list all the browser package names from android device
Like (chrome, Mozilla and UC browser )
Is there any generalized adb command ?
Depends on your definition of a browser
. If it is an app with registered intent filters in the android.intent.category.APP_BROWSER
category - you can get the list with the following adb shell
command:
for P in $(pm list packages); do test -n "$(dumpsys package ${P#package:} | grep APP_BROWSER)" && echo ${P#package:}; done