[ROM][13][AKARI][OFFICIAL] LineageOS 20.0

Search This thread

dtrunk90

Senior Member
Oct 29, 2021
567
287
32
Sony Xperia XZ2 Compact
Xperia XZ2
2okPze5.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 13.x (T),
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 : https://lineageos.org/
About LineageOS Legal : https://lineageos.org/legal/

Important Information
1. This ROM will never work with any versions of Google Camera (GCam)!
2. You need to flash Stock Android 10 before flashing this ROM.

Downloads Links
LineageOS 20.0:
Official builds:
Link

Google Applications (optional):
MindTheGapps:
https://wiki.lineageos.org/gapps
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
Please refer to the official installation guide at https://wiki.lineageos.org/devices/akari

Pass SafetyNet
Some apps like banking/payment apps or games require to pass SafetyNet.
There are 2 options:

Option 1: Without Root
1. Download the latest release of ih8sn here.
2. Replace the content of system/etc/ih8sn.conf inside the zip file with:
Code:
BUILD_FINGERPRINT=Sony/H8266/H8266:8.0.0/51.1.A.3.159/620448843:user/release-keys
3. Install the zip file through recovery.

Option 2: With Root
1. Install latest Magisk APK through recovery.
2. Install Universal SafetyNet Fix as Magisk module.
3. Install MagiskHide Props Config as Magisk module.
4. Run the following command either in ADB shell or a Terminal emulator app like Termux after running su to set a certified fingerprint:
Code:
props
5. Enable Zygisk and deny list and add some Apps to the deny list to hide rooting status.

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 Logcat for example

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

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

Contributors

dtrunk90
Source Code: https://github.com/LineageOS

Donation
https://paypal.me/dtrunk90

ROM OS Version: Android 13
ROM Kernel: Linux 4.9
ROM Firmware Required: Official Android 10.0 firmware
Based On: LineageOS

Version Information
Status:
Stable

Created 2022-10-23
Last Updated 2022-12-19
 
Last edited:

osa355

Senior Member
Mar 25, 2018
51
13
How do I want to have Google services then I should install MindTheGapps-13.0.0-arm64?
 
Wow! Thanks a lot, @dtrunk90 ! I dirty-flashed this ROM over the official LOS 19.1 one. Also the full Nikgapps package for A13 and the latest Magisk Delta Canary. Things that never worked for me before are now up and running: AAC Bluetooth coded, and most amazingly, NFC and, thus, contactless payments! I'm certainly keeping this ROM running on both my XZ2 and XZ3 phones. Hope you keep updating it at least after each monthly security patches by Google.
 
Last edited:

dtrunk90

Senior Member
Oct 29, 2021
567
287
32
Sony Xperia XZ2 Compact
Xperia XZ2
Wow! Thanks a lot, @dtrunk90 ! I dirty-flashed this ROM over the official LOS 19.1 one. Also the full Nikgapps package for A13 and the latest Magisk Delta Canary. Things that never worked for me before are now up and running: AAC Bluetooth coded, and most amazingly, NFC and, thus, contactless payments! I'm certainly keeping this ROM running on both my XZ2 and XZ3 phones. Hope you keep updating it at least after each monthly security patches by Google.
We're going official once lineage 20 is ready. Then weekly builds are automated.
 

dtrunk90

Senior Member
Oct 29, 2021
567
287
32
Sony Xperia XZ2 Compact
Xperia XZ2
so it is imperative to use a memory card with format fat32
We have the sdfat driver in our kernel which supports fat12/16/32 with vfat and also exfat. Maybe we can use that but I would need to test. exFAT is on my TODO list. Afaik we only need to set CONFIG_SDFAT_FS=y and CONFIG_SDFAT_USE_FOR_EXFAT=y in our defconfigs for apollo, akari, akatuki and aurora. But I've never tested it. It was never used before I took over maintainership for tama devices.

