yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] M1chiel:
The green LED is supposed to turn on after you press the volume rockers a few times during boot while the Sony start-up screen appears. If you are rooted you can install the TWRP installer from Google Play and (re-)install the latest TWRP version. To check your DRM keys: dial *#*#7378423#*#* ('SERVICE') and you will enter the Service menu. Go to Service tests > Security and you see a menu starting with 'MARLIN'. If it says [Key OK][Active] for all items your still have your DRM keys. If you see errors you don't. If your DRM keys are lost, you can (partly?) restore your camera functions: http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672 (haven't tried this myself though).
[Xperia Z3 Compact General] gbossley:
Thanks again M1chiel. I've never seen the green LED when holding or pumping the vol. rockers on startup. I see errors when checking for DRM as advised.

So I must be missing something - the phone WILL NOT boot to recovery. I've tried Quick boot, the Rocker button hold / pump while booting, I've tried ROM Toolbox Pro. It will not boot to recovery. I'm sure it's operator error. Do I need to have an unlocked bootloader to boot to recovery?
[Xperia Z3 Compact General] casouzaj:
Haven't you noticed [MENTION=7734293]ervin.fernandez@gmailcom[/MENTION]'s post right above yours?
[Xperia Z3 Compact General] Chamelleon:
Confirmed, after downgrading kernel to 575, injecting recovery once again and flashing back 291 kernel all is working as it should.
[Xperia Z3 Compact General] kwstas 13:
OH no hadn't noticed it,i'm sorry...

I've got a problem too though! I installed twrp on. 575 (didn't root it) and i want to install. 291 kernel again! installing through twrp doesn't work! (check attachment). How can I install it?!

I tried renaming the zip to .Ftf but the file format would not change, and flashtool doesn't recognize it!
[Xperia Z3 Compact General] casouzaj:
With TWRP you install zip files. Use Flashtool to flash ftf files!
[Xperia Z3 Compact General] kwstas 13:
Yes, i installed the ZIP file from .291 kernel and that's what happened! (my prevous screenshot) . How can I install the .291 kernel from Flashtool since it's a zip file? If I rename it to .ftf i still remains a ZIP file
[Xperia Z3 Compact General] casouzaj:
No, it's not a zip file. I mean, it's not structured as an installable zip file. If you downloaded the kernel from the OP, you just have to rename the extension, from zip to ftf (because [MENTION=4688377]russel5[/MENTION] did it this way, since xda-developers doesn't accept ftf as a valid extension for uploads), and use FlashtTool in your PC to flash it. You see, ftf is also a packing mechanism., used by Sony for ROM builds.
[Xperia Z3 Compact General] kwstas 13:
I do rename it, but the file format does not change! it remains a zip file!
[Xperia Z3 Compact General] casouzaj:
Are you on Windows? Do this: launch a command prompt window with admin rights, navigate to the location where the kernel zips are, and enter

ren kernel575.zip kernel575.ftf

, hit [ENTER], then

ren kernel291.zip kernel291.ftf

and hit [ENTER] again. Then, try them in FlashTool.
[Xperia Z3 Compact General] kwstas 13:
unable to change it...an error occus saying unable to change the format file!

Edit: it worked! thank you!
[Xperia Z3 Compact General] pablo212121:
hola queria saber si funciona con la concept???
[Xperia Z3 Compact General] brodo:
Hey,

I managed to install TWRP , SuperSU and flash kernel .291. My phone is rooted and everything works fine. But after the initial reboot into TWRP I cannot do that anymore. The phone just boots normal everytime I try to boot into recovery, no matter how (starting and pressing vol down; 'reboot to recovery' buttons out of the system; 'adb reboot recovery'). There isn't even a purple (or any other colour) light. It goes straigth to booting the OS.

Did I do something wrong? Could it be related to the Xposed Framework?

Thanks!
[Xperia Z3 Compact General] casouzaj:
Not sure whether you were referring to me or not, but I'll answer your question, anyway. No, had not wiped anything! And had no problems flashing the kernels, either the 575 one beforehand or the 291 one afterwards. I always flash them from full ftf files I have in my notebook, excluding all the components, except the kernel itself.
[Xperia Z3 Compact General] M1chiel:
No, unfortunately this cannot be used for the concept rom. And please use English in this forum.
[Xperia Z3 Compact General] Chamelleon:
Already done but Thank You anyway.
[Xperia Z3 Compact General] darito30:
Sorry but I do not understand, I'm at 291 with locked bootloader, and can not install the recovery, I would be very grateful if you could create the installer for 291
[Xperia Z3 Compact General] casouzaj:
You have to flash the kernel from the 23.5.A.0.575 ROM for the tool to work.
[Xperia Z3 Compact General] darito30:
That's the problem, not as flash the kernel, do not understand how it is done
[Xperia Z3 Compact General] casouzaj:
Launch Flashtool and click on the lightning icon. Select flashmode and the ftf (choose your model and firmware) you want to flash and click on Flash. Power your phone off and, when a connection window comes up, press and hold the volume down button whilst plugging the USB cable in. Release the button when the connection window goes off.
[Xperia Z3 Compact General] darito30:
Kernel and download the top 575, but this zipped file
[Xperia Z3 Compact General] casouzaj:
Just rename the extension field from zip to ftf and place it in C:\Users\your_username\.flashTool\firmwares.
[Xperia Z3 Compact General] darito30:
I still do not succeed, not because I get flash button in gray, and is connected in flash mode
[Xperia Z3 Compact General] miijaysen:
1-time recovery?

It all worked perfectly and i ended up with SuperSU and TWRP :) But when i try to go into recovery aigen, it just boots normal. I have tried with TWRP manager(Wich states i have TWRP 3.0.2.0) and the repeating vol up, when the LED turns on. Is it suppose to be a 1-time use only of TWRP? I did the .291 fw method
[Xperia Z3 Compact General] fluffi444:
Did you try volume down? And pressing one time is enough [emoji5]
[Xperia Z3 Compact General] miijaysen:
Nah :p Ty for the quick response, that worked. I feel stupid :eek:
[Xperia Z3 Compact General] darito30:
Please need the root to 291, you can not downgrade to kernel 575
[Xperia Z3 Compact General] anupampb:
Point out if I'm wrong

