Android开发修改手机ro.debuggable=1便于调试应用程序
-
mprop下载地址:mprop170119.zip
-
拷贝mprop并添加可执行权限操作步骤
//拷贝mprop到/data/tmp目录下 adb push ./mprop /data/local/tmp/mprop //添加可执行的命令 adb shell su cd /data/local/tmp/ chmod 755 mprop
-
设置ro.debuggable=1*
/data/local/tmp/mprop setprop ro.debuggable 1 /data/local/tmp/mprop -r getprop ro.debuggable #查看当前属性 adb kill-server #重启db服务
以上是参考网上的一些步骤。其实下载mprop170119.zip包含了bat文件,window下双击bat文件即可自动完成修改。
注意:修改完成后重启手机就失效,需要再次刷入
mprop170119.zip里没有arm64-v8a的,可以这里下载: https://github.com/wpvsyou/mprop