adb debug 第三方应用

作者: hglfNg | 来源:发表于2022-03-17 15:19 被阅读0次

不需要反编译重新打包,不需要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

相关文章

网友评论

    本文标题:adb debug 第三方应用

    本文链接:https://www.haomeiwen.com/subject/fymrkctx.html