неделя, юли 16, 2017

Debug trace files location on Nexus 5X with Android 7+

After some cursing, because nowhere in Google I could find where these trace files are stored, I finally found them. The location is not mentioned and not even hinted in the 'trace use' documentation.
/sdcard/Android/data/com.company.mygame/files/filename.trace
If we use the os.Debug class to generate trace files and our app package is com.company.mygame:
Debug.startMethodTracing("mytracefile");
Debug.stopMethodTracing();
The file can be found and pulled like:
adb pull /sdcard/Android/data/com.company.mygame/files/mytracefile.trace
ALSO, USING traceview FROM THE COMMAND LINE HAS BEEN DEPRECATED!

Няма коментари: