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.

Filter by
Sorted by
Tagged with
11 votes
2 answers
20k 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 ...
sgon00's user avatar
  • 342
5 votes
1 answer
25k views

Is it possible to change file permissions on Android's internal storage?

How can I change file permission of a file on Android without rooting? I actually want to prevent some files from deletion. Note: I am asking of changing the file permissions of user-created files in ...
Puspam's user avatar
  • 592
2 votes
1 answer
2k views

Why root cannot access ".android_secure" directory on external SD card?

I have an Android 9 tablet, rooted by way of Magisk. It has an external SD card mounted as sdfat on /mnt/media_rw/1234-5678 which is mounted on four other mount points, all as type sdcardfs, with some ...
Jay Michael's user avatar
8 votes
2 answers
15k views

How to change the modified date of a file without root?

How do I change the modified date of a file, specifically PNGs, on Android without root? Total Commander failed to do it with a permission error Access Denied.
Bernard's user avatar
  • 181
4 votes
1 answer
6k 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 ?
Puspam's user avatar
  • 592
0 votes
1 answer
10k views

Receiving an EACCESS Permission denied error when copying files to ExtSDCard

My ExtSDCard has begun to act funny over the past few days. I have downloaded and used a few file managers in the past, and my current favorite is ES File Manager. However, over the past few days, I ...
wbogacz's user avatar
  • 2,659
4 votes
1 answer
3k views

How to remount sdcardfs to allow setting file permisions / ownerships?

I have a rooted OnePlus One running LineageOS 15.1 (Oreo 8.1). I am trying to adjust some file permissions/ownerships on the emulated sdcard partition. The partition seems to be mounted as an ...
Forivin's user avatar
  • 337
0 votes
2 answers
1k views

How to use an ext4 formatted sd card as external storage with working app permissions?

I'm using LineageOS14.1 (Android 7.1.2) on a Moto G 3rd gen I'm using a 64GB sd and my phone technically doesn't support it, it worked fine until I put more stuff on it and then it started to ...
Dema's user avatar
  • 1
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?
user3734225's user avatar
12 votes
2 answers
45k views

adb "Permission denied" to run a "./configure" file

I need to run a configure file into my android phone so I think the best way to do this is to use the adb shell command. I'm running an Android emulator onto a Windows-7 platform, and there I'm ...
grattmandu03's user avatar
11 votes
1 answer
18k views

Why can I not assign exec permissions to a file on the SD card?

shell@android:/sdcard/SW # ls -l -rw-rw-r-- root sdcard_rw 128 2012-09-22 11:42 usb0config.sh shell@android:/sdcard/SW # chmod 777 usb0config.sh shell@android:/...
Victor S's user avatar
  • 223
8 votes
1 answer
20k views

Can't use chmod to alter permissions on emulated phone

So, I'm trying to make an app in android studio and I need to reference a particular file in the app, cascade.xml. I've pushed it onto the emulated phone no problem using adb (it's in the storage/...
Rachel L's user avatar
  • 341
8 votes
3 answers
67k views

adb push ... Permission denied

I am trying to push a file to a directory on a physical android device, but I am running into the following error. >adb push data.db /data/data/com.me.app/databases failed to copy 'data.db' to '/...
yohosuff's user avatar
  • 241
7 votes
3 answers
16k views

Run downloaded shell command without root?

My phone is a Galaxy S3, not rooted. I have "ES File Explorer" and "Terminal Emulator" installed. I downloaded an Android build of 'wget', intending to execute it from the Terminal Emulator app. ...
Chungzuwalla's user avatar
5 votes
1 answer
342 views

How much of the Android filesystem is visible over MTP?

When I plug in my Android device to my computer it gets connected as a media device under MTP mode. I can browse a bit of the folders on my device via my computer. I'm wondering how much of the device ...
jxramos's user avatar
  • 575
5 votes
1 answer
4k views

SD card formatted to ext4 and permissions

I'm using CyanogenMod 7.1.0 RC1 on HTC Desire HD. I've formatted SD card to ext4, because I wanted to use Fedora through chrooting into it, and Fedora ARM image requires FS which can do symlinks. ...
Dr McKay's user avatar
  • 153
4 votes
2 answers
12k views

Photos/Media/Files and Full Network Access

Does anything stop an application with Photos/Media/Files and Other ("full network access" and "run at startup") permissions from simply uploading ALL of your photos and videos to some stupid server ...
User's user avatar
  • 43
4 votes
3 answers
7k views

Can't access my old files after switching ROM from AOKP to CM, even though they're still there

Initially I thought this was a problem with Google Play / Apollo, but I realize now that when I plug in my phone via USB, I can't see any of the many, many folders and files present on /sdcard that I ...
pzkpfw's user avatar
  • 2,290
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 ...
Lloyd Dominic's user avatar
2 votes
1 answer
6k views

Internal and external SD storage inaccessible as root

I'm having a bizarre issue where apps, adb, etc. can properly access my internal and external SD storage without issue unless they are running as root, in which case they are completely inaccessible. ...
Matthew Read's user avatar
  • 50.5k
2 votes
1 answer
10k views

Manually add UID to a system group

Let's say i create a custom group on Android (We will call it GID 5000) and i want to add users (apps) to this group, how can i manually add the app's UID to GID 5000 ? If possible, without touching ...
Zulgrib's user avatar
  • 431
1 vote
1 answer
4k views

How to edit root files in /sys (Permission Denied)?

I have been trying to change root files in my phone through an app I am developing. The phone I have is a Moto G6, fully rooted. I'm using terminal emulators to run commands on my phone. I've tried "...
Adam Higgins's user avatar
1 vote
0 answers
416 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 ...
Shamtam's user avatar
  • 111
1 vote
1 answer
6k views

Android Photo/Media/File Permission

I've downloaded an android application, then the application asked about this permission: I've searched for it but there isn't any efficient answer. Does it mean that the application is able to send ...
Saman Gholami's user avatar
1 vote
1 answer
600 views

File permission os SD card (FAT32)

Android uses FUSE for SD cards. Does FUSE support file permissions for SD card? If no - how do I install some apps on SD card? Cause there is no support for symlinks, execution permission etc.
yanpas's user avatar
  • 345
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 ...
Ooker's user avatar
  • 506
0 votes
1 answer
2k views

Build.prop modifies okay. But not updates in system (e.g. About Tablet in settings)

I am running Android-x86 4.4 on VirtualBox. Everything works fine. But when I am modifying build.prop (with ES File Explorer or BuildProp Editor) with other manufacturer or model and save it. After ...
raiym's user avatar
  • 113