yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Tablet General] casouzaj:
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.
[Xperia Z2 Tablet General] danalec:
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
[Xperia Z2 Tablet General] cfgh:
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.
[Xperia Z2 Tablet General] casouzaj:
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.
[Xperia Z2 Tablet General] nscxp2005:
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
[Xperia Z2 Tablet General] thandd:
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!
[Xperia Z2 Tablet General] danalec:
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
[Xperia Z2 Tablet General] thandd:
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!
[Xperia Z2 Tablet General] lionelglitchie:
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
[Xperia Z2 Tablet General] danalec:
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.
[Xperia Z2 Tablet General] danalec:
[ 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"
[Xperia Z2 Tablet General] lionelglitchie:
I bundled the .sin in this thread and it created an .ftf file but (like all the other ftf's in my folder) still not detected in flashtool's firmware selector.
[Xperia Z2 Tablet General] danalec:
In your screenshot your "Sony Xperia Z2 Tablet" tree is not expanded, your list is just hidden

To expand the tft tree and view the tft, just click on it. Notice it will change the arrow side (→ to ↓)

If you have any trouble with flashtool, please use their own FAQ and/or thread.

http://www.flashtool.net

http://xdaforums.com/showthread.php?t=920746
[Xperia Z2 Tablet General] danalec:
guys, just wrote a script to debloat 23.5.A.1.291

I hope international SGP511 and SGP521 owners help me out to improve it
[Xperia Z2 Tablet General] lionelglitchie:
Thanks danalec, this is the most helpful advice. All I needed to do was hover the cursor over the little arrow instead of the body of text to expand the tree. I feel pretty silly, I am so used to windows and clicking on the icon or text I didn't know you had to click the little arrow

Followed the steps in the OP, device appears to be rooted now according to the script.
[Xperia Z2 Tablet General] Crash338:
SGP512 Kernel

Hi guys,

I used this exact method to root my Xperia Z2 phone which worked out great. Id like to do the same for my Z2 Tablet. I'm downloading the 291 version from XperiFirm but how do I get my hands on the 575 Kernel for SGP512 ... or can I use any other 575 Kernel just while I root .. ill flash back my 291 from the FTF I'm grabbing from XperiFirm once done.

Thanks
[Xperia Z2 Tablet General] danalec:
.575 kernel copies are posted in the main post,

if you still have doubts about XperiFirm, please ask them in their own thread.
[Xperia Z2 Tablet General] lionelglitchie:
I wasn't able to get the kernels in the main post to work (do they require an unlocked bootloader?) so I had to use the Taiwan version of .575 in xperifirm.
[Xperia Z2 Tablet General] Crash338:
Thanks for answering but I'm not sure where got the doubts part. I was able to find a 575 Kernel for my SGP512 but when running the bat file I get that my device isn't supported.

[100%] /data/local/tmp/mm_twrp_recovery_install/boot_twrp_recovery.sh

[100%] /data/local/tmp/mm_twrp_recovery_install/busybox

[100%] /data/local/tmp/mm_twrp_recovery_install/byeselinux.ko

[100%] /data/local/tmp/mm_twrp_recovery_install/chargemon.sh

[100%] /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh

[100%] /data/local/tmp/mm_twrp_recovery_install/iovyroot

[100%] /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch

[100%] /data/local/tmp/mm_twrp_recovery_install/recovery.twrp.cpio.lzma

[100%] /data/local/tmp/mm_twrp_recovery_install/wp_mod.ko

iovyroot by zxz0O0

poc by idler1984

Error: Device not supported

Device name: SGP512

Kernel version: Linux version 3.4.0-perf-g43ea728 (BuildUser@BuildHost) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 22 17:27:56 2016
[Xperia Z2 Tablet General] danalec:
no, they need to be packed in .tft format to be flashed and I already posted a mini tutorial in previous replies.

also note taiwan version is not currently supported by iovyroot

many people already rooted SGP512, you probably flashed an unsupported .575 kernel or didn't use the latest version.

if you are in doubt, read the main thread and double check the checksums

please note, iovyroot checksums are

crc32: B2489748

md5: B461D2EE4AC2A8595B422CFFC9020FC7

sha256: 8CC82E66B127D6E7E360B07B1D604B6782AB8CE9830E7E87B149C4EAA5A21015
[Xperia Z2 Tablet General] Crash338:
You are right, I flashed the .575 Taiwan version which you mentioned is unsupported. Where can i find .575 version for SGP512. The ones in the main post arent for SGP512 and they are .sin files meaning only an unlocked bootloader can flash them. My bootloader is locked so I cant use them and they only .575 version i can find is singapore or taiwan.

You say that the SGP512 is already supported and files are posted in the thread but i have re-read the thread several times and cant find it.

Thanks for your help.
[Xperia Z2 Tablet General] danalec:
you are wrong, you can create .tft with .sin and flash with locked bootloader.

scrollback and read #59
[Xperia Z2 Tablet General] lionelglitchie:
Crash338, use the sin file from the OP (the SGP521 kernel should be ok for the 512) in flashtool Create > Bundle and flash the ftf from the firmware folder. Run install.bat with the tablet connected in charging mode (otherwise it wont run, in my case anyway). Do the rest with SuperSu on the SD card. If I can manage to get root, anyone can :) Big thanks again to danalec and casouzaj for their patience.

One final question, danalec, you mention going back to .291 after root. After the final reboot (after supersu install) my firmware is still showing as .291. Should this be right?
[Xperia Z2 Tablet General] casouzaj:
Bear in mind that 23.5.A.1.291 is the ROM denomination, not the kernel's. Under Settings > About phone you must look at the kernel date. If it is dated April, 22 2016, then it is from the 575 firmware. If it's dated June 28 2016, it's from the 291 one instead.
[Xperia Z2 Tablet General] Crash338:
Hi, Thanks.. I just tried tried with the SGP521 but when trying to restart tablet with a kernel from a different model, it will just vibrate once and thats it... doesnt boot back up. Gotta reflash a kernel from an SGP512 otherwise its a paperweight.

Is your tablet an SGP512 or a 521?
[Xperia Z2 Tablet General] lionelglitchie:
I have the 521 but I recall reading earlier in the thread some people got success with these kernels even though they had a different version of the Z2 so I thought it was worth a try.

Ah ok, I have the 575 one, i'll leave it like that for the moment, I plan to get Xposed, etc. Also, I haven't been able to get wifi since rooting ''Authentication error''.
[Xperia Z2 Tablet General] casouzaj:
No problems with WiFi connections in my wife's SGP551 model. Have you tried to forget and reconnect to the WiFi network you are currently facing issues to connect to?
[Xperia Z2 Tablet General] lionelglitchie:
Yeah, tried that but it didn't work. I'll check the rest of the forum and see if I can troubleshoot it. Not sure if it's specifically caused by rooting or something I've done previously with flashtool when I was having trouble with it.
[Xperia Z2 Tablet General] anandfr:
Hi Crash 338,

I also have a SGP512 tablet and trying like you.

I have tried with the 3 kernels proposed at the beginning of this thread.

- With kernels for SGP521 (UK) and SGP551 (BR), tablet does not boot

- With kernel for SGP511(UK), it boots properly. But then, when launching "install.bat", it tells that device is not supported. I have well used the latest version of R&R4MM : beta3.

Could someone confirm that he could make it work on SGP512?

Or may be iovyroot needs to be updated specifically for SGP512.

I would like to try this and request iovyroot modification for a 575 kernel specific for SGP512.

Unfortunately I am new user on this forum and cannot include a link to such a kernel in my post.

Thanks a lot for help.
[Xperia Z2 Tablet General] danalec:
let me clarify some stuff, it is possible to add iovyroot support for kernel even older than .575 (eg.:.570)

if you cannot find any older kernel and want to request a new iovyroot, just follow the instructions
[Xperia Z2 Tablet General] danalec:
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
[Xperia Z2 Tablet General] danalec:
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

only SGP511 UK .575 kernel was posted by another user and requested to be added to iovyroot and it was already fullfilled.

Yes you can, you just do not need to upload using xda's attachment manager, just upload it somewhere else and paste the link
[Xperia Z2 Tablet General] danalec:
guys, I've pushed code merge request for the iovyroot

now it is opensource, sorry for the delay
[Xperia Z2 Tablet General] anandfr:
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 (BuildUser@BuildHost) (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 ----------

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 !
[Xperia Z2 Tablet General] danalec:
Yes if it boots only changing the string would bypass the version check

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
[Xperia Z2 Tablet General] danalec:
I can confirm, the offsets for SGP512 and SGP511 are the same.

beta4 merged the SGP512 confirmation, thanks
[Xperia Z2 Tablet General] anandfr:
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.
[Xperia Z2 Tablet General] lionelglitchie:
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.
[Xperia Z2 Tablet General] moraesdac:
Would you please upload Kernel SGP551 23.5.A.0.575 (Claro BR) again, the links are down.

Thanks.
[Xperia Z2 Tablet General] danalec:
down since 10/16, I'm moving my gdrive/onedrive

I can't upload it right here, not enough space but I could @ SGP551's thread

note: the kernels are all available @ xperiafirm
[Xperia Z2 Tablet General] Arkshines:
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!
[Xperia Z2 Tablet General] danalec:
thanks for the feedback, I'll rewrite the guide when I get more time
[Xperia Z2 Tablet General] misterimo:
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.

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. 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
[Xperia Z2 Tablet General] casouzaj:
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.
[Xperia Z2 Tablet General] misterimo:
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
[Xperia Z2 Tablet General] casouzaj:
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.
[Xperia Z2 Tablet General] herve45:
Thanks

Envoyé de mon SGP512 en utilisant Tapatalk
[Xperia Z2 Tablet General] misterimo:
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 ?
[Xperia Z2 Tablet General] casouzaj:
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.
[Xperia Z2 Tablet General] nickbaker66:
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
[Xperia Z2 Tablet General] angelord666:
kernel .291 links not working
[Xperia Z2 Tablet General] lanc3lot:
Can please someone post Kernel 23.5.A.1.291 ??
[Xperia Z2 Tablet General] danalec:
XperiFirm should supposed to have them
[Xperia Z2 Tablet General] lanc3lot:
Okie dokie,i will check it :) I am waiting the next week a new z2 tablet, so i am preparing everything :D ty
[Xperia Z2 Tablet General] CAL7:
Same here. Expecting it in a day or two. My plan: flash a rootable KitKat ROM (if needed), root, install dual recovery & TWRP, restore my old Z2T nandroid backup. I think that gets me back where I was with the old Z2T.

Comments? Suggestions?
[Xperia Z2 Tablet General] nickbaker66:
Don't forget to unlock your bootloader guys
[Xperia Z2 Tablet General] danalec:
actually it is not needed by this method
[Xperia Z2 Tablet General] CAL7:
Well, my plan was torpedoed. Instead of an SGP511, I got an SGP561. Is there a .575 kernel for this model?
[Xperia Z2 Tablet General] danalec:
check xperiafirm
[Xperia Z2 Tablet General] bam80:
Hmm.. As I see it will even work on Linux maybe. Thanks man! )

So glad I found your post..
[Xperia Z2 Tablet General] bam80:
Will this kernel work with firmware SGP521 RU-UA-KZ_1281-7867_23.5.A.1.291_R3D.ftf (Android 6.0.1)?

If not, could you please generate needed kernel or tell me how I could get it myself?

Thanks
[Xperia Z2 Tablet General] speedyg0nz:
I'm having trouble creating the FTF file from sin files. Flashtool throws the following error. Any advice here?

java.lang.NullPointerException
at org.system.DeviceEntry.getFlashScript(DeviceEntry.java:370)
at gui.BundleCreator$6.widgetSelected(BundleCreator.java:312)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5227)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4561)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4151)
at gui.BundleCreator.open(BundleCreator.java:113)
at gui.MainSWT$21.widgetSelected(MainSWT.java:504)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5227)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4561)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4151)
at gui.MainSWT.open(MainSWT.java:180)
at gui.Main.main(Main.java:46)

Edit: Fixed by patching Flashtool from 0.9.23.1 to 0.9.23.2
[Xperia Z2 Tablet General] BLiapis:
hi, if i flashmode (since i cant fastboot, no open bootloader, i can see no .sin file.

anyway, the walkthrough is horribly missing out key steps, so thanx for the fish.