yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] darklordtom:
Know-how

Hi,

thanks to bilboa1 for the great guide. I was able to root my Z3C and install latest LP 5.0.2 with CE1 customization. I've encountered some problems, which I want to share + solutions:

2. Downgrade fw to 23.0.A.2.93 (Device D5803) or anything prior to 23.0.1.A.5.77 (december fw)

I've encountered error in flashtool saying "Processing of loader.sin finished with errors." - This was probably due to corruption in the ftf - I've redownloaded the file and tried again - worked this time.

20. Run install.bat from the rooting tool (allow USB debugging when asked on the phone every time, also allow root prompt) and follow instructions from the tool

The rooting tool couldn't see the device - stuck on "Waiting for device". Solution is to switch USB connection mode to "Mass storage mode (MSC)" via Settings->Xperia Connectivity->USB Connectivity. After this USB debugging prompt appeared and root script was executed correctly.

36. Unfortunately the script is a bit buggy here, so first go in the "files" directory then go to File menu of the windows explorer and select "open command prompt..."

For more clarity this just means to navigate in Windows explorer into lockeddualrecovery/files folder and write cmd into address field. Hit ENTER and command prompt appears. Or conventional way - start "cmd" via WIN+R for example and change directory with cd directory-of-lockddualrecoveryinstaller/files and run adb commands described.

39. You should be in recovery automatically now. (if not, reboot and when the LED change colors push volume UP repeatedly)

I don't know why, but this took me to TWRP recovery, and I couldn't locate the Power menu. At this stage I've chosen to restart the device and push volume up repeatedly to go back to the recovery - this time it was PhilZ recovery with Power menu as expected.

43. Open Flashtool and select the non-pre-rooted fw (this is 23.1.A.0.690), but DESELECT system: in "EXCLUDE" make sure you check the checkbox next to "SYSTEM", flash it.

Flashing stuck at userdata.sin for more than 40 minutes, so I had to disconnect the cable. I've redownloaded the ftf thinking it's data corruption, but when I've compared newly downloaded ftf with the old one - they were identical. I've tried the flashing again and it worked this time.
[Xperia Z3 Compact General] pietro18m:
Hi guys, i need to return stock cause i need to go in warranty.

How can i delete the modified recovery and the root? Now i have a prerooted version of lollipop. I think that i will flash a stock fw and it's all ok, right?

And for the drm keys? I have the TA backup. What i would to do?
[Xperia Z3 Compact General] pAblosik:
@up

Just install a original sony stock Rom from sony via flashtool

Wysłane z mojego D5803 przy użyciu Tapatalka
[Xperia Z3 Compact General] mmm286:
Hi. I must unroot the phone. I have the .77 version. What steps must I do to unroot?

Many thanks
[Xperia Z3 Compact General] skinniezinho:
[MENTION=2851630]bilboa1[/MENTION] first of all thanks for this great tutorial.

Followed step by step and zero problems.

I have a doubt, coming from an HTC M7, when updates came, sometimes (if needed or if we want) we should flash firmware updates apart from the rom (using adb).

In sony devices I have been told that is not needed, but still not much convinced. Isn't the last part of the tutorial (where you flash the tft without system) kinda a "procedure" to flash firmware? Or it is all in "rom"?

Right now I am on .77 rom, If I flash a .28 LL rom, should I repeat this last step using a .28 tft?

Once again thanks
[Xperia Z3 Compact General] Hyperion777:
thanks a lot!
[Xperia Z3 Compact General] IceColdz:
Does it work on Z3 Compact D5833?

Hey I am new to the rooting community and I would like to know if this method works on the Z3 Compact D5833 (bought in Brazil) with latest Lollipop installed. If yes, do I have to downgrade?
[Xperia Z3 Compact General] difto:
Yes and yes
[Xperia Z3 Compact General] chris5s:
Blimey, don't quote the whole OP!!
[Xperia Z3 Compact General] troy28790:
hello there,

