Modify ro.debuggable for debugging Android applications

One.Root

There are many root tutorials on the Internet, here is the recommendation:
a must-see for gaming! Take you into the pit of Android flashing, the ROOT basic guide that even Xiaobai can understand is here!
It introduces the principle and method of Root in detail, and strongly recommends using the Magisk tool.
You can use the command adb shell getprop ro.debuggable to view the value of ro.debuggable

2.Magisk reset ro.debuggable

Note: This method is invalid after restarting the phone, and it must be reset every time it restarts

adb shell   #adb进入命令行模式
su 			#切换至超级用户
magisk resetprop ro.debuggable 1
stop;start; #通过该命令重启手机后才能成功设置

3. Modification of MagiskHidePropsConfig module

This method works permanently and is relatively simple

  1. Download the module MagiskHide Props Config 5.4.1
  2. Use the push command to transfer files to the phone
adb push MagiskHidePropsConf-v5.4.1.zip /sdcard
  1. Select local installation in the module of Magisk, find the installation package, restart the phone after installation
  2. run props
    adb shell su props
  3. Select 3 - Edit MagiskHide props
    insert image description here
  4. Select 1 - ro.debuggable
    insert image description here
    and confirm all later. After restarting the phone, check ro.debuggable again and find that the value is 1
    insert image description here

4. Reference articles

  1. Four ways to modify ro.debuggable in Android
  2. Android reverse notes (7) - ro.debugable modification of dynamic debugging

Guess you like

Origin blog.csdn.net/OrientalGlass/article/details/130642256