[Xperia Z3 General] ctschrodinger88:
Steps and Troubleshooting

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

Step by step (from what everybody has posted so far)

(Base steps by [MENTION=5080760]superangel16[/MENTION])

Requirements (For Windows devices, this may work in Linux or a Windows VM, but idk and nobody's h):

1- Sony Xperia Z3 T-Mobile (D6616)

2-adb updated drivers (http://xdaforums.com/showthread.php?t=2635830)

3- Java SE Dev Kit (JDK) 7 http://www.oracle.com/technetwork/ja...s-1880260.html JDK8 also works http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

4-Visual C++ Redistributable for Visual Studio 2012 Update 4 - https://www.microsoft.com/en-us/download/details.aspx?id=30679 (Download the correct version for your computer)

5-Turn antivirus on you phone and computer off.

6-Download the zip from zxz0O0 (http://xdaforums.com/showpost.php?p=60494236&postcount=107)

7-Close all IDEs (eclipse, intellij, android studio, etc and nothing is on tcp port 7777)

So far it looks like it's been done on

Win8.1 Pro 64

Win7 Home 64

Win 10

Don't run any of this with admin privileges

Steps:

1- Verify Requirements

2- Unzip zxz0O0's Root Tool (Make sure you download it fresh)

3- Transfer contents to C:\ (May not be required, but didn't work otherwise)

4- (On device) enable developer options, activate: usb debugging, (opt: allow mock locations)

5*-Run Exploit.bat (Follow the directions, so back in dev opts select the debug app and check "wait for debugger")

6- When you get to the line "Success press any key to continue" you can press a key (which will close the window) or just leave it open for a log (it doesn't matter.)

7- Check in your device that the apk is waiting for debugger, if so, continue, if not check you activated wait for debugger. (If you didn't see '*')

8- Go to root folder and open Root.bat. (This opens the JDK, it should be pretty quick, just let it work)

9- The device should reboot.

10- Use RootChecker to verify Root. If it didn't work it will come up instantly as unsuccessful, if it comes up successful, congrats. If it sits and spins, install supersu or superuser from market and try again.

11- Check that supersu/superuser opens correctly and you will be set.

*- If you do this more than once make sure to run:

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

it gives you a clean start.

**- If you get these type of error messages:

Try adding an extra "classes" line to

root/jdbi.ini

(thanks [MENTION=1658664]ka5h91[/MENTION])

To see final messages Follow this: http://xdaforums.com/showpost.php?p=60508205&postcount=177

As a note: .bat files are simply a file of command line commands, so if this doesn't work for you, after multiple attempts, try opening Exploit.bat and Root.bat in a text editor and executing each line individually so you can see where it is dying (not all error messages mean it won't have success, just might be a broken line along the way) you can skip the "echo" lines.

For errors post:

(Device type)-(Android version)-(Build #)-(Carrier)

(Computer OS & version)-(Java version)-(Driver download location)

(Error information, unless the same log has already been posted.)

eg:

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

Win7 Home 64bit- Java 7u79-FlashTool

For successes post:

(Device type)-(Android version)-(Build #)-(Carrier)

(Computer OS & version)-(Java version)-(Driver download location)

(If you had to do something not already listed here.)

eg:

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

Win7 Home 64bit- Java 7u79-FlashTool

Try another computer as well. For some reason some machines don't play nice, but others don't have any problem.

It it still doesn't work send to zxz0O0 the logging,

but please make sure you read through everything starting http://xdaforums.com/z3/general/bounty-z3-d6616-root-t3035129/post60494236#post60494236.

(Log checking instructions by superagnel16 http://xdaforums.com/showpost.php?p=60501564&postcount=146 ) run the commands where your put adb.exe and the Exploit.bat section.

Follow after root from [MENTION=6280758]GhostRaiderMX[/MENTION] http://xdaforums.com/showpost.php?p=60507399&postcount=171

As a reminder this is to Root the Xperia Z3 D6616 - (Not unlock bootloader, that *isn't* possible, unless you have a supercomputer...).

HUGE Thanks again to [MENTION=3975929]zxz0O0[/MENTION] for his awesome work. And [MENTION=5080760]superangel16[/MENTION] and [MENTION=6280758]GhostRaiderMX[/MENTION] for their step by step guides.