yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] polykoma:
thanks a lot for your help!

yes BL is unlocked.

the story:

i received my new phone.

made all the steps down to 46 (actually im not sure why to do step43-46- flashing a non rooted FW without system files)

but i did it anyway.

then i unlocked butloader via sony homepage. everything worked as usual (since i unlocked my xperia Z too...)

*#*#7378423#*#* tells me its unlocked.

as soon as i push the boot.img now via fastboot (flashtool) (tried for cm 12.1 and carbonROM)

my phone is stuck when sony logo appears. it just showes the logo.

nothing more happenes. no chance to get into a recovery. nothing.

till i turn it off via power+vol up. tried to reboot. waited 30 minutes. nothing. logo time :(

happened 2 times now after pushing the boot.img

then i need to fully flash a stock firmware again to get out of the softbrick.

i will get my phone again to step 46.

then ill post or message you my exact details of my phone.

i can't see whats going wrong. im sure u could give me the right hint.

tons of thanks for your time/help!

will give you my details soon!
[Xperia Z3 Compact General] istux:
That's because you flashed the last system via recovery, then you need to be sure to flash the rest of the last firmware (kernel, baseband, etc)

Ok, clean the phone by flashing a stock firmware again and SOON AFTER push the CM kernel.

You do NOT need to root the phone.

Don't do it.

You don't need any of the 46 steps, because your bootloader is unlocked!!!!!!

The problem here is that you haven't a clear idea about what's an unlocked bootloader and how it works ;)
[Xperia Z3 Compact General] polykoma:
oh hey! appreciate your reply !

what a great help so far :)

oh well, thats nice to hear :)

at least ive done all 46 steps now 3 times. but probably the usefull part was that i backed up TA/DRM before unlocking my BL cause of this description.

So my current state of the phone is like in step 46.

now:

-Flash the latest unbranded Stock FW LP5.0.2 - 23.1.A.1.28 - Unbranded - Germany (1289-4696) (withouth excluding "System" stuff as description says)

-fastboot boot.img (from CM12.1 like 17.07.15 build or newer)

-enter recovery (which recovery will be there then ? which keys to press?)

-Flash customrom.zip via recovery

-install gapps

-wipe everything

can you kindly confirm ? :)

thanks again for your Kind help!
[Xperia Z3 Compact General] istux:
Right, all you needed was from step 1 to 26 ...and only the first time.

This is a problem because I guess the NUT's dualrecovery gives issues with other kernels.

You have to clean everything.

Right. Flash any stock rom, it doesn't matter which version or which country it comes from.

Make a normal clean installation, without touching any checkbox.

I confirm. :good:

The recovery is the new one from Cyanogen team. You can access by pushing vol+ or vol-
[Xperia Z3 Compact General] djvita:
Very nice guide I'll use it on my (currently shipping to me) z3c 5803 to get root. One question,

Is the downgrade (to root) necessary to backup the DRM keys? All I want is a prerooted A.1.28 image with r/w system perms. and back the keys just in case.
[Xperia Z3 Compact General] istux:
The downgrade is mandatory, in order to let the Giefroot work properly :)
[Xperia Z3 Compact General] Mati24:
Hello, I come back with my problems of network. My phone lost network regularly. I full wipe my phone 3-4 times and flash with FR stock firmware and with US firmware, but I have the same problem. Do you think it's a hardware problem ?
[Xperia Z3 Compact General] dialiv:
For Mega use Chrome ;)
[Xperia Z3 Compact General] pedro5148:
I downgrade to the verda Australian .93 and not worked, appeared 'Device not rooted'

What is the best rom for the D5833 ??
[Xperia Z3 Compact General] mar10777:
root

A lot of thanks for this great and very detailed instruction. I did it just today, it worked perfectly, not any problem. Thankful greetings from Berlin
[Xperia Z3 Compact General] charliebigpot:
I think where it says "skip directly to step 33" it should also say that you need to download the latest fw at step 28 since you'll need it at step 43, right? Else it might happen that like me, you jump to point 33 and then at step 43 you're like "non-pre-rooted fw"?

