yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 General] phitch:
So, I know we can create prerooted flash using a couple methods, I am wondering if there isn't a way to simply use the Sony PC companion software to update the D6616 and inject a prerooted flash into it through that? It might require some backend hacking and reverse engineering of the PC companion software but it seems like the most likely way to do it.
[Xperia Z3 General] scoder:
The phone itself has its own security checks, the biggest being signature comparisons. If the checksum changes, which will happen if anything is injected or removed from Sony's FW, it will fail to update, citing a signature verification error. This is not bypassable in the short-term future, it could potentially take hundreds of years to crack that key in order to re-sign the firmware correctly.

I have some free time this week, so I'm attempting to overflow the graphic buffer. I really do believe that's our best bet.
[Xperia Z3 General] mrmizzo:
I'm in for $50.00 I need more hotspot than five gigs!
[Xperia Z3 General] chaunold:
I risked bricking my d6616, but I tried making a custom firmware and mixing the d6603 firmware with d6616 firmware and which ended up hard bricking my d6616. I was stupid and forgot to uncheck bootloader and thats what hard bricked it. **** i need root.
[Xperia Z3 General] Prasad:
If you had unchecked bootloader, might it have worked?

Sent from the inner sanctum of my mind.
[Xperia Z3 General] chaunold:
My guess yes, since its still the d6616 keep the d6616 bootloader, modem, and TA partition and flash the system, kernel, and data and it MAY work. Im not a developer, just mess do alot of modding and flashing and understand how it all works. Suprisingly enough, when I did flash it with the d6603 firmware, it worked on a locked bootloader but I think because i flashed the bootloader accidently thats what bricked it
[Xperia Z3 General] Prasad:
And you can't flash back just the stock bootloader?

Sent from the inner sanctum of my mind.
[Xperia Z3 General] chaunold:
Well its hard bricked lmao, cant enter flash mode or fastboot or even charge. No Sony logo or LED light either. Its dead. Its at your risk if you want to try without flashing the bootloader and exc. I mailed my phone to sony to exchange it. I may end up selling or trading for a d6603 since I really need root and would be nice to run aosp lollipop even though if we get root access on d6166, chances are small to find a bootloader unlock method for the d6616 once root is achieved and when we can successfully backup the TA partition.
[Xperia Z3 General] tuzonghua:
Sorry everyone! Updated the OP with updated pledge amounts.
[Xperia Z3 General] bball9:
I will put in $20 IF Z3 D6616 Lollipop root is achieved.

I will put in $20 IF Lollipop root is achieved. As the new software is just around the corner, I think it is only appropriate that the devs hold off root methods until Lollipop for the Z3 is available. But, I will put in the $20 once it works for me ;)
[Xperia Z3 General] Prasad:
Sold my Z3. Take me off the bounty list please.
[Xperia Z3 General] LeifEricson:
Can we extend this bounty offer to cover the D6708 (Verizon Z3v) as well, since they both have the same problem of having firmware from after the other Z3 exploit being patched? Let me know what you think or if I should make a separate thread.
[Xperia Z3 General] johnathanamber:
Nope, t-mobile is still testing.
[Xperia Z3 General] MikeZ3X:
Finally worked for a code newbie! Follow this!

Ongoing issue finally rooted my Z3X. You MUST put the d6616 zip extracted files into c:\ folder and run the adb she'll data tmp command and add another classes line. Then it will work! Also install the c++ update 4 from link.

You may have trouble copying to C:\ folder. Try moving files and use administrative privileges to copy them into c:\ folder.

Windows 8.0

23.d.0.1.123 build d6616

Java 8

Anyone need anything let me know. I tried this like over 100 times before I did those last things and it worked 2nd rebooted try. Got supersu. Thank you so much for these instructions !
[Xperia Z3 General] imna357:
lollipop update is here, not sure if i'll update will lose ROOT=)

---------- Post added at 01:32 AM ---------- Previous post was at 01:32 AM ----------

