[Xperia Z2 Tablet General] danalec:
Root&Recovery4Xperia Z2 Tablet MM Stock ROM Locked Bootloader (.575 .291) in 2 steps!

--- [ introduction ]

this script is a recovery installer (TWRP) for Sony Xperia Z2 Tablet with Marshmallow Stock Rom (23.5.x) and works with locked bootloader.

the only requirement to the script work is to have a .575 kernel in the time of installation, you can flash another kernel later (.291 by example).

--- [ how to ]

step 1) flash

Kernel 23.5.A.0.575

for TWRP boot [if you already have a listed .575 kernel, jump this step]

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)

step 2) grab View attachment 3898241 and run install.bat to boot TWRP:Recovery & Root for Marshmallow

now install SuperSU (by the time of this post SR1-SuperSU-v2.78-SR1-20160915123031.zip) and if you want other stuffs like Xposed sdk 23 and enable Multi-Window

after all of this, you can flashback

Kernel 23.5.A.1.291

back

Kernel 23.5.A.1.291 (Generic BR) (Mirror)

Enjoy! Cheers! :good::highfive:

--- [ complimentary ]

-Flashtool by [MENTION=2807379]Androxyde[/MENTION]

-SuperSU by [MENTION=631273]Chainfire[/MENTION]'s

______

--- [ .575 kernels iovyroot added ]

SGP511 Generic UK

SGP512 Generic UK TW

SGP521 Generic UK

SGP551 Claro BR

--- [ versions ]

TWRP 3.0.2-0

Installation Script: beta release 0.4

--- [ credits & thanks ]

[MENTION=4675598]shoey63[/MENTION] for Recovery & Root for MM .575/.291 LB infos

[MENTION=3975929]zxz0O0[/MENTION] for iovyroot

[MENTION=2612885]gustavo_v[/MENTION] for iovyroot offset explanation

[MENTION=410007]Nut[/MENTION] for XZDualRecovery and TWRP's mods

[MENTION=6531242]simply_proto[/MENTION], [MENTION=7649514]XenTeckz[/MENTION], [MENTION=7782555]anandfr[/MENTION] for Z2 Tablet SGP521 SGP512 UK TW 23.5.A.0.575 kernel and test

[MENTION=346743]casouzaj[/MENTION] for suggesting TWRP update

______

--- [ FAQ ]

Q: I have official Xperia 23.5.A.1.291, Can I flash 23.5.A.0.575 kernel over it?

A: Yes

Q: I have flashed 23.5.A.0.575 kernel and I like to flash back 23.5.A.1.291, Is it possible?

A: Yes

Q: I cannot find 23.5.A.0.575 kernel for my model, Is it possible to use an older kernel?

A: Yes probably, with a high success chance. It will require to modify iovyroot, just follow the instructions to request.

Q: I have LL and I'd like to root it, is it possible?

A: Yes, just follow the instructions to request iovyroot modification.

Q: Will I lose TA partition?

A: No, that's why it works with a locked bootloader ;)

______

--- [ requesting your model ]

please upload and post your kernel firmware ftf (must be .575) file and version

to retrieve your kernel version run: adb shell cat /proc/version

(it must be similar to 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)

______

--- [ download ]

View attachment 3898241

crc32: A6FA85E6

md5: ACBEAF8EAD78D8883D86925062FC0C6A

sha256: 8282DCD3E952A50A3080FB0BCE7F4EA810FE13705D314ED44232E3A30789BAB1