It's not the end of the world, but now while I'm waiting to download that pre-rooted fw I don't have any wifi.

Can I start from step 43 or do I have to repeat from step 37?
[Xperia Z3 Compact General] skaarax:
First of all thanks to bilboa1 awesome job :laugh:.

I got my D5803, i when to sony and they unlock my phone network or sim so i can use it with any carrier, after that I notice that "bootloader unlock allowed" change to "Yes" (so BL its not unlock right) and my fw version is now 23.0.1.A.5.77 , so if i downgrade the fw i will lost the network unlock???? or the network unlock will remain? is there any difference if i use the one bilboa1 publish or i use the original one from my carrier or is just the bloatware?

Cheers from Mexico
[Xperia Z3 Compact General] dialiv:
Network unlock will remain.
[Xperia Z3 Compact General] sopaj96:
Hellp a new Sony user

Hello, I just got my Xperia Z3 Compact, never had any Sony device what so ever...I come from Samsung, Htc and China Devices, they have all been very easy to unlock, except the HTC One maybe that took some time with s-off and stuff...anyhows....All these devices have their own stuff, samsung with the Knox now, counter before that...Htc One with its bootloader and S-OFF and S-ON, Tampered device and so one...

Now what do I need to know about the Z3 Compact?

I have heard some stuff about DRM keys and stuff...but nothing in depth...

If someone can briefly explain to me, what can be lost, warranty, availability to return to stock, return to warranty and so on...

And if bootloader needs to be unlocked

Why arent there many ROMS for this device also...thought there would be as much as samung devices :/

What are kernel mods?

If someone could help me with this, very briefly because I will learn quickly, that would mean veryyy much for me as a new xperia user :)

Thanks in advanced to all you good people here at this community! :)
[Xperia Z3 Compact General] demoniacs:
Doing the steps is the point of not losing the drm keys by avoiding unlocking the bootloader, keeping your warranty and ability to go back to stock.

Bootloader should not be unlocked. See above.

The rooting with boot loader locked has kept the community from bringing mods to it but soon should pick up since it has been accomplished.
[Xperia Z3 Compact General] jasestu:
Sorry guys, I don't get it, why do we finish by flashing a rooted image and then part of a non-rooted image?

Can't I just straight up flash something like http://xdaforums.com/z3-compact/development/stock-firmware-23-0-1-5-77-generic-t3012378 at that stage?
[Xperia Z3 Compact General] KevinN206:
For these two steps 28 and 43, can I flash with fw 23.0.A.2.105 instead of 23.0.1.A.5.77? The fw 23.0.1.A.5.77 gives me terrible battery life, and I have been thinking about downgrading back to 105, which had very good battery life.

28. Get latest fw (hxxps://mega.co.nz/#!AUEg1ayC!UsKs6y...g8zMdkBCFi-X9Q) (currently this is fw 23.0.1.A.5.77)

43. Open Flashtool and select the non-pre-rooted fw (this is 23.0.1.A.5.77), but DESELECT system: in "EXCLUDE" make sure you check the checkbox next to "SYSTEM", flash it.
[Xperia Z3 Compact General] charliebigpot:
After flashing the pre-rooted image for fw 23.0.1.A.5.77 (fetched between step 26 and 27) I don't have wi-fi.

I've tried the procedure twice now with the same sad result - any idea what I'm missing?
[Xperia Z3 Compact General] jasestu:
I'm on a 5833 and had no wi-fi after following the procedure. I then flashed a 5833 ROM from here http://xdaforums.com/z3-compact/development/stock-firmware-23-0-1-5-77-generic-t3012378 and all is well. YMMV. (flashed via recovery, not one of the flashtool ones)
[Xperia Z3 Compact General] charliebigpot:
I don't want to unlock the bootloader yet and there is no (confirmed working) custom rom for LB for the 5803. I might as well just stop the process after rooting on 2.93. At least I would have root.

Nobody else that didn't have wi-fi after flashing pre-rooted 5.77?
[Xperia Z3 Compact General] jasestu:
Read the link - you don't have to be unlocked to use it. I wasn't.
[Xperia Z3 Compact General] charliebigpot:
Ah, so it's not a ROM that you flashed (as you wrote) but it's the Firmware ;)