My phone has .291 firmware. So I have downloaded all the zip files.

- I change extension of kernel575.zip to ftf & place it in C:\Users\your_username\.flashTool\firmwares

- Flash it in flash mode using the flash tool

- Boot phone normally

- Connect in USB debugging & run install.bat as admin for recovery

- Turn it off & try to enter recovery using vol down key

- Flash SuperSU.zip using recovery

- Turn off phone & start flashmode

- Flash kernel291.ftf

- Boot phone normally to get root+recovery

Will I lose data during this process, as it would be nice if I could take full backup using recovery afterwards?
[Xperia Z3 Compact General] M1chiel:
You wrote the perfect tutorial for [MENTION=4609078]darito30[/MENTION], [MENTION=4698512]anupampb[/MENTION]!

It should work this way and you will not lose your data (unless you tick the wipe boxes in Flashtool, but there's no need for that).
[Xperia Z3 Compact General] russel5:
No, you not lose your data if all done correct, as you wrote
[Xperia Z3 Compact General] anupampb:
Used my phone without root since I bought it a year ago... Time to get back to the world of rooting

Sony phones are complicated to root in comparison to Samsung & Nexus it seems
[Xperia Z3 Compact General] izajasz:
Hi guys. I need some advice from You. I ve decided to use this method to root my Xperia with LB and i flashed the 575 kernel than i ran the script , it said it completed succesfully but here the culprit starts. It says "rebooting to TWRP recovery" but than it reboots to the system. I tried to enter recovery manually using volume up down buttons but that doesnt work. During boot my phone LED doesnt flash at all (either green nor pink). Any advice ?

EDIT: I used the script 3 times and on the 3rd it isntalled and reboot to TWRP and i managed to install SUperSU :) Anyona knows of a list of safe to remove apps from Z3 Compact ?
[Xperia Z3 Compact General] anupampb:
You can remove the camera addon apps like background defocus, AR effects.... Also the Play movies, books, etc... Even video app, if you prefer MX player like I do... File Commander (the built in file manager, I use ES)
[Xperia Z3 Compact General] M1chiel:
Check this: http://xdaforums.com/showpost.php?p=66320694&postcount=5

