Root&Recovery4Xperia Z2 Tablet MM Stock ROM Locked Bootloader (.575 .291) in 2 steps!

anandfr

New member
Oct 8, 2016
3
1
0
for every SGP variant iovyroot requires to be modified, all models requested are being added as cumulative (which means the newest version will contain all the previous models).
currently SGP512 is not being supported, someone has to request and send me the kernel + info
Thanks a lot for you answer danalec.
I 've had a quick look at iovyroot source code, and I see that for each device, model name (e.g. "SGP512"), full kernel info and some offsets have to be given. As SGP512 boots on SGP511 kernel, I guess that by just recompiling iovyroot, after changing string "SGP511" to "SGP512" in source code would make it work when SGP511 kernel is installed on device. Is it correct? I will try it tomorrow and confirm you.

However, I would also make a iovyroot change request, for SGP512, using kernel 575 taken from SGP512_Customized TW_1281-8203_23.5.A.0.575_R1D stock firmware. I have uploaded corresponding ftf file. Please find information below for modification request.

- Url of ftf file: "https://drive.google.com/open?id=0B-iIVVkWSh8ZSWR5cy1YanYzMGM"
(sorry for not using a proper link, if I do so, my post is rejected due to new membership < 10 posts)
[Edit 9 oct 2016: in fact, I have noticed that this kernel for SGP512 is strictly identical to kernel for SGP511 given in first page of this thread]
- Kernel info :
"Linux version 3.4.0-perf-g43ea728 ([email protected]) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 22 17:27:56 2016"

Thanks a lot for you help.

---------- Post added at 01:29 AM ---------- Previous post was at 01:09 AM ----------

Thanks a lot for you answer danalec.
I 've had a quick look at iovyroot source code, and I see that for each device, model name (e.g. "SGP512"), full kernel info and some offsets have to be given. As SGP512 boots on SGP511 kernel, I guess that by just recompiling iovyroot, after changing string "SGP511" to "SGP512" in source code would make it work when SGP511 kernel is installed on device. Is it correct? I will try it tomorrow and confirm you.
Could not wait to try, I have just done this modification in souce code (replacing "SGP511" string by "SGP512") , compiled iovyroot, and with kernel for SGP511 (UK) 575 installed on my SGP512, I have executed install.bat with this modified iovyroot: it has well rebooted in TWRP !
 
Last edited:

danalec

Senior Member
Dec 18, 2012
63
48
0
As SGP512 boots on SGP511 kernel, I guess that by just recompiling iovyroot, after changing string "SGP511" to "SGP512" in source code would make it work when SGP511 kernel is installed on device. Is it correct?
Yes if it boots only changing the string would bypass the version check

compiled iovyroot, and with kernel for SGP511 (UK) 575 installed on my SGP512, I have executed install.bat with this modified iovyroot: it has well rebooted in TWRP !
SGP511 and 512 offsets could be similar but it is safer to check the kernel image

hold on, I'm downloading it and will check the offsets asap
 

danalec

Senior Member
Dec 18, 2012
63
48
0
for SGP512, using kernel 575 taken from SGP512_Customized TW_1281-8203_23.5.A.0.575_R1D stock firmware. I have uploaded corresponding ftf file. Please find information below for modification request.

- Url of ftf file: "https://drive.google.com/open?id=0B-iIVVkWSh8ZSWR5cy1YanYzMGM"
(sorry for not using a proper link, if I do so, my post is rejected due to new membership < 10 posts)
- Kernel info :
"Linux version 3.4.0-perf-g43ea728 ([email protected]) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 22 17:27:56 2016"
I can confirm, the offsets for SGP512 and SGP511 are the same.

beta4 merged the SGP512 confirmation, thanks
 
Last edited:

anandfr

New member
Oct 8, 2016
3
1
0
I can confirm, the offsets for SGP512 and SGP511 are the same.
beta4 merged the SGP512 confirmation, thanks
Hello Danalec,
for confirmation to SGP512 users, I have tested again with beta4 version of R&R4MM you have posted, using kernel for SGP511 given in first page of this thread, and confirm it works.

For information, I have also done a diff between kernel for SGP511, and kernel for SGP512 I had posted yesterday, and there is no difference at all: kernel binary are totally identical.

Thanks again.
 
  • Like
Reactions: danalec
Aug 6, 2016
25
2
0
Edinburgh
never seen a wifi connection problem with the root or cleaning scripts but LTE is gone if you remove the wrong packages. are you using xposed? need more details
Hi, I fixed it, it was nothing to do with rooting, something to do with PC Companion bridging connections. It work perfectly, thanks. I am now installing Xposed from the link in the OP.
 

Arkshines

New member
Sep 14, 2016
1
0
0
I finally found a working way to root my device (SGP511, stock & locked, .291, R3D, FR/Wifi).

I wished the iinstructions were more detailed, because as noob, it took me some time to figure out the things.
Even though I've tried to google all the time, it was not necessarily obvious and kind of confusing.

