yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] Teknohtc:
hey guys i tried ROOTing my Z2 but, i don't have ROOT access. My device is a D6503 and the "bootloader unlock allowed is no" also i am on 17.1.a.2.55

here is the script

# Semi-Automated script written by Sacha.

# With exploit method developed by GranPC.

# I assume you have adb installed, etc etc..

# I also assume you are using a Z2 on .69 firmware

# with contributions from DooMLoRD, norti and RyokoN

Installing exploit app.

error: device unauthorized. Please check the confirmation dialog on your device.

- waiting for device -

rm failed for /data/local/tmp/exploit.apk, No such file or directory

Copying small files...

6084 KB/s (1109128 bytes in 0.178s)

6578 KB/s (121260 bytes in 0.018s)

4449 KB/s (13672 bytes in 0.003s)

277 KB/s (569 bytes in 0.002s)

3091 KB/s (9496 bytes in 0.003s)

1000 KB/s (2050 bytes in 0.002s)

94 KB/s (97 bytes in 0.001s)

4450 KB/s (13672 bytes in 0.003s)

246 KB/s (505 bytes in 0.002s)

197 KB/s (404 bytes in 0.002s)

746 KB/s (764 bytes in 0.001s)

5426 KB/s (83364 bytes in 0.015s)

1508 KB/s (3089 bytes in 0.002s)

307 KB/s (629 bytes in 0.002s)

32 KB/s (33 bytes in 0.001s)

6565 KB/s (2326385 bytes in 0.346s)

Copying BIG file... please have patience, this might take a while...

5970 KB/s (63931904 bytes in 10.457s)

Correcting permissions...

Starting Part 1

--- DooMing device: PART 1!

--- Correcting permissions

--- Running services

200 0 asec operation succeeded

400 0 asec operation failed (Permission denied)

Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s

ervicemenu/.ServiceMainMenu }

Warning: Activity not started, its current task has been brought to the front

Test VDC #1:

Failure

PART 1 complete!

Complete!

----------------[ ATTENTION ]----------------

Please 'crash' the Service Menu app to complete.

For example: Service Info - Configuration.

The screen will probably blink when it has worked.

Press any key to continue . . .

Starting Part 2

--- DooMing device: PART 2!

--- remounting hack

406 0 asec operation failed (No such file or directory)

--- Running services

Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s

ervicemenu/.ServiceMainMenu }

Warning: Activity not started, its current task has been brought to the front

Test VDC #2:

Failure

PART 2 complete!

----------------[ ATTENTION ]----------------

Please 'crash' the Service Menu app to complete.

For example: Service Info - Configuration

The screen will probably blink when it has worked.

Press any key to continue . . .

any help would be appreciated and thank you DEVS for the hard work! :good:
[Xperia Z2 Original Android Development] rajivshahi:
indstall android SDK ( just google usb drivers) and JDK and it should work without any problem.....
[Xperia Z2 Original Android Development] kngyr:
Can someone confirm this? I too am interested to know if the root will hold, lose root or if there is anything that we can use to hold root after OTA or if the OTA will not work at all because of being rooted.

Past experience with other devices, usually just lose root if you were to proceed with OTA or have some OTA root keeper. It's been a while lol...
[Xperia Z2 Original Android Development] AndroPlus:
Congrats on full root, I was sleeping:D

For someone who wants to try this rootkit on other Xperia such as Z1, you should search ric_enable address.

Requrement:

unpack-kernelsin, pullkernellzo and kallsymsprint from cubeundcube website

lzop.exe

Put all files in same folder.

How-to:

1. Extract kernel.sin from FTF

2. Unpack kernel.sin

unpack-kernelsin.exe kernel.sin

3. Extract lzo

pullkernellzo.exe kernel.sin-kernel

4. Extract kernelbin.lzo

lzop.exe -d kernelbin.lzo

5. Run

kallsymsprint.exe kernelbin > kallsymsprintdump.txt

