How to debug an android application started from 'adb shell am start -D '?

早过忘川 提交于 2019-11-25 15:19:01
  1. Root the phone
  2. Open a root shell

    (computer)$ adb shell 
    (phone)$ su
    (phone)#
    
  3. Run am command

    # am start -D -n "package/package.SomeActivity"
    

This way you can debug any app, no matter if it has android:debuggable set or not.

The deployed application was configured with the debuggable attribute set to false. The prompt given on the mobile phone was simply misleading.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!