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.

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
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 ...
stackinator's user avatar
2 votes
0 answers
98 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 ...
s.kudo's user avatar
  • 41
2 votes
0 answers
1k views

SSHDroid cannot write sd card

The title says it all. Running android 7.1 not rooted device, I am running sshDroid on android device, ssh into it from my laptop. When I ssh into the device and check the permissions for the SD ...
user1610950's user avatar
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, ...
user1438038's user avatar
2 votes
0 answers
81 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 ...
Nikolar's user avatar
  • 21
2 votes
0 answers
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 ...
SSaikia_JtheRocker's user avatar
2 votes
0 answers
843 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/...
user1542015's user avatar
2 votes
0 answers
234 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 ...
Mridang Agarwalla's user avatar
2 votes
0 answers
448 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 ...
Paul's user avatar
  • 121
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/...
user2357932's user avatar
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 ...
Sandman's user avatar
  • 11
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> ). ...
Parduz's user avatar
  • 111
1 vote
0 answers
106 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 ...
Schro's user avatar
  • 11
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 ...
Lavyansi's user avatar
1 vote
0 answers
288 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 ...
Cell's user avatar
  • 11
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 ...
diaryfolio's user avatar
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). ...
silencedogood's user avatar
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 ...
Jeff Mercado's user avatar
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. ...
Vishal Gupta's user avatar
1 vote
0 answers
409 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
0 answers
1k views

E: failed to format /cache: permission denied

I am using a Blackview A60 Pro and I am stuck inside of the turn on screen. A couple of days ago I dropped it in a bucket of water and I have had it in rice since. I turned it on and it won't boot, I ...
IronBeagle's user avatar
1 vote
0 answers
269 views

Securely storing keyfiles with authentication and alike

I am using Keepass as my password manager. I am using a keyfile for securing access to my database. However when I want to do the same on my android phone I have to store the keyfile in my phone ...
patvax's user avatar
  • 111
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 ...
Yvain's user avatar
  • 121
1 vote
0 answers
485 views

SD card write permission issues after restoring from backup to an identical phone model

I've been using LineageOS 14.1 on a rooted unlocked Samsung S7 (G930F) for a long time. My phone started dying, so I rebooted to TWRP and managed to take a full backup to the SD card before it died. ...
Stilez's user avatar
  • 576
1 vote
0 answers
393 views

Running commands operating on files always results in permission denied errors

When I try executing commands operating on files, they always fail. I can't check permissions on the terminal because I'd have to run a command that operates on a file (directory) in order to do so. ...
UTF-8's user avatar
  • 245
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 ...
Samuel's user avatar
  • 111
1 vote
0 answers
791 views

Understanding android partitions and directories permissions

I'm playing with mount points, directories and files permissions on a rooted MotoG1 using adb (a model without SDCard Slot), and I've come into certain behaviours I can't really understand. Connected ...
Toni's user avatar
  • 153
1 vote
1 answer
666 views

permission denied on files created via adb in recovery

I stumbled upon a strange issue - after installing new ROM (CyanogenMod 12.1), I used adb push (still in TWRP) to copy some backed up directories to internal storage - so far so good. But then in ...
MacHala's user avatar
  • 151
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 ...
zrneely's user avatar
  • 111
1 vote
0 answers
2k views

What are correct file permissions?

My phone is a Sony Ericsson Xperia X8, and I'm using CyanogenMod. There is an app called ROM Manager included in CyanogenMod, and I found an option 'Fix permission' there. I shouldn't have used this: ...
Max Alibaev's user avatar
1 vote
0 answers
2k views

Unable to move files to external SD card on SGS2 XXLP2

Running a rooted Galaxy S2 with ICS XXLP2 official leaked rooted build. I have a 32GB microSD card mounted at /sdcard/external_sd in addition to the 16 GB internal storage. I'm unable to copy files to ...
Rex's user avatar
  • 788
1 vote
1 answer
540 views

Docx document is read-only in LibreOffice

I created a docx file in LibreOffice on my computer running Debian 9.1 with KDE and copied it to my Android phone. On the phone I try to open the file with the LibreOffice app. However I can't edit ...
mYnDstrEAm's user avatar
1 vote
1 answer
41k views

ES file explorer has been denied permission for an interactive shell

I have a rooted Nexus 7. I've been using ES File Explorer along with it. I have been able to navigate through files, after having set Tools/Root Explorer and turning it on. But now, I can no longer do ...
numberwang's user avatar
1 vote
1 answer
933 views

Unable to change permissions for files on external storage

To clear up some disk space I moved my mp3 collection from internal to external storage. My device is rooted and I was su at the time. The files can be seen (and played) from the File Manager, but ...
a coder's user avatar
  • 236
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 ...
tirenweb's user avatar
  • 101
0 votes
0 answers
119 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
44yu5h's user avatar
  • 1,510
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/...
gurmel singh's user avatar
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
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 ...
raptorAcrylyc's user avatar
0 votes
0 answers
426 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 ...
Gooberpatrol66's user avatar
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 ...
Daniel's user avatar
  • 281
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 ...
Favio Hernandez's user avatar
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 ...
SuperNoob's user avatar
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 ...
user avatar
0 votes
1 answer
793 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 ...
SuperNoob's user avatar
0 votes
1 answer
230 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. ...
xeno's user avatar
  • 9
0 votes
0 answers
619 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 ...
Shayan's user avatar
  • 137
0 votes
0 answers
768 views

Why `diag_mdlog` not able to write on `/sdcard` if it is fired from an Android App that has write permissions?

I am getting a weird behavior with diag_mdlog executable. I am executing it from my Android app as su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg The issue is: if the android ...
Vatish Sharma's user avatar