6. Open kallsymsprintdump.txt and find "ric_enable"

Left one is the address.

7. Open Z2-Community_RootKit-v01\files\rootcmd.sh, install-recovery-2.sh and chargemon.sh

8. Change "c10ce260" to the address in 6. and save

9. Replace chargemon.stock with your system's chargemon (rename it)

Please consider a donation to cubeundcube if writekmem (in rootkit) is helpful.

You can find PayPal donation page on cubeundcube website (The link is ＞こちら＜)
[Xperia Z2 Original Android Development] hush66:
No one will be able to confirm whether OTA will keep root or not, as the success rate seems to be very specific to the firmware and device. On the older devices, one could retain root via OTA. But in the more recent devices like the Xperia Z or Z1, root was either lost after OTA (on specific firmwares) or you could not even update via OTA (e.g. the recent Z1 761 OTA update for some users). You could always try and then let us know the result. ;)
[Xperia Z2 Original Android Development] kngyr:
hahaha all good - cheers for the reply.

that's what I thought, I just got a little concerned when you mentioned that the OTA wouldn't work. Well here in Australia with Vodafone FW updates don't come very often lol, still on .55 and no word of any upcoming. But if it does, I'll try it out see if I lose out :P.
[Xperia Z2 Original Android Development] DooMLoRD:
We have mobilised this into a much better script for auto detection... Its already included in v02 (being tested internally)...

OTA won't work... Better to flash prerooted update.zip... Will be available soon...
[Xperia Z2 Original Android Development] hush66:
That's what I thought too, until some Z1 users reported being able to update to 761 firmware via OTA and keep root. Anyways, I always wait for [NUT]'s prerooted update zip. :good:
[Xperia Z2 Original Android Development] Ricky D:
Before we go, I've read every page (some of it skimmed admittedly but most of it absorbed).

What I'm doing:

SGP521 - I know this is for Z2 not tablet but I think it should work just the same

Running Win8 64

my android sdk is running just fine (I do some app developing myself and would notice if it broke)

drivers all installed correctly etc

downgraded to .69 fw

clean install, nothing at all in there

I was running into problems with the "PART 1" - "Running Services" section and the vdcCreate and startService but they seem to resolve ok now.

My problem is that the service menu just won't crash (I managed to make it crash before, but I I simply can't get all the stages to run together, when one breaks another fails then when that breaks the first one fails again).

Starting Part 1
--- DooMing device: PART 1!
--- Correcting permissions
--- Running services
200 0 asec operation succeeded
200 0 asec operation succeeded
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.servicemenu/.ServiceMainMenu }
Test VDC #1:
Failure
PART 1 complete!
Complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration.
The screen will probably blink when it has worked.
Press any key to continue . . .
Starting Part 2
--- DooMing device: PART 2!
--- remounting hack
406 0 asec operation failed (No such file or directory)
--- Running services
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.servicemenu/.ServiceMainMenu }
Warning: Activity not started, its current task has been brought to the front
Test VDC #2:
Failure
PART 2 complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration
The screen will probably blink when it has worked.
Press any key to continue . . .
[Xperia Z2 Original Android Development] BULL3TPR00F:
Great work to everyone who worked so hard on completing this amazing accomplishment, this truly was a feat of brilliance with an excellent collaboration effort.

I am now a happy man :)

What are the limitations of being rooted with a non unlockable bootloader? Can we flash custom recovery yet? No custom kernels?

Thanks.
[Xperia Z2 Original Android Development] hush66:
Still waiting for custom recovery for locked bootloaders. But no, you can't have custom kernels, as that requires an unlocked bootloader.
[Xperia Z2 Original Android Development] long2905:
the phone is rooted right on the day I purchased it. What a happy coincidence :D
[Xperia Z2 Original Android Development] Teknohtc:
Thank You kind sir! :good:
[Xperia Z2 Original Android Development] DooMLoRD:
Tablet requires different code... This won't work as is on tablet z2
[Xperia Z2 Original Android Development] Ricky D:
Any chance of an advanced preview/test before you upload it to the OP?

