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
0 answers
25 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 ...
user avatar
  • 11
1 vote
0 answers
32 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 ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
  • 221
0 votes
1 answer
537 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 ...
user avatar
  • 53
1 vote
1 answer
120 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, ...
user avatar
1 vote
0 answers
38 views

Security concern: Can "multiple user" feature protect my sensitive data from apps that I don't trust? [duplicate]

I'm using lineageos18.1 and for some reason I need to install an app that I don't trust. It requires some critical permission to run normally such as: All files access Install unknown apps Get ...
user avatar
  • 11
0 votes
0 answers
33 views

S21 Ultra - Please help me understand preloadinstaller.txt

Just looking for some help understanding what this log is and what's going on? It's one of many that appeared in a log folder on my S21 Ultra recently and I see that there are mentions of ...
user avatar
0 votes
0 answers
68 views

How to delete google_app_measurement_local.db-shm that exists and can't be found at the same time?

I had to reinstall an application that was working. After uninstalling, upon trying to launch it, it crashed immediately without really showing any errors. In logcat I noticed many errors like this: ...
user avatar
  • 101
1 vote
0 answers
17 views

Android 11: change ownership of media_rw files [duplicate]

Could somebody please help with the following problem on ArrowOS, Android 11? Background I use TitaniumBackup to create regular app backups. The TiBu folder is on internal storage. Then, after that, I ...
user avatar
1 vote
0 answers
21 views

rooted lineageos: mount /sdcard as ext4 with support for ownership/permissions bits [duplicate]

It seems the partition corresponding to /sdcard is formatted as a FAT variant in android. As a result, it does not support ownership/permissions: /sdcard/Signal $ ls -lrth total 116M -rw-rw---- 1 root ...
user avatar
0 votes
1 answer
908 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 ...
user avatar
0 votes
0 answers
89 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 ...
user avatar
0 votes
0 answers
52 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
0 answers
54 views

How to resolve the "Permission Denied" to access termux files - no root [duplicate]

I have a number of terminal applications, When I change the directory to: cd /data/data/com.termux/files I get permission denied. How to make another terminal app to be able to access termux files? (...
user avatar
  • 1
1 vote
0 answers
41 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). ...
user avatar
0 votes
1 answer
128 views

How to delete a file registered in Word for Android recent files list?

The file in this picture within the recent list is an old competition fixtures file I want to delete. I click on the three dots to the right of the file and select delete and it says I don't have ...
user avatar
1 vote
1 answer
315 views

How to write to an Android system file?

Why is writing to /sys/class/power_supply/battery/status having no effect? Accessed manually via adb shell as root, eg echo "Discharging" > /sys/class/power_supply/battery/status does not ...
user avatar
  • 113
0 votes
0 answers
261 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 ...
user avatar
0 votes
1 answer
41 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. ...
user avatar
  • 9
1 vote
0 answers
972 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 ...
user avatar
1 vote
0 answers
23 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, ...
user avatar
0 votes
0 answers
435 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 ...
user avatar
  • 127
2 votes
1 answer
233 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 ...
user avatar
  • 153
1 vote
0 answers
40 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. ...
user avatar
1 vote
0 answers
193 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 ...
user avatar
  • 111
5 votes
1 answer
159 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 ...
user avatar
  • 565
0 votes
0 answers
168 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 ...
user avatar
  • 101
1 vote
1 answer
82 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 ...
user avatar
1 vote
0 answers
876 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 ...
user avatar
1 vote
0 answers
89 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 ...
user avatar
  • 11
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 ...
user avatar
7 votes
1 answer
10k 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 ...
user avatar
  • 282
0 votes
0 answers
463 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 ...
user avatar
0 votes
1 answer
276 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!
user avatar
1 vote
1 answer
3k 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 "...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 121
0 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
508 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 ...
user avatar
  • 111
0 votes
2 answers
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 ...
user avatar
  • 1
4 votes
1 answer
5k 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 ?
user avatar
  • 492
4 votes
1 answer
18k 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 ...
user avatar
  • 492
5 votes
1 answer
5k 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 ...
user avatar
2 votes
1 answer
58 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....
user avatar
7 votes
2 answers
9k 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.
user avatar
  • 171
1 vote
1 answer
519 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 ...
user avatar
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 ...
user avatar
2 votes
0 answers
7k 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 ...
user avatar
1 vote
0 answers
472 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. ...
user avatar
  • 546
1 vote
1 answer
7k 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 ...
user avatar
  • 166
0 votes
1 answer
310 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 ...
user avatar
  • 286