LineageOS 17.1/18.1 for Sony Xperia XZ1 Compact
RELEASE
This is an alternative ROM for the Sony Xperia XZ1 Compact.
Creating this to honor the great work of
modpunk and
derf elot from
https://xdaforums.com/t/rom-lineageos-18-1-unofficial-2-0-update-2021-01-20.4047763/ which seems to be
discontinued. Posting an own thread to keep the latest versions visible, I'm NOT claiming authorship over the ROM.
I basically just build the ROM using the latest changes from upstream LineageOS/Google and kernel updates (usually incorporated by
derf elot ) See
my post.
FEATURES
- Signed with dev keys
- EAS kernel
- Passes SafetyNet out of the box (thanks Rooted_Ansh, Havoc-OS Team and kdrag0n)
- Seedvault (Video)
- IMS support (thanks to Rooted_Ansh and also Shujath)
- 17.1 has stock Sony camera (not possible on 18.1)
DOWNLOAD
You can download the latest release
here.
HINT: Download both the ZIP and md5sum file so TWRP can check the consistency of the upload/download.
REQUIRED FIRMWARE: 47.2.A.11.228
IMPORTANT: I only test the 17.1 releases myself. The 18.1 are build from mostly the same sources and hopefully work. I only test them roughly.
Backup download
INSTALLATION
IMPORTANT: Magisk seems to cause issues (bootloops) on update, so remove it first and reinstall if required. Note that Magisk is usually not required unless you want root.
- Put the zip file of the ROM on your SD card or internal store and boot into recovery.
- When coming from stock ROM, do a full wipe (i.e. factory reset) via "Wipe". Do not wipe system! When flashing the stock ROM you can select to not keep user data which is equivalent to this step.
- Go to "Install", select the zip file and add optionally the gapps zip. Then flash it.
- After updates you may now wipe cache&dalvik (option after install)
I suggest to use modpunks
TWRP recovery.
Again: Don't forget the md5sum file!
TWRP 3.3.1-0 by modpunk for LineageOS 17.1
TWPR 3.5.0-0 by derf elot for LineageOS 18.1
Or use the latest TWRP from
https://twrp.me/sony/sonyxperiaxz1compact.html.
For ease of use I suggest to flash this recovery (only required once):
- Boot in Fastboot mode: Hold "Volume Up" while connecting the USB cable to phone and PC
- Flash TWRP by running this on the PC: fastboot flash recovery twrp-3.3.1-0-lilac-android10-1.img
(adjust the filename if necessary)
- From now you can boot TWRP by turning on the phone with "Volume Down" + Power
I heavily recommend to make a full backup before any installation so you can go back in case of issues. Flashing an older ROM usually helps to recover bootloops etc.
SUPPORT
There is
NONE. If you have any issues or question ask in the thread so maybe someone else knows the answer.
I'm just providing the ROM (Lineage 17.1 variant) I use myself for others to try to and just build the Lineage 18.1 ROM without much testing.
If you prefer to use a more well-tested Android 11 ROM, I suggest to look at Havoc-OS.
Contributions to the sources are welcome and likely get integrated into the next release.
Contributors
modpunk,
derf elot,
Rooted_Ansh,
Flamefire,
linckandrea
Source Code: https://github.com/Flamefire/android_device_sony_lilac, Original:
https://github.com/whatawurst/
If you want to buy me a coffee/beer, I'll appreciate it but it is not necessary.
Also please consider donating to the original authors too or to local charities as
requested by
@modpunk
Special thanks to
landsome for donating a test phone for bug hunting and development.
ROM OS Version: Android 10/11
ROM Kernel: Linux 4.4.x
Based On: LineageOS