Android file access && Android 4.2.2 exports dont work
Greetings.
Having a hard time to find saved data text files from a godot app on non-rooted android devices. From the Godot app on Android, data is saved on user://data1.txt ok, by granting permissions. From the app i can read files i saved there. However when connect to the phone via usb to retrieve the stored files they are not in the data directory.
I was wondering if someone knew of a way to download godot android apps generated data. (remember looking here at the forum at a post people mentioning if you root the phone you have this access, but unable to root..). So the question is if you know of a simple way to download to the pc files generated on the phone device through godot android app?
Another question is our inability to export godot x86 android targets to old android tablets with android os 4.2.2 (bq edison 2). Wondering if you have experience porting to old devices godot programs. Installing a generated apk with x86 arch resulted on these devices popping an alert saying the apk has invalid signature and fails to install. Since godot is brilliantly easy at exporting to multiple architectures, was wondering if i could use these tablets for simple programs in the spirit of permacomputing.
This reads like a stream of consciousness rant as opposed to an actual post asking for help. I read the whole thing and I don’t know what your problem is. Also, no one on the Godot team reads these posts so attacking them for perceived slights is a waste of your time. Everyone on here is a fellow user volunteering their time to help fellow coders. Your whole energy feels off to me personally in this post. (I’d never heard about permacomuting, which I googled and it’s a cool concept.)
I recommend you edit your post to clearly describe the problem you are having and leave out the complaints.
Also, have you tried this in Android Studio? Does it work there? It’s unclear to me that your problem is in any way hardware related.
@dragonforge-dev thanks for having read the first version of the post, i edited it and hope that now issues are clearer? Sorry if it read like a rant, deving for these devices is not easy
It might help if you talked more about why this is necessary. Is this just for testing or is this for end users? My first thought is: How are you saving this data? If you really want it accessible to end users, then I would suggest looking at ways to integrate with the file system in other ways. Which TBH is outside my experience with Godot.
A phone with app A, records phone timestamped sensors data, attached to skateboards being riden, one file per ride, in this work skating sessions. We retrieve the files from the phone and reconstruct 3D viz in app B with the data from A. We did this before in OF/C++/Android back in 2014, and are revisiting the process in new work that requires this functionality. https://www.youtube.com/watch?v=um1gR057GuA
Stumbling in the not so easy part to retrieve text data files saved from godot on android under the user:// project directory, and to install godot apps on old tablets. The files are the, godot app A can access them, but the phones normal user cannot, it is sandboxed somewhere, how to access these files, how to export to old tablets?
So if I were you, I would look at a way to export the info through connectivity. Allow the user to just hit the export button and send it to a server. Then you wouldn’t be fighting with various versions of Android to get data off the phone physically. You could just hit a web api and send the text file that way.
Thanks for the idea, but doesnt work remote without network. Any other way to get the data from files recorded from godot android app on devices. Thanks
Thanks, I’ll dig in, also the nice godot addon to save pictures in gallery might have hints if it works, need to find testing time, cause what if my game saves a user generated sculpture stl and he can’t find the file