• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM][10] LineageOS 17.1 [OFFICIAL]

Search This thread

LineArc

Senior Member
Apr 26, 2013
319
33
Ok, so please do the following steps:

1. Download the attached vbmeta.img (it's the one of the latest XZ2 stock fw) and place it somewhere on your pc.
2. Copy the Magisk patched kernel (magisk_patched.img) from your device to the same place on your pc.
3. Shut down your device and connect it in fastboot mode with your pc
4. Open a command line from the place you've saved the two files from 1. and 2.
5. Enter the following commands (file by file):

fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
fastboot reboot

(the name of your "magisk_patched.img" could differ, so please use the exact name of yours [mandatory]!)
where to get the magisk flash file.
 
Hi all,
and big thanks to Sjll to open th XZ2 to the free world.
I recently got a new (used) XZ2. Target is to run LOS (no gapps (yet), no stock cam, no root) that works with wifi calling.
Current issue: Wifi calling did work once, and then no more. #

Here's what I did (collected wisdom from the entire thread, kudos to all that contributed).

0) Basics:
vol up and usb -> fastboot (first red then blue led)
vol down and usb -> adb / recovery

1) Open Bootloader:

Your unlock code for (IMEI)
xxxxxxxxxxxxx

Boot device
7*Build > Developer
allow OEM on
USB Debugging on

adb devices (works)
adb reboot fastboot (Oder Vol up und USB IN)
fastboot devices (works)

as of https://wiki.lineageos.org/devices/akari/install

fastboot oem unlock xxxxxxxxxxxxx
OKAY [ 83.385s]
finished. total time: 83.385s

fastboot reboot

2) Get to a clean clean version
download EMMA (Flash Tool) from here

vol down and usb und start EMMA
flash latest software update (Erases User data)

restart and reconfigure
USB Debugging on
adb devices works

check if VOLTE aka Wifi Calling works! (It did work with my Vodafone SIM)

3) Install TWRP and LOS
download vbmeta.img from here drive.google.com/file/d/1ucpo6om5rgXdIK38xXiK0kEkI1cXWXCd/view?usp=sharing

adb reboot bootloader
fastboot devices
does not work: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash vbmeta vbmeta.img
fastboot flash boot twrp-akari-20201013.img
usb out
Volume Down + Power on
usb in

TWRP:
advanced / adb sideload

command:
adb sideload copy-partitions-20210323_1922.zip

TWRP
Factory reset
delete davlik system data internal
format data

command
adb push lineage-17.1-20210324-nightly-akari-signed.zip /sdcard
adb push twrp-akari-20201013.img /sdcard

twrp:
Install lineage-17.1-20210324-nightly-akari-signed.zip (into inactive slot, maybe a)
reboot to recovery
TWRP:
Install lineage-17.1-20210324-nightly-akari-signed.zip (into other slot, maybe b)
Reboot to System
-> LOS boots fine.

Test Update to a newer LOS in Settings:
-> works

Now Wifi Calling did work one time - and then stopped.
Even ther is stable wifi, and the configuration states to prefer wife, it does not use it.

Where is this config stored? did something get lost when I
delete davlik system data internal in TWRP?
 

MartinX3

Recognized Contributor
Sep 14, 2014
5,749
2,849
Mars
martinx3.github.io
Hi all,
and big thanks to Sjll to open th XZ2 to the free world.
I recently got a new (used) XZ2. Target is to run LOS (no gapps (yet), no stock cam, no root) that works with wifi calling.
Current issue: Wifi calling did work once, and then no more. #

Here's what I did (collected wisdom from the entire thread, kudos to all that contributed).

0) Basics:
vol up and usb -> fastboot (first red then blue led)
vol down and usb -> adb / recovery

1) Open Bootloader:

Your unlock code for (IMEI)
xxxxxxxxxxxxx

Boot device
7*Build > Developer
allow OEM on
USB Debugging on

adb devices (works)
adb reboot fastboot (Oder Vol up und USB IN)
fastboot devices (works)

as of https://wiki.lineageos.org/devices/akari/install

fastboot oem unlock xxxxxxxxxxxxx
OKAY [ 83.385s]
finished. total time: 83.385s

fastboot reboot

2) Get to a clean clean version
download EMMA (Flash Tool) from here

vol down and usb und start EMMA
flash latest software update (Erases User data)

restart and reconfigure
USB Debugging on
adb devices works

check if VOLTE aka Wifi Calling works! (It did work with my Vodafone SIM)

3) Install TWRP and LOS
download vbmeta.img from here drive.google.com/file/d/1ucpo6om5rgXdIK38xXiK0kEkI1cXWXCd/view?usp=sharing

adb reboot bootloader
fastboot devices
does not work: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash vbmeta vbmeta.img
fastboot flash boot twrp-akari-20201013.img
usb out
Volume Down + Power on
usb in

TWRP:
advanced / adb sideload

command:
adb sideload copy-partitions-20210323_1922.zip