That changes everything - thanks, I'll give it a try!
[Xperia Z3 Compact General] MarcraM90:
At step 37 I always get the following error:

mount -oremount,rw /system
insmod: init_module '/system/lib/modules/wp_mod.ko' failed (Exec format error)
mount: Operation not permitted
255|root@D5803:/ #
[Xperia Z3 Compact General] limduldk:
There is a small error in that line, it should be:

mount -o remount,rw /system
[Xperia Z3 Compact General] sravanz:
Thanks a lot man.. Your guide really helped a lot..

I have a problem now.. if i uninstall any app using tibu.. it comes back after reboot.. i did flash RICDefeat.zip but issue still exists.. any help would be appreciated.

Thanks
[Xperia Z3 Compact General] snwman:
Guys having trouble downgrading or lets say getting the flash tool to work. Redone everything twice, three times and four times. But it's saying that i don't have the proper drivers installed but yet i have installed sonys pc companion twice already and it picks up the phone fine.

Now i tried installing the drivers from the flashtool folder but i get an error on "Sony Net, Google inc and Sony Ericsson Mobile Co."

Im using Win8.1 and using the flash.exe64bit but still get nothing any help
[Xperia Z3 Compact General] clouds5:
I had a similar problem back when I used flashtool to downgrade. Problem for me was: unsigned driver installation is disabled by default in Windows 8.1 and even though I tried to install the driver it was blocked by Windows itself. You have to reboot to save mode and enable unsigned driver support manually. Google it for exact instructions. That's what fixed it for me.
[Xperia Z3 Compact General] Lazer72:
Are you sure you're not just in a bad area?

Which country are you in? Flash the stock that's specific to yours.
[Xperia Z3 Compact General] Mati24:
I'm in France, I have already flash the french firmware 3 times, and I have the problem each times
[Xperia Z3 Compact General] Lazer72:
With everything included? (no exclusions)?
[Xperia Z3 Compact General] Mati24:
Yes, and full wipe, I try different versions
[Xperia Z3 Compact General] Lazer72:
Probably hardware issue. Take it back to the shop.
[Xperia Z3 Compact General] Mati24:
ok thank you
[Xperia Z3 Compact General] istux:
Have you tried with other sim cards working on the same network and on another network?
[Xperia Z3 Compact General] Mati24:
I try an other SIM Card and the same problem
[Xperia Z3 Compact General] Lazer72:
What are your radio settings?

GSM/HSPA/HSPA+/LTE

Your network mode in settings - more - mobile networks.
[Xperia Z3 Compact General] Mati24:
Lte / wcdma / gsm
[Xperia Z3 Compact General] MGuDiM:
I lost root access do I have to go through the whole process again?
[Xperia Z3 Compact General] Proday:
Yes
[Xperia Z3 Compact General] Lazer72:
Just take it back then.

Make sure you're on stock firmware with DRM keys intact when you do.
[Xperia Z3 Compact General] Mati24:
I am on stock firmware and my DRM are intact, I don't understand what you say
[Xperia Z3 Compact General] polykoma:
try update superuser first...
[Xperia Z3 Compact General] :
How to root 5.1.1? Install 5.0.2, rooting and install 5.1.1.zip with dual recovery and supersu?
[Xperia Z3 Compact General] chris5s:
What ROM version are you coming from?

I had rooted 5.0.2 installed, made a flashable zip with PRFCreator of the 5.1.1 .ftf including SuperSu and dual recovery zip.

