lundi 29 août 2016

How Do Android File Explorers Show FIles Outside Of App Sandbox?

So I am futzing about trying to do some folder browsing outside my app sandbox from an android app, and I cannot figure out how on an unrooted phone can these terminal apps allow navigation into /system folders and show read only files owned by root? I understand these files cannot be modified without rooting, but my little old android app cannot seem to see anything but its own sandboxed portion of the file system.

So how do non-root file manager apps get around the file system, using what api? This is probably totally stupid and I apologize in advance, but I have searched numerous explorers on github and have no answer yet. Of course I know using adb I can use the toybox versions of common linux file tools, but I also noticed simple terminal emulator apps in paystore are able to do this as well (simple id, ls, pwd, and cd), and they seem to be android apps with a proper apk etc.

What am I missing? How does one do those things from within a "proper" android app? Do JNI code module that makes old school linux file system requests?

How are these apps different from a standard android java app, what do they do differently?


from xda-developers http://ift.tt/2bxK6ve
via IFTTT

Aucun commentaire:

Enregistrer un commentaire