Im using z3 compact d5833. I have some questions:

1. If i root my device. Can i update my device via OTA? Dose it lose DRM key on xperia device?

2. If i dont want to root, can i unroot. Does it harm anything on my device?

thanks for answer
[Xperia Z3 Compact General] coraxe:
Well Hell, not the first phone I've rooted but it's bootlooping on the Sony screen. I'm able to boot into recovery and re-install the pre-rooted rom but no go. Ideas? Can't even get it to connect so I can use the flashtool.
[Xperia Z3 Compact General] Lybserv:
system r/w FIX

Hey!

Thankyou, I'm sitting here for several hours now, trying to get /system mounted r/w.

I couldnt flash RICDefeat.zip in recovery, too. Now i tried your "manual" way.. works like a charm!

BUT care: I had a superSU notification (about 10-20 minutes after installation), that there is an updated binary available. AFTER updating, the manual way (see in quote) worked:

mount | grep system
/dev/block/platform/msm_sdcc.1/by-name/system [B]/system ext4 rw[/B],seclabel,relatime,
discard,data=ordered 0 0

everything is working (Titanium Backup, Root Uninstaller, even ES File Explorer (root) - sd card (write)access is also possible - even after rebooting the device.

Thanks man, you saved me.
[Xperia Z3 Compact General] sanogueralorenzo:
So the RICDefead.zip flashing isn't working?

I will try to follow this tutorial since I want stuff like the auto mod 20mp camera, the only thing is that I'm a bit scared of loosing the DRM keys while doing the first step: downgrading firmware.

By the way, which guide should I look to make a backup with everything stock before I start doing this? In case I need to send to repair center.

Thank you!
[Xperia Z3 Compact General] Lybserv:
You can always flash your phone with PC companion - your phone is 100% stock then.

You just lose your DRM keys, when you unlock the bootloader! Downgrading is absolutely no problem.

RICDefead is working for some people, on the otherside, many have problems.

I got "Error executing updater binary in zip '/external_sd/RICDefeat.zip", while trying to flash it via recovery.

When doing it manually, there was the following output:

mount: Permission denied

Stock mount does not exist. Creating dir and link

mkdir failed for /system/bin/stock, Read-only file system

Unable to open /system/bin/stock: No such file or directory

ln: /system/bin/stock/mount: No such file or directory

rm: /system/bin/mount: Read-only file system

cp: /system/bin/mount: Read-only file system

Unable to chmod /system/bin/mount: Read-only file system

cp: /system/lib/modules/wp_mod.ko: Read-only file system

Unable to chmod /system/lib/modules/wp_mod.ko: Read-only file system

Installing of mount.sh finished

AFTER the binary update from SuperSU, i did it manually (see two posts above) - no more "permission denied" while trying to mount system as r/w.

Sorry for my bad english.. ;) I hope i could help..
[Xperia Z3 Compact General] House3272:
After step 40, why do we need to do the next tasks?

It seems to erase the internal user partition?
[Xperia Z3 Compact General] shams1924:
Urgent Help needed

Hi guys. hope everyone is good.

if someone can help me

i would be ever so grateful and indebted to you

i have a few issues now after sucessfully rooted.

after installing pre rooted .77 rom, i have the following issues:

1. wifi stopped working all together, in the systems menu, when you on wifi, it goes a shaded blue colour and remains in this state.

2. the phone doesnt see an sd card insterted, i tried rebooting and also removed the sd card and remounted it. no luck.

3. im also having the same issues with the RICdefeat zip. i tried flashing it via recovery, no luck, i did the windows install.bat method, no luck.

the manual way to open a cmd confuses me. where and how do you open a cmd prompt in the giefroot folder?

lastly

4. it has suggested to me todo a dirty flash from windows(i flashed .77 in recovery) but i have a .zip file. inside it, it has no boot.img it has a very large file with the extentsion .ext4 confused.

this is the zip file >>>23.0.1.A.5.77 pre-rooted,dualrecovery for D5803 Z3C