It comes from a thread with a debloater script that is also fairly handy!
[Xperia Z3 Compact General] izajasz:
Thank You guys very much. Although the script seems tempting , first i would need to review the whole list as i would like to retain several sony stuff , not to remove everything.
[Xperia Z3 Compact General] darito30:
Please, I need recovery for 291, please, please, please
[Xperia Z3 Compact General] casouzaj:
You just have to flash the 575 kernel prior to running the tool, and the 291 kernel back, after having installed the SuperSU zip under TWRP.
[Xperia Z3 Compact General] darito30:
that's the problem, I could not do it
[Xperia Z3 Compact General] panzerox123:
[MENTION=4688377]russel5[/MENTION] Thank you so much for this ... I got recovery and root on locked bootloader ! I changed my passcode and forgot it , so i couldnt get into my device :p, so i figured, i could just unlock the bootloader . I unlocked my bootloader and then got recovery using this method! Just wanted to ask, now that i have unlocked bootloader, is this recovery permanant, i.e., installed on the recovery partition? I really dont want to lose it !:D
[Xperia Z3 Compact General] russel5:
[MENTION=6948461]panzerox123[/MENTION], why you unlock your bootloader? If you not save your DRM keys, you just lost it forever. If you forgot your pass, just flash firmware with wipes again and then get recovery with this method. And this recovery not permanent, it installed in system partition, then if you "broke" your system, you broke your recovery.
[Xperia Z3 Compact General] panzerox123:
It's ok ... I used DRM Fix kernel. Plus, I dont even use stock apps, I use SliMM 3.6 , which is completely debloated ! :D . And as for recovery, If i lose this recovery, i still have flashtool left as a last resort. It seems to work for now, since i used the recovery to flash EliteKernel V3....

It works fine right now. Camera quality is fine, music and video apps seem to work properly.

This is a great recovery until i get a permanent one
[Xperia Z3 Compact General] bshend:
Can I use this if my bootloader is not locked? I have the D5833 international version with firmware .291, all stock and ready to go if you say yes.
[Xperia Z3 Compact General] russel5:
[MENTION=3820842]bshend[/MENTION] if you already have unlocked bootloader, just flash custom boot.img with recovery and flash supersu, that's all.

you don't need this tool with unl. bootloader.
[Xperia Z3 Compact General] panzerox123:
Hi! You can use it if your bootloader is unlocked, but it is not permanent and any damage to system partition will result in you losing your recovery, so i do not recommend this . Instead download Advanced kernel for your device here http://xdaforums.com/z3-compact/development/kernel-advanced-stock-kernel-t3346328

Unzip the files in your fastboot and adb folder (if you dont have it, then download minimal adb and fastboot). Connect your Z3C in fastboot mode to your computer. Then, open a command prompt window in your adb/fastboot folder. There , type fastboot devices to make sure its working.

Type ' fastboot flash boot boot.img '. this should give you a working recovery TWRP. :victory:
[Xperia Z3 Compact General] NoblEdwin:
I don't understand a single thing about this thread. First of all... how am I supposed to get this "FlashTool" and how do I use it. Secondly, what is this "zip" you speak of and how do I download it. I apologize for my stupidity, but any feedback would be much appreciated.
[Xperia Z3 Compact General] casouzaj:
You can get Flashtool from www.flashtool.net/downloads.php. Install it in your PC, launch it, click on the lightning icon, select Flashmode and the ftf file you wish to flash and click on Flash. Turn your phone off and, when a connection request window comes up, press and hold the volume down button whist connecting the USB cable to it. If it asks you if an FSC file is to be used, answer NO.

About the zip to be flashed under TWRP, it's SuperSU's, comprising the root binary and manager application.
[Xperia Z3 Compact General] panzerox123:
I see you are new... Then i suggest you shouldnt make any modifications to your system. But I will still help you. :)

Flashtool is an application for sony devices that can be used for a variety of purposes like unlocking bootloader, flashing recoveries, firmware, kernels and more. It can also be used to unbrick a device if needed.

I think you should watch videos on how to install Flashtool for your specific operating system, it is a very useful program.
[Xperia Z3 Compact General] spookyneo:
My Z3c is at .291, so if I understand properly the procedure :

1. Get Flashtool and flash the .575 kernel in the first post

2. Run the script (install.bat) in the first post

3. Download SuperSU and install it from recovery (my phone will have automatically restarted in Recovery after the script ran)

4. Using Flashtool, flash the .291 kernel in the first post

From what I understand, I will not loose the DRM keys and no files what so ever. It will not impact my device but will give me root access. Then I can install Xposed and have fun. I'm quite happy with the Sony ROM, so I don't plan on getting a custom ROM. Unless somebody creates a port of Nougat eventually for us...which then I would have to unlock the bootloader and loose my DRM keys.

Am I getting this right ? Last time I've done this was with a Nexus S back in 2012/2013. So I just want a refresh and make sure that I don't do anything stupid :)