just started tonight LOLLIPOP for Sony Z3 t-mobile
[Xperia Z3 General] ayopancheezy:
Wonder if there will be a pre-rooted Lollipop version here for the D6616.
[Xperia Z3 General] imna357:
Not sure, will wait and see:)
[Xperia Z3 General] MadnessG:
Has anyone used SU's Survival Mode? Would that survive the update?
[Xperia Z3 General] Kurotsuki:
The OTA wont install if ur rooted... Dont know why, theres a few other with the same problem on the tmobile update post.
[Xperia Z3 General] ctschrodinger88:
lollipop Install

Lollipop is different in the way OTA updates are installed.

The entire system image is verified before the install. So if something is out of place, it won't install it and fails instantly. :(

More on it here http://www.androidpit.com/android-5-0-lollipop-ota-update-fail

If I understand correctly, if a clean OTA update package is obtained we can get it pre-rooted. In which case it won't matter (in regards to root) if the system image is nuked. (Custom loads into system will still be wiped, but you'll be rooted so you can reload). :):good:

So.... if someone is able to get the clean version of the OTA update and post it, it might help speed things up. ;)
[Xperia Z3 General] johnathanamber:
Has anyone attempted to reverse root and tried to update? I assume that if you factory reset, it would work fine.
[Xperia Z3 General] Veganarchy:
I can verify that a factory reset does not fix the install of lollipop. You still have root. I'm guessing flashing the original t mobile firmware using flashtool is the only way....
[Xperia Z3 General] johnathanamber:
Ah, thanks for that veganarchy, I was going to attempt this... No I don't have too. :)
[Xperia Z3 General] vnphantom:
Might as well flash the tft of the 5.0.2 version on xperia blog.
[Xperia Z3 General] Veganarchy:
I'm going to flash stock firmware using flashtool and I'll report back....unless someone has tried but hasn't reported their results.
[Xperia Z3 General] herzzreh:
Someone posted in another thread that Lollipop does complete verification, any mismatch and it won't install.

I was able to install using Flashtool, dl firmware from Xperifirm. It did ignore no data wipe option. No root. Works fine otherwise.
[Xperia Z3 General] robobub:
Weird, this post claims no unrooting was required:

http://xdaforums.com/z3/general/tmobile-z3-lollipop-t3125921/post61139615#post61139615
[Xperia Z3 General] herzzreh:
See 387 and 388 in this thread and bunch of others elsewhere. There is something else going on in that case.
[Xperia Z3 General] johnathanamber:
According to the Sony Xperia Support Forum, you can flashtool the FTF to get it updated...

http://talk.sonymobile.com/t5/Xperi...crypted-Phone-PC-Companion/m-p/995199#U995199
[Xperia Z3 General] DirtySant0:
Installed Lollipop and rooted with Kingroot

hello community.

I attempted to install the OTA but it would not go through due to my rooted KK stock rom (Removed many bloat and system apps). I used Sony PC recovery to bring it back to complete stock. Installed to OTA lollipop with out issues and installed root using Kingroot.

Does anyone know how to install SUPERSU and remove Kingroot?
[Xperia Z3 General] davidtran2014:
Z3 Root

Hi all,

I've finished updated to 5.0.2 via OTA but My Tmobile Z3 lost rooted.

Is there anyone meet that situation ?
[Xperia Z3 General] ctschrodinger88:
Quick google search yielded

http://www.w0lfdroid.com/2015/05/How-to-Remove-Replace-KingUser-KingRoot-with-SuperSU.html

