[RECOVERY] TWRP 3.3.1-0 (lilac) [UPDATE: 2019-09-16]

Search This thread

modpunk

Recognized Contributor
Oct 14, 2011
1,718
6,643
Sony Xperia XZ1 Compact
Samsung Galaxy S10
TWRP

This project provides the TWRP recovery for for the Sony Xperia XZ1 Compact (lilac).

twrp-lilac.jpg


FEATURES

  • File-Based Encryption (FBE) support
  • EXT4 support
  • F2FS support
  • EXFAT support
  • Provides unzip
  • Additional languages

This recovery will use the security patch level from the system partition to decrypt data. It should not be tied to a security patch level anymore.

DOWNLOAD

Make sure you download the .img and corresponding .asc.txt file (see INTEGRITY)!

You can always find the latest version of the recovery HERE.

INTEGRETY

The recovery images also come with an GPG armor file (.asc). With that file you verify that the image I created hasn't been altered.

How do you do that?

  1. Download my gpg keyring here: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg.
  2. Download the recovery.img and recovery.img.asc.txt file
  3. Rename the recovery.img.asc.txt file to recovery.img.asc
  4. Verfiy the signature using the following command:
    Code:
    gpg --keyring ./gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg --verify recovery.img.asc

A good tutorial is: How to verify signatures for packages from the Tor Project.

SECURITY ADVICE

Don't flash ROMs or Magisk modules which set SELinux to permissive or you welcome malware on your device!

XDA:DevDB Information
recovery_twrp_sony_lilac, Tool/Utility for the Sony Xperia XZ1 Compact

Contributors
modpunk, Dees_Troy
Source Code: https://github.com/cryptomilk/android_device_sony_lilac


Version Information
Status: Stable
Current Stable Version: 3.3.1-0
Stable Release Date: 2019-09-16

Created 2017-11-18
Last Updated 2019-09-16
 
Last edited:

4rz0

Senior Member
Dec 2, 2010
400
88
What does the STOCK addition in the title mean?
Can't I flash for example LOS with it?
 
Last edited:

aikon96

Senior Member
Sep 24, 2010
132
48
Nice work! So does that mean that we finally can root our xz1 compact?

And currently this TWRP is not working for security patch November, right? I mean build nr: 47.1.A.5.51
 
Last edited:
  • Like
Reactions: pritos

shafiq01

Senior Member
Oct 6, 2008
174
109
it flashes okay via fastboot, and twrp is also working. except for format option under wipe, when typing 'continue' it seems like it doesn't show the inputs, only the last letter 'e'
anyway after i flashed the twrp, i booted it up, and mounted everything except for otg. and then of course i flashed magisk.zip (latest v14) and it also succeeded
but then when i reboot from twrp, it stucks at sony logo, meaning default bootanimation doesn't kick in, and i patiently waited for like 10-15 min
so i assume it's not working. i even tried with a userdebug and regular user build 47.1.A.5.51
now i will try just to boot the twrp without flashing it and then flash magisk.zip while it's booted up via fastboot to see if it boots up normally
 

shafiq01

Senior Member
Oct 6, 2008
174
109
a) Do you have your partition encrypted and could you mount it, so it asked for a password?
b) TWRP writes a log file you can download adb pull /tmp/recovery.log
c) adb logcat is also working

Note that there is currently no upstream TWRP developement for Oreo ongoing. I just wrote several hacks to get it working.
A: it does not ask for password upon bootup so i guess it's not encrypted in that way
B attached here
C is there any specific logcat you want, like error or fatal level etc.
 

Attachments

  • recovery.log
    24.3 KB · Views: 78
Hi modpunk,

Ur a true star...****

I just want to ask a couple of question's.

Does the bootloader have to be unlocked in order to flash this....?
I have had a Z3 Compact and got it rooted with bootloader locked and also a Z5 Compact using munjen setup.
Install TWRP on it Flashed SuperSU using TWRP was best thing i did.

Do you have a step by step guide how to flash this. I would love to test it for you.
When you flash is it using munjen flashtool...?

Thanks Sham
 

shafiq01

