yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] LaMotta82:
Where can I find the v3.1.1 TWRP image for blocked bootloader?

I have a rooted 4.4.4 phone with an old TWRP img. I would create a recovery file about the "phone", but of course decryption is not working. Blocked bootloader.

Am I able to update the TWRP with russel5's TWRP v3.1.1? Will that work? If yes.. Where can I find the v3.1.1.img?

I just found the "UB" version.

Many thanks!
[Xperia Z3 Compact General] krajc:
I am thankful to LLLL_LLLL for his guide for noobs. Seriously - it is not easy to find explanations even to basic terms on rooting. E.g., what is so logical in renaming .zip to .ftf? For me, as a newbie, it seems strange that someone uploads a .zip (not .ftf) for which the only purpose is to be downloaded and renamed to .ftf and flashed.

By the way, maybe a kind person will explain me what is the difference between .zips that are flashed using recovery, and .zips that are renamed to .ftfs and flashed by flashtool? I suppose they are different? When you have rooted phone and flash a pre-rooted ROM from recovery, which is .zip, I suppose that you cannot simply rename it to .ftf and flash if from flashtool?

Sorry for dumb questions, but if you or somebody point me to a good site where these basics about when and what and why you flash from recovery and when from flashtool I would be very much grateful :)
[Xperia Z3 Compact General] gautxori:
system partition r/w

does this rooting method make system partition r/w? If not, which is the suggested way to get it? thnks.
[Xperia Z3 Compact General] Myo Thu Htet:
kernel for 5833 and 5830 are same??
[Xperia Z3 Compact General] casouzaj:
Yes, the kernel fits both variants.
[Xperia Z3 Compact General] steinhoff1989:
Best tutorial online you can use!
[Xperia Z3 Compact General] kuriocchi:
How do i flash a kernel? I get an error when doing it in fastboot mode. I'm new :confused:
[Xperia Z3 Compact General] casouzaj:
You can flash a kennel only after your bootloader is unlocked. If you decide to to it, make a backup of your TA partition (which holds your DRM keys) beforehand.
[Xperia Z3 Compact General] kuriocchi:
Thanks, i have done what LLLL_LLLL says and it works for me ;)
[Xperia Z3 Compact General] Yann68:
This method works on locked bootloader 23.5.A.1.291 stock ???
[Xperia Z3 Compact General] gautxori:
affirmative, on Sony Xperia Z3C
[Xperia Z3 Compact General] hrsh45:
what should i do with update_recovery.zip?

thx
[Xperia Z3 Compact General] fijasko:
from the OP:
[Xperia Z3 Compact General] phonedesperate:
I am completely lost and confused. The phone's a new Z3 compact 5803 and I'm supposedly technically competent, but I have been trying to follow these instructions for most of the morning and getting nowhere at all. It started on Sony's standard MM with 575 and having turned on USB debugging I attempted install.bat, but with no luck. Running each command inside it one by one confirmed that the problem was in the penultimate command before reboot: iovyroot throwing a "permission denied" error. I then tried to flash as described with the 575 firmware provided on the first page of this thread (it was definitely the 575; I checked before and after, and hadn't even downloaded the 291 at that stage), and the phone ended up with firmware 291! Now, I don't seem to be able to change the firmware - flashing either of the packages provided here makes no difference, and Sony's OTA updates also fail. I would be hugely grateful for any suggestions!
[Xperia Z3 Compact General] casouzaj:
As far as I'm aware of, there are only kernels (not full ROMs) available for download on the first post. They are in zip format for the sole reason that ftf is not a valid format for xda-developers' upload. You should just rename its extension from zip to ftf and place them in C:\Users\your_username\.flashTool\firmwares. Your current ROM version is not changed when you flash a kernel. You can verify which kernel you currently have on your phone by accessing 'Settings > About phone' and checking the kernel build date. If it shows April 22, 2016, it's from the 575 ROM. Otherwise, if it shows June 28, 2016, then it's from the 291 ROM. The iovyroot tool only works if the kernel from the 575 ROM is installed.
[Xperia Z3 Compact General] phonedesperate:
Thank you casouzaj, that's exactly what I did, and yes the kernel version date is 22nd April, 2016, but the build number is now 23.5.A.1.291 where it was .575. What is the significance of that?

