Hi
I am running Stock OS (8.0) with Magisk and read-only system partition in order to be able to take OTA's.
The good thing is that i can install any Magisk module without worrying about breaking OTA.
The Problem comes with root access apps, for example ES File Explorer (ye...ye...i know, switching soon, bad habit ).
I checked the root explorer option and granted permission before thinking it through. Luckily the "/" and "/system" partitions
stay read-only per default, so they haven't been mounted R/W, but certain folders in "/system" were mounted as R/W.
The questions now are following?
-Is my OTA broken?
-Will remounting everything as RO help?
-Is there a way to check if system has ever been mounted as R/W?
-How can check if an app asking for root will modify my system partition and break OTA?
Thanks!
Related
Hi,
I have a Samsung Galaxy S3 verizon model. Its rooted and running CleanROM 6.0R2 ROM android 4.1.2.
I am trying to accomplish below
1. Mount external sdcard in read-only mode. This is to avoid files on the extsdcard being accidentally deleted.
I have music and some old photos in there. Sometimes my son plays with the phone. I don't want him
to delete all the photos/music on the external sdcard.
I have tried following, but none of then resolved the issue
1. Partition external sd card as ext3 and set all files/dir to read-only permission from ubuntu box.
This didn't work because, phone doesn't recognize the sdcard and partitions on it.
2. Partition extsdcard as vfat and set permission for the files/dir to read-only using root-explorer.
I cannot set permissions for vfat partition.
3. Partition extsdcard as vfat and Mount extsdcard as read-only using "root-explorer".
Doesn't work. Files can be deleted from other apps like Gallery.
4. Partition extsdcard as vfat and mount extsdcard as read-only using terminal and busybox.
This works. But files are owned by root. For group and other, permission is None. Hence
other apps are not able to view the files. I also cannot chmod and change permissions of the files.
It gives "File system is read-only" error.
From reading many posts, I conclude, partition has to be vfat for apps like Gallery/video player etc to view it.
Only option to achieve read-only on a vfat partition is to mount it read-only. Based on this, any idea how I can achieve my objective?
Also, once set, what happens is the phone is rebooted? Anyway to repeat the sets at boot time?
Thanks
Hi!
I wanted to reformat my internal sdcard to ext4 today to enable trimming (it should also help the /data partition, because it is on the same physical flash storage, right?).
To back up my data I thought about packing everything into a TAR archive to also save all permissions (for example of the ./Android/data/ folder). But now I have the following problem:
if I browse through /storage/sdcard0, I see all the permissions and the correct owners, but I dont have access to .android_secure. I am using a adb root shell, how can I not have access to this?!
if I browse through /mnt/media_rw/sdcard0, I have access to .android_secure, but all the file owners are set to "media_rw", which is not what I want to backup, I need the correct owner info to correctly restore the data later.
Could you please help me to answer these questions?:
As I understand, FAT doesnt support permissions, so how does android emulate the permissions in the ./Android/data folder?
How can I see the same folder (my internal sdcard) with different file owners? Is it mounted twice with special options?
How can I backup my whole sdcard (with owner/group info & permissions & file access dates) to restore everything 1:1 after reformating to ext4?
How do I reformat my sdcard to ext4? (which block device comes after "mkfs.ext4"?)
Thank you very much!!
GridLockFour said:
Hi!
I wanted to reformat my internal sdcard to ext4 today to enable trimming (it should also help the /data partition, because it is on the same physical flash storage, right?).
To back up my data I thought about packing everything into a TAR archive to also save all permissions (for example of the ./Android/data/ folder). But now I have the following problem:
if I browse through /storage/sdcard0, I see all the permissions and the correct owners, but I dont have access to .android_secure. I am using a adb root shell, how can I not have access to this?!
if I browse through /mnt/media_rw/sdcard0, I have access to .android_secure, but all the file owners are set to "media_rw", which is not what I want to backup, I need the correct owner info to correctly restore the data later.
Could you please help me to answer these questions?:
As I understand, FAT doesnt support permissions, so how does android emulate the permissions in the ./Android/data folder?
How can I see the same folder (my internal sdcard) with different file owners? Is it mounted twice with special options?
How can I backup my whole sdcard (with owner/group info & permissions & file access dates) to restore everything 1:1 after reformating to ext4?
How do I reformat my sdcard to ext4? (which block device comes after "mkfs.ext4"?)
Thank you very much!!
Click to expand...
Click to collapse
I'm not sure the answer to some of that, but you don't need ext4 for trimming(EDIT: although I don't know whether android enables trim on FAT) and /data is already ext4 by default. The /data partition is separate to /sdcard0
Most if not all gains from trimming would be made from trimming /system, /data, /cache, and /preload(if you use touchwiz based rom or stock)
Hi, i have a small question:
Do we have write access to /data with ADB and without root on our Moto360?
I would like to test some things but obviously we don't have root access yet.
I believe i have seen someone using a custom build.prop on the /data partition instead of /system partition years ago.
My goal is to "replace" the ro.ambient.low_bit_enabled=true line with a custom build.prop on the /data partition.
I believe this is possible, but i don't remember if i need root to write the /data partition.
Thanks in advance!
Hello
I recently upgraded to Android 10 and it seems like a lot of my apps have issues with storage permissions now. I've read they changed it to storage scopes but when I open some of my apps the first time I get prompt about it being built for an older version of Android, the app asks for storage access like it always did and I grant it but slot of the apps have issues writing to storage or reading other directories. If I go to settings there's storage permission which is enabled but that's it. How can I grant it more access so it can read things from my downloads folder or something? Even some like catlog if I give it root access it still does nothing.
Had an issue where system partition was not mounted after flashing twrp and magisk. After formatting my system partition, flashing lastest image, and then flashing magisk again system partition was mounted. Not sure what happened.
Have you rooted your device?
As for my stock system software, I can enable some app as 'trusted app'. So that it would have no issues about storage permissions.
Hello everyone,
I have a rooted RMX3301 and i was hoping to find a way to mount system as R/W because root only doesn't satisfy my needs of modifying the phone, any help will be appreciated.
I don't recommend you to set R/W to partition system, it isn't secure.
Other than that, you have to disable encryption to constantly read and write.