Take it for what it's worth, and do your own checking. I haven't touched it so I don't know what it actually does or if it works, but it's worth a shot. (Remember backup first, unless you're okay with losing it all.)

If you were rooted before and successfully updated to Lollipop and re-obtained root. If you would please post steps of what you did so we can see if it's recreate-able and usable for others?

[MENTION=6727605]davidtran2014[/MENTION] If the steps are posted above, you may want to see if it will work for you.
[Xperia Z3 General] DirtySant0:
[/COLOR]

Here were the steps i took:

Backed up all data to my laptop since the OTA did not take due to my KK root status.

Used Sony PC companion to restore to original factory settings.

Once restored to TMO KK stock rom, I completed another factory reset to give the OTA a clean slate to run off.

Allowed the OTA to download and install.

Once Lollipop was installed, completed one more factory reset using the stock recovery (Power and Volume down).

Let the device boot up into Lollipop (DID NOT LOG INTO ANY GOOGLE APPS TO AVOID ANY DATA MISSUSE FROM KING ROOT)

Installed Kingroot

Ran KingRoot and obtained ROOT. KingRoot also installed KingSU.

Removed all bloat and unwanted apps.

Attempted to use the "Replace KingUser" process.

Remove-Replace-KingUser-KingRoot-withSuperSU failed to replace SuperSU, BUT, it does remove Kingroot and KingSU

These where the steps i took to get root with D6616 on Lollipop. I attempted to install the OTA while i was on Kitkat but that did not work. I had modified the stock rom enough to not take the OTA.
[Xperia Z3 General] johnathanamber:
OK, still working on getting updated to 5.0.2... does anyone know if the current root method (via the CVE earlier in this thread) also works on this later version?

---------- Post added at 04:58 PM ---------- Previous post was at 04:18 PM ----------

OK, after doing the update via PCC... everything seems OK. All apps and data seems to be there... root is indeed gone.
[Xperia Z3 General] robobub:
Is there a mirror or a way to download without registering?
[Xperia Z3 General] serophia:
I created a flashable signed zip it includes SUPERSU 2.4.6, NUTZDUALRECOVERY, and XPOSED INSTALLER 5.0.2. Just wipe dalvik cache and flash this in recovery then wipe dalvik cache again. First boot will take a while. https://mega.co.nz/#!19oHzIrT!HlTGHgnUtPoiSNVksz7IRXHRViww7dc7scMQHfgy__0
[Xperia Z3 General] id3alistic:
How do you flash it on a stock phone?
[Xperia Z3 General] herzzreh:
I wonder if I could convert this to ftf and flash without wiping...
[Xperia Z3 General] serophia:
you must be rooted with Dual recovery to flash it.
[Xperia Z3 General] herzzreh:
EDIT: I'm currently downloading it to convert it to ftf. In theory, you should be able to flash it using Flashtool.

EDIT2: Actually, I just realized... you shouldn't even have to convert it, just change extension to ftf from zip and flash.

DIT3: No, just no.
[Xperia Z3 General] id3alistic:
Oh I thought it was for rooting the phone again.
[Xperia Z3 General] herzzreh:
Right, this one is prerooted according to serophia.
[Xperia Z3 General] sid3track3d:
Thank you serophia! ?

Sent from my Sony Xperia Z3
[Xperia Z3 General] herzzreh:
Thank you once again. I ended up breaking down and downgraded back to 4.4, rooted, installed. Thanks a lot!
[Xperia Z3 General] accts:
I gave up on the root method per previous instructions, keep getting error messages =null thing on all computers, despite factory reset and re-download every possible ways.

Today upgrade to 5.0.2 lollipop, used kingroot - successfully rooted . Replace with SuperSU ... Happy day :)

Sent from my D6616
[Xperia Z3 General] superangel16:
I successfully updated using [MENTION=2987701]DirtySant0[/MENTION] zip without any problem and root still flawless. But I was trying to unlock the sim for this device using the old simlockunlockapp, so I used Fx entered into system ,put the app and give the permissions and reboot to see if we can get out of this sim locked device, for my surprise when i reboot the phone stuck in a Bootloop. So now I am flashing system once again and have phone alive. Is out there someone who wants to unlock the sim for this device and have knowledge of this so we can unlock sim with unlock code?
[Xperia Z3 General] Veganarchy:
How did you replace kinguser with SuperSU? I downloaded and it can't update the binaries.
[Xperia Z3 General] accts:
Follow the direction here: http://www.w0lfdroid.com/2015/05/How-to-Remove-Replace-KingUser-KingRoot-with-SuperSU.html.
[Xperia Z3 General] id3alistic:
It doesn't work for me... when I type in sh sdcard/mrw/root.sh I just get no such file or directory. I have extracted mrw to my sdcard.

