Open Draknek opened 9 years ago
Whoops, documents need to be updated.
My android is not rooted, that's sad, I can't view /data/data/com.myapp/files How can I set the path to development folder ?
I'm still trying to find the crash dump file on the android file sys. But I know in order to browse the android file system on a non-rooted phone you need to do the following:
You should be able to list folder contents then.
Sorry about any pain here; I don't actually own a mobile device so I'm dependent on others for feedback related to those targets.
I triggered a crash on android and can't seem to locate the crash dump file.
I'm looking in here: /data/data/com.my.package/
I see the following folders: cache files lib
I'm using the default path which I traced out to see what it was: log/vws_2015-10-27_11'21'13_CRASH/
I'm assuming thats relative to the applicationStorageDirectory
It should be, yes, what happens when you trace out System.applicationStorageDirectory ?
Found it! I was confused by a folder named 'null'
Here is the full path: /data/data/com.my.package/files/null/log/errors
trace SystemPath.applicationStorageDirectory: /data/data/com.my.package/files/
I will investigate further where null is coming from. Thank you for the help.
sounds a lot like a variable is being appended to the path, whose value is "null", I wonder if this is maybe related to you not having a project id?
yep. you're probably right I just need to track down what I'm not setting properly. It's tricky to get the crash dump files off of the device. Still trying to figure it out. I'll post back here when I have it working.
There are multiple ways of pulling data from a device using adb backup etc. The following is what worked for me. It requires your android build to be debuggable.
adb shell
run-as com.my.package
chmod -R 775 files/
After exiting the adb shell run the following:
adb pull /data/data/com.my.package/files/null/log/errors/ ./
You'll need to replace 'null' with something potentially. I haven't figured that part out yet. If that pull doesn't work browse the file system to locate the right path to your crash dump files.
The readme says "By default will write to your program's own directory", but I found it actually writes to
SystemPath.applicationStorageDirectory
. Made me think for a long time it wasn't working!