At some point during today's trials and tribulations, something must have changed though, because I tried the abd stuff again and it worked - TWRP, SuperSU and a rooted phone. Phew!
[Xperia Z3 Compact General] de_dication:
Hey everyone!

Okay so here's the thing. I have xperia z3 compact, D5803 model, .291 build number, running on 6.0.1 Android. Recently, after a lot of failed attempts, I unlocked bootloader on the phone. After I did that, I want to root it. So here's my question. When I open FlashTool on my computer (win10), pop-up message says:

No JVM could be found on your system.

Please define EXE4J_JAVA_HOME

to point to an installed 64-bit JDK or JRE download or download a JRE from java website.

So naturally, I downloaded Java and installed it, and I thought it is a solution to the issue, but it's not. Still popup message, still the same problem. Now I really need help. Anyone with the same issue?

Thanks in advance to everyone!
[Xperia Z3 Compact General] casouzaj:
If you unlocked your bootloader, just use a fastboot command to flash a 3.1.1-0 TWRP img file to your FOTAKernel partition. Then, under TWRP, install the latest Magisk zip file (v14.2). Top it up with the Universal Safetynet fix v110.1 (yes, the old one). Safetynet will pass and your phone will be certified by Play Store, as if it was running a stock ROM with a locked bootloader. Good luck!
[Xperia Z3 Compact General] de_dication:
Thank you very much sir, but I didn't understand a single word you just said :D so maybe, just maybe, you're gonna be the one that saves me? :P if you can please provide links to the stuff written above, and maybe if you have some spare time on your hands, you could guide me thru the proccess, it would be very helpful. Much appreciated!
[Xperia Z3 Compact General] Schattenspieler:
I'm sorry, if this seems inappropriate to you, but you seem to lack some credibility for your nickname: de_dication.

There are guides to all things in question. If you did not until now, and obviously you didn't, you should read those asap! Threads would inflate in size by a factor of 5 at least, if everything was explained everytime over and over again. Also for people as youself, searching for information, you can easily find it sacrificing some spare time either by looking for pinned threads in the appropriate subforum or using the search.

So maybe, just maybe, you're gonna be the one that saves yourself, guided by the not-(yet-)understood words of casouzaj. ;)
[Xperia Z3 Compact General] climbatize88:
hello, im new here. can someone explain me this step: * if you have .291 firmware, you need flash stock kernel.sin (575) via FlashTool and turn on your phone. After, when script done and you reboot in custom recovery, flash SuperSU, then turn off your phone and flash back kernel.sin (291)

how to i do this ?
[Xperia Z3 Compact General] levone1:
You need to have both firmwares on your computer, (291 and 575). Connect phone with 291 fw in flash mode, open Flashtool, and select flash>flashmode, and select your 575 fw, then check everything in 'exclude' box, except kernel, and flash. Then, after doing whatever you need to do with that kernel, do the same thing with 291 fw.
[Xperia Z3 Compact General] climbatize88:
okay i got 575 kernel flashed. eveyrthing seemed fine. then i ran install.bat but it gave many errors i think, like adb version 32 doesnt match this klient 36. killing...

Then my phone rebooted but not into TWRP.
[Xperia Z3 Compact General] casouzaj:
Go to Settings > About phone and pay attention to the kernel build date. If it shows April 22, 2016, it's from the 575 ROM. Otherwise, if it is June 28, 2016, then it's from the 291 ROM, what would mean that your flashing operation of the 575 kernel wasn't successful.
[Xperia Z3 Compact General] levone1:
Did you run as administrator per op? If so, and you get errors, try to get log and post it. I don't know much about adb, etc, but sounds like a simple matter of updating adb. I don't know what you installed originally, but this has always worked for me - https://xdaforums.com/showthread.php?t=2588979
[Xperia Z3 Compact General] climbatize88:
its aprill 22. what should i do

---------- Post added at 03:01 PM ---------- Previous post was at 03:00 PM ----------

yes i ran as admin and installed same drivers.

EDIT: rebooted my pc and its working.
[Xperia Z3 Compact General] russel5:
Disable (close) all programs that uses adb process, like Flashtool, Xperia firmware
[Xperia Z3 Compact General] climbatize88:
Thank you all !

I got my phone rooted. Adb errors solved after pc restart.
[Xperia Z3 Compact General] skverbox:
How do i uninstall twrp if i need to take my phone to service ?
[Xperia Z3 Compact General] casouzaj:
Flash a stock Marshmallow ROM through Flashtool.
[Xperia Z3 Compact General] skverbox:
Thanks :D
[Xperia Z3 Compact General] -Vinne2-:
Hi, I am very excited to use your root method, but I get stuck on install.bat:

* server not running *
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

I have really no idea what I'm doing wrong. I flashed the 575 kernel (how can I check this on phone?). I closed Flashtool and turned off antivirus (avast). Enabled USB debugging (a notification on my phone says "USB debugging connected" although Flashtool logs, that phone is connected with debugging off). Connected phone in MTP mode. Also tried in Charging mode as someone stated. I ran install.bat as admin and not as admin, no difference.

Moreover, command "adb devices" sees no devices. I have Windows 7.

(This is the most annoying error I always get when I was trying to flash (or root) any of my Android phones.)
[Xperia Z3 Compact General] casouzaj:
To know which kernel you have installed, look here: https://xdaforums.com/z3-compact/general/recovery-root-mm-575-lb-t3418714/post74080319

To assure that your phone gets detected by adb, in your computer, run the exe file present in C:\Flashtool\drivers, install the first two drivers in the list plus the one which is specific to your phone model, towards the end of the list. Bear in mind that if you're running Windows 8 or newer, you'll have to disable drivers signature during init, prior to installing the drivers. Google for the procedure for your current Windows version.
[Xperia Z3 Compact General] -Vinne2-:
Yeah, I had those drivers. I wasted um-teen hours! Just to find out I have to connect my phone as MIDI (and not MTP/MSC/charging)… Who would've thought, huh? :(

Finally done! Thank you anyway!*\o/
[Xperia Z3 Compact General] qsee:
I want to get Android 8 via LineageOS, so as far as I know I need to root my Z3 compact D5803 (originally .291). However, using Flashtool, when flashing in .575, it is seemingly successful, but the kernel version will not update in system settings. And now the phone says all the time "could not install system update". Could someone give step by step tips what to do so I can flash .575 successfully, root the phone, and install Android 8?

This is the log Flashtool gives when trying to flash .575:
[Xperia Z3 Compact General] casouzaj:
Yes, the log shows that a kernel was installed. If you selected the one from the 575 ROM, then you're good to run the install.bat file. Nevertheless, if your goal is to install LineageOS, you must firstly unlock your bootloader (not without backing up your TA partition). After you unlock your bootloader, you could fastboot a 3.1.1-0 TWRP img file to your FOTAKernel partition, and install LineageOS later on, thus not needing to run this rooting tool, at all!
[Xperia Z3 Compact General] qsee:
OK, good to know, could you give me step-by step instructions? I've never done these sort of things even though I have some geek blood in my veins.

1) Backup TA partition - how?

2) Unlock bootloader - how?

3) Fastboot 3.11-0 TWRP to FOTAKernel partition - how?

4) Install LineageOS - for this I should have instructions already.