EDIT: nevermind, I was reading a different guide that said to extract it to SD card. Which is not correct. It needs to be in internal storage.

I'm stuck with the message of kingroot has stopped working.
[Xperia Z3 General] accts:
Copy the "mrw" to internal memory. Do not put it in any folder. Good luck.

Have you turn your debugger on & check allow 'unknown' source in security setting?

Sent from my D6616
[Xperia Z3 General] id3alistic:
Ok got it. Had to remove all kingroot related files first and restart fresh.
[Xperia Z3 General] ctschrodinger88:
Can you post the md5 for your rom?

Could you also post the clear stock rom?
[Xperia Z3 General] DirtySant0:
Is this rom modified at all besides the noted root and supersu?
[Xperia Z3 General] sid3track3d:
Flashed serophia's .zip yesterday and so far so good. Loving this build and keeping root is a big plus!
[Xperia Z3 General] festizzio:
Flashed Serophia's zip using his instructions over rooted and xposed 4.4.4, works great! Currently restoring all my apps now!
[Xperia Z3 General] eliasadrian:
As far as I can tell it's not modified. My xposed isn't working right at the moment, but I'm hoping I just need to reinstall/update it.
[Xperia Z3 General] Veganarchy:
Okay, so now who knows how to bypass t-mobiles hot spot.. For unlimited?
[Xperia Z3 General] POMF2K:
How did you do it? General consensus seems to be that the OTA won't take if you are rooted.

Also is there a thread that lists the apps that are okay to freeze via Titanium Backup? For instance: annoying update notices, awful small apps, etc.
[Xperia Z3 General] herzzreh:
For those having "null" issue, flood the Java Co fig file with "classes" and make sure that "Wait for debugger" is checked. Worst comes to worst, create another user and try running the batch file from it. Worked for someone I know.
[Xperia Z3 General] ctschrodinger88:
I flashed this update this morning.

Wiped dalvik cache.

Installed the zip.

Wiped dalvik cached again.