inside it has the following files and folders

>>>META-INF

>>>utils

>>>dualrecovery.zip

>>>superSU.zip

>>>system.ext4 (size is 2,609,152 KB)

thanks in advance for any help
[Xperia Z3 Compact General] Arturiuz!:
1. you'll still be notified if any updates are available.DRM keys are only lost by the time you unlock your device's bootloader.

2. if you have rooted your phone & you'd like to revert back or unroot,just go to SuperSU's settings & you'll find how & totally safe for your device. cheers!
[Xperia Z3 Compact General] dark.blue:
hello all...

im new with sony. after i read the instructions, never knew b4 that sony is quite difficult to "custom". [previously im using motorola]

anyway, is it really not recomended to using KingRoot?

2nd, is there any preroot L flash file that for D5833? [on 1st page link, the L file is for D5803 right?]

i live in asia, indonesia. im worried that if i use the D5803 file, certain radio [lte] problem will occure.
[Xperia Z3 Compact General] Lybserv:
Hey everyone, just a short question:

Do i lose root, if I do a factory reset via recovery?

Got battery drain issues (about 1-2% per hour in standby) - with active Greenify/Amplify :( Device is nearly fulltime in deepsleep, but the battery keeps draining.

I've heard, a factory reset can help.

Thanks
[Xperia Z3 Compact General] istux:
1) Generally not recommended. Go HERE and read the whole discussion, then make your choice.

2) Take a look within the development section of the forum, you'll find something for d5833 too ;)

Factory reset erases the data partition only. Root is into the system partition. So the answer is: you won't lose root if you reset your phone ;)
[Xperia Z3 Compact General] dark.blue:
ummm its zip file right? flash via recovery?

doesnt it need custom recovery to flash it?

sorry im really new with sony. i mean, is it related with dualrecovery right? or else??

lets make it with simple question umm...

what should i do [how] to able to use/flash this D5833 file....?

my z3c is still lollipop virgin.
[Xperia Z3 Compact General] istux:
Yes, they're all zip files! And you need to be rooted before flashing them via recovery.

You have to:

1) root your phone

2) make a backup of TA partition (in order to preserve your DRM keys if you unlock your bootloader in the future)

3) install dual recovery

then you're free to do any kind of mod ;)
[Xperia Z3 Compact General] InvisibleKnight:
To update from 23.1.A.0.690 rooted to 23.1.A.1.28 rooted (WITHOUT LOOSING APPS/FILES) do I just create a flashable.zip with PRFCreator and flash it via DualRecovery from the device?

Or do I have to repeat the following steps after flashing the .zip?
[Xperia Z3 Compact General] istux:
Just make your own zip through PFRCreator.

Download the last dualrecovery from HERE (the flashable one, NOT the installer).

Move both file to internal memory.

Go into recovery and install the pfrc file you made before and then the last dualrecovery.

Just wipe cache and dalvik-cache, NOT data!

Done..
[Xperia Z3 Compact General] dark.blue:
to do root, i must downgrade right?

i kind of did all the instruction.

but... instead using the suggested file Lollipop - fw 23.1.A.0.690 (Android 5.0 March 2015)

im using this file, [23.2.A.1.62] from link.

its not allowed right? because now, im getting bootloop...:crying:

im using "that" file in 1st place is because i though that file is able to replace the suggested file, and because that file is for D5833, while the sugested is for D5803....

so... any good suggestion for me?:D:D:D
[Xperia Z3 Compact General] istux:
You get bootloop because of wrong kernel

1) download stock firmware 23.2.A.1.62 for d5833 from HERE

2) open flashtool, select the stock firmware and

check "system" within the EXCLUDE box

and start flashing

now it should work ;)
[Xperia Z3 Compact General] dark.blue:
umm... no need to start over?

im actually back to start n currently stay on step. 22...

so im now on KK stock D5833_23.0.A.2.93_SG_generic, rooted, and has DualRecovery....