Thanks guys !

edit : What will happen with OTA updates ? Will my device still get newer versions from Sony ? Will I loose root if I ever install a new version ? I don't believe we will receive that much updates for the Z3c from now on since Sony is working on Nougat (which unfortunately doesn't work on our devices). But we might get security/bug fixes. Worth asking the question :)
[Xperia Z3 Compact General] panzerox123:
Your right!
[Xperia Z3 Compact General] spookyneo:
Thanks, I got everything working fine, now rooted and back to .291.

How to I boot to Recovery ? Do I have to use ADB to do this or there is a sequence to do with buttons ?
[Xperia Z3 Compact General] :
Wile on sony logo at boot the led should be green, in that moment press volume down. Led turns to pink at mobile boots to twrp.

Gesendet von meinem GT-P5210 mit Tapatalk
[Xperia Z3 Compact General] steviedhadi:
can anyone help, what is wrong with my device? i have 2 z3c, one succeed using this method, but the other one failed....
[Xperia Z3 Compact General] russel5:
[MENTION=4361829]steviedhadi[/MENTION] as i see in your screenshot, you do not have iovyroot in your folder and when you start this script he can't copy and run iovyroot.
[Xperia Z3 Compact General] panzerox123:
Try again... It never works on one try
[Xperia Z3 Compact General] fango_vk:
.. hm, I'm stuck with this one, no matter what I do, at first step (flash build .575) always error "proccessing of loader.sin finished with errors, flashing aborted" .. all drivers have been installed, device Z3c D5803 with build number .291 freshly factory reset, original sony usb cable, flashtool 0.9.22.3 and older 0.6.8.0 with same error .. also, when choose fastboot, it says "device not found" .. any suggestions?

looks like this:

ERROR - Processing of loader.sin finished with errors.

INFO - Ending flash session

ERROR -

ERROR - Error flashing. Aborted

INFO - Device connected in flash mode

thanks!

edit: finally I did it, after few pc restarts and kernel.zip from the .575 firmware should be selected, flashing finished with no errors, UPDATE-SuperSU-v2.46 installed from recovery .. and very important: I didn't have to flash back to .291, when phone restarts it asks for adb allow/deny and then I looked about phone - .291! .. superSU installed, flashtool says "root access granted"
[Xperia Z3 Compact General] panzerox123:
It says .291 but you have to flash .291 kernel. There will be incompatiblies
[Xperia Z3 Compact General] fango_vk:
.. did not notice any issues, even after all apps installed and settings back to like it was before .. is this for sure?

thanks!
[Xperia Z3 Compact General] casouzaj:
If you are in the 291 firmware, and don't flash the 291 kerne back,l in the end, an upgrade notification will be kept on your notifications bar. And, don't bother accepting it, because OTA updates will fail, since you now have root access.
[Xperia Z3 Compact General] fango_vk:
well, I flashed .291 kernel after all, with some warns from flashtool, but flashing finished ok .. just one thing, how to reboot in recovery mode? .. power+volume down not working

thanks!
[Xperia Z3 Compact General] casouzaj:
Pay attention to the reboot phases. Right after the initial Sony Xperia screen, the led will light up in green color, along with a vibration. At that moment, press the volume down button. The led will be turned to pink and TWRP will come up.
[Xperia Z3 Compact General] panzerox123:
Settings and apps will be fine, but the there will be kernel incompatibilities. Battery, performance and even security issues might be there
[Xperia Z3 Compact General] niknik76:
Do I follow the flash the kernel575 and then kernel291 with this version?:

Android version : 6.0.1 / kernel version : 3.4.0-perf-g43ea728 / Build number : 23.5.A.1.291
[Xperia Z3 Compact General] MissYotsuba:
I've done everything as stated but how do I flash SuperSu? I'm in safe mode but how do I install it? when I click on the zip folder it just opens it.
[Xperia Z3 Compact General] M1chiel:
Reboot your phone, when the green led turns on, push volume down. The led turns pink and your phone boots in TWRP. Choose Install and find the supersu zip on your sd card. Swipe to run it and reboot into system. Done!
[Xperia Z3 Compact General] MissYotsuba:
I must have done something wrong along the way because that's exactly what I'm doing. The phone restarts and I press down and it says "safe mode" in the bottom left corner. But I don't have any options to install anything.
[Xperia Z3 Compact General] titoshadow:
I'm having a similar issue.. Locked bootloader, gone into twrp with install.bat, all ok phone rooted, but can't actually get into recovery, either reboot app nor power + volume up/down :(
[Xperia Z3 Compact General] casouzaj:
If your phone doesn't enter TWRP right after running install.bat, or in another reboot, right after the first Sony Xperia screen, the green led doesn't light up along with a vibration, something went wrong. Run install.bat again.
[Xperia Z3 Compact General] MissYotsuba:
If I try to do it again, when I click the bat, I get the message "adb server version (32) doesn't match this client (36)".

No, I don't have genymotion installed that's causing conflicts. The only time I get that message is if I retry.

I don't get the message on the first try. When I first try it says my kernel/device is not supported.

Which is obviously not true as I'm running 575 on a D5803
[Xperia Z3 Compact General] casouzaj:
If you have Flashtool, Xperia Companion or other programs which make use of adb, kill them all, prior to running install.bat.
[Xperia Z3 Compact General] MissYotsuba:
Nope. I have nothing running like that.

I'm really having so much trouble with this phone. My old Z3c was easy to root. But the phone shop damaged it while repairing a loose screen so I forced them to buy me a new one. And this one is a nightmare. If I havn't done it over the weekend it's going on ebay so keep your eyes open for a cheap Z3c in orange and avoid it. lol
[Xperia Z3 Compact General] casouzaj:
Launch task manager > Process tab, and try to pinpoint the culprits. Then, end the related tasks!
[Xperia Z3 Compact General] MissYotsuba:
Thanks for the help guys... It finally took it... Took a few goes but it accepted it in the end.. Stubborn little phone. hahahaha
[Xperia Z3 Compact General] Tinup93:
22/018/2016 15:18:07 - INFO - Selected kernel (boot.img or kernel.sin): D:\kernel575\kernel.sin

22/018/2016 15:18:07 - INFO - Flashing selected kernel

22/018/2016 15:18:07 - INFO - sending 'boot' (11328 KB)...

22/018/2016 15:18:07 - INFO - OKAY [ 0.362s]

22/018/2016 15:18:07 - INFO - writing 'boot'...

22/018/2016 15:18:07 - INFO - FAILED (remote: Command not allowed)

22/018/2016 15:18:07 - INFO - finished. total time: 0.366s

22/018/2016 15:18:07 - INFO - FASTBOOT Output:

sending 'boot' (11328 KB)...

OKAY [ 0.362s]

writing 'boot'...

FAILED (remote: Command not allowed)

finished. total time: 0.366s

what should i do?
[Xperia Z3 Compact General] panzerox123:
Start install.bat as admin
[Xperia Z3 Compact General] Tinup93:
i`m actually still at the first step i`m trying to flash the kernel
[Xperia Z3 Compact General] casouzaj:
I guess your bootloader is locked and you're trying to flash a kernel in fastboot mode. You must do it in Flashmode, instead, using a ftf file. If the kernel you have is in sin format, use Flashtool to generate a ftf file out of it. Select Tools > Bundle > Create.
[Xperia Z3 Compact General] panzerox123:
Not required. Just rename kernel.zip to kernel.ftf
[Xperia Z3 Compact General] casouzaj:
If he downloaded the kernel from the OP, yes, he just had to rename its extension. However, from his post, he was trying to flash kernel.sin, which he extracted from somewhere, in fastboot mode. That's why I suggested him to use Flashtool turn it into ftf, and flash it in flashmode, instead.
[Xperia Z3 Compact General] fango_vk:
.. strange things happened after few days since kernel flash/root .. this is a second time that I'm unable to make a voice call, dialed number was ended/rejected in a second, but call receiver's phone keeps ringing and I dont see any call making activity on my z3c, if answer on receiver phone - just silence ... then only removing/insert sim card helps back to normal, could it be something related to kernel flash? - because z3c was freshly factory reseted and then just flashed/root .575-.291

any help would be appreciated!
[Xperia Z3 Compact General] chikinn2:
I'm getting a "device unsupported" error even though I'm on D5803 with stock 575. Any ideas? When the script terminates the device reboots normally instead of into recovery.

Image is here, I apologize for the lack of a proper link but I'm not allowed as a new user: i.imgur.com/NoNaORQ.png
[Xperia Z3 Compact General] M1chiel:
Sometimes you have to try it few times before it works.
[Xperia Z3 Compact General] chikinn2:
Wow, I can't believe it... I had tried it 2 or 3 times already with the same result. And then based on your quick and helpful response, I tried it one more time (nothing different, just as before) and it worked!

You're the best, cheers :)