TWRP
Factory reset
delete davlik system data internal
format data

command
adb push lineage-17.1-20210324-nightly-akari-signed.zip /sdcard
adb push twrp-akari-20201013.img /sdcard

twrp:
Install lineage-17.1-20210324-nightly-akari-signed.zip (into inactive slot, maybe a)
reboot to recovery
TWRP:
Install lineage-17.1-20210324-nightly-akari-signed.zip (into other slot, maybe b)
Reboot to System
-> LOS boots fine.

Test Update to a newer LOS in Settings:
-> works

Now Wifi Calling did work one time - and then stopped.
Even ther is stable wifi, and the configuration states to prefer wife, it does not use it.

Where is this config stored? did something get lost when I
delete davlik system data internal in TWRP?
Not only volte and WiFi calling (ims) stopped working, also my sensors are dead.
 

shoey63

Recognized Contributor
Jun 5, 2012
4,010
3,990
Somewhere in Oz...
Other person can't hear anything during a Skype call. Errors in logcat below.
 

Attachments

  • Screenshot_20210425-170719_MatLog.png
    Screenshot_20210425-170719_MatLog.png
    224.1 KB · Views: 27

trinhloivn

Member
Apr 18, 2021
20
2
Hey guys, pls tell me if i can load it to the SOV37 version?
Được,nếu ô UL rồi nhưng t ngĩ b nên ở ROM gốc,t thử tất cả rồi hiệu năng không bằng được rom gốc

MOD EDIT: Please post only in English according to the FORUM RULES or at least add an English translation below your foreign language(Google translator for example),translation added below:

Okay, if it's UL but I think I should be in the original ROM, I tried everything and the performance is not equal to the original ROM

 
Last edited by a moderator:
Được,nếu ô UL rồi nhưng t ngĩ b nên ở ROM gốc,t thử tất cả rồi hiệu năng không bằng được rom gốc

MOD EDIT: Please post only in English according to the FORUM RULES or at least add an English translation below your foreign language(Google translator for example),translation added below:

Okay, if it's UL but I think I should be in the original ROM, I tried everything and the performance is not equal to the original ROM


chào anh, I am pretty sure just a few speak vietnamese here...
 