what should i do next to get to Debloated 23.2.A.1.62 works.. ??? :confused:

----edited----

ok. i tried all once again but now it failed. the led is red.

what ive done are:

1. flash D5833_23.0.A.2.93_SG_generic

2. get rooted [skip the bakcup TA because already has it]

3. put zip file of D5833 23.2.A.1.62 from this into internal strorage

4. reboot into recovery [twrp] and flash the zip file and then turn phone off [I did turn OFF, not reboot]

5. then i flash with flashtool the stock firmware you sugested, D5833_23.2.A.1.62 R8C_CUSTOMIZED HK from here, with of course i chech system in the exclude box.

6. after finished, i reboot, theeen.... i got the red led.

what did i do wrong?
[Xperia Z3 Compact General] istux:
You did everything OK :good:

Try this one: http://xdaforums.com/z3-compact/development/d5803-23-2-1-62-slim-t3127115

and report ;)

I guess serajr's zip is only a piece of system that must be applied on a Lollipop system and not an entire rom.

If the rom I gave you above works, then you can use also the serajr's one...

Next time, if you see "rom" then it is a complete firmware (about 1.5 GB)

If you don't see "rom" then it is only a modification to the system (about 500 MB)

Anyway, the best thing is to learn to make your own zip through PFRCreator. It's easier :)
[Xperia Z3 Compact General] dark.blue:
ah. thank you for the enlightenment about the proper size of a ROM.

about the slim ROM u suggested, its for D5803. is it ok if i flash it via recovery? [mine is D5833]

2nd, currently on KK stock rom [rooted and dualrecovery], is ok just recovery flash jump to lolipop?
[Xperia Z3 Compact General] istux:
1) It's ok, but at the end remember to flash 23.2.A.1.62 excluding the system, in order to flash kernel & radio for d5833

2) It should work
[Xperia Z3 Compact General] jfm91:
Hi.

Got my Z3C today. Followed this guide, and successfully installed 23.1.A.0.690

How can I get into recovery (I want to install exposed)? I tried to boot and press volume up and volume down several times when the notification led turns on. But the phone boots to android. Mabye I lost recovery in step 43 of this guide?

Also the phone keeps telling me that there is an OTA system-update. Will I loose root if I flash this? Is there any way to prevent the update-notification from appearing?
[Xperia Z3 Compact General] Lazer72:
To stop the notification from appearing go to Settings >Apps >All then scroll down to "Update Centre" tap it and then uncheck "show notifications"
[Xperia Z3 Compact General] jfm91:
Cannot find "Update Center". Just "Update service"
[Xperia Z3 Compact General] VityaG:
Hello everyone,

I couldn't really find an answer, so I ask here.

I have a build 23.0.A.2.98, still locked, unrooted, stock, basically untouched (except using it everyday, apps and stuff).

I am quite happy with it, but I'd like to root my phone to backup DRM keys, just in case.

Can I just start from step 13 and follow up to step 26?

As I understand, following these steps (13-26) will not cause any data loss, right?

Best regards,

Vitya
[Xperia Z3 Compact General] Arturiuz!:
well,you already lost your DRM keys by just unlocking the bootloader,even though you haven't rooted your phone yet! :sly:
[Xperia Z3 Compact General] VityaG:
Ahhh, dammit. I meant it is not unlocked (aka still locked)... :)

also I want to be able to write to SD-card with other apps.

so, again, questions:

I have a build 23.0.A.2.98, can I start from step 13 and follow up to step 26?

And following these steps (13-26) will not cause any data loss?

