yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] h4waii:
FYI, 3.0.0 still doesn't support encryption properly on aries.
[Xperia Z3 Compact Original Android Development] m0d:
Edit:

Added full asserts, and all working fine
[Xperia Z3 Compact Original Android Development] kodein:
Cz language for twrp 3.0.0.0

Here is cz language for twrp 3.0.0.0
[Xperia Z3 Compact Original Android Development] TadMSTR:
I would really like to encrypt my phone but this is holding me back. Is there any idea as to why TWRP can't decrypt the data partition? I've tested it on other phones and it works.
[Xperia Z3 Compact Original Android Development] Allewar:
I installed it but it don't boot into this recovery... it boots into philz touch recovery. How can I remove philz touch and install this one?
[Xperia Z3 Compact Original Android Development] istux:
Press power + volume.down together until the phone vibrates one time, then release power button and keep vol.down pressed
[Xperia Z3 Compact Original Android Development] Sting1971:
I can't get to install this recovery: i tried with the TWRP Manager app, i tried with adb shell and a terminal emulator app, i tried flashing with TWRP Recovery image installer, but my phone still remains with the XZDualRecovery.

Any suggestion?
[Xperia Z3 Compact Original Android Development] TadMSTR:
Did you ever install the latest firmware from Sony which creates a proper recovery partition? Once you do that you are able to use TWRP Manager and any other apps that use open recovery scripts, also reboot to recovery works as well. Prior to Sony finally creating a recovery partition we had to install the recovery into the boot partition, which is not the norm for any other device.

Once you install the latest firmware from Sony you can then install TWRP via fastboot and then flash any custom ROM of your choice and the recovery partition will still be there. So this is just a one time thing you need to do.
[Xperia Z3 Compact Original Android Development] Sting1971:
Thank you so much, TadMSTR ;)

My bad, i have missed to read some important posts, now i know that i have to unlock the bootloader too.

For now, i have no time to do that, but i'll do it ASAP ;)
[Xperia Z3 Compact Original Android Development] tuananh.tr0808:
I can install on z3c 5.1.1 bootloader locked?
[Xperia Z3 Compact Original Android Development] TadMSTR:
The bootloader needs to be unlocked for this recovery.

It would also be a good idea to make sure you installed the latest stock firmware from Sony at some point. When the phone was released it did not have a recovery partition, forcing us to install the recovery to the boot partition. Not long ago Sony finally added a recovery partition. Installing the latest stock firmware will create that partition. After that you can install any ROM you want and the recovery partition will remain intact. Installing TWRP to the recovery partition instead of boot will allow things like "reboot to recovery" to work.
[Xperia Z3 Compact Original Android Development] someone755:
Also tagging [MENTION=6706924]tuananh.tr0808[/MENTION] along (who should learn to read, seriously dude -- your question was answered in the post above yours).

Not entirely true.

For a number of years now we've been installing the recovery to the FOTA partition. We accessed that through a pretty cool hack that we bundled into the boot image (which then naturally got written to the boot partition). Some ROM vendors (most notably CyanogenMod) have kept the recovery-in-boot format alongside this hack (for reasons I won't go into now), but if a recovery image is found on the FOTA partition, that image will be used instead of the recovery packed inside the boot image.

Now what Sony did in this "recent" update was to allow the bootloader to boot into the recovery directly, without first booting what was flashed to the boot partition (and using scripts packed therein). With this, security and ease of use have been improved.

However, there is one bug present in the new bootloader: Rebooting from ROM to the recovery does not work. The phone simply reboots back into the OS instead of booting up the recovery.

Also as far as I'm aware, the new bootloader is still using the same FOTA partition as the recovery partition as we have done since 2012. Nothing gets wiped and nothing new gets created.

This is a pretty bad explanation, I know. I'm not good enough with words. If you want I can try and make you a diagram.

