Simple Root for Unlocked Bootloaders (SGP311/312)

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,538
11,594
113
It was clear that rooting some Sony devices was not as easy as it should be. This is for unlocked bootloader users, who want to quickly root a stock ROM by flashing a rooted boot.img. It is for the POLLUX_WINDY (ie. the SGP311/312) devices ONLY.

Do not install this on the Pollux (tablet Z with LTE), or it will no longer boot - use flashtool to fix it

There may have been some in the past, but these tend to be full of other "tweaks", like hideous amateur boot logos, and stupid changes like setting ro.secure=0. That's a bad idea, it can break things, and frankly, I know from experience of myself and others that there is a need for a FAST way to root your unlocked device after flashing a new ROM, rather than messing around with downgrading and OTAs.

This will NOT work on locked bootloader, but this is not intended for them. This doesn't include 9001 different recoveries either, like some "kernels" do. This is the stock kernel, with root added, and nothing stupid added.

There is one security improvement made - ro.adb.secure has been set to 1. This is an important security feature, please don't complain about it. If you don't use ADB, you'll never see it, and it won't change anything. If you use adb, it will offer you greater security on 4.2+ stock Sony ROMs, which don't have this feature enabled. You will be prompted to accept the computer connection on the phone, just like in "AOSP" Android 4.2 and above.

The downloads are available above, in the "Downloads" tab. If you have a particular version you wish to request, simply post the kernel.sin. I have made this for only the SGP311/312 (Pollux_Windy) Tablet Z phone images right now, but will consider expanding it for other devices if there is demand and people who can test.

Enjoy simple root, without the nonsense. None of the "don't mirror my files" crap. None of the "please give me donations", none of the "omg credit me as the best person ever". Feel free to share, use, re-use, mirror, enjoy. And I think you'll find that these files are rather helpful for the unlocked bootloader root community :) I've been thinking about making them for months, but it seems that nobody has ever bothered to.

Click here to download

XDA:DevDB Information
Simple Root for Unlocked Bootloaders (SGP311/312), a Tool/Utility for the Sony Xperia Tablet Z

Contributors
pulser_g2, Chainfire

Version Information
Status: Stable
Current Stable Version: 3.1.C.0.136
Stable Release Date: 2013-09-14

Created 2013-09-14
Last Updated 2013-09-14
 

epcwong

Member
Jul 22, 2007
14
0
1
Hi, do you mean this root method doesn't work for the Tablet Z Lte model? Is there any way to get a method which can root the Lte version ? Thanks !
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,538
11,594
113
Hi, do you mean this root method doesn't work for the Tablet Z Lte model? Is there any way to get a method which can root the Lte version ? Thanks !
Correct.

But, since I feel generous, if you upload me the kernel.sin file from your LTE model, I will make a rooted boot.img for it. You can attach them to a post here if you like - just the kernel.sin. Please name them per the stock ROM version, so I can label it correctly.
 
  • Like
Reactions: spoonymoon

epcwong

Member
Jul 22, 2007
14
0
1
Correct.

But, since I feel generous, if you upload me the kernel.sin file from your LTE model, I will make a rooted boot.img for it. You can attach them to a post here if you like - just the kernel.sin. Please name them per the stock ROM version, so I can label it correctly.


Hi there, thanks for your reply. What do you mean by the kernel.sin file from my LTE model (mine is the HK version) ? I have taken a photo shot regarding my pad's rom and kernel version details for your reference as attached. If there is not the information that you need, please tell me how to get the "kernel.sin" file from my pad ! Thanks again for your kindness !

20130930_201750.jpg
 

MightyBear007

Senior Member
Sep 2, 2013
539
650
0
Chennai
Correct.

But, since I feel generous, if you upload me the kernel.sin file from your LTE model, I will make a rooted boot.img for it. You can attach them to a post here if you like - just the kernel.sin. Please name them per the stock ROM version, so I can label it correctly.
i will upload the kernel.sin from the FTFs
is that okay for you?
 
  • Like
Reactions: keil.

epcwong

