Linked Questions

55
votes
2answers
179k views

What is /storage/emulated/0/?

Recently, I've figured out that if I delete files from /sdcard/Download it deletes files from /storage/emulated/0/Download. And if I add the files into /sdcard/Download it duplicates them in /storage/...
11
votes
1answer
7k views

How to stop apps writing to “Android” folder on the SD card?

I have a (seemingly) simple question to which I haven't found a clear answer to. My phone creates an "Android" folder on my SD card and I'm wondering if it could be moved into the phone's internal ...
6
votes
1answer
6k views

How to bind mount a folder inside /sdcard with correct permissions?

I am using a Sony Xperia M4 Aqua. As is well known, the internal memory is rather small. Especially the Media directory of WhatsApp uses a lot of precious space, therefore I am trying to move it to ...
3
votes
4answers
4k views

How disk space is used on Android device?

I have critical low storage level and can't understand what takes much of it and how that's possible that the installed applications can use 7 GB? I only use a few social media clients without any ...
3
votes
2answers
11k views

How to mount NFS on Android with correct permissions?

I am trying to mount an NFS share on my Android phone. I have already compiled and installed all the needed kernel modules. The NFS share mounts flawlessly but I can only mount as the system user. ...
5
votes
1answer
3k views

How Android's permissions mapping with UIDs/GIDs works?

Reading the book: Android Security Internals I'm reading at Chapter 2 - Permission Management paragraph that permissions are assigned to application at install time by the package manager with a ...
3
votes
1answer
5k views

How to access /storage/emulated/10 (multi-users env) in adb shell on Android 9+ without root access?

I have two Android system users configured. $ pm list users Users: UserInfo{0:Owner:13} running UserInfo{10:security space:13} running UserInfo{999:XSpace:800010} running When the mobile ...
5
votes
1answer
3k views

How do I access `$HOME/storage` outside of Termux (with a file explorer)?

How do I access $HOME/storage Termux directory on Android Pie with a GUI File Explorer? In Termux I print the working directory with pwd and it shows $HOME/storage as: /data/data/com.termux/files/...
1
vote
2answers
10k views

Where does WhatsApp store Images/Videos when Media Visibility is disabled?

WhatsApp has a Media Visibility feature which if disabled, hides the media files from phone gallery. It is claimed that "apparently" it reduces file storage. But WhatsApp still has to store media in ...
2
votes
1answer
3k views

How to save files to external SD card on a non-rooted Android?

I'm using the Terminal Emulator app on a non-rooted Android 5.0.2 phone. When moving files from a folder of the external SD card to another with: mv /storage/extSdCard/DCIM/Camera/* /storage/...
4
votes
1answer
952 views

Are multiple-users protected from each other differently than apps?

I confess that I come from the happy world of unix computers, and am used to the concept of user accounts and hence group gids and userids uids. For the occasional usage of an untrusted app (i.e. ...
3
votes
1answer
3k views

Why is the '/storage/emulated/' directory inaccessible?

The /storage directory and the /storage/emulated/0 directory is accessible in a non-rooted Android OS. So, why is the /storage/emulated directory not accessible in a non-rooted Android OS ?
5
votes
1answer
650 views

How to run a program in an app context with Magisk?

Let's say I'm currently as root in Bash on a terminal, outside any app like Termux. I'm running Magisk. Now I want to synchronously invoke Termux's Bash, such that it behaves the same way as it would ...
2
votes
1answer
768 views

How can I run chroot on Android?

I have my chroot environment setup (Alpine Linux) in /sdcard/alpine. I try running my chroot with the following commands: su chroot alpine /bin/busybox (busybox is the cli of Alpine) I get the ...
2
votes
1answer
1k views

How to make bind-mounted (mount -o bind) folders visible for non-root users?

I want to mount-bind an app data folder in /data/data/... to a user subfolder in order to automatically synchronize the contents for backup purposes. As root I use the following command: mount -o ...

15 30 50 per page