(assuming v02 will be the one with Tablet support)
[Xperia Z2 Original Android Development] El.Guaje:
Awsome. Really appreciate all you guys hard work
[Xperia Z2 Original Android Development] dufwppl:
I downloaded exploitv10 and after try to run root.bat terminal window only flashes. Window 8.1
[Xperia Z2 Original Android Development] Anakha56:
Patiently awaiting v2 :). Hopefully it will fix my root issue :).
[Xperia Z2 Original Android Development] hush66:
Download and install Android SDK:

http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/
[Xperia Z2 Original Android Development] sensei_sai:
For me on windows 8.1 update 1, no problem for rooting. worked at the first try!
[Xperia Z2 Original Android Development] DooMLoRD:
exploitv10 is NOT from this thread!!!!

please dont mix up threads
[Xperia Z2 Original Android Development] sierrarohan:
How to Proceed!!

Really want to have Root using this kit! But there seems to be no. 55 or. 69 FTF available for my Z2 (D6502/India)! How shall I Proceed?
[Xperia Z2 Original Android Development] abheshekk:
Hi Guys,

I have few questions regarding this new full root, I am on D6502 .402 firmware, z2 from india:

1. if I root my device will i loose drm keys though if i try to root on locked bootloader?

2. is there indian 17.1.A.2.55/.69 firmware ftf file available for downgrade.

3. once rooted on .55/.69 how to upgrade it to .402 firmware?

4. how to go to stock or unroot?

5. will this new method void warranty?

6. Do i need to do TA backup before rooting?, if yes then how?

Thnx in advace guys, doomLord you rock man !!!
[Xperia Z2 Original Android Development] DooMLoRD:
flash any .55/.69 firmware for D6502
[Xperia Z2 Original Android Development] strommy1966:
service app wont crash ?

hi .. firstly well done all for this exploit ! good work . i though am struggling to root ? i am a total noob and this is my first Sony. i only ever rooted a Gs2 before this . I get stuck at the service app crash every time i try to root ? what am i doing wrong ? i have tried several time and same thing each time ? im running .55 as i understand this should work ? :confused: any help much appreciated :good:
[Xperia Z2 Original Android Development] DooMLoRD:
please follow the detailed step-by-step guide here:

http://www.xperiablog.net/2014/06/15/root-your-xperia-z2-with-locked-bootloader-guide/
[Xperia Z2 Original Android Development] abheshekk:
Hi DoomLord,

Will this work for downgrading and rooting indian z2 on .402 firmware?

http://xdaforums.com/showpost.php?p=52894601&postcount=1

how will i upgrade it to .402 after rooting on .69?
[Xperia Z2 Original Android Development] DooMLoRD:
not sure... it says LTE that D6503... just make sure that u dont flash D6503 on D6502 and vice-versa... you might run into bootloops!

i will try and provide links to verified firmwares which can be installed
[Xperia Z2 Original Android Development] guhvanoh:
No, ota wipes out root. Use flashtool with 402.
[Xperia Z2 Original Android Development] abheshekk:
will this one work?

http://xdaforums.com/showpost.php?p=52894601&postcount=1

if yes, then please tell how to upgrade to .402 after root?
[Xperia Z2 Original Android Development] guhvanoh:
Flashing via PC Companion will unroot & lock your fone unless you unlocked the fone via the Sony way.
[Xperia Z2 Original Android Development] DooMLoRD:
i dont know... can access the download site right now (blocked by office firewall)...

just check if its D6502 or D6503
[Xperia Z2 Original Android Development] strommy1966:
THANK YOU !!!!! it Worked .. now have root ! :laugh::laugh::laugh:
[Xperia Z2 Original Android Development] naujoks:
Just a sec! On page three of this thread someone posted a much more complicated way of how to upgrade to .402 and keep root.