I don't want to get my device bricked and I don't really know which guides to trust in google / which don't involve unnecessary steps.
[Xperia Z3 Compact General] andi2398:
[MENTION=8645382]qsee[/MENTION]

Just use this instruction: https://xdaforums.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343

How to unlock bootloader: https://xdaforums.com/z3-compact/general/twrp-z3-compact-unlocked-bootloader-t3476868

greetings

Andi
[Xperia Z3 Compact General] Buzzdee:
Thanks for this thread, I rooted succesfully (checked it with RootChecker, Titanium, Xposed), but I cant uninstall system-bloatware with titanium. It says uninstall successfull but after reboot the app is back again. Any advice?

P.S. I just realized that /system & /vendor ist not rw (at least Xposed says that). How can I change that? (already tried that RICDefeat.zip)
[Xperia Z3 Compact General] levone1:
You see this - https://xdaforums.com/showpost.php?p=66222971&postcount=1?
[Xperia Z3 Compact General] Buzzdee:
Thanks, but I don't think that's what I'm looking for. My problem is not my SD-Card, it's my internal system-directory. So I don't see how this could help me.
[Xperia Z3 Compact General] levone1:
Oh yeah... Is it the same with other apps, or just Titanium? (can you copy/cut/paste in /system with a file manager, for example?)... What root manager are you using?
[Xperia Z3 Compact General] Buzzdee:
SuperSU 2.79. And I can't write in /system with any app.
[Xperia Z3 Compact General] levone1:
I've never had a problem with it, but I haven't used straight stock rom/kernel... You can try :

- Update SuperSU (I know there was a problem with one of their updates, but it was fixed, and latest version is good)

- Custom kernel. I've been using Elite kernel with eXistenZ...

- Custom, stock-based rom, (Slimm, eXistenZ...).

I know on my Z1c, r/w access is restricted, even with root, unless you use a custom kernel, or supolicy fix. Not sure if the same with Z3c...
[Xperia Z3 Compact General] Buzzdee:
Ok, I really would like to stay with the stock rom but if everything will fail I have to try a custom one.
[Xperia Z3 Compact General] Zero Fullshock:
Which version of flashtool you used?
[Xperia Z3 Compact General] OGSwank:
I'm having an issue booting into TWRP.

Flashed D5803_23.5.A.1.291_R11D_D5803_Customized UK in (Flashtool Version 0.9.22.3 built on 08-06-2016)

Flashed kernel575.ftf

Started recovery install.bat

100% successful on all files

Just boots into the device

What could be the problem? I'm running win 10. I've tried running as admin and installing adb-setup-1.4.3.exe no success
[Xperia Z3 Compact General] levone1:
Install.bat from where/what?
[Xperia Z3 Compact General] casouzaj:
Run the install. bat file again. When it works, the command window throws a lot of messages, and the phone enters TWRP.
[Xperia Z3 Compact General] OGSwank:
Fixed it. I needed to enable 'unknown sources'
[Xperia Z3 Compact General] M4tr1k:
Help

I have a custom ROM, if I want to flash kernel .575, is there any problem? (The custom ROM is SLiMM) I want to reinstall TWRP for my device, because mine it's not working anymore (don't know why).
[Xperia Z3 Compact General] ChappyHappy:
Thanks! It helped a lot!

Did it twice because I thought the 575 kernel didnt work flash the first time when I checked the build version and it was still 291.
[Xperia Z3 Compact General] deepsing:
4- Go back to recovery and flash "update_recovery.zip" to update the recovery

Reboot your phone

