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

danalec

Senior Member
Dec 18, 2012
63
48
0
Think this can work to get MM on 561 model?

Sent from my SGP561 using XDA Premium HD app
561 still on LL 5.1.1 @ 23.4.B.0.319
there are several work arounds for LL

iovyroot method would work on LL, just grab the kernel info and upload me the tft of it
 
Last edited:

cfgh

Senior Member
Mar 19, 2011
77
18
0
Canary Islands
Well, after read full thread 3 or 4 times, i am absolutely lost.
My device is SGP512 with custom firmware .575. It runs very well with TWRP 3.0.2 and Supersu 2.78.
My big question is: How flash the kernel indicated in the OP ??
Of course i have tried with the option fastboot mode in the flashtool and the response is not a valid kernel.
Please, can somebody explain the utility or way to flash the kernel and launch the install.bat ??
Many thanks and sorry my poor english.
 

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
Well, after read full thread 3 or 4 times, i am absolutely lost.
My device is SGP512 with custom firmware .575. It runs very well with TWRP 3.0.2 and Supersu 2.78.
My big question is: How flash the kernel indicated in the OP ??
Of course i have tried with the option fastboot mode in the flashtool and the response is not a valid kernel.
Please, can somebody explain the utility or way to flash the kernel and launch the install.bat ??
Many thanks and sorry my poor english.
The kernel present in the OP is for the SGP551 variant. To be sure to have your model with its own kernel, launch Flashtool and click on the XF for it ti start Xperifirm. There, select your specific model and download any 23.5.A.1.291 ROM available, since your focus is the kernel only. When Xperifirm finishes downloading and unpacking the ROM, kill it completely, allowing Flashtool to resume its works, which will culminate with the creation of the ftf file already in the correct location. Then, click on the lightning icon, select flashmode and the ROM you had just downloaded. Tick ALL the checkboxes in the exclusion list, including the ones on the Misc TA field at the bottom, EXCEPT the kernel checkbox, in a way that only kernel.sin is shown on the list of components to be flashed.

Good luck!
 
  • Like
Reactions: cfgh

cfgh

Senior Member
Mar 19, 2011
77
18
0
Canary Islands
The kernel present in the OP is for the SGP551 variant. To be sure to have your model with its own kernel, launch Flashtool and click on the XF for it ti start Xperifirm. There, select your specific model and download any 23.5.A.1.291 ROM available, since your focus is the kernel only. When Xperifirm finishes downloading and unpacking the ROM, kill it completely, allowing Flashtool to resume its works, which will culminate with the creation of the ftf file already in the correct location. Then, click on the lightning icon, select flashmode and the ROM you had just downloaded. Tick ALL the checkboxes in the exclusion list, including the ones on the Misc TA field at the bottom, EXCEPT the kernel checkbox, in a way that only kernel.sin is shown on the list of components to be flashed.

Good luck!
Many thanks for your answer.
Your explanation if very good, but i don´t understand why flash a kernel .291. I have understood in OP is necessary flash a kernel .575 or i am mistake ??
Repeat many thanks.
 

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
Many thanks for your answer.
Your explanation if very good, but i don´t understand why flash a kernel .291. I have understood in OP is necessary flash a kernel .575 or i am mistake ??
Repeat many thanks.
The 575 kernel is required for the rooting tool to work. Now, once having correctly run the tool, having the 291 ROM whist keeping the 575 kernel, I mean, if you don't flash the 291 kernel back, you'll get a persistent upgrade notification.
 

danalec

Senior Member
Dec 18, 2012
63
48
0
The kernel present in the OP is for the SGP551 variant.
no. wrong!
there are several SGP511 SGP512 kernel avaliable in the thread, they are .575 approved for the iovyroot

My device is SGP512 with custom firmware .575.
My question is, why do you need to root if you are already rooted with your custom firmware??

My big question is: How flash the kernel indicated in the OP ??
just use latest flashtool

The 575 kernel is required for the rooting tool to work. Now, once having correctly run the tool, having the 291 ROM whist keeping the 575 kernel, I mean, if you don't flash the 291 kernel back, you'll get a persistent upgrade notification.
that's correct, .575 kernel is the requirement to iovyroot to work but if you flash back .291 root won't disappear, so you can keep it rooted afterall.

you don't need to flash .291 back and notifications for the update can be disabled, that's simple.
 
  • Like
Reactions: cfgh

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
that's correct, .575 kernel is the requirement to iovyroot to work but if you flash back .291 root won't disappear, so you can keep it rooted afterall.

you don't need to flash .291 back and notifications for the update can be disabled, that's simple.
Yes, you can disable the upgrade notification, but I think that might affect Sony driven applications as well. IMHO, the best solution would be to flash the 291 kernel back.
 

