Advanced Stock Kernel and TWRP for Xperia X Compact

Search This thread

AndroPlus

Senior Member
I made advanced stock kernel and TWRP for Xperia X Compact.
I don't have X Compact, so there will be no further update.
Please don't ask for update.

Advanced stock kernel
-For 34.1.A.1.198
-ric, dm-verity disabled
-DRM patch from tobias.waldvogel
-SELinux Permissive
-Load recovery from recovery (FOTAKernel) partition
Download:
https://drive.google.com/open?id=0B0j3VJ1Xp5N8bl9xbEFxN1N1Vkk

TWRP 3.0.2
-Fully supports decryption

Download:
https://drive.google.com/open?id=0B0j3VJ1Xp5N8M1ZGbzBBMTdyRnM

1. Reboot into recovery or bootloader
2. Extract boot.img from zip and run this command in fastboot mode:
fastboot flash boot boot.img

If you have no recovery, you also need to flash recovery by this command:
fastboot flash recovery TWRP-3.0.2-2-F5321.img

3. Reboot
4. Done!

* Press volume up or down key when LED is orange to enter into recovery

Kernel source:
https://github.com/AndroPlus-org/android_kernel_sony_msm8956/tree/34.1.A.1.198

Device tree for TWRP:
https://github.com/AndroPlus-org/android_device_sony_kugo

PayPal:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=S2LALLRARKTKC

Credit:
tobias.waldvogel for awasome DRM patch,
nilezon for boot script
Snow_Basinger for testing
and big thanks to other people involved including Sony and TeamWin
 
Last edited:

x10isrooted

Senior Member
Jun 23, 2010
259
33
I made advanced stock kernel and TWRP for Xperia X Compact.
I don't have X Compact, so there will be no further update.
Please don't ask for update.

Advanced stock kernel
-For 34.1.A.1.198
-ric, dm-verity disabled
-DRM patch from tobias.waldvogel
-SELinux Permissive
-Load recovery from recovery (FOTAKernel) partition
Download:
https://drive.google.com/open?id=0B0j3VJ1Xp5N8bl9xbEFxN1N1Vkk

TWRP 3.0.2
-Fully supports decryption

Download:
https://drive.google.com/open?id=0B0j3VJ1Xp5N8YWJsVGZTc0ZhZUE

1. Reboot into recovery or bootloader
2. Extract boot.img from zip and run this command in fastboot mode:
fastboot flash boot boot.img

If you have no recovery, you also need to flash recovery by this command:
fastboot flash recovery TWRP-3.0.2-2-F5321.img

3. Reboot
4. Done!

* Press volume up or down key when LED is orange to enter into recovery

Kernel source:
https://github.com/AndroPlus-org/android_kernel_sony_msm8956/tree/34.1.A.1.198

Device tree for TWRP:
https://github.com/AndroPlus-org/android_device_sony_kugo

PayPal:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=S2LALLRARKTKC

Credit:
tobias.waldvogel for awasome DRM patch,
nilezon for boot script
Snow_Basinger for testing
and big thanks to other people involved including Sony and TeamWin

this is only for unlocked bootloader?
 

mesajoejoe

Senior Member
Jan 18, 2008
264
29
I've unlocked the bootloader and have access to recovery. Am I able to root this thing then?
 

fl3xx

New member
Apr 14, 2011
3
1
I've unlocked the bootloader and have access to recovery. Am I able to root this thing then?

So I think you unlocked the boot loader using the service delivered by Sony, correct? Okay...

But how did you deal with the DRM security keys (TA partitions)? If I get that right within the TA partition there might be some key information which could affect advanced camera functionality? Did you get a backup of the TA partition before unlocking the bootloader?

Thank you for support!
 

AndroPlus

Senior Member
So I think you unlocked the boot loader using the service delivered by Sony, correct? Okay...

But how did you deal with the DRM security keys (TA partitions)? If I get that right within the TA partition there might be some key information which could affect advanced camera functionality? Did you get a backup of the TA partition before unlocking the bootloader?

Thank you for support!

You don't need to backup TA (at least when you are using) since DRM patch solves camera functionality problem.
 

charliebigpot

Senior Member
Apr 27, 2010
1,278
600
has anyone tested this? It basically means we can:

1. unlock the bootloader
2. flash twrp recovery
3. flash this kernel
4. flash superuser
and we have a rooted x compact with working drm (at least some of it).

Is that correct?
 

mesajoejoe

Senior Member
Jan 18, 2008
264
29
has anyone tested this? It basically means we can:

1. unlock the bootloader
2. flash twrp recovery
3. flash this kernel
4. flash superuser
and we have a rooted x compact with working drm (at least some of it).

Is that correct?
In theory yes. Though I cannot flash the superuser zip, nor can I mount anything in TWRP at the moment. Before unlocking boot loader and flashing this, I flashed UK for fingerprint sensor so that may be the reason. Tomorrow I plan on testing more.

Sent from my HTC 10
 

mesajoejoe

Senior Member
Jan 18, 2008
264
29
Good luck and keep us posted! :)

No luck. It won't install the superuser.zip. In TWRP everything is red, can't mount anything. Can't see internal SD from TWRP, can't format anything. I went back to Customized US from xperifirm and re-flashed kernel and TWRP. Not sure what to do.
YW3c9vK.jpg
 
Last edited:

AndroPlus

Senior Member
No luck. It won't install the superuser.zip. In TWRP everything is red, can't mount anything. Can't see internal SD from TWRP, can't format anything. I went back to Customized US from xperifirm and re-flashed kernel and TWRP. Not sure what to do.

hmm, can you upload full log (tmp/recovery.log)?
I confirmed this works on F5321 but maybe there's some difference in US.
 
  • Like
Reactions: charliebigpot

AndroPlus

Senior Member
Two things exist there. 7824900.sdhci and 7864900.sdhci Thank you BTW for looking into this. Root access is the only thing holding me back from using this device.

Sent from my HTC 10

Thank you, I'll rebuild TWRP later with "7864900.sdhci".
I don't know why there are two path, but 7864900.sdhci should be right path for your device.
oops it was for sdcard...
 
Last edited:

mesajoejoe

Senior Member
Jan 18, 2008
264
29

Appears to be working. I have mounting access in TWRP, flashed superuser.zip without issue. Thanks!

Well it was kind of working. On US firmware root was functioning but when switching over to UK it stopped. Since then I have not been able to regain root access on US or UK. After flashing the superuser.zip it just hangs on the Sony logo. I've gone back and forth between US and UK, but no luck. TWRP is having issues unmounting /system... not sure if that gives anyone any insight. I'm probably just going to leave it without root access for now. Appreciate your help!
 
Last edited:
Mar 10, 2010
16
5
Does it work on CE version

Hey everyone
Can anyone confirm that it works on CE software Version.
Unlock BL is allowed.
Thanks in advance.
 

Top Liked Posts