Flashed this over 5.0.2, didn't wipe anything except caches after flashing the pre-rooted zip, rebooted.

I had to go back to recovery to wipe the caches after the first boot because I was getting FC's on google play services, but all apps and data were left intact....so far, so good :good:
[Xperia Z3 Compact General] :
I'm with the installed 5.1.1. Will install the 5.0.2 and perform the procedure.

Thanks!
[Xperia Z3 Compact General] chris5s:
No problem :good:

If you've already downloaded the large update file, then you may as well spend the extra 10-15 minutes creating the flashable zip for the time it takes. And it gets your phone rooted :cool:

Kudos to the guys who have developed those awesome tools and zips, a great resource for us.

Peace.
[Xperia Z3 Compact General] :
FC after first boot. The recovery no works. :(

I turn on the device, the system updates the apps but after it restarts and remains in this loop.
[Xperia Z3 Compact General] chris5s:
Sorry. The same procedure worked on my phone.

So your phone is in a bootloop? With no recovery?

I think there is something in NUT's thread in the Android dev section about a loop with no recovery, and a way to get out of this by putting a file onto the sdcard.

I think he also recommends flashing recovery again after flashing a rom, but this isn't something I've done tbh.

Peace.

---------- Post added at 12:29 AM ---------- Previous post was at 12:27 AM ----------

My method isn't very clean, and may cause these problems, I guess. The best way is probably to do a full wipe, having backed up apps and data using TB or similar app.
[Xperia Z3 Compact General] :
It made no difference. I flash the recovery again after flashing rom, but remains in bootloop.
[Xperia Z3 Compact General] vitamin.ben:
I had the same problem.

Maybe you did what I did, just pre-rooted the update and flashed from recovery. This got me into the same loop without recovery.

To access the recovery again I had to perform the last steps in the tutorial in this thread (43 / 44), flashing parts of the original not-pre-rooted update. I could not still get into android, but this gave me access to the recovery.

From there I recovered a nandroid I did prior to update, and re-did steps 40 to 45, exactly as described but using the updated version (not booting the phone after flashing the pre-root update).

This got me into the 5.1 without any problem (except some fcs on gmail solved by clearing its data).

Ps: don't forget to un-check also 'wipe data' in flashtools if you don't want to loose your stuff

I'm not really sure why these last steps of flashing parts of the not-rooted image are neccessary and what it does, but it seems sortta essential to get stuff running smoothly :eek:
[Xperia Z3 Compact General] :
Now it's works! :victory::victory::victory::highfive:
[Xperia Z3 Compact General] Lazer72:
You need the last parts because the PRF only includes the updated System.

The rest of it (Baseband etc.)is still on the previous version. So you need to flash the updated versions of those parts through FlashTool.
[Xperia Z3 Compact General] RaXelliX:
If anyone is intrested i made a flashable zip with prfc:

​

23.4.A.0.546 - Unbranded - BALTIC (1288-5413)

SuperSU 2.46

DualRecovery 2.8.21

Download: https://mega.co.nz/#!xYoSgICY!kS_t2LPG7712Xdp1gMGGWiY75FIUTZS6kd5Gr4an43c

Flash in recovery as usual. And no - no prerooted FTF files!
​
[Xperia Z3 Compact General] Tabs78:
hi, sorry for my english.

i wish to upgrade to 5.1.1 stock but i have to save some app with titanium backup.

can i do it:

- install 5.1.1

-root

-restore app with titanium

-unroot?

second question:

if i root and unroot i will lost drm?

i want to use stock os but i have many app with important setting i don't want lost
[Xperia Z3 Compact General] djvita:
updated to nordic flashable zip and i backed up my keys!

https://mega.nz/#!G5ZzDRwb!pBxyvfo-q3Nvdqi718xeQvVKRHyh9il7bGov-Ce22Uo

however RIC defeat did not work neither in philz or twrp status 7 error.

---------- Post added at 10:37 AM ---------- Previous post was at 10:36 AM ----------

1. YES you can restore, app, app + data depends on the app, use app ok, system app not recommended (ie. settings)

2. no. back up just in case. drm is lost only when unlocking a bootloader.
[Xperia Z3 Compact General] GFO:
I have the LP firmware 5.0.2 - 23.1.A.0.690 (Latin America 1290-6916) from factory and my question is: Can I do downgrade? It affects me in something if I downgrade to KK from LP?

sorry, I'm not good at writing in English. I hope it is understood
[Xperia Z3 Compact General] istux:
Yes you can.

You will lose all your data, so make a backup before downgrading.

Your english is clear ;)
[Xperia Z3 Compact General] GFO:
Well, in that case I'll proced to root my device soon. I just hope I can use some Mod to improve the camera because the truth that left me very disappointed in everything. Even the Motorola RAZR HD drivers had much better photo processing
[Xperia Z3 Compact General] istux:
This camera works better in manual mode ;)
[Xperia Z3 Compact General] Gravol:
This is a great tutorial, much more to go through since I had my note 3! Nevertheless thank you I appreciate the great work and I'll look forward to rooting my phone this weekend. Not sure if I'll swap Roms I actually don't mind the Sony UI but I would still like to install some other tweaks :good:
[Xperia Z3 Compact General] GFO:
Yes, but only a bit, but for a flagship like Z3c should be glorious in all modes. Besides that if the marketing team around pointed much to have a good camera when it is not so. Ques truth I am very disappointed.
[Xperia Z3 Compact General] Homu:
I did the entire procedure while updating to 5.0.2. When I was done I was stuck in a bootloop because I flashed the 4.4 firmware via Flashtool (step 43). After that I followed the entire procedure from step 1 again and stopped at step 40. Are you saying I still got older versions of those other things like baseband etc.? I've been using my phone like that for a few months now and everything has been fine but I'm wondering how I should proceed about flashing a prerooted 5.1.1.
[Xperia Z3 Compact General] Lazer72:
Just create a Prerooted firmware as per instructions in OP (except you'll be using the latest versions of everything) and then flash that.

Then flash the rest of the firmware (stock) through FlashTool, exclude System cos then you'll lose root.

Everything you need to know is actually in OP.
[Xperia Z3 Compact General] jdoom98:
Worked, thanks!

The step by step guide is awesome, let me share my experiences real quick: The root exploit worked fine with the .93 firmware. The backup-TA just doesn't work on my computer for some reason, but I got it to work on another computer. I made the PRF for myself, it was ok, but the recovery installation returned with some errors, however it worked fine on the phone. Finally I have the latest 5.1.1 firmware with root access on my phone so thank you very much!:victory::victory::good:
[Xperia Z3 Compact General] samiam21:
I don't know where I went wrong. Everything seems to work. I have root now and all but for some reason I can't get back to recovery no more. I went through all the instructions and I was in twrp once but I can't get back. Whenever I try to get to recovery, my xz3 just boots up normal...

Gesendet von meinem D5803 mit Tapatalk
[Xperia Z3 Compact General] Lazer72:
Are you sure you didn't deviate from the instructions at all? Did you have any doubts about what to do during the procedure? It should work. Did you include dual recovery in your PRF?
[Xperia Z3 Compact General] samiam21:
At step 39 I was in recovery. So it worked one time. After that I must have done something that ruined it. At least that's how it seems. But I can not figure out what it was. At step 26 I choose fw 23.1.A.0.690. Maybe I should just try it again...

OK. I tried again... It works now. I created a flashable zip with 5.1.1. this time.

I think step 26 is where I messed up....
[Xperia Z3 Compact General] vesoop:
how would i update to 5.1.1? which steps do i need to repeat?
[Xperia Z3 Compact General] RaXelliX:
Start from Step 27 and make a new prerooted firmware zip that you can flash in recovery.
[Xperia Z3 Compact General] KahlanHaskeer:
Worked like a charm to flash & root latest lollipop firmware. Many thanks!
[Xperia Z3 Compact General] punshkin:
Does this also work with the 5.1.1 firmwares?

I'm especially wondering about creating a pre rooted firmware and if the recovery works with 5.1.1
[Xperia Z3 Compact General] KoscheiTheDeathless:
Literally 2 posts above yours. You had one job...
[Xperia Z3 Compact General] punshkin:
oops, still had the tab open from my last research and the comment wasn't there yet :angel:
[Xperia Z3 Compact General] kjplasma:
Assistance required pls..stuck at the sony logo

Was on a rooted KK rom, was trying to upgrade to L.

Made a backup in recovery to the sd card.

Apps with TB too.

Following on from step 27..

Created a Pre rooted fw with a ftf from this link: http://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706 (The Australia one)

Flashed the above created file in recovery.

then flashed the ftf file that i downloaded above again through flash tool while excluding 'SYSTEM'.

Phone now only boots to the Sony logo and can't gent into recovery.

I've tried flashing the above downloaded AUS ftf again .. no luck..

Any advice?
[Xperia Z3 Compact General] Proglin:
What were the contents you put it from non rooted tft of 5.1.1?

I´ve flashed and got infinit loop. I will try to flash with non rooted 5.1.1 excluding SYSTEM, TA.
[Xperia Z3 Compact General] kjplasma:
nm
[Xperia Z3 Compact General] Lazer72:
Are you sure you added recovery and supersu in your prf?
[Xperia Z3 Compact General] kjplasma:
Yes, I did.

Anyways, just had to flash the full non rooted ftf and now im on 5.1 without root or recovery. Atleast it boots.

What would be my next steps to obtain root and recovery?

Will I have to start again from step 1?
[Xperia Z3 Compact General] mnguyen127:
Yeah, I had that happen to me. I had to start back by flashing back to 4.4 and starting from scratch. Took awhile, but at least now I have root, xposed, 5.1.1, etc.
[Xperia Z3 Compact General] kjplasma:
phew started from scratch..all good now..thanks everyone.

Also just curious as to why we need to flash the non rooted fw again excluding system at the end?
[Xperia Z3 Compact General] Lazer72:
This has been explained many times before, I'll do it again.

A firmware is made up of different parts such as the System, Baseband, Label etc. The PRFCreator only includes the System partition (by default).

So when you flashed that zip you only have the updated System, the rest is still on the old version. To get the rest of the update you need to flash them through FlashTool. You exclude System for obvious reasons.

Tada!
[Xperia Z3 Compact General] kjplasma:
Forgive my ignorance..so if i tick all the tick boxes like kernel,modem,ltalabel etc in PRF Creator would that be good enough?

Can I then skip the last step of flashing the non rooted fw?
[Xperia Z3 Compact General] RaXelliX:
Yep if you include everything with PRFC you do not need to flash stock .546 ftf minus system on top of it. I certainly didnt and i had everything included when i created the zip with PRFC. The only thing that didnt work was v67 (at the time - now v68) xposed by romracer so i had to flash that separately trough recovery despite the fact that i had it included in the zip. I guess it would not install without atleast one boot being done.
[Xperia Z3 Compact General] jfm91:
How do I get rooted stock 5.1.1 whitout unlocking my bootloader?

Currently running rooted stock 5.0.2 (23.1.A.0.690)
[Xperia Z3 Compact General] RaXelliX:
Assuming you also have recovery now along with root - create preroorted zip with prfc and flash in recovery. Only need to wipe cache & dalvik.
[Xperia Z3 Compact General] jfm91:
So no need to wipe system? :)
[Xperia Z3 Compact General] jfm91:
Installed 5.1.1. Root seems to work. But Xposed wont install from recovery. Any ideas?

Edit: ops.. Sorry for dobbel-posting

Edit 2: Works now :)