cheers,
[Xperia Z3 Compact General] Lazer72:
Should be fine. Though still install FlashTool beforehand.
[Xperia Z3 Compact General] VityaG:
why would I need FlashTool, if I am not going to flash any other software?
[Xperia Z3 Compact General] Lazer72:
You don't want recovery? If not then I guess you don't need it. But it's always handy to have in an emergency..
[Xperia Z3 Compact General] VityaG:
yeah, but it doesn't install anything on the phone, does it?
[Xperia Z3 Compact General] Lazer72:
What doesn't? FlashTool is used for installing all or part of the phone's firmware
[Xperia Z3 Compact General] VityaG:
yes, FlashTool is used to install all or part of the phone's firmware. But I asked, if I already have installed old firmware (that I never updated), do I need only to go through steps 13-26 to root and backup DRM's, without wiping or losing anything that is already on the phone.

And why do I need to install Flashtool before going through steps 13-26?

kind regards,
[Xperia Z3 Compact General] Lazer72:
Ah. You don't. :)

You can do those steps just fine.
[Xperia Z3 Compact General] VityaG:
I assumed someone already tried something like that and will say, that steps 13-26 must not cause of data loss from the phone.

maybe someone like me, who didn't update when first bought, and had an old version too...

apparently I need to try it myself first :(

backup contacts, sms, and anything valuable.
[Xperia Z3 Compact General] WorldEaterSC:
Root incomplete ?

Hi XDA people ! :)

Rooted my Xperia Z3 compact phone few days ago, and everything went fine, till I tried to uninstall some system apps (through Titanium Backup and/or Root Uninstaller).

No way. Impossible to uninstall all those Lifelog, japanese keyboard and co. I can only freeze them (the "uninstall" option isn't available).

So. I'm wondering.

> Or I didn't get the point 43 in the process (see quote). That wasn't very clear for me when I did it : Should I check or uncheck the "System" checkbox , in the Exclude list ?

Because it's written :

Deselect system

. And then, it's written :

make sure you check the checkbox next to "SYSTEM

.

So I was very confused, and I ended checking it.

> My phone seems to be rooted anyway (a Root checker app confirmed it to me), but maybe it's rooted uncompletely ? (I don't even know if it's possible to be "partially rooted").

> Those system apps can't be uninstalled, even after root ?

I've been trying for 2 days to look for a similar case to mine on Internet, and it's been unsuccessful so far. It's very rare that I'm posting on forums, but seems to be my last option !

Sorry anyway about my bad English, it's not my mother tongue ;)

Many many thanks in advance, your forum is my Holy Grail :)
[Xperia Z3 Compact General] Mati24:
Hello,

Thanks it works great on my phone ! I have juste a little problem, my phone doesn't find mobile network. I have to restart it but after 5-10 minutes it lost network. Have you an idea ?

Wifi works.

Thank you
[Xperia Z3 Compact General] istux:
Sure you can!

Just uncheck "data" item inside the "wipe" box in Flashtool ;)

Anyway when you change android version to a major release (for example from kitkat to lollipop), a full wipe is always recommended ;)

Yes, your root has not full access to the system (and this was a very common problem in the past): have you installed the last version of NUT's dual recovery?

A little problem? LOL... you love euphemism :D

Probably you mess something with the baseband.

Flash the proper baseband from Flashtool
[Xperia Z3 Compact General] VityaG:
ok, this just raises more questions...

I have stock 23.0.A.2.98, not touched in any way (came out of the box). I don't want to update, upgrade, flash or anything else, just root and back up DRM's. Can I just go through steps 13-26 to root and backup DRM's on my phone?

P.S. sorry for tautology, but I am a bit confused
[Xperia Z3 Compact General] Lazer72:
Yes you can. You won't have recovery though.
[Xperia Z3 Compact General] Mati24:
a "little" yes :)

Where can I find baseband to flash ?
[Xperia Z3 Compact General] Lazer72:
Just download the latest firmware (or whatever version you have), ensure its the right model (D5803 or D5833) and make sure you exclude *everything* except BASEBAND in FlashTool. Then flash.
[Xperia Z3 Compact General] Mati24:
Thank you, I'm testing if it's better. If it's not better, can I flash the baseband of 23.1.A.0.690 version if I am over 23.1.A.1.28 ?
[Xperia Z3 Compact General] VityaG:
ok, can this cause a problem? if yes, then what kind, and how can I prevent it without wiping my phone (apps, contacts, calendars, sms, etc, stay)?

