On my rooted device running Android 4.2.2, I have following tools installed:
- Terminal Emulator
- BusyBox Free
On Terminal Emulator, su
command successfully changes user to a real root:
root@hwH30-U10:/ # id -u
uid=0(root) gid=0(root)
Then I remount
/system
as R/W
:
root@hwH30-U10:/ # mount | grep system
/emmc@android /system ext4 rw,realtime,noauto_da_alloc,commit=1,data=ordered 0 0
Then I even:
root@hwH30-U10:/ # chmod 777 /system
But I can not change any thing e.g. permissions or contents of /system
original files like /system/build.prop
!
I am sure that permissions and mounts are OK because I can create a new file, /system/tmp.prop
, change it's contents and permissions by Terminal Emulator.
I really have no idea why these operations are not permitted while in Linux point of view, all things are OK for root to do these changes!
Is there any hard-coded further protection inside Android e.g. in kernel?
How to figure out this, please?
chmod
? Have you tried any sorry of root explorer app like ES File Explorer in root mode to change the file permissions? What is your root management app and Android version?chmod
saysOperation not permitted
. and Yes, ES File Explorer in root mode, FileExpert and many other apps are unable to change any thing! My root management app isKingRoot
on Android 4.2.2 (as I mentioned,id -u
onTerminal Emulator
says me that I'm realy root with id 0).ls -Z
say nothing about any context, however, Google says SELinux has been equipped into Android from version 4.3. mine is 4.2.2.echo lolcat > /system/build.prop
fails withk_shell/10210:17681: can't create /system/build.prop: Permission denied
as I guessed.echo lolcat > /system/build.prop.orig
works! andmv /system/build.prop.orig /system/build.prop
fails withfailed on ' /system/build.prop.orig': Operation not permitted
as I guessed. So, output ofcat
command is not interesting; It's the original contents.