Member
Jul 22, 2007
14
0
1
Hi there, thanks for your reply. What do you mean by the kernel.sin file from my LTE model (mine is the HK version) ? I have taken a photo shot regarding my pad's rom and kernel version details for your reference as attached. If there is not the information that you need, please tell me how to get the "kernel.sin" file from my pad ! Thanks again for your kindness !

View attachment 2292738
Hi, here attached with the kernel.sin file for you. The Rom version is 10.3.1A.0.244. Thank you so much for your kindly attention for this matter !

---------- Post added at 01:10 PM ---------- Previous post was at 01:03 PM ----------

Sorry I can't upload the kernel.sin file becuase it was said " invalid file ", Sorry about this !

---------- Post added at 01:15 PM ---------- Previous post was at 01:10 PM ----------

Sorry I can't upload the kernel.sin file becuase it was said " invalid file ", Sorry about this !
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,538
11,594
113
@pulser_g2

Here ya go
kernel.sin from 4.2.2 FTF

Google Drive

The attachment is rooted for this version. As you didn't give me the firmware version (ie. 10.A..whatever...), I won't add it to the list. Please test and let me know if it works. If this fails, just re-flash kernel using flashtool.
 

Attachments

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,538
11,594
113
You just did a ro.secure in the ramdisk
Am I right?
Nope. Setting ro.secure=0 is NOT the right way to root.

The ramdisk is modified, it will detect if you have root already, and if not, it will install SuperSU and the corresponding su binary on root. I also set ro.adb.secure=1, to add extra security for the device (now you need to approve ADB connections to unrecognised computers).

If you use ro.secure=0, this will break many apps with "root detection", as well as being a horrendously ugly hack, which introduces all sorts of vulnerabilities. ro.secure should always be set to 1 :)

I strongly advise you don't use root methods that set ro.secure=0, as well as any kernels that do it. It's much safer to not have a rooted ADB shell lying available to anything that connects to your device... Including... you know... an app running on your device that initiated an adb connection to 127.0.0.1 :)

So yes, this gives you root without adding stupid extra security holes like many kernels and "root methods" do :)
 

MightyBear007

Senior Member
Sep 2, 2013
539
650
0
Chennai
Nope. Setting ro.secure=0 is NOT the right way to root.

The ramdisk is modified, it will detect if you have root already, and if not, it will install SuperSU and the corresponding su binary on root. I also set ro.adb.secure=1, to add extra security for the device (now you need to approve ADB connections to unrecognised computers).

If you use ro.secure=0, this will break many apps with "root detection", as well as being a horrendously ugly hack, which introduces all sorts of vulnerabilities. ro.secure should always be set to 1 :)

I strongly advise you don't use root methods that set ro.secure=0, as well as any kernels that do it. It's much safer to not have a rooted ADB shell lying available to anything that connects to your device... Including... you know... an app running on your device that initiated an adb connection to 127.0.0.1 :)

So yes, this gives you root without adding stupid extra security holes like many kernels and "root methods" do :)
Nice Information
Thank you So much for replying!
I have to change all my kernels ram disk to 1

Sent from my C6902 using XDA Premium 4 mobile app
 
  • Like
Reactions: keil.

Havoc2k

Senior Member
Dec 7, 2011
216
14
0
Munich
so i am right ?

Download the file rooted-SGP311_10.3.1.C.0.136-boot.img, unlock the bootloader of my tablet Z with android 4.2 (16gb wifi only running 10.3.1.C.0.136) at the moment, go for fastboot, do fastboot flash boot filename.img and i will be rooted with nothing else changed ?

just want to the root for ad free android, but stay with the stock system :)

thank u
 

Cat McGowan

Senior Member
Apr 28, 2012
823
372
0
so i am right ?

Download the file rooted-SGP311_10.3.1.C.0.136-boot.img, unlock the bootloader of my tablet Z with android 4.2 (16gb wifi only running 10.3.1.C.0.136) at the moment, go for fastboot, do fastboot flash boot filename.img and i will be rooted with nothing else changed ?

just want to the root for ad free android, but stay with the stock system :)

thank u
Instead of going through all the trouble of unlocking the boot loader and flashing an image, use the Vroot tool instead; it works fast and and does not require unlocking the boot loader. Search this forum for information about the Vroot tool.
 
  • Like
Reactions: caballon and ndwgs