Your .291 links are dead, but I used XperiFirm from flashtool and I downloaded 1281-8033 (VMo FR/etc) then flashing only the kernel.
I have even installed xposed (*3.1.apk) without issues. So far, it's working fine.

Thanks, danalec!
 

danalec

Senior Member
Dec 18, 2012
63
48
0
I finally found a working way to root my device (SGP511, stock & locked, .291, R3D, FR/Wifi).

I wished the iinstructions were more detailed, because as noob, it took me some time to figure out the things.
Even though I've tried to google all the time, it was not necessarily obvious and kind of confusing.

Your .291 links are dead, but I used XperiFirm from flashtool and I downloaded 1281-8033 (VMo FR/etc) then flashing only the kernel.
I have even installed xposed (*3.1.apk) without issues. So far, it's working fine.

Thanks, danalec!
thanks for the feedback, I'll rewrite the guide when I get more time
 
  • Like
Reactions: shoey63

misterimo

Member
Nov 11, 2016
6
6
0
My experience with this thread

Hello everyone, first of all please forgive my bad english.
I wanted to thank you danalec for the awesome work, as a noob i had some hard time trying to root my SGP521 but i've figured it out. Here are some advices for other noobs like me to avoid some mistakes i did:

First of all, know if you are eligible : this is a tutorial for owner of Xperia Tablet Z2 (SGP511, SGP512, SGP521 and SGP551) who have stock Android 6.0 Marshmallow with firmware 575 or 291.

--- [ introduction ]
step 1) flash Kernel 23.5.A.0.575 for TWRP boot [if you already have a listed .575 kernel, jump this step]
You need to look for a software by the name of Flashtool, this software let you flash roms to your xperia device, try to find the latest version.
Once you've installed flashtool you need it to recognise your Tablet, for that you need to install the right drivers that you can find in C:\Flashtool\drivers install them (don't forget to select your tablet when he about the devices)

Now that our flashing software is ready we need to also prepare the tablet, you need to put the superSU zip file on your internal storage and enable usb debugging. Don't forget to plug it to plug it to your pc and let windows it install the drivers to fully recognise the tablet, once done you can disconnect your tablet.

To flash the custom kernel
--- [ introduction ]
Kernel SGP511 23.5.A.0.575 (Customized UK) **SGP512 users reported that SGP511 kernel works flawlessy, offsets were checked and they match.
Kernel SGP521 23.5.A.0.575 (Customized UK)
Kernel SGP551 23.5.A.0.575 (Claro BR)
you need to move the file from .sin to .tft, to do that open flashtool, go to tools>bundles>create, once the bundler window shows up choose the kernel file, the device (SGPXXX), and whathever branding and name you want then you're good to create the .tft file.
After that, get back to flashtool click on the lightning and select flashmode, you'll get a window to select wich firmware you want to flash to your device, open up the arrow with the name of your device (SGPXXX) and select the one with the branding you choosed before for your kernel, you're ready to flash your device, you can now plug in your powered off tablet while holding the volume - key, this will begin flashing (takes less than a minute). once done check twice if you have any error on the log of flashtool if non you can continue to the step 2.


step 2) grab R&R4MM-beta04.rar and run install.bat to boot TWRP:Recovery & Root for Marshmallow


You can unplug your device and boot it up to check if anything's wrong, now unzip R&R4MM-beta04.rar and you should find a "install.bat", before starting it close flashtool and be careful to not run it as admin, once the command window says that the daemon started successufly, you can plug in your device and this will start flashing TWRP, if everything goes right your tablet should reboot with a purple led, it will boot the TWRP who can let you install the .zip file for SuperSU that you put before in your internal storage, once installed congratualtions, your tablet is officially rooted. you can also boot TWRP by waiting until the green let lights up and hold volume down key if you wanna install something else.

unfortunately i couldn't boot up TWRP without this method, also couldn't install the Xposed framework 23, if someone can help me out i would really apreciate it
 
Last edited:

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
Hello everyone, first of all please forgive my bad english.
I wanted to thank you danalec for the awesome work, as a noob i had some hard time trying to root my SGP521 but i've figured it out. Here are some advices for other noobs like me to avoid some mistakes i did:

First of all, know if you are eligible : this is a tutorial for owner of Xperia Tablet Z2 (SGP511, SGP512, SGP521 and SGP551) who have stock Android 6.0 Marshmallow with firmware 575 or 291.



You need to look for a software by the name of Flashtool, this software let you flash roms to your xperia device, try to find the latest version.
Once you've installed flashtool you need it to recognise your Tablet, for that you need to install the right drivers that you can find in C:\Flashtool\drivers install them (don't forget to select your tablet when he about the devices)

Now that our flashing software is ready we need to also prepare the tablet, you need to put the superSU zip file on your internal storage and enable usb debugging. Don't forget to plug it to plug it to your pc and let windows it install the drivers to fully recognise the tablet, once done you can disconnect your tablet.

To flash the custom kernel