kind regards,
[Xperia Z3 Compact General] Lazer72:
Shouldn't be a problem. You'll just have limited options of how to modify/restore the system. Which I think you don't care about. So go ahead.

---------- Post added at 06:18 PM ---------- Previous post was at 06:18 PM ----------

Not sure. Shouldn't be a problem though.
[Xperia Z3 Compact General] istux:
Yes you can ;)

Take note of your firmware version, download the same stock firmware, open up flashtool, select the firmware and check all items inside "exclude" box, except for BASEBAND. Start.

---------- Post added at 12:22 PM ---------- Previous post was at 12:20 PM ----------

You can, it's not dangerous for the phone
[Xperia Z3 Compact General] VityaG:
only steps 16-26 worked

thank you everyone, now I have rooted phone, and made a backup of the DRM's

As I understand, I shouldn't update through OTA or over Sony PC Companion, right?

cheers,
[Xperia Z3 Compact General] Lazer72:
Great!

Glad we could help.

Not sure, some people have done OTA and it didn't unroot. Still best to avoid it.
[Xperia Z3 Compact General] WorldEaterSC:
I installed TabZ3C-lockeddualrecovery2.8.20-RELEASE.installer, which seems to be the last one ...

But for the Tablet Z3C X-/

Now I get where I mistaked, I'll do the whole process again then, but with the Z3C file.

Many thanks for your answer and your time :)
[Xperia Z3 Compact General] VityaG:
So, there is no safe way to update it without wiping and loosing root?
[Xperia Z3 Compact General] istux:
Remember that NUT's recovery it's not a simple recovery, but it has a little modification that let the root work properly on Sony devices.

In fact, that was your problem: wrong recovery model, wrong root behaviour ;)
[Xperia Z3 Compact General] Mati24:
It's not really better :( ... and a baseband from a KitKat firmware ?
[Xperia Z3 Compact General] Marnuss:
Hello!!

I am going to follow the procedure with the stock Z3 compact on the last firmware as a first step to install some mods ROms (sorry, to much computer recently...).

Just one question remains: I read somewhere that the loss of the DRM had some bad side effect, mainly on the quality of the photo. Is this problem still aroud or does the method of the OP avoid it?

Anyway, thanks for reading and for the tuto :o
[Xperia Z3 Compact General] Conte Mascetti:
Just follow very carefully the guide, especially from .22 step and you won't have any issues. I still have my drm on a rooted KK z3c ?

From Z3C Black
[Xperia Z3 Compact General] Marnuss:
Great thanks!!

I'm going to begin just now then :D
[Xperia Z3 Compact General] istux:
Just try it ;)

If doesn't work, just reset everything...
[Xperia Z3 Compact General] Mati24:
It's not better... If I flash the last fw with full wipe, do I keep DRM, Root, Recovery ?

Thank you
[Xperia Z3 Compact General] Conte Mascetti:
Nope, you should flash via recovery a pre-rooted fw in order to keep root permission. The only things that erase drm is bootloader unlocking, I assume.

From Z3C Black
[Xperia Z3 Compact General] shams1924:
help

Im having real problems with the write to sd card issue

Im rooted with 4.4.4 on the. 77 rom.

I cant use adaway, xposed and root app innstaller ect because of the issue

I tried flashing the ricdefeat but no luck

A few pages back someone posted that they edited some lines of script im cmd on windows, but seems complicated.

It would be good to get to the bottom of this issue
[Xperia Z3 Compact General] KoscheiTheDeathless:
You did it wrong. Start over, from the beginning, and keep reading until you understand what you're doing, and why you're doing it.
[Xperia Z3 Compact General] shams1924:
Yes

I read it several times

But this one flew over the cuckoos nest.

The ricdefeat zip definitely doesn't work.

The cmd method seems to

But I dont get it

A step by step would be great