Rebooted. (SuperSU kept dying. And I had root read, but not write). :(

I rebooted into recovery.

Wiped dalvik cache.

Installed the zip.

Wiped dalvik cached again.

Everything is awesome. :good: :D

Thank you much.
[Xperia Z3 General] GhostRaiderMX:
I also used Serophia's signed zip and it worked flawlessly. Easiest thing to do right now and pre-rooted as well. I used an OTG adapter so that I could use a flash drive and connect it to my phone and stored the zip file there. Then I went to TWRP recovery and wiped dalvik cache and then flashed zip. Then wiped cache again and rebooted. Thats it, rooted T-Mobile Xperia Z3 on 5.0.2 :D
[Xperia Z3 General] Bruiser Smith:
Also rooted via Serophia's zip. I just got this phone two days ago and this was relatively painless and overall the install was super easy. Thanks for the clear instructions! I'm not seeing the Xposed 5.0.2 installer though - is there something special I need to do to install it?
[Xperia Z3 General] danishdish:
Yesterday I updated to Lollipop and lost root, which was to be expected. So, if I understand the current state of affairs correctly, if I want a rooted D6616 with Lollipop, I have to go back to rooted KitKat and flash Serophia's file.

Also, thank you to all of you guys who have made this possible.
[Xperia Z3 General] serophia:
You are going to have to uninstall the old xposed and go to this http://xdaforums.com/showthread.php?t=3034811 download the apk and place it in your sd card (My flashable zip already included the XPOSED 5.0.2 Zip so there should be no need to download the one from the link). After you located the .apk install it then recheck all of your modules and reboot, after everything should be good. These are the steps I had to do to get rid of KitKat Xposed.
[Xperia Z3 General] neolink2009:
Hi, I did try step by step but I dont get it to work, here is some info from my device:

Sony Xperia Z3, D6616, T Mobile, Android 4.4.4, Compiled 23.0.D.1.123,

I'm using a PC with: Windows 7 32 bits, JDK 8 update 45.

After running exploit.bat shows this:

And after root.bat shows this:

Am I doing something wrong or I'm missing something?
[Xperia Z3 General] MadnessG:
Does the root exploit that zxz0O0 put up work if you are already on Lollipop? If not, is there any way to revert back to KitKat?
[Xperia Z3 General] neolink2009:
I dont know if that works on Lollipop, but there is a way to downgrade the OS via Flashtools, just have to find the correct firmware for your model, mine comes with Android 4.4.4 and updates to Android 5.0.2, but I found the firmware and flash it back here:

http://xdaforums.com/z3/general/ftf-stock-firmwares-xperia-z3-models-t2886061

Hope you find yours.
[Xperia Z3 General] GhostRaiderMX:
To get Xposed on Lollipop we have to flash the Lollipop Xposed Zip file in recovery right?
[Xperia Z3 General] dzap:
It's not you. I had the exact same problem after restoring my D6616 back to KitKat with FlashTool in order to re-root and then install the pre-rooted Lollipop zip.

It worked fine when it first came out and I had stuff on it, but for some reason, 100% clean factory stock will not root until you clear the tmp directory in adb shell. Open a command prompt window (and assuming you have ADB installed already) run:

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

Should take just a second. Now go through the whole process again, and when it reboots this time, you should have SuperSU on reboot.

This was a PITA for me to figure out but I went back and found the answer...no idea why it does this.
[Xperia Z3 General] Brandon.Gallegos:
also hey...

So I being me did things my own way.

You can KingRoot and unKingRoot to SuperSU on latest OTA

just did from factory OTA wiped and all.

Kinda cool but yeah do what everyone else says downgrade or go away

The pain in the ass it was just to achive root on stock OTA loli isnt better at all

the debloating alone :silly::silly::silly: LOL
[Xperia Z3 General] Shiroumaru:
Android 5.0.2 Root Attempt

I ran the exploit.bat and it stays in "Pulling Logs":

Script started
CVE-2014-7953 (Java implementation by hqdvista)

Waiting for the device to be connected
Pushing files
351 KB/s (2164 bytes in 0.006s)
37 KB/s (220 bytes in 0.005s)

Preparing exploit...

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

Press any key to continue . . .

Uninstalling exploit app
Pulling log

Luckly logcat got it all:

http :// pastebin .com / TCvyAvMx

This was performed on Windows 8.1 64-bit using Java Development Kit 8 u45.

Do I have to be connected to the same network? I read root.bat and I think I have to be, but I'm not!
[Xperia Z3 General] serophia:
Yes after you boot into system install the xposed apk
[Xperia Z3 General] PeppeChango:
It Work! But Factory Restore?

How is it going guys?

I just created my account lol. Anyway it work for me.

Followed GhostRaiderMX's detailed instructions, with everything updated but still couldn't get root. So I spent some time in front of my computer trying to make it work, here is what I did:

Based on the instructions, I downloaded Java SE 8 Dev Kit, Visual C++, zxz0O0's tool, adb drivers for xperia. Before proceeding I uninstalled the Java version I had before, made a registry cleaning rebooted and then installed everything. Also added about 10 extra lines of classes to the script, ran everything again and voila, I achieved root. :fingers-crossed: :laugh:

Although I have a question, if I make a factory restore will I lose the root?

I also installed the XZDUALRECOVERY but can't make it work, when I try to enter the Recovery CWM does not work, TeamWin Recovery Project tells me there is no OS installed and if I use NDR Utils with Philz Touch Recovery it just reboots, has anybody experience this same problem? :confused:

Anyway, zxz0O0 thank you...You're the man. :good: :cool:

Also GhostRaiderMX thank you for the instructions.
[Xperia Z3 General] Fanatico:
What's up dude. I am still currently testing but sp far so good. I am streaming video 3 now on my Tablet that is connected to my Xperia and my Hotspot usage is at 4.1MB while my regular Usasage is going up. I tried this method while rooted in kit kat but did not work i was assuming it was for lollipop only so i gave it a try and so far so good !!!! :D:D

http://xdaforums.com/z3/general/lollipop-tethering-t3058923

I am not very shaby with adb so i just did it manual. The instrcutions are in the link of the first post. I used SqLite editor.

"Root the phone

Install a SQLite editor such as SQLite Debugger

Using the SQLite editor, navigate to the file /data/data/com.android.providers.settings/databases/settings.db (this is the part that requires root)

Enter the database global

Change the value of field tether_dun_required to 0.

Tether away!"

Hope it helps

---------- Post added at 06:42 PM ---------- Previous post was at 05:44 PM ----------

By the way,

Does anyone know how to get rid of that annoying T-Mobile app that sicks on the status bar. I never use it, i only use the APP once a month to pay my bill and today to make sure the Unlimited Tethering worked lol.

Can i used debloatter or a program like that to remove it ?

Thanks
[Xperia Z3 General] johnathanamber:
The app is T-Mobile My Account. Sadly, it can't be disabled like in KK. However, you can remove the status bar junk by launching the app > Options > Uncheck everything. I no longer have it in my status bar.

Now, I just need to root my device to remove ads, etc. I assume that this method of using exploit.bat and root.bat won't work with Lollipop...
[Xperia Z3 General] cjoc:
Lollipop

Does this method work on lollipop? I have up trying to root this phone asking time ago and just thought I would look again and found this. Problem is I took the update.
[Xperia Z3 General] serophia:
Downgrade to 4.4.4 use the root exploit get nutzrecovery then flash my prerooted flashable zip to get lollipop rooted
[Xperia Z3 General] johnathanamber:
Serophia, from what I gather, I'll lose my DRM keys to the camera if I unlock the bootloader and install a recovery, etc.
[Xperia Z3 General] serophia:
Go to the first post it gives instructions on how to get a custom recovery and root for locked bootloader. The T-Mobile version cannot unlock the bootloader so there is no way in losing DRM keys.
[Xperia Z3 General] johnathanamber:
My bad, I thought that installing any recovery would compromise the bootloader... instructions are here (second link on the first post.):

http://xdaforums.com/showpost.php?p=60507399&postcount=171
[Xperia Z3 General] serophia:
Yea, follow that method on KK 4.4.4, then search a few pages back for my instructions to get pre-rooted lollipop working for T-Mobile D6616.
[Xperia Z3 General] ubuntunerd:
why downgrade to KK when lollipop is rootable?
[Xperia Z3 General] johnathanamber:
[MENTION=1860241]ubu[/MENTION]btunerd, how do you root lollipop on the d6616?
[Xperia Z3 General] ubuntunerd:
I used the king root app

http://www.kingroot.net/down#root

and then I used this instructions to remove the king root super user app

http://zidroid.com/how-to-get-ride-and-replace-kinguser-with-supersu-app/
[Xperia Z3 General] TrunkleBob:
I flashed the file provided by serophia but something is not right with my phone, and I want to start over from scratch. If I factory reset will I be back on KK, or do I need to manually flash the old T-Mobile KitKat image. If the second one, where can I get it?
[Xperia Z3 General] ubuntunerd:
use the pc companion to flash to stock !!
[Xperia Z3 General] johnathanamber:
So, the only way to root right now is to use kingroot? Doesn't this communicate with China when used?
[Xperia Z3 General] serophia:
it'll just factory reset the device it will not touch the internal storage so only apps are wiped. You'll still retain root and SuperSu.
[Xperia Z3 General] Abolfazl:
Is there a way to make it so it does not wipe everything?