Use the run-as command to view the app data in the system directory

After the app is installed on the device, sometimes we need to view the data in the /data/data/[package name]/ directory, but if the device is not rooted, there is no permission to view it.
If you want to view the data in the /data/data/[package name]/ directory on an unrooted device, you can use the run-as command. The premise of using the run-as command is that the app must be in debug mode. The usage method is as follows:
Assuming the app package name is: com.test.hm, in the command line, input one by one:
adb shell
run-as com.test.hm After
executing the run-as command, it will automatically cd to /data/data/ In the com.test.hm directory, you can now view the files in this directory at will.
 

Guess you like

Origin blog.csdn.net/chenzhengfeng/article/details/108512152