Unable to open stack trace file '/data/anr/traces.txt/: Permission denied

Make sure adb is in you system path or cd to it first.
Then try the following:

adb shell cd \data chmod 777 anr 

Then try again.
Don't ask me why the permissions go wonky, but I've had this too.

你可能感兴趣的:(File,System,Path,Go,permissions)