Last edited by a moderator:
I reinstalled mx XZ2 H8266 from scratch
- download via XperiFirm 5.6.1
- copied directory .\H8266_Customized DE_52.1.A.3.49-R3C to c:\Users\myuser\.flashTool\firmwares\Downloads\
- used flashtool-0.9.33.0 to flash (black flash sign, flashmode 52.1.A.3.49 - wipe all SINs

- reboot and wifi calling was back
- redid the procedure like discribed above just changed one thing:
Factory reset
delete davlik data (not system, not internal)
format data
...
So now LOS17 V23.03.boots, Wifi Calling die not work
Then a update with \settings \ System \ Updater to 21.04.
-> looks like it works now ....
 
Last edited:
About the installation of LineageOS...

I just unlock my bootloader (Mine was XZ2, SOV37 single sim specifically, but using Global H8216 Firmware since I bought my phone from a seller that already switch the firmware to H8216)

About the installation, should I use the installation guide from official LineageOS or follow the post #1 installation guide? I'm quite confused, afraid if i disable the verification of vbmeta, causing the phone to not boot at all.

Hope anyone can reply, thanks in advance ;D
 

MisterFynn

Member
Jan 19, 2018
39
1
About the installation of LineageOS...

I just unlock my bootloader (Mine was XZ2, SOV37 single sim specifically, but using Global H8216 Firmware since I bought my phone from a seller that already switch the firmware to H8216)

About the installation, should I use the installation guide from official LineageOS or follow the post #1 installation guide? I'm quite confused, afraid if i disable the verification of vbmeta, causing the phone to not boot at all.

Hope anyone can reply, thanks in advance ;D

Hay, yes you can flash it as described in the first post. But please make sure you flash Android 10 Stock via newflasher first. I'm not sure if you can find the stock firmware at the moment.... If not, ask me if I can find my version.

On the vbmeta verification question: I haven't completely narrowed down the bug yet, but I suspect that if you're using the wrong version of fastboot, the --disable-verity --disable-verification flags won't work. Just to be on the safe side, make sure you are using the latest version... And if it doesn't work then, use the oldest one you can find ;D So far I haven't had any problems with those flags, i think. But to be on the save side, do everything as discribed in the first post

If your XZ2 doesn't boot anymore and you get a red triangle with an exclamation mark, you can try to flash back the stock firmware with newflasher.

There are many parameters, but if something fails, you can ask us here to get help.

No guarantee,
Good luck!
 
Hay, yes you can flash it as described in the first post. But please make sure you flash Android 10 Stock via newflasher first. I'm not sure if you can find the stock firmware at the moment.... If not, ask me if I can find my version.

On the vbmeta verification question: I haven't completely narrowed down the bug yet, but I suspect that if you're using the wrong version of fastboot, the --disable-verity --disable-verification flags won't work. Just to be on the safe side, make sure you are using the latest version... And if it doesn't work then, use the oldest one you can find ;D So far I haven't had any problems with those flags, i think. But to be on the save side, do everything as discribed in the first post

If your XZ2 doesn't boot anymore and you get a red triangle with an exclamation mark, you can try to flash back the stock firmware with newflasher.

There are many parameters, but if something fails, you can ask us here to get help.

No guarantee,
Good luck!
Hey buddy, thanks. I'll take note for that.

About the Android 10 Stock, I ask the seller that sell my phone, in fact it was the Global Firmware for my phone, the seller change the firmware from the SOV37 to Global one.

I guess I can proceed with installation, I'll let you know if there is any problem occur.
 
Hey buddy, thanks. I'll take note for that.

About the Android 10 Stock, I ask the seller that sell my phone, in fact it was the Global Firmware for my phone, the seller change the firmware from the SOV37 to Global one.

I guess I can proceed with installation, I'll let you know if there is any problem occur.
I already install LineageOS on my XZ2, it works fine, however, I have few issues:

- NFC not working
- Sony camera crash; giving Unkown Error
- Mine was Single SIM - SOV37 one, I put my SIM card inside, but not detected.

(Note: I use the guide from the lineageOS website to install it)

@Sjll @MartinX3 @MisterFynn any solutions?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png
    Code:
    #include <std_disclaimer.h>
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */
    About LineageOS
    LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
    which is designed to increase performance and reliability over stock Android for your device.

    All the source code for LineageOS is available in the LineageOS GitHub repo.
    And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website : http://lineageos.org
    About LineageOS Legal : http://lineageos.org/legal/

    Important Information
    1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
    2. This ROM will never work with any versions of Google Camera (GCam)!
    3. You need to flash Stock Android 10 before flashing this ROM.
    4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!


    Downloads Links
    LineageOS 17.1:
    Lineage Official Link
    Unofficial-build:
    Link

    Google Applications (optional):
    OpenGapps:
    http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating

    How to flash
    Make sure you are upgrade to Official Android 10.0 from Sony
    Unlock bootloader is necessary.
    To disable AVB 2.0 using fastboot:
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    For vbmeta.img, you can download it anywhere you found.
    More steps see wiki

    Never flash oem from SODP!!
    If you flashed oem and meet any issues, I could only say you are a hanhan.

    Root access:
    Flash Magisk in recovery.

    Twrp:
    You could download it here: Link
    Code:
    fastboot boot twrp.img

    Sony Camera:
    1. Flash Magisk.
    2. Install selinux_permissive in Magisk.
    3. Install SemcCamera in Lineage rec.
    All files here

    Issues and reports

    Report issues only if you are using the ROM kernel
    If an additional mod is installed, make sure it's unrelated, and mention it
    Make sure the issue wasn't discussed earlier in the threads
    Share a log of the error with CatLog for example

    Also thanks to:
    Olivier
    Luk1337
    The LineageOS Team
    The CyanogenMod Team
    Everyone involved in working and testing

    XDA:DevDB Information
    Lineage 17.1 for Xperia XZ2, ROM for the Xperia XZ2

    Contributors
    Sjll, Olivier
    Source Code: https://github.com/LineageOS

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Official Android 10.0 firmware
    Based On: LineageOS

    Version Information
    Status: Stable

    Created 2020-04-27
    Last Updated 2020-10-14
    6
    FEATURES AND ISSUES
    Code:
    - Boot: Ok
    - Bluetooth: Ok
    - WiFi: Ok
    - WiFi Hotspot: Ok
    - Wireless display: Ok
    - RIL - Phone - Data: Ok
    - VoLTE: Ok
    - GPS: Ok
    - Camera: Ok
    - Camcorder: Ok
    - Lights: Ok
    - MicroSD: Ok
    - Accelerometer: Ok
    - Compass: Ok
    - Gyroscope: Ok
    - QTI sensors: Ok
    - Touchscreen: Ok
    - FM Radio: NA
    - Fingerprint: Ok
    - Vibrator: Ok
    - Microphone: Ok
    - Audio & music: Ok
    - Bluetooth audio: Ok
    - NFC: Ok
    - Kernel: Ok
    - Graphics: Ok
    - 3D Rendering: Ok
    - Clock: Ok
    - DRM: Widewine L3
    - Offline Charging: Ok
    - USB: Ok
    - USB Tethering:  Ok
    - USB OTG: Ok
    - Encryption: Ok
    - SEPolicies: Enforce
    5
    The first official build is up, please check the OP.
    NOTE: Since the official builds are signed, you shouldn't upgrade from my unofficial builds -- you can either migrate to an official build using a script or do a clean install.
    4
    So the stock camera should work?
    The stock camera (SemcCamera) works now, I've been testing it. Will be released soon I guess ;)
    4
    For official release of LineageOS, we need to wait for the first build, about next Wendesday.