Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is adb command to list all the browsers installed on android device?

Tags:

java

android

adb

I wanted to list all the browser package names from android device

Like (chrome, Mozilla and UC browser )

Is there any generalized adb command ?

like image 944
Syed Rafi Avatar asked Feb 10 '23 00:02

Syed Rafi


1 Answers

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
like image 112
Alex P. Avatar answered Feb 11 '23 14:02

Alex P.