r/androidapps • u/AD-LB • Jul 04 '20
Android R might eventually cause a lot of harm for backup and file-manager apps on rooted devices: can't read from /data/data
9
u/MishaalRahman Jul 04 '20
I just asked topjohnwu about this, and here's what he said:
Regarding Luca's claims, it is certainly true and very trivial to bypass with root. In fact, just use su --mount-master and things will work. (In the root shell of course). In theory yes, it is also possible for a root process to go into the namespace of the app process itself and manipulate the mount points, but I don't think it can revert back the sandbox as usually these things are designed to only go in one direction.
1
Jul 04 '20 edited Jul 04 '20
[removed] — view removed comment
1
u/tadfisher Jul 05 '20
Try the
setnssyscall: https://man7.org/linux/man-pages/man2/setns.2.html1
Jul 05 '20
[removed] — view removed comment
1
u/tadfisher Jul 05 '20
You would need a C/C++ function and a JNI bridge to it.
1
Jul 05 '20
[removed] — view removed comment
1
u/nithinmanne Jul 05 '20
How are you running commands on the shell then? If you are not using his library or C code, then you should be calling "su" at some point. Replace that with "su --mount-master" like mentioned in another comment
1
Jul 05 '20
[removed] — view removed comment
1
u/nithinmanne Jul 05 '20
You are using the library in your example, right? His library calls su internally, you are not supposed to call it. You have to set the config. Can you please share the example where you are trying without using his library?
1
5
u/twigboy Jul 04 '20 edited Dec 09 '23
In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipedia9jafj6eunbw0000000000000000000000000000000000000000000000000000000000000
5
u/yonatan8070 Jul 04 '20
Please Google, just let me be an admin on my own device. Have some "I know what I'm doing" switch in the settings, and let me disable restrictions placed there so my Grandma won't get scammed.
0
Jul 04 '20
[deleted]
1
u/awaisking Jul 04 '20
the essence of any Linux device is root, if you have root access you must have ability to do what-the-fuck-ever you want
it's not about security, it's about the basic rule of Linux, and Android is secure as it can be for average non-dev/non-hacker users
60
u/[deleted] Jul 04 '20
So Apple iOS started to behave like android and Android R started to behave like iOS..