Are you saying that simply flashing .402 preserves root now?
[Xperia Z2 Original Android Development] guhvanoh:
The instructions I saw just say install 402 rom. It didn't say how. As has been stated previously in this thread, ota should not work. If you use PC Companion this will wipe out root. Therefore use flashtool. Of course YMMV.
[Xperia Z2 Original Android Development] DjeMBeY:
Hmmm..... It doesn't work on Z1 (FW .757).... I've changed the address to c10cf120 - taken from kernel - and swapped chargemon but still nothing...

No errors, all went OK, including TA backup but no root...

Anyway, thanks for the tip and good luck with making it work on Z1! :)

ps. FW .757 is from March so it's shouldn't be patched yet but I'm going to flash .681 (first 4.4.2 for Z1) and test it again...
[Xperia Z2 Original Android Development] naujoks:
Who are these instructions for then if for other a simple flashing or .402 would do the trick?

"How to root your .402 with locked bootloader

Root your device using firmware 17.1.A.2.55/.69 with exploit

Backup your TA if you haven't using [MENTION=5261329]DevShaft[/MENTION] latest Backup-TA tool from here : http://xdaforums.com/show....php?t=2292598

Install .402 firmware

Unlock your device bootloader using flashtool

Then install DooMLoRD's Advance stock kernel for .402 from here http://xdaforums.com/show....php?t=2764963 using fastboot

reboot your device into recovery and install latest version of SuperSU from here http://download.chainfire.eu/447/Sup...SU-v1.99r4.zip

boot your device and maksure to run the SuperSU app once and update the binary using Normal method if necessary

Put your device into flashmode and Flash Kernel only (Untick APPSLOG, CACHE, DATA from Wipe and tick all except for KERNEL from Exclude in Flashtool)

Reboot your device and double check if you still have the root

Then Use Devshart's Backup-TA tool to restore your TA-Partition

Restart your device now you have rooted .402 firmware with locked bootloader "
[Xperia Z2 Original Android Development] norti:
No! That post is only for unlockable bootloader and only if you want to unlock your bootloader. If you can't unlock your bootloader, you can't use that method for keeping root on .402 upgrade.
[Xperia Z2 Original Android Development] in_finity:
Is there the possibility that something could go wrong by (temporarily) unlocking the bootloader in this process? Such as losing Miracast, X-Reality or god knows what? :confused:

Or would such feature-losses be recoverable by restoring TA at the end?
[Xperia Z2 Original Android Development] KevinB88:
Can i root with that method and flash .402 custom Rom?

Gesendet per tapatalk mit dem Xperia Z2
[Xperia Z2 Original Android Development] naujoks:
I'm on .69 and rooted. I'm not interested in unlocking my bootloader (which I could), but I would like to be on .402

So to be clear: If I flash .402 via Flashtool, it will keep root?
[Xperia Z2 Original Android Development] RedSkyRoad:
Two things confuse me here:

01] "Install .402 firmware" Does this mean I should flash my .402 FTF Stock I generated with the Flashtool, using flashtool?

02] "Put your device into flashmode and Flash Kernel only (Untick APPSLOG, CACHE, DATA from Wipe and tick all except for KERNEL from Exclude in Flashtool)" - Where do I get THIS Kernel? From Stock FTF or Doom's Advanced?
[Xperia Z2 Original Android Development] Anakha56:
I'm wondering if it is because I have the LTE version that is preventing root & ta backup. Has anyone managed to get their LTE version, rooted with this method? I know the firmware I have is vulnerable to the attack, as my previous posts show, its just curious why it never seems to work...
[Xperia Z2 Original Android Development] rajivshahi:
This instruction is for people who want to update to .402 unlock there bootloader and flash custom kernel. And root from that kernel... by flashing .402 you will lose root. So you have to unlock bootloader. Flash dooms custom kernel and recovery. Then root it. Then flash the original (stock) kernel and flash your TA backup. It will lock your bootloader and you will be able to still have root....