you need to move the file from .sin to .tft, to do that open flashtool, go to tools>bundles>create, once the bundler window shows up choose the kernel file, the device (SGPXXX), and whathever branding and name you want then you're good to create the .tft file.
After that, get back to flashtool click on the lightning and select flashmode, you'll get a window to select wich firmware you want to flash to your device, open up the arrow with the name of your device (SGPXXX) and select the one with the branding you choosed before for your kernel, you're ready to flash your device, you can now plug in your powered off tablet while holding the volume - key, this will begin flashing (takes less than a minute). once done check twice if you have any error on the log of flashtool if non you can continue to the step 2.



You can unplug your device and boot it up to check if anything's wrong, now unzip R&R4MM-beta04.rar and you should find a "install.bat", before starting it close flashtool and be careful to not run it as admin, once the command window says that the daemon started successufly, you can plug in your device and this will start flashing TWRP, if everything goes right your tablet should reboot with a purple led, it will boot the TWRP who can let you install the .zip file for SuperSU that you put before in your internal storage, once installed congratualtions, your tablet is officially rooted.

unfortunately i couldn't boot up TWRP without this method, also couldn't install the Xposed framework 23, if someone can help me out i would really apreciate it
Check the kernel build date, under Settings > About phone. If it's dated April 22, 2016, you're ready to run this rooting tool. If, after you ran the install.bat file, your phone failed to automatically boot into TWRP, perhaps your kernel is not the right one. Anyway, please attach the output of the install.bat command window.
 

misterimo

Member
Nov 11, 2016
6
6
0
Check the kernel build date, under Settings > About phone. If it's dated April 22, 2016, you're ready to run this rooting tool. If, after you ran the install.bat file, your phone failed to automatically boot into TWRP, perhaps your kernel is not the right one. Anyway, please attach the output of the install.bat command window.
Thanks for your fast reply, sorry if i did a mistake: i actually managed to boot TWRP just after flashing it with the install.bat and installed SuperSU when i did (had to reflash it again) ^^
Now i can't boot TWRP when i reboot my tablet (could'nt find online a working keys for rebooting onto recovery), also i didn't understand how to flash the Xposed v23
 

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
Thanks for your fast reply, sorry if i did a mistake: i actually managed to boot TWRP just after flashing it with the install.bat and installed SuperSU when i did (had to reflash it again) ^^
Now i can't boot TWRP when i reboot my tablet (could'nt find online a working keys for rebooting onto recovery), also i didn't understand how to flash the Xposed v23
Whenever you wish to enter TWRP again, pay attention to the reboot phases. Right after the first Sony Xperia screen, the led will flash in green color, along with a vibration. At that moment, press the volume down button. The led will be changed to pink and TWRP will come up.
 
  • Like
Reactions: misterimo

misterimo

Member
Nov 11, 2016
6
6
0
Whenever you wish to enter TWRP again, pay attention to the reboot phases. Right after the first Sony Xperia screen, the led will flash in green color, along with a vibration. At that moment, press the volume down button. The led will be changed to pink and TWRP will come up.
THANKS A LOT CASOUZAJ !
for some reason i couldn't find this info anywhere i lack some search skills :confused:
Anyway i've found on some threads (here on xda) that the v23 of Xposed works only (better) on the stock kernel,
does it mean i HAVE to reflash again the stock kernel of the rom i'm using (the .291) ?
if i do so i'll loose TWRP (i think i've read it on this thread)
if i loose TWRP i'm i going to loose also the Xposed framework ?
 

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
THANKS A LOT CASOUZAJ !
for some reason i couldn't find this info anywhere i lack some search skills :confused:
Anyway i've found on some threads (here on xda) that the v23 of Xposed works only (better) on the stock kernel,
does it mean i HAVE to reflash again the stock kernel of the rom i'm using (the .291) ?
if i do so i'll loose TWRP (i think i've read it on this thread)
if i loose TWRP i'm i going to loose also the Xposed framework ?
Yes, install the sdk23 arm v86 Xposed zip through TWRP. You won't loose either TWRP or root access by flashing the 291 kernel back. It's basically to avoid an annoying and persistent upgrade notification on your status bar. And you end up with the latest kernel.
 
  • Like
Reactions: misterimo

nickbaker66

Senior Member
Nov 15, 2016
87
10
0
London
Hi All,

I have been having issues the last couple of days (its only just started) with it overheating, i downloaded cooler master which says in an idle state its TEMP 40.6: CPU 43%: RAM 37%:

i have seen people say adjust the temperature shut off value to 80-85 degrees but i cant do that on an unrooted device, I am not a techophobe LOL so happy to do what ever i need to do but theirs so many different guides i have now confused myself with kernel versions build versions and android versions and dont want to mess up my tablet, i have included my spec below to assist.

would somebody mind showing which guide to use please :D

Sony Z2 tablet
Model number SGP511
Android version 6.01
kernel version 3.4.0-perf-gc14c2d5 (tue 28 11:15:51 2016)
build number 23.5.A.1.291
 
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