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
16
votes
3answers
46k 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 ...
11
votes
1answer
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 ...
10
votes
1answer
17k 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:/...
10
votes
2answers
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/...
9
votes
2answers
34k 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 ...
6
votes
1answer
1k 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-...
5
votes
3answers
12k 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. ...
5
votes
1answer
10k 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/...
5
votes
2answers
13k 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 ...
5
votes
1answer
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. ...
5
votes
1answer
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 ...
4
votes
2answers
349 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 ...
4
votes
3answers
28k 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 '/...
4
votes
3answers
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 ...
4
votes
1answer
21k 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 '...
4
votes
2answers
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 ...
4
votes
2answers
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 ...
4
votes
0answers
6k 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 ...
3
votes
3answers
9k 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
2k 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:...
3
votes
2answers
15k 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 ...
3
votes
1answer
414 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 ...
3
votes
1answer
6k 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 ...
3
votes
0answers
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,...
3
votes
1answer
5k 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. ...
2
votes
1answer
8k 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 ...
2
votes
2answers
1k 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....
2
votes
1answer
5k 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 ...
2
votes
2answers
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'...
2
votes
1answer
8k 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 ...
2
votes
1answer
85 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 ...
2
votes
1answer
2k views

How to allow read/write access in a specific folder on the SD Card with Android 6.0.1?

I like to move my AnkiDroid storage to the SD-Card, because my Anki-Decks get huge, in terms of filesize, and my internal storage is full. Anyways (seemingly because they did not like to took the ...
2
votes
2answers
9k 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 ...
2
votes
1answer
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 ...
2
votes
0answers
2k 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 ...
2
votes
0answers
61 views

Data recover/transfer from a disk image

Situation. I have a .img disk image file obtained from a .vmdk file via a virtualbox conversion, the latter being created by an Android 4.4.2 emulator. I'm trying to recover some app data and transfer ...
2
votes
1answer
316 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 ...
2
votes
1answer
685 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
0answers
55 views

Downloads not possible after root

I rooted my Samsung Galaxy S5 (Android 5.0, SM G900F) recently with Odin. While I rooted it, I had Kingroot installed. Since Kingroot took over the root management, I'm not able to download files with ...
2
votes
0answers
2k views

ES File Explorer unable to access `/storage/emulated/legacy` which it did earlier

I suddenly have a weird problem with the Android phone running version Android 4.2.2. I never rooted the phone but suddenly the app ES File Explorer is not able to access /storage/emulated/legacy ...
2
votes
0answers
670 views

Setting IncognitoModeAvailability policy for Google Chrome on an Android tablet?

Google Chrome supports an “IncognitoModeAvailability” policy that I want to set on my Android (Jelly Bean) tablet. I tried to set up the policies as described here: http://www.chromium.org/...
2
votes
0answers
124 views

How can I add the user of an application to the group of another application?

I'd like to add the user of one application to the group of another so that I can read the other applications private content without doing a su every time. I can't find the adduser or the useradd ...
2
votes
3answers
14k views

Cannot write files to sd card

A few days ago, my sd card became unusable. I tried to copy a few mp3's from my laptop (win 7) to my phone (Samsung S2 plus, running android 4.2.2) and the load bar didn't even move an inch. ...
2
votes
1answer
1k views

Unable to delete file on sdcard

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 ...
2
votes
0answers
438 views

Persisting permissions on /mnt/shell after reboot

CWM Nandroid backups are being stored in /mnt/shell/emulated/clockworkmod I want to use DropSync (or something similar) to automatically upload the contents of this folder to Dropbox as a backup ...
1
vote
1answer
796 views

remount /mnt as read-write

I am getting error "Read-only filesystem" when trying to add a new directory in /mnt via Terminal Emulator. So, I tried : su busybox mount -o remount,rw /mnt in order to remount filesystem for /mnt ...
1
vote
1answer
59 views

Exclude an Android/data folder from cache cleanup

I have a game which downloads all of it's data and contents in a folder in Android/data . The size is over 400MB and device is not rooted. Every time I do a cache and junk cleanup, All files of this ...
1
vote
2answers
5k views

Can't change file and folder permissions on rooted device

I can't change the file and folder permissions on my rooted android 4.4.2 device. I tried doing this from Root Explorer, Total Commander and also from terminal emulator and it didn't worked. Any idea ...
1
vote
1answer
732 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 ...