Unable to change permissions in /system - Huawei Mate 9 Pro Questions & Answers

I've rooted my M9P with SuperSU, and I think that I've correctly decrypted the data partition. (i followed this guide https://forum.xda-developers.com/mate-9/how-to/guide-how-to-root-mate-9-decrypt-data-t3569986/page2 )
I'm trying to move a GPS Spoofing app to system, but the system folder is R/O, and I've tried several different apps and commands to make it R/W, but nothing seems to work. I'm also unable to change permissions in data folder when I tested that. I've google'd myself to death and exhausted all solutions now, but to no avail. I cannot move apps to the system folder. The error I get from the "/system/app mover" app is
Could not remount /system
Click to expand...
Click to collapse
Using the app "Mount /system RO/RW" I get
Your device might not be rooted or is not compatible
Click to expand...
Click to collapse
Trying to change permissions with Root Browser gives me:
Changing permissions was not successful. Please note that some file systems do not allow permission changes.
Click to expand...
Click to collapse
I've also tried "mount -o rw,remount /system" with no luck. Any help would be greatly appreciated!

Related

Root issue cant delete files (JI6)

I dont have a data plan so i installed the JI6 update manually using kies, this caused a problem because i had deleted some of the bloat ware prior to this. after the phone rebooted i would get a media file error that wouldnt stop poping up, so i factory reset the phone.
this did a few things first of all i lost root, but the JI6 update is still there. so i rooted the phone again and tried deleting the bloatware, using apps like androidmate the file gets deleted but comes right back. through the terminal the files display a read only warning.
i know root is working properly because the SU command works
so im wondering if JI6 has gotten locked down and im screwed or do i need to find a new way to root the phone?
Samsung decided to mount /system as a read-only FS. I've heard Root Explorer and Titanium Backup for Root users can get rid off the bloat. I personally, use a custom ROM that on top of deodexing the stock ROM and getting rid off bloatware, also mounts /system as read-write.
root explorer is a pay only app, TB does not work it has no options to uninstall apps.
so i guess my only choice is to flash the rom, where can i find the necessary info?
Here http://forum.xda-developers.com/showthread.php?t=771111
eol2501 said:
root explorer is a pay only app, TB does not work it has no options to uninstall apps.
so i guess my only choice is to flash the rom, where can i find the necessary info?
Click to expand...
Click to collapse
i have TB and i can tell you it works to delete apps, you have to have the paid version.
need to mount as read/write
Read/Write
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
Click to expand...
Click to collapse
Read Only
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
Click to expand...
Click to collapse
imthekuni said:
need to mount as read/write
Read/Write
Read Only
Click to expand...
Click to collapse
thanks imthekuni. this works great for me. is there any way to make this default if i reboot?
imthekuni said:
need to mount as read/write
Read/Write
Read Only
Click to expand...
Click to collapse
this didnt work as i said im trying to mount /system/app/ as RW but even as SU the files are READ only
Poe408 said:
thanks imthekuni. this works great for me. is there any way to make this default if i reboot?
Click to expand...
Click to collapse
I am not sure if it will remain RW if you reboot, I just always revert to read only so I dont accidentally mess something up
bamb0o-stick said:
this didnt work as i said im trying to mount /system/app/ as RW but even as SU the files are READ only
Click to expand...
Click to collapse
hmm that should mount /system and all its subdirectories
Reflashed JI6, reflashed root, got it to work. Thank you all.

[Q] Unable to delete/move shutdown/startup WAV file after JID6 update

I updated JID6 using ODIN
Rooted using OCLF One click
Using Root Explorer I am unable to modify these files after JID6 update.
Previously i was able to move/delete these files. Not anymore.
Current Permission is rw-r--r--
I tried to modify my permsission, but it does not permanently apply. Does anybody else have this problem.. Even after its been rooted, i can't make these permission changes therefore i can't move/delete these files.
Bootup: system/etc/PowerOn.wav
Shutdown: system/media/audio/ui/Shutdown_128.ogg
Did you remount /system rw?
busybox mount -o rw,remount /system
samlot said:
I updated JID6 using ODIN
Rooted using OCLF One click
Using Root Explorer I am unable to modify these files after JID6 update.
Previously i was able to move/delete these files. Not anymore.
Current Permission is rw-r--r--
I tried to modify my permsission, but it does not permanently apply. Does anybody else have this problem.. Even after its been rooted, i can't make these permission changes therefore i can't move/delete these files.
Bootup: system/etc/PowerOn.wav
Shutdown: system/media/audio/ui/Shutdown_128.ogg
Click to expand...
Click to collapse
I have the exact same problem. I posted a thread pretty much identical to this one. Still no answer...
busybox mount -o rw,remount /system
worked for me. Once remounted I could rename the startup/shutdown sounds.
Thanks guys for responding, Thats it. Once I installed Busy Box i was able to move those files again. I guess after the JI6 update, it removes your previously installed busy box. I coulda swear i had busy box already installed when i was using titanium backup. But then I remember i had to Re-Root the phone as well.
rmeden said:
busybox mount -o rw,remount /system
worked for me. Once remounted I could rename the startup/shutdown sounds.
Click to expand...
Click to collapse
So just to be clear....type that string exactly as shown into terminal on the phone and that's it? Then I can delete (not rename) the sound files?
yes. you should have needed to do it the first time, too... /system is always mounted read-only.
and you also need a root shell (su)
chui101 said:
yes. you should have needed to do it the first time, too... /system is always mounted read-only.
and you also need a root shell (su)
Click to expand...
Click to collapse
Sweet! That worked for me! I had to change back to the samsung keyboard because everytime I used the , key in terminal SwiftKey would crash.
No more obnoxious startup/shutdown sounds! Woooo hoooo! Made my Friday!

Cannot modify system or delete bloatware anymore?

Ive upgraded to Eugene's Unnoficial ODIN 2.2 ROM and so far its working pretty good but I cant seem to modify anything in the system. Anyone know why? Tried deleting some bloatware with root explorer and android mate but neither work. Am I missing something here? Worked fine in 2.1.
not sure about the 2.2 rom, but with the JI6 update you had to mount system as rw
Mount as read/write:
Code:
mount -o rw,remount -t rfs /dev/block/stl9 /system
Mount as read-only:
Code:
mount -o ro,remount -t rfs /dev/block/stl9 /system
obviously you do this at your own risk
I used titanium backup and it worked for me...I'm using same froyo rom as op
Sent from my SGH-T959 using XDA App
in root explorer you have to toggle the mount as r/w button at the top, and then you can just toggle it back to r/o...kind of cool so you don't accidentally butt-delete your settings.apk or something
bstromberg said:
in root explorer you have to toggle the mount as r/w button at the top, and then you can just toggle it back to r/o...kind of cool so you don't accidentally butt-delete your settings.apk or something
Click to expand...
Click to collapse
Tried that. Still doesn't work. Also tried terminal remount. Doesnt seem to work either. Ill try titanium next.
jrharvey said:
Tried that. Still doesn't work. Also tried terminal remount. Doesnt seem to work either. Ill try titanium next.
Click to expand...
Click to collapse
Install BusyBox off of market, then open the app and click install for the newest busybox, now remove the bloatware
AustinKnight45 said:
Install BusyBox off of market, then open the app and click install for the newest busybox, now remove the bloatware
Click to expand...
Click to collapse
Thanks. Busybox did the trick. I definately did not have it on the stock ROM when i removed all the bloatware before.
In the mount commands above, swap out 'rfs' for 'yaffs2'
I am kinda having the same problems, however I don't have Root Exp, and all my apps in /system/app are -r-. When I try the mount -o rw,remount -t rfs /dev/block/stl9 /system it says Blah blah blah operation not permitted.
I am trying to push a new mms.apk and can't even do that. Says "Read-only file system"
Any help is appreciated
Edit: after installing the newest busybox, I could push in the new signedmms.apk, however all the apps are still -r- in /system/app

[Q] Kitkat 4.4 Unable to mount system as read-write

Upgraded from factory rooted image of 4.3 to the OTA KRT160 I was able to get this rooted and the bootloader has been unlocked.
Cannot mount /system as r/w from either ROM Pro toolbox or ES Files Explorer. 4.3 has no such issues. Anyone else having these problems or know a way to mount this. I want to update my hosts file and a few other things.
Edit: This method works, just not any apps
adb shell
$su
#mount -ro remount,rw /system
make changes in shell
#mount -ro remount,ro /system
zosimov21 said:
Cannot mount /system as r/w from either ROM Pro toolbox or ES Files Explorer. 4.3 has no such issues. Anyone else having these problems or know a way to mount this. I want to update my hosts file and a few other things.
Edit: This method works, just not any apps...
Click to expand...
Click to collapse
Tried that on a rooted Moto X...still no joy. Among other things, it's keeping AdAway from installing.
Edit: I eventually found MotoWpNoMo, which fixed my problem. It permanently removes write protection from /system. Maybe there's something similar for your device.
I had an issue with read write in es. You have to not only slide the root explorer option to on but also tap on root explorer text to change system to r/w. Hope this helps
phatscientist said:
I had an issue with read write in es. You have to not only slide the root explorer option to on but also tap on root explorer text to change system to r/w. Hope this helps
Click to expand...
Click to collapse
Man I've been looking for your tip 2 days. And here you go. Awesome. Same thing with H/K LiveStage sound buried under option line.

lost all permissions after messing with platform.xml

Hello,
I have SM-N9005 variant and recently I updated to the latest android 4.4.2 leaked version with Odin, and then rooted with CF-Auto-Root.
After that, I lost the permission to write to external sdcard.
I searched and found this: http://forum.xda-developers.com/showthread.php?p=49603814
I backed up /system/etc/permissions/platform.xml and then I followed the instructions there.
After restart, a lot of app stopping messages showed and I had no access to file system or network anymore.
I used adb shell to restore the original platform.xml but it didn't helped in any way.
It seems that all mounts and networks are working, but none of the applications has permission to use any of them.
How do I resolve this, without wiping all my data?
Thank you!
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
radicalisto said:
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
Click to expand...
Click to collapse
I tried 644 and 777 but the problem persists.
rw-r-r which is 644 - read wrong
or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
radicalisto said:
rw-r-r which is 644 - read wrong
or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
Click to expand...
Click to collapse
The problem still persist
DxCK said:
The problem still persist
Click to expand...
Click to collapse
i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
A.N.Droid said:
i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
Click to expand...
Click to collapse
Thank you.
When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut
it says:
ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
DxCK said:
Thank you.
When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut
it says:
ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
Click to expand...
Click to collapse
just type sh kn0x0ut.sh to get all commands.
if you dont get this working, you can do it from twrp (i think cwm too)if you have it.
tap on "advanced" and then on "fix permissions".

Categories

Resources