[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.
 

Ecthelion4

Member
Apr 14, 2017
34
5
can you provide the guide how you flashed the rom. currently i am at Sodp 11 beta. what am I supposed to be doing if I am comin from that rom.
AFAIK the gist in this case is that you should first flash the Stock ROM and then follow the installation instructions for the XZ2 on the official LineageOS pages.
 
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,710
2,822
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,005
3,987
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: 25
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:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Đượ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
    chào anh, I am pretty sure just a few speak vietnamese here...
  • 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.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone