Questions tagged [file-permissions]
Use this tag if your issue is with permissions in the file system (files & directories). For app permissions, use the 'permissions' tag instead.
162
questions
0
votes
1
answer
121
views
How to debug Android permission denied at the file system level?
Something is basically pretty messed up on my phone. It looks like everything is running. But sometimes I can't open something or something crashes. The logcat shows a lot of permission denied.
A ...
0
votes
0
answers
69
views
I can not get access to /proc/sys/kernel/hostname file
After following the Anon Uimik's instructions to get root access here:
How to make Termux obtain root access?
I'm trying to get the value of the file /proc/sys/kernel/hostname but I'm getting ...
2
votes
1
answer
3k
views
Unable to delete file on sdcard [closed]
Can anyone tell me what the file and folders are in the picture below? I can't do anything or delete these files and folders. They are coming into my external sd-card. If I format the sdcard they are ...
1
vote
2
answers
2k
views
Permission denied when opening files from Termux
I have an issue with file permission in Termux.
For instance, I installed c4droid and copied the Termux /include and /lib folders content in the /c4droid folder where the headers are being looked for ...
0
votes
0
answers
118
views
Change Folder permissions for apps (with root)
Is it possible to deny delete permissions in a folder or even internal storage for a specific app?
I'm on Android 10 with root-access
1
vote
1
answer
960
views
Apps suddenly unable to access SD card for seemingly no reason
SOLVED (see accepted answer)
So this one is weird.
Everything was working fine untill I rebooted my phone earlier today.
For some reason, since this reboot, apps are unable to access my SD card ...
1
vote
0
answers
22
views
Cannot open Local files using href
no matter where I placed the file...
on Chrome download folder
on Edge download folder
I run OS Android 13 / Galaxy S21
sample:
href="file:///storage/emulated/0/Download/MEGA Downloads/...
0
votes
0
answers
78
views
Why are files with wrong character encoding name write-protected?
I'm unable to delete the files with wrong character encoding in names on my phone. I plug it into my Windows PC and try to delete it in File Explorer. It says the files are write-protected:
This ...
0
votes
0
answers
22
views
After Mount Bind folder mozo on Y in internal storage, files doesn't show up in Gallery apps
Q1. Why is below different behavior is occurring ?
Q2. How to gets photos visible in gallery in scenario 1 as well like scenario 2 ?
Scenario 1:
$ su -mm
# mount -o bind /mnt/runtime/write/emulated/0/...
11
votes
2
answers
19k
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 ...
1
vote
0
answers
1k
views
Running executable files using Termux
I previously posted on the Linux stack exchange about my problem:
https://unix.stackexchange.com/questions/731882/termux-bash-permission-denied
Suffice to say I've realized that executable files can ...
1
vote
0
answers
1k
views
Android 10: how to get write permissions on external USB drives
I've just bought a TvBox with Android 10 in it, and i've soon discovered that no app can write on the external HDD/flashdrives i attach to the USB port (seen as /storage/<long_number_here> ).
...
2
votes
2
answers
4k
views
Run C-executable from SD card on Termux
I have just installed termux in my Android 6 phone and have given storage permissions so I can read, write or compile from the terminal in the folder /sdcard/myC/ by using clang -o birthday birthday.c ...
1
vote
0
answers
105
views
Is it possible to give a system app full read and write access to the main external storage in Android 11?
We're building our own ROM from AOSP, and the ROM will have a third-party app installed to /system/priv-app but we need to give that app read and write access to the main external storage without any ...
1
vote
0
answers
200
views
Access "data/tombstones/" dir from Android application
Trying to get access to "data/tombstones" directory from my rooted phone. I am implementing a crash collector application (system application) which would help to record the system's ANRs ...
2
votes
1
answer
822
views
Unable to run rclone mount (even as root). Stuck on Error : fusermount: fork/exec /system/bin/fusermount: permission denied
I have already:
A rooted Android 5.0 device (Stock-ROM, Magisk 19.3), Termux installed (termux-v0.79-offline-bootstraps.apk) and root permissions granted.
Installed rclone through official repository ...
0
votes
1
answer
792
views
Cxxdroid can execute c++ binary in any internal storage directory, but Termux cannot
I was testing some c++ executable in my old smartphone (Android 8, no root). Here's the description of the problem:
I have both Termux and Cxxdroid installed in that phone. And in termux, I have clang ...
0
votes
1
answer
301
views
What type of data is excluded from the "media only" file permission in Android 12?
Starting from Android 11, there are 2 levels of file access permission, i.e., "files, media, and everything" permission and "media only" permission.
What is the difference between ...
0
votes
0
answers
419
views
How to change permissions for SD card directory under /storage
I have symlinked /data/media/0/Download to /storage/15B3-16E4/Download so that files will save to my SD card, but apps can't write to it because the owner/permissions are wrong.
adb shell su -c ls -ld ...
23
votes
5
answers
68k
views
`adb pull /data` fails with "0 files pull 0 file skipped"
I have rooted my device HTC Evo Design 4G and I try to adb pull /data data and it says "0 files pull 0 file skipped"
I was able to pull /System/build.prop. How can I pull the root folder?
1
vote
0
answers
286
views
Is it possible to limit read permissions for some folders on external SD card to certain apps on Android 10?
My device has 64 GB of internal storage and it's nearly full. I can expand storage with a 256 GB microSD card. However, I don't like that everything stored on the SD card is freely accessible to every ...
1
vote
1
answer
833
views
How to write to an Android system file?
Why is writing to /sys/class/power_supply/battery/status having no effect?
Accessed manually via adb shell as root, eg echo "Discharging" > /sys/class/power_supply/battery/status does not ...
1
vote
1
answer
1k
views
/storage/emulated/legacy is read only
For some reason, no apps on my phone (including adb, after running su) can modify any files in any subdirectory of /storage. I also can't use my file manager on my computer to edit, create, or delete ...
1
vote
0
answers
145
views
Unable to download/share pdf files: Where to reset permissions for PDF files?
Very newbie here when it comes to Android.
Using Xiaomi Phone, MIUI Global, 12.5.10
Android: 11 RKQ1.20
While downloading PDF files from whatsapp or Sharing PDF files, i'm getting below error. The ...
0
votes
0
answers
3k
views
Can I somehow allow an app to access all files?
I have some applications which I want to allow access to not just for media folder:
OS: Android12, OneUI4
Can I somehow gently ask the OS to provide extra permission to this application without ...
0
votes
1
answer
2k
views
How to edit build.prop file in Android 11
I have a TCL 20e (6125A) with Android 11. I want to increase the torch brightness. As I read in another post, this can be done by adding these two lines in the file:
ro.media.capture.flashintensity=50
...
2
votes
1
answer
6k
views
Termux access /sdcard/data
Most of the apps are now not permitted to access /sdcard/data
the only app i know which can access this folder is Files(not files by google)[com.google.android.documentsui]
a few days ago i see this ...
2
votes
1
answer
2k
views
Cannot list all folders in /data/data in few apps
I have a rooted Android 11.
Using Termux, or Es File Explorer, I can see all the 284 directories in /data/data.
Unfortunately, many file explorer apps (with root privileges, such as Total Commander, ...
1
vote
0
answers
61
views
Security concern: Can "multiple user" feature protect my sensitive data from apps that I don't trust? [duplicate]
I'm using lineageos18.1 and for some reason I need to install an app that I don't trust. It requires some critical permission to run normally such as:
All files access
Install unknown apps
Get ...
2
votes
1
answer
1k
views
Android locked MicroSD card (all files read-only)
I own a Wiko Rainbow with Android 4.2.2. Out of the blue my MicroSD card got locked and I can neither create nor delete any files on my phone (such as photos). At first, I did not even understand why, ...
2
votes
1
answer
1k
views
System Set Permissions Accidentally, and is Corrupt
My phone's system folder at /system was corrupt. I accidentally set its permissions to rw-r--r--. Then, I reboot my phone, and nothing is working.
Here's what I mean:
1st reboot: power off;
2nd ...
1
vote
0
answers
26
views
Android 11: change ownership of media_rw files [duplicate]
Could somebody please help with the following problem on ArrowOS, Android 11?
Background
I use TitaniumBackup to create regular app backups. The TiBu folder is on internal storage. Then, after that, I ...
1
vote
1
answer
1k
views
Create shared folder on sdcard
Is there any way to create a directory on an external sdcard that has read/write access for multiple apps. For example I want to us synththing or rsync under termux be able to sync this directory to ...
1
vote
0
answers
24
views
rooted lineageos: mount /sdcard as ext4 with support for ownership/permissions bits [duplicate]
It seems the partition corresponding to /sdcard is formatted as a FAT variant in android. As a result, it does not support ownership/permissions:
/sdcard/Signal $ ls -lrth
total 116M
-rw-rw---- 1 root ...
0
votes
0
answers
179
views
Create and edit a bash script in an USB connected smartphone
The question explains it all. I am using Ubuntu 20.04 LTS. I have connected an android smartphone to pc using USB. Changed directory to internal storage using:
cd /run/user/*/gvfs/*/'Internal Shared ...
0
votes
0
answers
66
views
Why does encryption doesn't work/apply to access device storage or Google photos or drive when we upload a file from device/cloud to any webpage/apps
Example : YouTube, Facebook, Instagram, Chrome ( any app )
If I'm accessing YouTube or any other app where I can upload content from Android device with or without the app lock features, whenever I ...
1
vote
0
answers
58
views
How to expose a folder to a PC using mount command
I've been messing with termux on a rooted tablet (mediatek), and I'm trying to expose a folder using mount that will be accessible to my PC via a USB connection over mtp (with read/write permission).
...
7
votes
1
answer
6k
views
SimpleSSHD - create reusable user/password?
I have downloaded SimpleSSHD (aka Dropbear) to access my Android via SSH.
I am able to do so with the one-time password, but I'm trying to write a Python script that can access the phone.
Is there a ...
0
votes
1
answer
593
views
How to delete a file registered in Word for Android recent files list?
The file in this picture within the recent list is an old competition fixtures file I want to delete.
I click on the three dots to the right of the file and select delete and it says I don't have ...
0
votes
2
answers
1k
views
"/sdcard/Sounds" folder appears empty in Windows 7 for Samsung Galaxy S3
For some reason, the folder that once allowed me to access all my recordings using the default Sound Recorder app appears empty in windows even though the files are still there according to ES File ...
1
vote
0
answers
406
views
How to properly propagate unmounting of USB OTG storage to all mount namespaces (rooted device)
This is a (spiritual) follow-up to the previously answered question How to bind mount a folder inside /sdcard with correct permissions?.
Device: Samsung Galaxy Tab S2 8.0
ROM: LineageOS 16.0 (Android ...
0
votes
1
answer
229
views
Why can't I select some image files on some apps, while the Gallery app can?
I have a Xiaomi device on Android 8.0 Oreo. I was editing some pictures in an application and sometimes the picture that I want to edit doesn't appear on the editing app, but there's in the gallery.
...
1
vote
0
answers
2k
views
How can I access files downloaded from Chrome on Android 11?
With Android 11 adding scoped storage, I'm noticing I'm not able to access some key folders in my file manager app of choice (Solid Explorer). In this case, files downloaded via Chrome and it's ...
1
vote
1
answer
96
views
Why preinstalled apps have more privileges than third party apps?
This question is based on an observation of Android's powerful security features, In my old Android Lollipop third party apps had read access (but no write access) to external SD card, but my Android ...
10
votes
2
answers
13k
views
Write permission on certain paths, like the SD card (extSdCard)
In an attempt to transfer a file from a remote server to an Android device I ran into permission problems.
It turns out that I do not have a write permission at the location of the SD card (/mnt/...
1
vote
0
answers
31
views
Termux (specifically npm) can't install in internal storage [duplicate]
Everytime I try to use NPM to install something into /storage/emulated/0/dir it would always do this:
npm WARN tar EPERM: operation not permitted, futime
npm WARN tar EPERM: operation not permitted, ...
0
votes
0
answers
618
views
Can't write to internal storage on a rooted phone
I have a Samsung Galaxy A5 (2016) which I rooted with Magisk.
Now in the process of installing TWRP and customizing my phone, I might have run some shell commands, like mount or sudo in a place where ...
2
votes
1
answer
433
views
Have root & external sdcard mounted rw, but mv produced "Permission Denied"
I have an old tablet running LNOS 14.1. It has an external SDCard with some Books, Videos etc. The card is configured as movable storage. .android_secure is an empty directory, and though I haven't ...
2
votes
0
answers
8k
views
Package installation in Termux
I'm reading this guide that describes how to install the statistical language R on Termux. My installation journey is briefly outlined below.
I need to determine why nothing happens at Step #2 ...
1
vote
0
answers
111
views
Is this possible in Android that a file/folder can have multiple owners and group?
So in my scenario, I am trying to assign multiple groups, the user to a file in /dev/. So I have created a custom AID in config.fs and the corresponding [path], mode, caps parameter also configured. ...