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
25 votes
3 answers
125k views

No permissions for Termux to access internal storage - even for reading

Using the termux (https://termux.com) terminal-emulation program, I type the following command: ls /sdcard I get the following error: ls: can't open '/sdcard': Permission denied Realizing that the ...
user3080003's user avatar
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
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
11 votes
1 answer
2k views

Changing file permissions with root, will they remain if I unroot?

I currently use the run-as command through adb to be able to access the data folder of an app that I am developing directly on my phone using AIDE. When connecting to the phone locally, using ...
Russ Wheeler's user avatar
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/...
easytarget's user avatar
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
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 ...
BruceWayne's user avatar
7 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
  • 171
7 votes
2 answers
20k views

What file systems can I use for a 128GB sdcard on Android 7.1, used as portable storage

I can't find an answer to this on StackExchange. I have a phone running beta LineageOS 14.1 (Android 7.1), and a 128GB SDXC card which I want to use as portable/shared storage between devices. I ...
Stilez's user avatar
  • 576
7 votes
2 answers
3k views

how to transfer files to new external sdcard

I have an old 64 GB sdcard and a new 128 GB sdcard, how do I copy over all files from my old card to my new in a way that makes android treat the new card just as the old card. I tried simply copy-...
jcr's user avatar
  • 189
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
5 votes
1 answer
339 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
5 votes
1 answer
1k views

How can I make files available to a restricted profile?

For example I have an emulator and I want the restricted profile to have access to the ROM directory but it seems like the restricted profile has it's own directory structure separate from admin. I ...
SinbadEV's user avatar
  • 151
4 votes
2 answers
385 views

Rsync does not preserve permissions while rsyncing from Android to Laptop

I am trying to do rsync from my android phone to my laptop. The problem that I am facing is that the permissions are not getting preserved even when the -p flag is used. I have also used the other ...
user avatar
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
4 votes
1 answer
22k views

adb push and mount problems

I'm using Android 2.3.3 and I want to copy the iwconfig file to /system/xbin. First I tried doing it with adb push using this: adb push iwconfig /system/xbin But in return I had: failed to copy '...
Alberto Urbina's user avatar
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
  • 327
4 votes
3 answers
14k views

Can't set date via shell

I've tried date -u 1407697765 output: time 1407697765 -> 1407697765.0 settimeofday failed Bad file number and busybox date -s @1407697765 output: date: can't set date: Operation not ...
janot's user avatar
  • 555
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
4 votes
2 answers
11k views

How can I change file permissions on Jelly Bean?

My rooted Galaxy Nexus is on Jelly Bean (4.1.1) with a super user application. I want to install sinhala font into the phone, and for that I've tried to copy the font file (droidfallbackcens.ttf) to ...
isira g's user avatar
  • 41
4 votes
2 answers
1k views

Cannot make changes to specific folder

My phone is rooted with aokp build 38 on it. It is a Verizon Galaxy Nexus (toro) There is a folder /sdcard/data that I can't make any changes to. Some of my apps are trying to use this folder but are ...
Aaron Smith's user avatar
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
0 answers
7k views

How do I fix the permissions on /system/app on my Kindle fire

I attempted to root my Amazon Kindle. That seemed to go well, but when I tried to add the Google App Market, I apparently made a big booboo, because now I am in "constant reboot, 'kindle fire' screen ...
Nick Hodges's user avatar
3 votes
2 answers
5k views

ADB 'su: permission denied' in recovery mode on rooted device

ADB 'su' command returns 'su: permission denied' on a fully rooted device in recovery mode. I can modify folders and files that require root access on phone (when it's booted). ADB also works when it'...
Key-Six's user avatar
  • 207
3 votes
1 answer
9k views

Permission denied when I run insmod in terminal emulator

I want to install a module (bcm4329.ko) in my nexus one phone. I have rooted the phone and installed Cyanogenmod too. In Terminal emulator, I tried various commands but everything resulted in ...
SyncMaster's user avatar
3 votes
1 answer
3k views

Unknown file type containing a virus

I will try to keep the story as short as possible just so you can have a more clear view of what is my concern. While, I was browsing the Internet on my phone using the Chrome Browser App, I got a ...
George Smith's user avatar
3 votes
1 answer
3k views

Real root can not change any thing on /system original files!

On my rooted device running Android 4.2.2, I have following tools installed: Terminal Emulator BusyBox Free On Terminal Emulator, su command successfully changes user to a real root: root@hwH30-U10:...
Yasser Zamani's user avatar
3 votes
1 answer
2k views

Is it possible to find the full SELinux ruleset for OEM's stock ROMs?

I'm writing a root app following Chainfire's documentation, but I found I've to run some command in another SELinux context. Using that context on my device (OnePlus One with CM12 nightly), I've no ...
MaxChinni's user avatar
  • 1,075
3 votes
2 answers
18k views

How to make symlinks work inside /storage/emulated in 4.4.4

I created a symlink from /storage/sdcard1/somefolder to /data/media/0/somefolder, but apps treat the symlink as a file and not a folder (and crash because they are hardcoded to look for files inside a ...
Zulgrib's user avatar
  • 431
3 votes
1 answer
2k views

Why do write attempts to /system/priv-app cause /system to switch to read-only?

I'm trying to write files to the /system/priv-app directory. I boot into recovery (TWRP) and run adb shell. ~ # mount /system ~ # mount rootfs on / type rootfs (rw,seclabel) ... /dev/block/mmcblkXXXX ...
the.cauchy's user avatar
3 votes
1 answer
7k views

How to fix file permissions on Android 5 so that a certain app can access certain files?

Background: I had a rooted Nexus 4 with Android 4.4.4 that was working well. Then I got the notification to update to Android 5. To this end, I flashed the stock recovery for Android 4.4.4 from Google ...
Alexander Klauer's user avatar
3 votes
0 answers
1k views

Play store apps cannot write to external SD Card in Android Oreo

My Galaxy S7 edge recently updated to Oreo. Now play store apps no longer have rights to write to my external SD card. I have followed app instructions about how to open a system folder chooser dialog,...
mseifert's user avatar
  • 146
2 votes
1 answer
9k views

Terminal "Permission Denied" - Need more info on error message

I am trying to run an executable from the android terminal with root permissions, but I am constantly receiving the following error: [ExecutableName] : permission denied I am confirmed to be loged ...
Bubbleware Technology's user avatar
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 ...
nopeva's user avatar
  • 161
2 votes
1 answer
7k 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 ...
ANDuser's user avatar
  • 83
2 votes
2 answers
2k views

Copying files from PC to "external" SD card

I've got AirDroid and SSHDroid installed on a ZTE Axon 7 running 7.1.1. The phone has a micro SD card in it, and it can access (read from) that card successfully. What I can't do is copy files onto it....
Pointy's user avatar
  • 250
2 votes
1 answer
2k views

How can I find the group id (gid) for the sdcard_r group on android?

The question says it all. All folders on my sdcard has owner set as 0(root) and group set as sdcard_r - means all apps that have permissions to access the sdcard. However, since I have root, I want ...
Prahlad Yeri's user avatar
2 votes
1 answer
6k views

How can I make it so that any user can chmod in my fuse-mounted ext4-formatted /sdcard?

I have an ASUS Transformer Pad TF101. I finally got round to rooting it just now. Important: /sdcard is not FAT32. It's a fuse filesystem based in ext4. So it is capable of using chmod. So that I ...
Chris Morgan's user avatar
2 votes
1 answer
827 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 ...
vkarantz's user avatar
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
2 votes
1 answer
60 views

Why do I have to get permission to save to my own phone?

I am the owner of a new Samsung Galaxy J7 (J700T). When I try to delete files with no data on them on my internal, external, or SD card, the phone tells me I am denied. I want the files I've created....
Chad mccoy's user avatar
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
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, ...
TheBigBadBoy's user avatar
2 votes
1 answer
434 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 ...
Diagon's user avatar
  • 153
2 votes
1 answer
677 views

Unable to copy files from one /data/data/ directory to another (Root)

I'm trying to copy one file from /data/data/com.application1/myfile to /data/data/com.application2/myfile The file arrives with owner and group set to the app that it came from. I then changed the ...
mt025's user avatar
  • 131