Senior Member
Oct 6, 2008
174
109
UPDATE
TRWP is working actually, just figured out that it's magisk that get the phone not to boot, bith 14 and 14.5
and latest supersu both the xperia one and the regular one v.2.82 fails, give error "unzip fail, no proper recovery etc."
Now for fun i will load it up with userdebug firmware and see if i can make it manually root with the "angela" method
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I want to return to Lineage OS again but I can no longer flash the TWRP recovery; the terminal just hangs on the fastboot flash
    Did you find any solution?
    Not sure why this is happening, perhaps an insufficient or incompatible power supply issue, but the solution is to try different computers/USB ports. Also, in my case it only worked with Linux, EndeavourOS to be specific, but should work on Ubuntu or any other "complete" Linux OS/distro.

    Will there be a TWRP update for 11?
    Any ideas on why is failing to boot with the flashed recovery? Could this be related with the fact that there's no TWRP for Android 11 for the XZ1 Compact? Is there any alternative to TWRP?
    Don't wait on TWRP updates in this thread, get the latest version from the source and reflash it, it works for me on ROMs with Android 11 and 12: https://twrp.me/sony/sonyxperiaxz1compact.html

    Is there any alternative to TWRP?
    I'm using Pie 9 TWRp 3310. It work fine. But after the reboot, I tried to flash something and all folder suddenly showing weird name, probably encrypted?
    I am also in trouble. (Lineage 19.1)
    It's because of the encryption. Files on LineageOS 19 are encrypted if accessed via TWRP recovery, LineageOS 19 (maybe 18 also) has its own alternative recovery that can be installed during the first boot, perhaps the files are not encrypted if accessed from there. Either way, it's a security measure against unauthorized access to files. I'm pretty sure I've read somewhere that it's a default feature in Android 12.

    How do I resolve TWRP error 255?
    The error 255 is caused due to insufficient space. One solution is to backup or restore one or several partitions at a time instead of all at once, alternative solution is to back up to external memory card.
    1
    But error 255 means low storage space
    Thank you.
    If you back up by excluding only data, it will finish without error.
    Perhaps there is something wrong with the data?
    I formatted the 32gb sd card and tried backing up only the data.
    But the result is the same with an error.
    When I backed up the data with adb, it was 20.8gb.

    postscript
    With Havoc-OS 4.6, I was able to back up without any problems.
    I think it's probably a problem with LOS 19.1.
  • 57
    TWRP

    This project provides the TWRP recovery for for the Sony Xperia XZ1 Compact (lilac).

    twrp-lilac.jpg


    FEATURES

    • File-Based Encryption (FBE) support
    • EXT4 support
    • F2FS support
    • EXFAT support
    • Provides unzip
    • Additional languages

    This recovery will use the security patch level from the system partition to decrypt data. It should not be tied to a security patch level anymore.

    DOWNLOAD

    Make sure you download the .img and corresponding .asc.txt file (see INTEGRITY)!

    You can always find the latest version of the recovery HERE.

    INTEGRETY

    The recovery images also come with an GPG armor file (.asc). With that file you verify that the image I created hasn't been altered.

    How do you do that?

    1. Download my gpg keyring here: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg.
    2. Download the recovery.img and recovery.img.asc.txt file
    3. Rename the recovery.img.asc.txt file to recovery.img.asc
    4. Verfiy the signature using the following command:
      Code:
      gpg --keyring ./gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg --verify recovery.img.asc

    A good tutorial is: How to verify signatures for packages from the Tor Project.

    SECURITY ADVICE

    Don't flash ROMs or Magisk modules which set SELinux to permissive or you welcome malware on your device!

    XDA:DevDB Information
    recovery_twrp_sony_lilac, Tool/Utility for the Sony Xperia XZ1 Compact

    Contributors
    modpunk, Dees_Troy
    Source Code: https://github.com/cryptomilk/android_device_sony_lilac


    Version Information
    Status: Stable
    Current Stable Version: 3.3.1-0
    Stable Release Date: 2019-09-16

    Created 2017-11-18
    Last Updated 2019-09-16
    13
    I've uploaded a new recovery. This should not be tied to the security patch level anymore. It reads the values from the system partition and uses that.
    13
    I've uploaded a new TWRP recovery version 3.2.3-0

    • enable md5sum digest verification
    • adb backup fixes
    • OTA style update zips will now install automatically without prompting for decrypt
    • minor tweaks to handling date/time on Qualcomm devices
    • updates to some language translations
    13
    New recovery released.
    13
    I've uploaded a TWRP for Android 9.0 (Pie).