有时候我们需要调试debugable="false"的apk包,网传的使用apktool反编译再打包的方法经常失败,这里给出正确的方法
- 安装magisk
- 在magisk中刷入edXposed
- 安装edXposed manager
- 在edXposed manager中安装xinstaller或者debugable插件
- 插件开启app调试开关,允许release包调试
- 让app启动时调试:
# 开启调试模式
am set-debug-app: set application <PACKAGE> to debug. Options are:
-w: wait for debugger when application starts
--persistent: retain this value
# 清除调试模式
am clear-debug-app: clear the previously set-debug-app.