danalec

Senior Member
Dec 18, 2012
63
48
0
Yes, you can disable the upgrade notification, but I think that might affect Sony driven applications as well. IMHO, the best solution would be to flash the 291 kernel back.
No, it won't. Other app will keep working if you remove "What's New" app

We can discuss which ones can be removed or not and its side effects
You can generate a full list of Sony's bloatware easily using adb
 

cfgh

Senior Member
Mar 19, 2011
77
18
0
Canary Islands
My question is, why do you need to root if you are already rooted with your custom firmware??

I should wish a more near stock rom with TWRP and root.

And, perhaps more important, I like experiment.

Many thanks to both.
 

casouzaj

Senior Member
Oct 13, 2006
2,219
569
193
57
Haibara-gum Yoshida-cho Sumiyoshi-shi
My question is, why do you need to root if you are already rooted with your custom firmware??

I should wish a more near stock rom with TWRP and root.

And, perhaps more important, I like experiment.

Many thanks to both.
This tool is meant to achieve root access and have TWRP installed directly on the Marshmallow 575 and 291 builds. If you are already on one of these ROMs and are already rooted and have TWRP installed, you don't have to bother about it.
 

nscxp2005

Senior Member
Oct 20, 2008
502
19
0
Once I run the batch file and it boots into TWRP, how do I get a permanent Recovery installed?

I have managed to root it but unable to get TWRP installed.

I hope you can help. Thanks
 

thandd

New member
Sep 18, 2016
2
0
0
root yes - but TWRP issues

Here is what I managed to do, and what not:
1) I flashed a completely new .291 firmware (downloaded using xperifirm) via flashtool (flashmode).
2) I flashed, in flashmode, a .575 kernel by checking under "exclude" everything except the kernel.
3) I ran install.bat from R&R4MM-beta03
4) The Tablet (SGP521) bootet into TWRP
5) I installed SuperSU. Root was verified working after restart.
6) I flashed, in flashmode, a .291 kernel by checking under "exclude" everything except the kernel, from the same firmware I downloaded under 1)
7) Root survived, TWRP did not (I guess because upper method also flashed a loader.sin, which probably overwrites TWRP)

Can somebody please advise what to do to keep TWRP after step 6), or to get it onto my system now?

Thank you!
 

danalec

Senior Member
Dec 18, 2012
63
48
0
6) I flashed, in flashmode, a .291 kernel by checking under "exclude" everything except the kernel, from the same firmware I downloaded under 1)
7) Root survived, TWRP did not (I guess because upper method also flashed a loader.sin, which probably overwrites TWRP)

Can somebody please advise what to do to keep TWRP after step 6), or to get it onto my system now?
you are correct about 7) and you can flash TWRP from an app (like flashify or similar)

my guide is just a generic step by step manual, personally I think it's easier to create a .291 kernel .zip prerooted image with the recovery on it then flash at 4)

I hope it helps
 

thandd

New member
Sep 18, 2016
2
0
0
... personally I think it's easier to create a .291 kernel .zip prerooted image with the recovery on it then flash at 4)

I hope it helps
As you suggested, I prepared a prerooted image (using PRFCreator with a original .291 firmware FTF and RecRoot_v4) and flashed it. That worked. Thank you!
 
Aug 6, 2016
25
2
0
Edinburgh
Hi casouzaj, I appreciate your step by step guides in this thread as i'm quite a noob and this is a complicated thread. i've been having trouble rooting this thing (SGP521) so I went back to basics and read your advice at the bottom of page 3 about getting the Taiwan 0.575 from xperiafirm in order to progress with the kernel in the OP, I thought that would be a good fix, but when I went to flashmode to flash the ftf flashtool doesn't see anything in the folder even though there are a few ftf's in there. Is this a problem with the flashtool drivers or something? Screenshot attached
 

Attachments

danalec

Senior Member
Dec 18, 2012
63
48
0
when I went to flashmode to flash the ftf flashtool doesn't see anything in the folder even though there are a few ftf's in there. Is this a problem with the flashtool drivers or something? Screenshot attached
the provided kernel in the thread is ".sin", you don't need to use them, you can grab them directly from xperiafirm
but if you want to use them, you first need to bundle it up into a ".tft", so your flashtool can detect it in firmware folder.
 
  • Like
Reactions: misterimo

danalec

Senior Member
Dec 18, 2012
63
48
0
[ guide to bundle a .sin into a .tft ]

open flashtool -> Tools -> Bundles -> Create -> locate the folder where the .sin is located then select the file and press "create"
 
  • Like
Reactions: misterimo
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