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
1
vote
0answers
32 views

Accessing `proc` file-system to read `/proc/[pid]/some-file` from a system app [migrated]

I have a custom A10 repo in which I'm trying to create an app that would be able to read /proc/[pid]/some-file files e.g. stat and status, kind of like ps does. Having read this answer it was clear ...
1
vote
0answers
33 views

How can I transfer my files out of the Android/data folders using Solid Explorer?

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
0answers
16 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
0answers
51 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
1answer
48 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 ...
1
vote
0answers
25 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. ...
1
vote
0answers
34 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 ...
4
votes
1answer
87 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 ...
0
votes
0answers
15 views

How to make a text file read-only in a non-rooted device? [duplicate]

I wanted to make a file read-only (440)in internal storage but it shows "failed",as it seemingly requires root permission but I can't unlock bootloader as of now so is there any means we can do the ...
1
vote
1answer
58 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 ...
1
vote
0answers
294 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 ...
1
vote
0answers
25 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 ...
2
votes
1answer
799 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 ...
2
votes
1answer
4k 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 ...
0
votes
0answers
171 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 ...
0
votes
1answer
147 views

Can a System-App read the data of other apps on Android 9?

I want to know if a system-app is able to read the data of other apps (the data stored in /data/data.) on Android 9. Thanks!
1
vote
1answer
2k 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 "...
0
votes
1answer
794 views

Termux files permission

I have an issue with files 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 at ...
0
votes
1answer
554 views

Can android user become a super user in android?

Is it possible to change the rights of normal user in android to super user? My requirement is to run the super user code(I want to read a file data from system directory) in a device that has ...
0
votes
0answers
228 views

Permission denied on android directories?

Forgive my newness... I've installed Android Studio/Android SDK in Windows 7, enabled debugging on my Droid Turbo 2 with Android 7.0, system version 25.216.2.kinzie_verizon.verizon.en.US, and ...
0
votes
2answers
2k views

Unable to modify file permissions.xml, get error Read-only file system

I have a rooted Galaxy S5 SM-G900V, lineage_klte, ARMv7 Processor rev 1 (v71), Kernel: 3.4.113-lineageos #1 SMP, Oreo 8.1 that a friend asked me to modify. I need to modify the platform.xml file to ...
3
votes
1answer
3k 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 ?
4
votes
1answer
12k 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 ...
4
votes
1answer
3k 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 ...
2
votes
1answer
54 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....
6
votes
2answers
5k 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.
1
vote
1answer
342 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 ...
3
votes
1answer
1k 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
0answers
5k 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
0answers
434 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. ...
1
vote
1answer
6k views

Can't create new folders on SD card?

I'm using Lenovo A7000 with Lollipop and I can't create new folders on SD Card. Attempt to create folder on SD card always end with error, however, android phone is not going to tell me what error it ...
0
votes
1answer
246 views

How to make root-created files accessible to normal users?

My device is running Android 8.0, rooted using Magisk as the su manager. I log into it using SimpleSSHD. I'm trying to do some actions which require root access, and in the process I'm creating some ...
2
votes
0answers
68 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 ...
4
votes
1answer
2k 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 ...
0
votes
0answers
305 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. ...
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,...
2
votes
1answer
320 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 ...
0
votes
0answers
168 views

What file system for Asus Zenfone 2 on CentOS 6.9?

I'm trying to mount my Android Asus Zenfone 2 on CentOS 6.9. I created a folder in /mnt/android as the mounting point. I edited the /etc/fstab file in the following way because somewhere in some ...
2
votes
0answers
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 ...
1
vote
1answer
891 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 ...
0
votes
1answer
75 views

Portable storage: do I have to re-grant app permissions when switching microSD cards?

I'm using a Moto Z2 Force running Android 7.1.1 with a 128 GB microSD card installed. I wanna upgrade to a 400 GB card. Would I have to re-grant microSD access app permissions for the new card, or do ...
3
votes
1answer
2k 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 ...
1
vote
1answer
409 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 ...
0
votes
1answer
242 views

host file in android

I have a rooted device. I would like to protect my hosts file from being deleted, maybe with a password or something like that. Is this possible?
0
votes
1answer
1k views

Cannot paste files into System/Media

I am looking to change my boot audio but cannot change it due it not copying from my computer to my phone but I can copy from the device to my computer. I have the latest version of Android Studio / ...
0
votes
0answers
366 views

Why can't my phone write to external USB drive?

I bought a new 3TB USB3.0 external harddisk for storing and transferring large files (mainly hd movies from my camera) between my Android phone (Galaxy S7 edge) and my PC (Win10). Using windows, I... ...
0
votes
2answers
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 ...
1
vote
1answer
2k views

wpa_supplicant.conf permission

So I'm facing this problem for a while now . What happens is that my phone reboots automatically sometimes and after the reboot I can't use my WiFi . The button is stuck at off: So after doing some ...
2
votes
2answers
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....
2
votes
1answer
863 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 ...