And hello yes I am in fact alive. Now to answer some questions:
[MENTION=4145030]Sting1971[/MENTION]: Once you unlock the bootloader, please, don't ever again use the XZDRecovery system. It causes nothing but trouble for kernel and recovery devs alike, because it's just a workaround for a locked bootloader (since you can't flash recovery.img to FOTA without an unlocked bootloader).
[MENTION=2676790]TadMSTR[/MENTION]: About encryption: I have no clue how this works. Like my signature (and the abhorrent lack of both basic maintenance and urgent updates) can tell you, I haven't had much time lately. The last final exam I need to take is sometime in June, and until then I don't think I'll have many days off. Not to mention I have to take the darn thing to a repair center for the 5th time already lmao. You could always ask another shinano dev (@Myself5 I summon you) to look at the problem though.

On a different note, thanks for answering questions while I was gone.
[MENTION=2718134]kodein[/MENTION]: I'd advise you to push that through TeamWin's Gerrit. Maybe the guys will accept it if you add a pull request on GitHub, or if you spam it into the IRC. I would submit it myself on your behalf but like I said above to TadMSTR, I don't have much time, and my Linux installation is so borked most things don't even work.

Hopefully you all haven't died from reading this wall of text lol.

Enjoy your lives, kids. School hits harder than acid.
[Xperia Z3 Compact Original Android Development] TadMSTR:
I'm running CyanogenMod nightlies and reboot to recovery works for me ever since flashing the "recent" Sony firmware. If there is a bug then it's not affecting me.

I saw a post on XDA recently about TWRP 3.0.1-0 now supporting the new CM13 pattern encryption. Even though I'm on CM12.1 I decided to give it a try (I use the pattern lock). It didn't work so when I get a chance will see if switching to a PIN lock makes any difference.
[Xperia Z3 Compact Original Android Development] someone755:
Ah, but you're using CM. They still use extract_elf_ramdisk.

Basically the bootloader ignores any "reboot to recovery" requests, but the extract_elf_ramdisk binary in the boot image picks them up. That's why you can reboot to recovery.

Try a stock ROM (+stock kernel): It won't work because there is nothing to pick that command up.

As for encryption, like I said, I've never used it and I've only heard it causing trouble. I'll see if I can fix it (or get a helping hand with it) once summer starts. Or we can hope Myself5 knows people who can help.
[Xperia Z3 Compact Original Android Development] TadMSTR:
I have a few reasons as to why I need to use encryption. I considered switching phones to get working encryption support in recovery but can't find anything close in size to the z3c with similar specs. I greatly appreciate any time you or Myself5 spend looking into this. If I can be of any assistance in some way let me know.
[Xperia Z3 Compact Original Android Development] funiewski:
I use concept mm and reboot to recovery works from rom, I use gravity box for that, what doesn't work on z3c is boot to recovery with button combination, you need to have phone connected with USB cable and use the new bootloader menu for booting to recovery. I don't know how it works with official beta mm,concept is the best rom I've ever tried on any Sony so I don't care
[Xperia Z3 Compact Original Android Development] mbgheban:
Hi,

I'm on concept too and with official TWRP I cannot boot in recovery using key combination neither.

I'm using unnoficial TWRP 3.0.0 made by shoey63. Is in the "MM beta" thread.
[Xperia Z3 Compact Original Android Development] TadMSTR:
twrp.me has 3.0.2-0 available

"What’s new in 3.0.2-0:

Fix a bug with the input box that affected masked inputs (passwords). This fixes decrypt of full device encryption on devices that support decrypt. This bug also impacts encrypted backups. Users are highly encouraged to stop using 3.0.1 if you use encrypted backups or if you need decrypt of data in TWRP."

Seems this was a bug specific to 3.0.1-0 so I don't think it's the cause of the issue we have been having with encryption on our device. When I get a chance this weekend I will test decrypting data in recovery with 3.0.2-0 to see if its working on the z3c yet.
[Xperia Z3 Compact Original Android Development] H117:
Just tried it out. Didn't work for me.
[Xperia Z3 Compact Original Android Development] h4waii:
Confirmed the latest version still doesn't fix decryption of /data.
[Xperia Z3 Compact Original Android Development] TadMSTR:
Then it's most likely an issue specific to the z3c. We'll need to wait for one of the devs supporting the z3c to figure it out. Thanks for checking and saving me time, both of you.
[Xperia Z3 Compact Original Android Development] spdrfx:
Hello guys,

I have a big problem. I have a Z3 compact, and i flash Mashmallow last weekend. Since that, i unable to boot to TWRP, durig boot, vol+ and vol- method is not working either.

But. After i flash "Z3C_MM_TWRP_Recovery_V2_By_Serajr.zip for locked BL (Z3C Only)" the phone is reboot, and enter TWRP. But if i quit, i unable to start it again. If i select "reboot recovery" option, the blue led appear in the corner ( I think its the Vol+ recovery mode), but nothing happened. Please help.
[Xperia Z3 Compact Original Android Development] someone755:
Remove whatever recovery system you currently have (if you don't know how, just reflash your ROM), and flash TWRP again.

Seems like there's something in the new update that overwrites/prevents access to any existing FOTA recoveries, but luckily it does work after you flash it again.
[Xperia Z3 Compact Original Android Development] spdrfx:
.

I flashed different rom, but its the same. First time after flashing TWRP with adb , phone is reboot to recovery, and everything ok, but after i quit, unable to enter TWRP. If i flash again with ADB, first time works again.. I dont understand.
[Xperia Z3 Compact Original Android Development] someone755:
Flashing with ADB? You mean dd'ing with an ADB shell?

Why not use fastboot?
[Xperia Z3 Compact Original Android Development] spdrfx:
Actually i just run install.bat, I have locked BL, as i know the fastboot method is not working.
[Xperia Z3 Compact Original Android Development] someone755:
So you run unmkbootimg on the recovery image, repackage the ramdisk and rename it to recovery.twrp.cpio.lzma, then push a custom script that intercepts adb reboot recovery requests. Interesting, to say the least.

Sadly, I don't know what script you're pushing to the device, and this is far from official procedure. I can hypothesize that because your boot image is unaltered and the recovery partition read only that there is no other way to use a recovery other than running "adb reboot recovery" or using some on-device script that reboots the phone to the recovery (like for example a GravityBox tweak that enables you to boot to recovery from the power menu).
[Xperia Z3 Compact Original Android Development] qyx:
Hi

I'm currently running CM 12.1 and I just realized that it's recovery is pretty limited. I'd like to try TWRP, so I read through this thread and, after the above posts, I'd like to understand a few things before rushing in:

- what does recent mean here, when did this feature appear in the Sony firmwares?

- can this be obtained by flashing the correct .ftf firmware file with Flashtool?

- does this feature bring some benefit, given that bug?

Thanks!
[Xperia Z3 Compact Original Android Development] someone755:
I think .264 introduced it. Just flash whatever the newest FTF is (Marshmallow FTFs are up already). Alin always advises all of us to boot the stock ROM, too, just to update the NFC firmware.

The benefits would be better compatibility with 3.10 kernels (since ROMs are going to start using that pretty soon), and, of course, a recovery partition that works regardless of whether or not your boot partition has anything bootable on it. (Say you push an image of a carrot onto your boot image. You'd still be able to boot into TWRP if you had the new bootloader. With the old one, you *would* have a recovery flashed, but the boot image scripts that allows you to boot the recovery wouldn't be there. Instead, there'd be a picture of a carrot.)
[Xperia Z3 Compact Original Android Development] qyx:
Cool! I had just downloaded the Marshmallow FTF.

I hope it's not too much to also ask something else, having in mind a backup/recovery of my current system. Would the following work?

- install TWRP now, with CM12.1

- use it to do a backup

- install the Marshmallow FTF and boot into Marshmallow

- reinstall TWRP (is it wiped at the previous step?)

- restore the initial backup

Is there something missing? According to my limited understanding this sequence should be ok, but I have seen the limits of my understanding before :)
[Xperia Z3 Compact Original Android Development] spdrfx:
I just follow this instructions.

Boot to recovery from power menu is not working.
[Xperia Z3 Compact Original Android Development] funiewski:
If you have the new bootloader layout you can't use power + or -. You have to connect the phone to pc with USB cable in bootloader mode and than use menu to go to recovery mode. If your phone has booted and you have root you can use for example gravity box power menu module for rebooting to recovery.
[Xperia Z3 Compact Original Android Development] spdrfx:
In bootloader mode i have no menu, just the blue led appear in the corner with totally black screen. If i use gravity box for rebooting to recovery, the phone just simply rebooting.

The only way to access twrp menu is that> Flash again TWRP with adb, waiting for reboot, and after the first reboot TWRP is OK.
[Xperia Z3 Compact Original Android Development] someone755:
If you don't want to wipe your internal data with the FTF you should wipe data in TWRP, then set up Flashtool to not wipe data. Other than that little convenient thing, you're correct.

The post you linked makes no sense and has nearly nothing to do with what you described earlier.

I'm sorry if this sounds harsh but if you want us to help you we need to know what your problem is, what you've done, and what software you're running.

Bootloader mode? You mean fastboot? That's normal, because of a bug in the new bootloaders 'adb reboot bootloader' doesn't work anyways, so neither do any scripts or Xposed tweaks.

Turn the phone off, then hold volume down and power. Assuming you're running the new bootloader.
[Xperia Z3 Compact Original Android Development] qyx:
Thanks a lot, it worked nicely!

There is one small problem (of TWRP?) I have seen. I did the backup, then during the restore a warning appeared saying that the /data partition was formatted as f2fs at the time of the backup and the phone might not boot now (implying that the filesystem type is now ext4).

I was a bit surprised, so I did a test. I reformatted /data as f2fs, from TWRP, but there was an error saying that /data cannot be mounted afterwards. I still tried to restore /data from the backup, and it failed. Then I reformatted back to ext4, did again the restore, had the same warning but after reboot everything looks fine.
[Xperia Z3 Compact Original Android Development] spdrfx:
So any time, if i flash "Z3C_MM_TWRP_Recovery_V2_By_Serajr.zip for locked BL (Z3C Only)" with adb, the phone is reboot to twrp recovery, and i can use it. But i unable to start recovery again, vol- not working, advanced power menu > reboot to recovery is not working, the phone just simply reboot. I have to flash Z3C_MM_TWRP_Recovery_V2_By_Serajr.zip with adb, if i want to start TWRP.
[Xperia Z3 Compact Original Android Development] thejulo:
Same problem here.
[Xperia Z3 Compact Original Android Development] serajr:
Weird, but... V3 has been rolled out!

To manually boot up into recovery, you can always do this:

- Root Explorer (or any other file manager with root)

- Go into this folder: /cache/recovery/

- Create a new and blank file titled: boot (file will be automatically wiped after reboot)

- Reboot
[Xperia Z3 Compact Original Android Development] someone755:
OH MY GOD GUYS LOOK WHO'S HERE

hi

On topic though, I'm 99% sure you two are doing something wrong. The recovery works and boots for everyone that I've talked to.

(Rebooting to recovery doesn't work because the new bootloader is busted, you have to turn the phone off and hold power and volume down keys to get into recovery.)
[Xperia Z3 Compact Original Android Development] thejulo:
Thanks serajr for all your work and your reply.

Manually boring up into recovery worked.

But installing V3 (after uninstalling as described in the linked post) puts me in the same situation.

Can only boot to recovery manually out (volume keys as described by someone755 does a Sony logo bootloop and reboot into recovery menu option don't work, which is apparently normal).

Could it be because I was on XZDualRecovery before upgrading?

Anyway, I can live with that.

Thanks again

Edit: Didn't read previous post about busted bootloader
[Xperia Z3 Compact Original Android Development] funiewski:
I don't understand this. Has bootloader different options on concept than stock mm? Because I've menu in bootloader mode when attached to pc with USB and can choice recovery, I can also reboot to recovery with gravity box. Haven't tested stock,concept is so good.
[Xperia Z3 Compact Original Android Development] someone755:
The stock bootloader has no menu or anything. For all intents and purposes it works exactly the same as the old one, only difference being it actually boots from the recovery partition (when powered off only, if you hold power+vol down). (I've only tested versions up to and including .570. I can't comment on .575 or newer as of now.)

I don't know if, and if so, why and how, the concept bootloader is different. It shouldn't be, but from what I hear it's better.

What started out as a way to save the community from the extract_elf_ramdisk script and give us a proper recovery partition has turned into a mess. Their intentions were good but somewhere along the line it all fell apart for Sony.

Now we have one group who isn't packing recoveries into the ramdisk, another one that is, and a whole plethora of different bootloader versions that *nobody* has documented, anywhere. Quite frankly, this is a mess, and I can't blame anyone if they decide never to get another Sony phone after owning a z3c.
[Xperia Z3 Compact Original Android Development] mrrflagg:
Off topic but yes I agree, I absolutely love my Z3c but a real lack of development due to the sony format is disappointing. I had a HTC One X prior to this and there is still devs working on that old thing. I dislike phones bigger than the Z3c for many reasons so my options are very limited for a high end device.
[Xperia Z3 Compact Original Android Development] funiewski:
Thanks for clarification. I don't understand why people use stock mm,concept is the best rom I've ever used on any Sony device
[Xperia Z3 Compact Original Android Development] Crono88:
Hi, I've a problem when I try to do nand backup...."failed to mount system".

I've last version 3.0.2-0, MM and SuperSu.
[Xperia Z3 Compact Original Android Development] dbsoundz:
Hello guys...

I hav CM 12.1 on my Z3C and updated TWRP from 2.8.7 to current one via TWRP. I choosed the "boot" partition (nothing else was given as an option!) to flash the image. Now TWRP is updated but I can't boot to Android. I made an TWRP backup before, so I could try to restore this backup. But what went wrong? Should I restore my TWRP backup or is there anything else I can do?!

edit: I tried to install bootZ3monxtest01.img, that was no good idea as the phone does not boot to TWRP anymore, only boot loops...

Thanks a lot for help!
[Xperia Z3 Compact Original Android Development] someone755:
You should *only* flash recovery to the recovery partition unless you're testing something specific.

To undo what you've done, find your ROM's boot.img (extract it from the zip or use a custom kernel) and fastboot flash it using

fastboot flash boot boot.img

, then flash recovery using

fastboot flash recovery recovery.img
[Xperia Z3 Compact Original Android Development] dbsoundz:
Hello someone755,

thanks for your reply. Problem is that i am not able to enter fastboot mode. Should it work even though i messed up Boot and recovery partition?
[Xperia Z3 Compact Original Android Development] funiewski:
Try to use emma or flashtool, flash any compatible stock firmware in flashmode,,than start over the process with flashing recovery as described earlier
[Xperia Z3 Compact Original Android Development] dbsoundz:
Hello someone755,

hello funiewski,

thanks very much for your help! I am not so familiar with the Sonys ;) I "rstored" phone with stock ROM via emma. Now I have to install again CM / TWRP and restore Backup via TWRP, should be fine now! Thanks again!
[Xperia Z3 Compact Original Android Development] derf elot:
Hi,

could you try the TWRP build I made for decryption? It works fine for me with CM12.1. I basically followed the same way I made one for the Z1C before, which includes building the keystore, copying required blobs and other files to ramdisk and making symbolic links to access these files before mounting the system partition at recovery boot. I built it within the CM12.1 sources:

https://www.androidfilehost.com/?fid=24591000424956437
[Xperia Z3 Compact Original Android Development] TadMSTR:
I'll give this a try in a bit. Getting ready to flash SLiMM 3.0
[Xperia Z3 Compact Original Android Development] TadMSTR:
Wasn't able to decrypt in recovery. Though the phone never fully booted after I encrypted it. This was while on SLiMM 2.5 (6.0.1 MM). Restoring my backup now and going back to the TWRP I had on there.
[Xperia Z3 Compact Original Android Development] :
New version of TWRP was relased.
[Xperia Z3 Compact Original Android Development] TadMSTR:
Where? I don't see it on twrp.me or in this thread. I know the subject still says 3.0.0-0 but the last version I've seen is 3.0.2-0 from twrp.me.
[Xperia Z3 Compact Original Android Development] :
I was downloading a recovery for my girlfriend's phone: https://dl.twrp.me/herolte/

3.0.2-3 is the latest version it seems.
[Xperia Z3 Compact Original Android Development] derf elot:
Numbers after the "-" depict device-specific releases for maintainers to fix bugs, etc. It's not a new TWRP release.
[Xperia Z3 Compact Original Android Development] jacobs0n:
I don't know if this is the right thread to ask this, but I'm having a problem with TWRP. I have previously installed the latest version, and it worked perfectly. However recently, my work required me to encrypt my phone. Now, whenever I enter TWRP, it asks me for a password, but it won't accept the password I'm using, now I can't flash anything. Hopefully someone can help. Thanks!
[Xperia Z3 Compact Original Android Development] derf elot:
Feel free to try my build. Decryption works fine for me on CM12.1:

https://www.androidfilehost.com/?fid=24591000424956437
[Xperia Z3 Compact Original Android Development] jacobs0n:
Thanks! If all else fails, I will try that. I'm currently using Wajk's SLiMM rom, and I'd prefer if I can keep it.
[Xperia Z3 Compact Original Android Development] domidev:
thanks for this build, it's the only one one in the web which is working with the newest cm12.1 nightlies.
[Xperia Z3 Compact Original Android Development] Bartekreaper:
[MENTION=4275152]someone755[/MENTION] Are u going to make new build? https://www.xda-developers.com/twrp...-support-for-adb-backup-ab-ota-zips-and-more/
[Xperia Z3 Compact Original Android Development] IvsomEmidio:
How to install it? , me Z3c is in MM Stock
[Verizon Samsung Galaxy S6 Edge+] jayfrost:
Well looks like Im the first here, so I will ask......any root possibilities. Received my S6 Edge+ today and would love to open it up!