---------- Post added at 08:26 AM ---------- Previous post was at 08:21 AM ----------

No unless you have unlocked bootloader and dooms kernel installed...this tool is for getting root on unlocked bootloader..
[Xperia Z2 Original Android Development] twistedddx:
Android SDK is soo large when you surely only want fastboot and adb.

These files can be got directly from Google in much smaller form.

Fastboot/adb

http://dl-ssl.google.com/android/repository/repository-8.xml

That links:

http://dl-ssl.google.com/android/repository/platform-tools_r19.0.2-windows.zip

Google adb driver:

http://dl-ssl.google.com/android/repository/addon.xml

That links:

http://dl-ssl.google.com/android/repository/usb_driver_r10-windows.zip

apktool:

https://code.google.com/p/android-apktool/downloads/list
[Xperia Z2 Original Android Development] Maddhouse:
This should work on unlockable bootloader-NO

Haven't tried it yet but if you gain root on. 69 install recovery enter into recovery and install .402 stripped and then flash a stripped ftf (kernel only) that way it should keep root running .402

Should work but just guessing. Once you have recovery you might even be able to pre install root with recovery In .402 zip

[MENTION=410007][Nut] [/MENTION] would be the best to do this.
[Xperia Z2 Original Android Development] rajivshahi:
I think you need unlocked bootloader and custom kernel for flashing recovery... So wait for [MENTION=410007][Nut] [/MENTION] dual recovery....
[Xperia Z2 Original Android Development] nEUTRon666:
I still can't mount /system as rw. I made the way all up to .402 with re-locking bootloader and having stock kernel and so on...could this be the problem ?

EDIT: Has this something to do with sony ric ? Googled a bit around and read something about it. As i flashed back my .402 stock firmware and so on, i guess all this stuff is gone. What part of the rooting process would need to be worked into the stock rom to have ric disabled at boot time ?
[Xperia Z2 Original Android Development] laggflor:
You guys are genious! Now I can make full use of this great device :D

Thank you! :highfive:
[Xperia Z2 Original Android Development] Hassan99:
It worked for me!

I was on .402 Vodafone with a locked BL, this are my steps:

1. flash .55 ftf via flashtool 0.9.16 (D6503_17.1.A.2.55_1281-4640_EUROLTE_NoBranding.ftf)

2. use the batch file from this tread (v1)

3. install dualrecovery from nut (Z2-lockeddualrecovery2.7.124-BETA.installer.zip (10.22MB)	) http://nut.xperia-files.com/

4. (!!) Backup TA Partition using Backup-TA 9.11 http://xdaforums.com/showthread.php?t=2292598

5. install any ROM via recovery

give a cookie or beer to the devs and be happy about a locked bootloader, saved TA partition and a fully rooted Z2!!!

Thank you guys!!
[Xperia Z2 Original Android Development] drup88:
Unlocked bootloader here. Bit confused on this. Does this install superSU or do i have to manually flash that?

If i have to manually flash it, do i need to install a custom recovery or can i do it with the factory one?

I cant seem to boot into recovery. Im holding and pressing up and down when the sony logo comes up and it does nothing.

Appreciate the help.

update:: nevermind just realised SuperSU was already installed.

[MENTION=2784807]DooMLoRD[/MENTION] I had pleaged $50AUD to who ever was able to supply a working root solution. Who should i be sending it to?
[Xperia Z2 Original Android Development] naujoks:
Did you use your method to flash the .402 ROM and preserve root?
[Xperia Z2 Original Android Development] funky0308:
On LBL?

Which ROM you used and could you provide kernel and flashable

ROM?

Tnx
[Xperia Z2 Original Android Development] Jamal_RS:
anybody test this thread?

http://xdaforums.com/showthread.php?t=2783157

Xperia Z , ZL build .230 android 4.4.2 already confirmed
[Xperia Z2 Original Android Development] sierrarohan:
Didn't work on my Z2 running. 402 version! Phone rebooted but no su binaries installed. Guess it might work on earlier software versions.
[Xperia Z2 Original Android Development] Hassan99:
I flash this "custom" rom

http://xdaforums.com/showthread.php?t=2723935

I flashed this one

http://xdaforums.com/showthread.php?t=2723935

flash the kernel from the tread (Kernel and baseband .402 d6503)

I have an locked BL with a fully working rooted Z2 with a custom ROM
[Xperia Z2 Original Android Development] naujoks:
Forgive the noob question, but if I want to flash a ROM via custom recovery and I have the ROM as ftf file, how do I convert it so that it can be flashed with recovery?

All I really want is the stock .402 rom with root, (currently I'm on .69 rooted), but I don't want to go through the whole BL unlock procedure.
[Xperia Z2 Original Android Development] in_finity:
^ this. Would also like to know how to do this, as I'm not interested in any custom ROMs but want to keep the stock ROM :o
[Xperia Z2 Original Android Development] nEUTRon666:
Could someone help me with this? How do i disable ric at boot time, permanently ? It seem's there's no other way to have /system writeable.
[Xperia Z2 Original Android Development] DooMLoRD:
hi mate!

as you see this is a community release with a lot of developers getting involved (some 4-5 people)... so its entirely upto you on how to split it...

GranPC posted the exploit for Xperia

xsacha released the initial read only root

norti/RyokoN/cubeandcube worked on getting temp root semi-permanent

DooMLoRD (me) fixed it and made it permanent on every boot and created and all-in-one package

and we are still working on making it more generic...

Ya i am looking into it...

if u use the package in THIS thread then it fixes the RIC disable issue at boot :)
[Xperia Z2 Original Android Development] devilmaycry2020:
is this tool work on any xperia running 4.3 ?
[Xperia Z2 Original Android Development] nEUTRon666:
[MENTION=2784807]DooMLoRD[/MENTION]:

Mate, yes, if you stay on the old firmware afterwars, correct? But i updated to .402 afterwards, also re-flashed stock kernel und re-enabled bootlaoder lock. How would i modify a stock rom to have ric disabled ?
[Xperia Z2 Original Android Development] RedSkyRoad:
Not sure how to go about from the beginning:

1] What needs to be ticked/un-ticked when flashing .69 with flashtool?

2] Do I need to start the device up before using Full Rootkit?

3] In what state does the phone need to be when doing Full root?
[Xperia Z2 Original Android Development] abheshekk:
Can anyone help me on this:

Hi Guys,

I have few questions regarding this new full root, I am on D6502 .402 firmware, z2 from india:

1. if I root my device will i loose drm keys though if i try to root on locked bootloader?

2. is there indian 17.1.A.2.55/.69 firmware ftf file available for downgrade.

3. once rooted on .55/.69 how to upgrade it to .402 firmware?

4. how to go to stock or unroot?

5. will this new method void warranty?

6. Do i need to do TA backup before rooting?, if yes then how?

Thnx in advace guys, doomLord you rock man !!!
[Xperia Z2 Original Android Development] changkho1908:
1. No.

2. yes, any 55 or 69 fw

3. wait for next root version :D

4. flash stock fw via flashtool

5. no.

6.No
[Xperia Z2 Original Android Development] RedSkyRoad:
[MENTION=2784807]DooMLoRD[/MENTION],

Can I try this multiple times to make sure my TA.img is correct?

I pulled three TA images after each other and all MD5's match. Am I sure I have what I need?
[Nexus 5 Q&A, Help & Troubleshooting] hrashdan:
hello i have a question,

i live in jordan and my service provider uses (GSM “2G”: 900 MHz HSPA+ “3G”: 2100 MHZ) , and no LTE for now

my question is if it will be a diffrance between d820 and d821 if i don't use LTE?

and i cant compare the HSPA+ bands , because it is 2100 mhz and the device show 1/2/4/5/6/8, can someone explain this to me?

thanks