Root on 4.3 dev discussion

Search This thread

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
Edit 2:
Kernels with recoveries:
Unlocked bootloader required for any of these:

CWM by @lzyllp http://forum.xda-developers.com/showpost.php?p=48599313&postcount=48
TWRP by @Desperanto86 http://forum.xda-developers.com/showpost.php?p=48600227&postcount=60
Philz by me: http://mohammadag.xceleo.org/public/Android/XperiaZ1/Philz_4.3_kernel.img

These kernels have Sony RIC disabled at boot, so /system is always writable.

After flashing with fastboot flash boot filename.img, boot intro recovery and flash this:
SuperSU zip http://download.chainfire.eu/supersu

Edit: Discussion moot, root works fine as per below :D
Proof: Xperia Flip Settings on 4.3:
yUQwXMxl.png


As most of you know, rooting 4.3 isn't fully possible. While su and Superuser.apk can be installed through recovery, /system can't be mounted.

Code:
[email protected]:/ # mount -o rw,remount /system                                 
mount: Operation not permitted

A fix for that is to disable Sony's RIC kernel implementation.
Code:
[email protected]:/system # echo 0 > /sys/kernel/security/sony_ric/enable
[email protected]:/system # mount -o rw,remount /system                               
[email protected]:/system #

This is enabled on boot in init.sony-platform.rc:
Code:
    # Enable Sony RIC
    mount securityfs securityfs /sys/kernel/security nosuid nodev noexec
    write /sys/kernel/security/sony_ric/enable 1

After all this is done, /system is writable:
Code:
[email protected]:/system # echo 123 > test
[email protected]:/system # cat test
123

However, I still can't figure out why Xposed won't install, which is making me wonder if this all worked or not.
Edit: Xposed works fine as per http://forum.xda-developers.com/showpost.php?p=48484642&postcount=6846

Xposed installs fine, it just doesn't work:
Code:
[email protected]:~/Downloads$ adb -d logcat | grep Xposed
D/Xposed  (  355): Starting Xposed binary version 47, compiled for SDK 16
D/Xposed  (  355): Phone: C6903 (Sony), Android version 4.3 (SDK 18)
D/Xposed  (  355): ROM: 14.2.A.0.290
I/Xposed  (  355): -----------------
I/Xposed  (  355): Found new Xposed jar version, activating it
I/Xposed  (  355): Added Xposed (/data/data/de.robv.android.xposed.installer/bin/XposedBridge.jar) to CLASSPATH.
D/AndroidRuntime(  355): >>>>>> AndroidRuntime START de.robv.android.xposed.XposedBridge <<<<<<
D/Xposed  (  355): Using structure member offsets for mode WITH_JIT
I/Xposed  (  355): Found Xposed class 'de/robv/android/xposed/XposedBridge', now initializing
I/Xposed  (  355): -----------------
I/Xposed  (  355): Dec 17, 2013 5:01:53 PM UTC
I/Xposed  (  355): Loading Xposed v42 (for Zygote)...
I/Xposed  (  355): Errors during Xposed initialization
I/Xposed  (  355): java.lang.NoSuchMethodError: android.app.ActivityThread#getTopLevelResources(java.lang.String,int,android.content.res.Configuration,android.content.res.CompatibilityInfo)#exact
 
Last edited:

TeamR

Member
Mar 21, 2012
34
10
Jarny
Hi !
I have Xposed install when i was on 4.2 but lost root since update to 4.3
Can you detail how you get root acces step by step ?
You lost me at RIC Kernel...
Thanks !
 
Last edited:
  • Like
Reactions: ArashMiniStar

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
Hi !
I have Xposed install when i was on 4.2 but lost root since update to 4.3
Can you detail how you get root acces step by step ?
You lost me at RIC Kernel...
Thanks !

This is only useful to devs right now, someone needs to add a startup script that echos 0 into the sysfile above into some ROM.
Basically, you'll need an unlocked BL to install SuperSU, then issue the command above to make /system writable. A custom ROM can do that in some init script, since the file above is in ramdisk (which is part of kernel package). When that's done, installing Xposed will be as simple as tapping Install.
 
  • Like
Reactions: eseregin

CappyT

Senior Member
This is only useful to devs right now, someone needs to add a startup script that echos 0 into the sysfile above into some ROM.
Basically, you'll need an unlocked BL to install SuperSU, then issue the command above to make /system writable. A custom ROM can do that in some init script, since the file above is in ramdisk (which is part of kernel package). When that's done, installing Xposed will be as simple as tapping Install.

You can just execute the commands from terminal emulator and then add a script to init.rc... I try now and if it works i give you a flashable .zip
 

TeamR

Member
Mar 21, 2012
34
10
Jarny
Understand !
But i'm not a good dev !

In fact, if i want root, i can unlock my bootloader since camera was not broken any more, then install a recovery and flash Supersu...
Was right or did i make a mistake ?
 

CappyT

Senior Member
When i try this on LB with adb shell

Code:
[email protected]:/system # echo 0 > /sys/kernel/security/sony_ric/enable
[email protected]:/system # mount -o rw,remount /system                               
[email protected]:/system #

It tells me permission denied...

Because you cannot write the kernel partition without Unlocked Bootloader (at least, I think)

That has been the issue
changing ro.secure=1 to ro.secure=0 has caused kernel failure at boot...

Well, that's not good... It happens only on stock kernel?
 

Top Liked Posts

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone