How to list all debuggable applications?

后端 未结 2 1220
小蘑菇
小蘑菇 2020-12-19 16:14

I want to see all the debuggable applications that are installed on my android phone.

Can I know them using adb? If yes, how?

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-19 16:38

    The packages.list file is readable on rooted phones only. You can do something like this in an adb shell:

    for p in $(pm list packages | cut -d : -f 2); do (run-as $p id >/dev/null 2>&1 && echo $p); done
    

提交回复
热议问题