Programmer algorithm practice must read, common Java API skills to share>>>
Story background
There is no response in an app of mobile phone, I want to find the mobile phone anr log
But I only know that there is a tra * * file in a directory of Data directory, and there is a anr log in the file
I really forgot the details, so I want to go into data and check it with LS
The result is a nasty permission denied
A face muddled force, how to adjust, and then go to the morning search method
If you explore the process, you don’t have to talk nonsense, just talk about the solution
Solutions
1、 Get root permission from mobile phone
My mobile phone is Meizu. The method of root is very simple. Here is the method
2、 Su command to get the highest permission
After entering Su, there will be a pop-up window on the mobile phone
Permission — permission, done
3、 Do whatever you want
Then you can do what you want to do
You will find that the directory I want is anr and the file is traces.txt
Then ADB pull data/anr/traces. TXT > D:anr.log
OK
It seems that you can solve the problem without root, but I didn’t try it. If you are interested, you can try it
Similar Posts:
- iPhone has denied the launch request
- How to connect Android mobile phone with ADB & reasons and solutions of unable to connect to 192.168.1.100:5555
- Android studio can’t find the emulator and can’t connect to the mobile phone. Prompt adb.exe start server ‘failed — run manually if necessary
- flAbsPath on /var/lib/dpkg/status failed [Solve Cydia Red Letter]
- Please connect the device in Xcode upgrade 11.7
- The ADB command installs APK, and the installation problem is solved by daemon not running. Starting it now on port 5037
- Wechat applet decrypts encrypteddata error: pad block corrupted solution
- Android system/app/ VS system/priv-app/
- [Android test] solution to error closed after ADB shell carriage return
- adb server version (31) doesn’t match this client (41); killing…