sorry how do I go to recovery and flash. can you please elaborate the process here
[Xperia Z3 Compact General] jabirfan:
Tank's
[Xperia Z3 Compact General] UtokUser:
Hello,I have this problem-I try to flash 575 and report says its succesful,but when i boot up,in the menu its still 291!What can be the problem?
[Xperia Z3 Compact General] casouzaj:
This question has been answered many times. These 585 and 291 are the ROM's naming convention used by Sony. In order to know which kernel you have in place, look at its build date, under Settings > About phone. If it shows April, 22, 2016, then it's from the 575 ROM. Otherwise, it it's June, 28, 2016, then it's from the 291 ROM instead.
[Xperia Z3 Compact General] UtokUser:
Thank you!Last night I managed to root my z3c using that tutorial!:D too bad there is no stable custo rom for that phone :/
[Xperia Z3 Compact General] casouzaj:
Well, I'm running CarbonROM (https://xdaforums.com/z3-compact/development/cr-5-1-carbonrom-t3529766) on my Z3C since its release date. It's very fast and stable. Can't even remember the last time I had a random reboot. It is currently based on Nougat 7.1.2, but it won't take long to be upgraded to Oreo. Through Magisk v15.1 (https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589) along with its Universal Safetynet Fix old Stable v1.10 module (https://xdaforums.com/z3-compact/development/cr-5-1-carbonrom-t3529766), my Z3C is certified by Play Store and can pass Safetynet tests.

If you decide to install a custom ROM like this, backup your TA partition (https://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236), prior to unlocking your bootloader.
[Xperia Z3 Compact General] Bartekreaper:
Hello guys. Anyone have or know where is twrp for locked bootloader with unlocked options like drm keys backup and modem? I know it must be somewhere on xda but just spend some time on looking for it and no luck. Maybe it was posted by shoey63 or russel5 or even someone else :( and also maybe in RecRoot thread but i searched in every thread and in some users profiles but again no luck...
[Xperia Z3 Compact General] casouzaj:
TWRP for locked bootloader is on this very thread. To backup your TA partition (where your DRM keys reside), look here: https://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236
[Xperia Z3 Compact General] Bartekreaper:
Oh I thought i got nice answer but it wasn't the one I wanted. I said I want modified twrp, I know and I already made normal ta backup.
[Xperia Z3 Compact General] russel5:
Recovery in this thread can backup ta keys, this option named TrimArea
[Xperia Z3 Compact General] arslanon.e:
It worked

Success! A big thank you to the creators, and the community for their awesome work :)

This method worked for my Z3c Docomo SO-02G.

The following is just for notes. Not as a way to do it, as you can see I took the scenic route:

Flashed the 23.5.A.0.575 (1289-4008) ROM -- excluded all TA things, wiped USERDATA

Phone booted fine. Then flashed the 23.5.A.1.291 (1289-4008) ROM, excluded kernel and all TA things, wiped USERDATA

Applied the recovery_for_mm575 zip, re-booted automatically to recovery, applied the update_recovery zip, installed SuperSU

Phone booted fine. Powered it off. Flashed only kernel of 23.5.A.1.291 (1289-4008) ROM.

It's rooted now. Results:

* NFC does not work (knew that)

* Touch feels bit sensitive compared to the Japanese ROM (was expecting that, check above link)

* Call Recorder from F-Droid works, but the audio quality of my own voice (outgoing) is not clear -- sounds like flanger effect; but incoming sound (of person on other line) is fine

* All else works fine (checking it for a couple of hours)

Question:

Is NFC really draining battery? It appears to be disabled in phone settings. Please see this comment: you should manually block nfc, or you will have battery drain? How does one "block" NFC?
[Xperia Z3 Compact General] casouzaj:
There's an update_recovery. zip file on the OP.
[Xperia Z3 Compact General] arslanon.e:
Docomo ROM + 575 Exploit -- Is it possible?

Is it possible to do this same process with the SO-02G's official Docomo ROM (instead of the 291 ROM) and the 575's kernel exploit?
[Xperia Z3 Compact General] Eures:
Hello, instructions are very clear and simple, but SuperSU that we need to flash doesn't show in Attached files, is there a reason?...
[Xperia Z3 Compact General] Eures:
Perhaps it is not present in the attachments because SuperSU has an entire dedicated thread where the latest versions can be found:

https://xdaforums.com/apps/supersu

But at least the link I'll put it showing...
[Xperia Z3 Compact General] Eures:
Even the exact content of kernel575.ftf should be specified, IMHO, once it is loaded in Flashtool:

- boot_delivery.xml

- kernel.sin

Must they be both flashed? I think yes.
[Xperia Z3 Compact General] casouzaj:
You should not unpack the zip, but simply rename its extension from zip to ftf. This is due to the fact that ftf is not accepted by xda-developers as a valid attachment.
[Xperia Z3 Compact General] Eures:
Yes, I did, I meant the two elements of the renamed file in Flashtool!.... Thanks anyway.

---------- Post added at 04:19 PM ---------- Previous post was at 04:12 PM ----------

I read that someone had this problem with Flashtool: Device connected with USB debugging off

Even with debugging enabled.

How did you solve it? i can't get it working...

Log:

05/037/2018 15:37:10 - INFO - <- This level is successfully initialized

05/037/2018 15:37:10 - INFO - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00

05/037/2018 15:37:10 - INFO - Executing search strategies to find proxy selector

05/037/2018 15:37:11 - INFO - No proxy found for IE. Trying next one

05/037/2018 15:37:11 - INFO - No proxy found for firefox. Trying next one

05/037/2018 15:37:11 - INFO - No proxy found for java. Trying next one

05/037/2018 15:37:11 - INFO - Syncing devices from github

05/037/2018 15:37:11 - INFO - Opening devices repository.

05/037/2018 15:37:11 - INFO - Scanning devices folder for changes.

05/037/2018 15:37:17 - INFO - Pulling changes from github.

05/037/2018 15:37:17 - INFO - Quietly closing devices repository.

05/037/2018 15:37:17 - INFO - Devices sync finished.

05/037/2018 15:37:17 - INFO - Loading devices database

05/037/2018 15:37:17 - INFO - Loaded 100 devices

05/037/2018 15:37:17 - INFO - Starting phone detection

05/037/2018 15:37:22 - INFO - Device disconnected

05/037/2018 15:37:35 - INFO - Selected Bundle for Sony Xperia Z3 Compact(D5803). FW release : 23.5.A.0.575_R3D. Customization : stock kernel

05/037/2018 15:37:35 - INFO - Preparing files for flashing

05/037/2018 15:37:36 - INFO - Please connect your device into flashmode.

05/038/2018 15:38:06 - INFO - Device connected with USB debugging off

05/038/2018 15:38:06 - INFO - For 2011 devices line, be sure you are not in MTP mode

05/039/2018 15:39:43 - INFO - Flash canceled
[Xperia Z3 Compact General] casouzaj:
Is your phone turned off, and, when the animated connection request window comes up, you hold the volume down button whilst plugging the USB cable in?
[Xperia Z3 Compact General] Eures:
Yes. First is the phone turned on, and Flashtool shows Device connected with USB debugging on.

Afterwards I follow the animation (Unplug the device, Power off the device, Press the volume DOWN button, Plug the device), and Flashtool says Device connected with USB debugging off.

Driver is Sony Sa 0111.
[Xperia Z3 Compact General] casouzaj:
At the moment you connect it, holding the volume down button with it turned off, do you notice the led briefly lighting up on green color?
[Xperia Z3 Compact General] Eures:
Nope. The led is first red then green...
[Xperia Z3 Compact General] casouzaj:
That's what I meant. Perhaps your PC doesn't detected flashmode. Have you already installed the applicable drivers through the executable program present in C:\Flashtool\drivers?
[Xperia Z3 Compact General] Eures:
I installed 3 of them: Flashmode Drivers, Fastboot Drivers and Xperia Z3 Compact Device Driver...
[Xperia Z3 Compact General] casouzaj:
Have you rebooted your PC after you installed the drivers?