与编码无关的Android开发技巧

adb debug 第三方应用

2022-03-17  本文已影响0人  hglfNg

不需要反编译重新打包,不需要xposed,只需要adb

adb shell
pm list packages -f //查看需要debug的包名,下面用packageName代替
am set-debug-app -w --persistent packageName
monkey -p packageName -c android.intent.category.LAUNCHER 1
  1. 在AndroidStudio中操作:
    Attach debugger to Android process

  2. 想要清除设置的标志
    adb shell am clear-debug-app

其他方式:xInstaller

上一篇下一篇

猜你喜欢

热点阅读