So, yes. At least for now you'll need fat32.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Don't ask me why, but my NFC works again.
    1
    I download last update via OTA and start install but phone shutdown and now i have black screen i can not start phone 🤔
    Are you able to get into fastboot mode? In such cases you can try to switch the slot back to the previous working one:
    Code:
    fastboot --set-active=a
    or
    Code:
    fastboot --set-active=b
    depending on which slot the working slot is.
    And then re-do the OTA update.
    1
    Are you able to get into fastboot mode? In such cases you can try to switch the slot back to the previous working one:
    Code:
    fastboot --set-active=a
    or
    Code:
    fastboot --set-active=b
    depending on which slot the working slot is.
    And then re-do the OTA.
    Phone wakeup alone after 2 hours and update install correctly. Strange things 😁 after this i reflash system via recovery. I used this phone only for flash different custom roms for different phones 😁

    I don't understand these slots. It's like there are 2 systems or 2 partitions?
    1
    Hi. Today it was a whim to open the phone to replace the battery . Unfortunately I damaged the display in the process. Also I wanted to thank everyone for the nice cooperation and super system. I end the adventure with the XZ2. Interestingly, the battery looks like new. It is not stuffed. Instead, I had problems with the usb socket. Charging had to be done with the original charger. I already started to miss :)
    Regards.
    I saw you on xz2's xda forum a long time ago
    1
    I think with the newest update the phone got faster.
    But it keeps draining battery as fast as it is.
  • 11
    2okPze5.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 13.x (T),
    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 : https://lineageos.org/
    About LineageOS Legal : https://lineageos.org/legal/

    Important Information
    1. This ROM will never work with any versions of Google Camera (GCam)!
    2. You need to flash Stock Android 10 before flashing this ROM.

    Downloads Links
    LineageOS 20.0:
    Official builds:
    Link

    Google Applications (optional):
    MindTheGapps:
    https://wiki.lineageos.org/gapps
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating
    Please refer to the official installation guide at https://wiki.lineageos.org/devices/akari

    Pass SafetyNet
    Some apps like banking/payment apps or games require to pass SafetyNet.
    There are 2 options:

    Option 1: Without Root
    1. Download the latest release of ih8sn here.
    2. Replace the content of system/etc/ih8sn.conf inside the zip file with:
    Code:
    BUILD_FINGERPRINT=Sony/H8266/H8266:8.0.0/51.1.A.3.159/620448843:user/release-keys
    3. Install the zip file through recovery.

    Option 2: With Root
    1. Install latest Magisk APK through recovery.
    2. Install Universal SafetyNet Fix as Magisk module.
    3. Install MagiskHide Props Config as Magisk module.
    4. Run the following command either in ADB shell or a Terminal emulator app like Termux after running su to set a certified fingerprint:
    Code:
    props
    5. Enable Zygisk and deny list and add some Apps to the deny list to hide rooting status.

    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 Logcat for example

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

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

    Contributors

    dtrunk90
    Source Code: https://github.com/LineageOS

    Donation
    https://paypal.me/dtrunk90

    ROM OS Version: Android 13
    ROM Kernel: Linux 4.9
    ROM Firmware Required: Official Android 10.0 firmware
    Based On: LineageOS

    Version Information
    Status:
    Stable

    Created 2022-10-23
    Last Updated 2022-12-19
    6
    First official build will be available in a few hours! I've already updated this thread so I don't have to do it later.
    5
    Wow! Thanks a lot, @dtrunk90 ! I dirty-flashed this ROM over the official LOS 19.1 one. Also the full Nikgapps package for A13 and the latest Magisk Delta Canary. Things that never worked for me before are now up and running: AAC Bluetooth coded, and most amazingly, NFC and, thus, contactless payments! I'm certainly keeping this ROM running on both my XZ2 and XZ3 phones. Hope you keep updating it at least after each monthly security patches by Google.
    We're going official once lineage 20 is ready. Then weekly builds are automated.
    4
    New build from today uploaded
    3
    Hi there! I started with tinkering with XZ2C I had laying around, with a stock 10.0 firmware.
    So I got to unlock the bootloader and went through all the install guide, but ... I can't get past the recovery image, I mean, I get stuck in a bootloop, with no recovery at all. @MartinX3 past work got me saved, with TWRP recovery. What am I missing?
    Thanks all!
    The easiest way would be to flash the stock firmware on both slots (you can change the slots with fastboot and flash them with xperifirm).
    But please use your region firmware for VoLTE.

    Then flash the boot image like described here https://wiki.lineageos.org/devices/akari/install and then boot the recovery to install the LOS20 zip file.

    Also you should boot the stock firmware once until you see your apps to make sure your modem has the newest update.