yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 General] Elysian893:
I'm not having any luck here. I run everything as specified, get the error on the phone that says it's waiting for the debugger to attach, I run root.bat, it does its thing, it reboots the phone and when it comes back up I'm not rooted. Here's my output:

D:\Root>exploit
Script started
CVE-2014-7953 (Java implementation by hqdvista)

Waiting for the device to be connected
Pushing files
422 KB/s (2164 bytes in 0.005s)
53 KB/s (220 bytes in 0.003s)

Preparing exploit...

Please select com.dosomder.testapp2 as debug app in D
And check the option <Wait for Debugger>

Press any key to continue . . .

Uninstalling exploit app
Pulling log
I/PackageManager( 898): Copying native libraries to
44
Found it
system 8531 276 880540 67392 ffffffff 00000000
Success
Press any key to continue . . .

D:\Root>cd root

D:\Root\root>root
Trying to root device using CVE-2014-4322
Requirement: CVE-2014-7953 exploited (exploit.bat was

Press any key to continue . . .
Waiting for the device to be connected
Sending files
38 KB/s (239 bytes in 0.006s)
3243 KB/s (657704 bytes in 0.198s)
1818 KB/s (22360 bytes in 0.012s)
183 KB/s (752 bytes in 0.004s)
1896 KB/s (13592 bytes in 0.007s)
334 KB/s (1716 bytes in 0.005s)
2348 KB/s (4016989 bytes in 1.670s)
2103 KB/s (34473 bytes in 0.016s)

Preparing Debug Interface

Opening Java Debugger

The root exploit should run and reboot the device

D:\Root\root>

I'm on Windows 8.1 64 bit, I've got the latest JDK (first tried with only 64 bit installed, then installed the 32 bit version, still the same).
[Xperia Z3 General] ka5h91:
I am also getting stuck at this part and seeing those same exact messages. I am running on Windows 8.1 64-bit and have JDK 8u45 installed.
[Xperia Z3 General] GhostRaiderMX:
I'm not sure why people are having problems. Assuming that the JDK is properly installed, the only thing you have to do is when it pauses and asks you to:

Please select com.dosomder.testapp2 as debug app in D

And check the option <Wait for Debugger>

Then you have to go to your phone and select testapp2 debug app and check Wait for Debugger in the Developer options menu. After that then you can press any key to continue. After it says success then run the root.bat and it should close automatically when finished and the phone should reboot on its own.
[Xperia Z3 General] Elysian893:
That's what I'm already doing. I'm following the directions word for word.
[Xperia Z3 General] GhostRaiderMX:
It looks like it ran fine unless something happened during the Java Debugger process. Try to do it again several times. Make sure that you use an app that checks root and reboot again to make sure. Don't open SuperSU before checking if root was successful. Another option which would be a hassle is to flash the D6616 to start fresh and perform the exploit again though it is more probable that it will work.
[Xperia Z3 General] Elysian893:
I just ran it for a 5th time. Every time the same result, SuperSU never even gets installed to begin with.
[Xperia Z3 General] GhostRaiderMX:
I'm trying to think what the problem is. On my computer, I do have Eclipse Java Developer Edition and Android Studio. I'm not sure if those apps have something that the root.bat needs. I'm also not sure if the ADB drivers are causing a problem too.
[Xperia Z3 General] TrunkleBob:
I don't think it's anything like that. I installed from my laptop/tablet that is very new. I installed only what was listed as being necessary (ADB drivers and JDK) and installed successfully.
[Xperia Z3 General] Elysian893:
I manually started entering the ADB commands in the root.bat, and manually did the ADB shell commands. Here's where I think it's tripping up:

shell@D6616:/ $ chmod -R 777 /data/local/tmp
chmod -R 777 /data/local/tmp
Unable to open /data/local/tmp/glsl_shader_log.txt: Permission denied
1|shell@D6616:/ $ chmod -R 777 /data/local/tmp/*
chmod -R 777 /data/local/tmp/*
Unable to chmod /data/local/tmp/getroot_run: Operation not permitted
10|shell@D6616:/ $
[Xperia Z3 General] GhostRaiderMX:
It could be that his installation of Windows might be causing a conflict somewhere. If you are using a freshly new laptop then yeah there is less likely to have a problem. I have the latest version of JDK and ADB drivers as well and was able to run it successfully too. It can't be the phone since the problem lies on the computer. Its not letting him access certain stuff.
[Xperia Z3 General] juss2nuff:
The root zip was updated so if you keep trying the original one it may not work. After re-downloading the zip in [MENTION=3975929]zxz0O0[/MENTION] 's post today it finally worked.
[Xperia Z3 General] ka5h91:
So I was getting this same exact error as well, and what I did to fix this was just added extra "classes" line to the root/jdb.ini file. Then I re-ran the exploit.bat followed by the root.bat and it ran successfully. I am not exactly sure why this caused it to run successfully but it worked! I am using Windows 8.1 x64 with JDK 8u45.

Thanks [MENTION=3975929]zxz0O0[/MENTION] !!!!

[IMG="D6616 Root Confirm"]http://xdaforums.com/attachment.php?attachmentid=3294916&stc=1&d=1430682580[/IMG]
[Xperia Z3 General] Elysian893:
I got it. This last time I did:

adb shell rm -R /data/local/tmp/*

Then ran the exploit and the root. If you're having issues try that.
[Xperia Z3 General] Veganarchy:
That's the recovery I installed. How do I check if I can read and write system files?
[Xperia Z3 General] gregbradley:
Try writing to the system partition...
[Xperia Z3 General] mcj108:
:DDDDD Success after doing this. Will donate my pledge later.
[Xperia Z3 General] Hondroid:
I get this :(

Any help would be appreciated. I followed all the steps.

short[]
sun.misc.Unsafe
> > com.sun.tools.example.debug.expr.ParseException: Name unknown: java.lang.Run
time.getRuntime
java.lang.Runtime.getRuntime().exec("/data/local/tmp/a") = null
>
[Xperia Z3 General] ctschrodinger88:
Try

Try adding an extra "classes" line to

root/jdbi.ini

Start with just one. Keep track of how many you added.

Make sure to run: adb shell rm -R /data/local/tmp/* first
[Xperia Z3 General] Hondroid:
Tried on my other pc and it worked. Thanks! Finally root :'D
[Xperia Z3 General] nobunnysapro:
Worked for me with

D6616-Android 4.4.4-23.0.D.1.123-TMo

Win10(10074) 64bit- Java 8u45-FlashTool

xzdualrecovery seems to be working. TA backed up and backing up the rest of the ROM now.

Thank you [MENTION=3975929]zxz0O0[/MENTION]
[Xperia Z3 General] redone stoMP:
[MENTION=3975929]zxz0O0[/MENTION] Thank you so much. You earned that bounty my friend.
[Xperia Z3 General] Veganarchy:
Can't believe we finally got root! Definitely earned the bounty. $100 from me pledged for anyone who can unlock the boot loader.
[Xperia Z3 General] Milly7:
Thought this would have been harder given some of the posts earlier. Hope everyone makes good on the root bounty. I didn't pledge but will send something the devs way when I can.
[Xperia Z3 General] Vertigo RT:
A bit confused as the z3v forum led me here... But does this method apply to the Verizon z3 as well?
[Xperia Z3 General] danishdish:
Have no desire to even begin to try rooting my D6616.

Seems like too much of a hassle. :D. Especially the windows part. My desktop and laptop are aging and I don't use them much. They are slow as all get-out.
[Xperia Z3 General] sortiz4:
I was able to root my device using the original instructions provided by @zxz0O0 with the updated 'D6616_root.zip' at post #107. I was also able to install TWRP using the instructions provided by @GhostRaiderMX at post #171. Both very straight forward. Thank you!

For less experienced users, such as myself, what's the possibility/status of unlocking the bootloader or installing custom ROMs on the D6616 now that root has been achieved? I'm considering buying another device that can already do this, but if this can be done on the D6616 in the next few months it would save me a lot of money.
[Xperia Z3 General] badboi_zero:
So nothing is working for me. It has a java debug error in the cmd window thing. It says there is no file or something. It might be my laptop because my other one always works. Oh well. At least it works for others.
[Xperia Z3 General] canhazpixels:
Are you running the exploit.bat as administrator? If so, that error pops up. Try just simply double-clicking the .bat and running it. Same with root.bat, once the instructions call for it.
[Xperia Z3 General] tuzonghua:
OP update

I know I know... I've been a bad OP. I'm going to take the time tonight to update the original post with donation fixes, those who have donated, etc.

Excited to root my phone!
[Xperia Z3 General] Artood2s:
Safe to assume that Remote Play does not work after root (without modification)?
[Xperia Z3 General] Elysian893:
Have you tried my suggestion of running "adb shell rm -R /data/local/tmp/*"? I got an error like that just before I tried that command.
[Xperia Z3 General] edgarpo:
Has anybody tried installing a custom rom like cyanogenmod 12.1?
[Xperia Z3 General] SportingChap:
Links to recovery are down now. Anyone know where to go get it?

Edit:

http://nut.xperia-files.com/?ql=bf66c9b90249f740acf502c4d98051e9a0400afb
[Xperia Z3 General] gregbradley:
You need an unlocked boot for that and AFAIK the 6616 cannot be unlocked.
[Xperia Z3 General] LeifEricson:
Would it be possible to flash a custom ROM via NUT's recovery?
[Xperia Z3 General] gregbradley:
Yes as long as it is based on stock kernel.

You cannot boot a CM or AOSP rom with a locked bootloader
[Xperia Z3 General] LeifEricson:
So, say when lollipop launches for us we can flash a pre rooted rom? (I'm under the impression you lose root upon updating)
[Xperia Z3 General] gregbradley:
Yes
[Xperia Z3 General] lethang90b:
so we can not flash any rom except tmoblie rom ??? or we can flash international rom with pre-rooted ??
[Xperia Z3 General] badboi_zero:
Yeah it's not working, even adding extra "classes" lines. It must be my laptop. I got all the drivers to install by disabling signature verification. But still a no-go. Idk what more to do.
[Xperia Z3 General] danishdish:
It would be awesome if we could just download a new boot loader.

http://www.appy-geek.com/Web/ArticleWeb.aspx?regionid=1&articleid=41217414&source=copytoclipboard
[Xperia Z3 General] gregbradley:
That will only be for unlocked bootloaders, which this device does not have
[Xperia Z3 General] danishdish:
I know ....

:D
[Xperia Z3 General] tdoyle10goo:
This works for me

HUGE THANKS TO [MENTION=3975929]zxz0O0[/MENTION]

Changed the root.bat file to remove dir.
[Xperia Z3 General] dzap:
Thank you so, so much [MENTION=3975929]zxz0O0[/MENTION]

I didn't pledge, because well...I just thought "Why would anyone bother discovering root for this one carrier-locked variant, versus the global model that already got root and is bootloader unlocked, etc.". I just thought I'd never see the day and I'd move on to another phone or the unlocked edition before this phone ever achieved root.

But thank you so much,

View attachment 3296484

Here's $50 from me anyway, hopefully the people that did pledge, pay up, but here's some windfall anyway. Haha. Thanks again!

Confirmation number: 2EY502351A830281E.
[Xperia Z3 General] tdoyle10goo:
Full Install Tested on Window 8.1

This installs everything by running exploit.bat.

Remember before running to turn off Antivirus software and Firewall software

Run it and wait for phone to reboot or JDK to install.

If Ninite screen comes up, you do not have Java JDK installed.

Please wait for JDK installation and retry exploit.

Do forget to turn antivirus and firewall back on after success

I only modded [MENTION=3975929]zxz0O0[/MENTION] batch files to make it easier for newer users.

And for Tmobile/Sony locked boot loader: "Suck IT!!!!! ":p
[Xperia Z3 General] herzzreh:
EDIT: I don't know how to read...
[Xperia Z3 General] GhostRaiderMX:
In general, what is preventing us from unlocking the bootloader? I mean I'm pretty sure that if Sony were to write some sort of update that is officially certified by them, then they can probably unlock it. Of course we're assuming they won't do that. There have been very few cases where locked OEM phones have been unlocked successfully by the community.
[Xperia Z3 General] gregbradley:
We do not know the Sony keys, hence no way to unlock the boot. As for community unlocks Sony have been very clever in allowing some phones to be unlocked. That has meant that all Devs get the unlocked phones and there is no incentive to try and find an unofficial method to unlock, just buy the ones that can be unlocked.
[Xperia Z3 General] tdoyle10goo:
Walk Through

1. Enable Developer Options on your phone.

Open Settings> About> Software Information> More.

Then tap “Build number” seven times to enable Developer options. ...

Go back to Settings menu and now you'll be able to see “Developer options” there.

Tap it and turn on USB Debugging from the menu on the next screen.

2. Then Open Settings>Security

Check Unknown Sources

Uncheck Verify Apps

3. Open Settings>Developer options

Check USB debugging

4. Disable Antivirus on Phone and computer, Disable Firewall on Computer

5. Disable Sony PC Companion

6. Install Xperia drivers, If not already http://xdaforums.com/showthread.php?t=2635830

7 .Unzip D6616_rootfull.zip

8. Move d6616_rootfull folder to c:\

9. Run Javainst.exe Wait for Ninite to finish

10. Run exploit.bat

11. Wait for Command window to say "Please select com.dosomder.testapp2 as debug app in Developer Options"

Do not disconnect phone

Open Settings>Developer options

Press Select debug app

Select TestApp2

Check Wait for debugger

12. Go back to command window and press space bar.

13 Wait for phone to reboot
[Xperia Z3 General] leonhks:
Delete all java programs from windows and reinstall only one version of Java 7 or 8 jdk your preference

Then reformat your phone, reason is there a glitch in the phone when it crash. It happen to mines the first time around.

Then just follow detail instructions (meaning do it right the first time and don't keep pressing any to continue very important to check what exploit ask for and then proceed). It works great.

Finally got all t-mobile bloat ware off this phone
[Xperia Z3 General] sprkat85:
nevermind im dumb
[Xperia Z3 General] royalflush5:
Followed the steps in the thread, getting stuck here:

http://imgur.com/FtdUGLK

Let me know if I can send you more info about the problem
[Xperia Z3 General] jlgreen531:
I am having the same issue.
[Xperia Z3 General] vnphantom:
[Edited] Nevermind, after looping for a while, the exploit.bat eventually works... :)
[Xperia Z3 General] royalflush5:
Maybe try it on another pc, I went though the setup on another computer, went back after it failed and it worked for me. Someone also make a version bundled with a java installer, you might want to try that.
[Xperia Z3 General] vnphantom:
[Edited] See previous comment.
[Xperia Z3 General] mgs526:
I was stuck there as well. Reinstalled JDK and got past it. You must have the JDK listed in the instructions.
[Xperia Z3 General] jlgreen531:
I tried the one in the instructions. Also tried version 8, and x64 of both versions. Same message.
[Xperia Z3 General] leonhks:
Delete all version of jdk and normal java and then reinstall one version of jdk

If all else fails reformat your phone then proceed with instructions of root

This what happens to mines doing this it correct the issue
[Xperia Z3 General] jlgreen531:
Deleted all version of jdk and restarted. Installed 7 and restarted. Also factory reset phone.

Run exploit.bat. It works and shows success. Run root.bat and It opens a cmd window, then just closes it. Hmmm..
[Xperia Z3 General] phitch:
I was having the same issue, I factory reset the phone and bam -- it worked. Give it a try.
[Xperia Z3 General] leonhks:
The factory reset fix the issue that cause error from the first install. Kool so there was others who had the same issue.
[Xperia Z3 General] jlgreen531:
I tried that. If anyone has any ideas that would be great.
[Xperia Z3 General] leonhks:
Try deleting the other java too and just reinstall jdk 8 only factory rest your phone, reboot your computer, turn off virus scanner

Then proceed with instructions for root make sure you do every step-by-step and do not randomly press any key to continue because that's what I did the first time and it cause it not to root and error
[Xperia Z3 General] jlgreen531:
When I install the jdk, it installs both of those files. Antivirus is off. PC has been rebooted. Reinstalled 8. Same ****. Thanks for trying to help.
[Xperia Z3 General] leonhks:
Try java 8 jdk only reboot computers

Did you check usb debugger, check allow mock and select debug app then check waiting for debugger, check verified app
[Xperia Z3 General] jlgreen531:
Yes, I have all that checked. Tried with and without verify apps over usb checked. Uninstalling JDK one more time. Gonna try this version one more time. jdk-8u45-windows-i586.exe
[Xperia Z3 General] leonhks:
OK goodluck
[Xperia Z3 General] vnphantom:
Could someone back up the stock system partition and share it with us in case something start to go wrong? :)
[Xperia Z3 General] jlgreen531:
No go. Exploit runs and says success. Run root one and this happens. I had to screen grab it quick because it just instantly closes. Java is installed. I am out of ideas. :(
[Xperia Z3 General] arrowa80:
how did u get lollipop on your tmobile z3 ?

how did u get lollipop on your tmobile z3 ?
[Xperia Z3 General] phitch:
Make sure you are selecting your debug app when it comes up on screen. Turn off verify apps first under security and allow unknown install. Then it will be the very first pause when you run exploit.bat go to settings > developer options and make sure debug is on, use MTP xfer protocol, under the select debug section choose TestApp2 (this is the exploit) then turn on wait for debugger. Then hit any key to continue.

You may want to factory reset before doing this.
[Xperia Z3 General] jlgreen531:
I run the exploit bat, and this is what is on my phone when it says success: press any key to continue.

I run root bat, and the cmd window ends in this.
[Xperia Z3 General] neutronium:
I had the java error everyone was getting. Like was suggested adding extra "classes" lines to jdb.ini worked. But rather than adding just one I had to add 3x as many as were there originally. Try that if you're having issues.
[Xperia Z3 General] idumbakumar:
its success on my D6616 . great thanks for the great works went on.

i initially got failed too many times but i tried a lot .from installing new ADB drivers

and rebooting PC and Phone. but still failed. finally i did a master reset on phone.

thats it it worked on the first time. so people who face problem try a master reset

then i installed dual recovery with an issue.

then installed a lollipop flashable zip, fltashed successfully. but the phone does not reboot.just vibrates.

so flashing stock now.

i need to find out how to sim unlock this device.

any helps??? finding and installing unlocking apk from generic Z3 phone will help??
[Xperia Z3 General] mcj108:
I got past this by running this in ADB, "adb shell rm -R /data/local/tmp/*", then redoing the exploit.bat and root.bat
[Xperia Z3 General] iSin:
Hello there.

Whenever i try to run exploit.bat, everything goes smmothly, but it all stops at running raceme.bat. It keeps telling me that i don't have android.permission.CONFIRM_FULL_BACKUP.
[Xperia Z3 General] superangel16:
I tried putting SimlockUnlockApp.apk on system apps but there is no answer from the phone, I think they blocked the command to open that app, I thinking in do it another way. I want to unlock this device too.
[Xperia Z3 General] bigunwhistle:
I'm looping

I have the z3v, running windows 8.1 64bit and I've followed the directions... But I'm looping here....

Uninstalling exploit app

Pulling log

I/PackageManager( 910): Copying native libraries to /data/app-lib/vmdl146041707

0

Found it

java.lang.reflect.InvocationTargetException

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515)

at raceme.main(raceme.java:37)

at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)

at dalvik.system.NativeStart.main(Native Method)

Caused by: java.lang.SecurityException: Permission Denial: bindBackupAgent from

pid=24858, uid=2000 requires android.permission.CONFIRM_FULL_BACKUP

at android.os.Parcel.readException(Parcel.java:1474)

at android.os.Parcel.readException(Parcel.java:1427)

at android.app.ActivityManagerProxy.bindBackupAgent(ActivityManagerNativ

e.java:3148)

... 6 more

Uninstalling exploit app

Pulling log
[Xperia Z3 General] zxz0O0:
You need an older firmware.
[Xperia Z3 General] idumbakumar:
[MENTION=5080760]superangel16[/MENTION]

did u give correct permissions for the app.? sorry i am not very familiar making as system app. pls let me know your results.. my phone is sitting idle for last 3months. badly waiting for sim unlocking..
[Xperia Z3 General] royalflush5:
Do you guys think it'll be possible to root the updated firmwares? I'm guessing updating would remove root.
[Xperia Z3 General] GhostRaiderMX:
We can keep root now no matter what T-Mobile or Sony throws at us. I'm not sure of the method buts been done on other Xperia Z3 models.
[Xperia Z3 General] bigunwhistle:
Do you have a link?

Do you have a link to the firmware for the s3v?
[Xperia Z3 General] vnphantom:
Mine was looping too. Try doing a factory reset on the phone and exploit again. It'll loop for about 20 times until it takes. Good luck.
[Xperia Z3 General] SportingChap:
Everything here worked perfectly for me, but now I've boot looped my Z3 after editing the build.prop... Ugh. If anyone wants to help me (please :) ), head on over here...
[Xperia Z3 General] superangel16:
Yeah I gave the permission to be a system app, but still not working, PM me, let's see if we can get it to work.
[Xperia Z3 General] ayopancheezy:
thanks for all your hard work @ zxz0O0!!! Have a fully working rooted D6166 with Xposed and XZDualRecovery!
[Xperia Z3 General] MKMLkev:
Worked here after ereasin dat directory

adb shell rm /data/local/tmp/dalvik-cache/*

adb shell rmdir /data/local/tmp/dalvik-cache/

adb shell rm /data/local/tmp/*

adb pull /data/local/tmp/

this one to make sure there is no items in the tmp dir and if any then delete it. ;)
[Xperia Z3 General] jlgreen531:
just tried this. Still no luck. I don't know why it isn't working.
[Xperia Z3 General] Elysian893:
adb shell rm -R /data/local/tmp/* does all of this, as -R is recursive last I checked.
[Xperia Z3 General] rbaide:
:good::good:
[Xperia Z3 General] harrychang:
has anyone figured out a way to sim unlock this phone using an unlock code?
[Xperia Z3 General] idumbakumar:
i guess so far no one.. i am looking to find a solution.. becuase i am unable to use my phone.
[Xperia Z3 General] GhostRaiderMX:
You're gonna have to get a T-Mobile plan and stay with it for a while. That's how T-Mobile unlocks their phones.
[Xperia Z3 General] ctschrodinger88:
I would also love to have this. If anybody does factory reset their device and root it, please post a clean backup. :)
[Xperia Z3 General] idumbakumar:
T mobile disabled unlock cia code.. So using tmobile rom will not allow sim lock using unlock code..but i hope if a generic rom is ported to D6616 then i hope we will b able to enter unlcok codes..
[Xperia Z3 General] POMF2K:
Finally picked up this phone now that root is an option. But the exploit won't detect the device.

USB debugging enabled or no? What USB connection mode? Do I need a specific driver? What about firmware version? Mine is right out of the box.

Thanks in advance.
[Xperia Z3 General] Ichiban Rei:
Go back to post #171 by GhostRaiderMX. It's an awesome step by step I followed to gain root.