FORUMS

 View Poll Results: Should I continue this project?

Yes, for the XZ2.
 
17 Vote(s)
29.82%
Yes, for the XZ2C.
 
26 Vote(s)
45.61%
Yes, for the XZ3.
 
14 Vote(s)
24.56%
No.
 
0 Vote(s)
0%

[ROM][LineageOS][XZ2, XZ2C, XZ3] LineageOS 17.1 [UNofficial]

4,876 posts
Thanks Meter: 2,493
 
By MartinX3, Recognized Contributor on 2nd February 2020, 07:48 PM
Post Reply Email Thread
Announcement from MartinX3: LineageOS 17.1 for the Xperia XZ2, XZ2C and XZ3
The Sony Open Devices Project is always happy about volunteers (coding, testing, etc)

Code:
#include <std_disclaimer.h>
/*
 *
 * We are 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 us for messing up your device, we will laugh at you.
 *
 */
This is the LineageOS ROM for the Sony Xperia XZ2 (akari), XZ2C (apollo) and XZ3 (akatsuki)

It includes OpenGapps Pico for now, until there is an usable TWRP to flash it by yourself.

This ROM build will always mainly based on Code from Sony AOSP & LineageOS and maybe include cherry-picks.
I plan to make monthly builds, after a new security patch level and the OEM binary got fully implemented, if there is no need for a critical hotfix.

FAQ:
Quote:
Originally Posted by jerpelea

for a complete security patch you have to
1. flash the stock firmware using https://developer.sony.com/develop/open-devices/get-started/flash-tool/
2. build and flash the ROM
* The security patch may affect or not the proprietary parts depending on HW and implementation
* After official support ends you can still get security updates for kernel and Android but loader and firmware will be stuck to the latest official release

Known Bugs:
Bugtracker:
Bugreport:
  • A bugreport needs logcat, dmesg and a way to reproduce the issue.
  • A crash of the system requires the content of the /sys/fs/pstore folder as bug report
    • Be aware that a second reboot erases this folder
  • A crash to the recovery partition requires additionally the content of the /dev/block/by-name/misc partition
    • You get the content via `cat /dev/block/by-name/misc partition > /path/to/output/file.txt`
  • To rescue a not responding phone:
    • VOLUP+POWER for 3 Seconds -> RESTART with one Vibration.
    • VOLUP+POWER for 20 Seconds -> SHUTDOWN with 3 Vibrations.
    • VOLUP+POWER+CAMERA for 30 Seconds -> HARDWARE SHUTDOWN by discharging a capacitor.

Thank you very much for your help, code contribution & testing! (Random order):
  • @jerpelea and the entire SODP developers paid by and get inventory from the sony company and their volunteers coding this wonderful piece of software
  • @dhacke thank your for providing a download server
  • And many thanks to the few donators!

A telegram group for technical SODP stuff:
https://t.me/xda_tv

XDA:DevDB Information
LineageOS, ROM for the Xperia XZ2

Contributors
MartinX3, SODP Team
Source Code: https://github.com/MartinX3-AndroidD...ent-LineageOS/

ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Latest Stock Firmware
Based On: LineageOS

Version Information
Status: Beta

Created 2020-02-02
Last Updated 2020-03-06
The Following 15 Users Say Thank You to MartinX3 For This Useful Post: [ View ] Gift MartinX3 Ad-Free
2nd February 2020, 07:48 PM |#2  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
Download & Installation
Download:
Installation:
  1. FASTBOOT
    1. fastboot flash boot boot.img
    2. fastboot flash dtbo dtbo.img
    3. fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img (these parameters are only important if you use a dual sim device or magisk)
    4. fastboot flash system system.img
    5. fastboot flash vendor vendor.img
    6. fastboot flash oem_a oem_*.img (Tama (latest) -> https://developer.sony.com/file/down...nel-4-14-tama/
    7. fastboot flash oem_b oem_*.img (Tama (latest) -> https://developer.sony.com/file/down...nel-4-14-tama/
    8. (Optional, but mandatory on first boot) fastboot flash userdata userdata.img -> will factory reset the device.
  2. Reboot into SYSTEM
The Following 9 Users Say Thank You to MartinX3 For This Useful Post: [ View ] Gift MartinX3 Ad-Free
2nd February 2020, 07:48 PM |#3  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
News
09.03.2020
Quote:

march 2020 security update
oemv4 -> camera & other improvements
and any other lineageos / sodp open source changes since my last build

ps: Camera is work in progress.

Ps0:
Other than the aosp release, this lineageos got the new ril by qcom enabled for mobile network access.
Please test and report bugs. (dmesg & logcat, -> and pstore if the device crashes)
it will get activated in the next aosp release as well, if it makes no trouble.

01.03.2020
Quote:

oemv4 is needed or device won't boot.
Oemv4 is not backward compatible with older releases.


oemv4 -> camera & other improvements
and any other lineageos / sodp open source changes since my last build

ps: Camera is work in progress.

Ps0:
Other than the aosp release, this lineageos got the new ril by qcom enabled for mobile network access.
Please test and report bugs. (dmesg & logcat, -> and pstore if the device crashes)
it will activated in the next aosp release as well, if it makes no trouble.

29.02.2020
Quote:

added support for every sodp supported xperia https://github.com/martinx3-androidd...ent-lineageos/
(except the loire and tone platform which no one requested.)

the oemv4 rom release will delay a bit.
Was in the need to delete my build cache for aosp and lineageos.

25.02.2020
Quote:

need to take down the builds.
Oemv4 which comes tomorrow got some additional last minute changes today which needs a new rom compilation.

24.02.2020
Quote:

oemv4 is needed or device won't boot.
Oemv4 is not backward compatible with older releases.


oemv4 -> camera & volte & other improvements
and an other lineageos / sodp open source changes since my last build

ps: Camera is work in progress.
Oemv4 maybe comes tomorrow.


15.02.2020
Quote:

feburary security patch level
fixed bugs, now my sony aosp release and this lineageos port should contain the same amount of bugs (aside from the stuff on the lineageos part).
Switched from alpha to beta version.

The only instability i found on my own xz2 is a crash at night in flightmode without charger.
Anything else doesn't crash it here.
Might be various reasons.
If anyone has the same bug, please provide logs in my github issue tracker.
(and please look if your logs contain more informations than my logs).

02.02.2020
Quote:

the first lineageos 17.1 build based on the sodp device trees.
My vanilla sodp release and lineageos should share the same bugs.
Plus bugs / missing features in lineageos and bugs introduced by myself porting sodp to lineageos :silly:

sadly i can't upload it at the moment to android file host.
Their new "stackpath" ddos blocking solution banned me, because i tried to upload the rom in 6 browser tabs. :silly:

fixed

have fun!

Ps: Camera is work in progress.

Twrp 10 is not ready, so i sadly can't start develop one for the xz2, xz2c, xz3.
https://twrp.me/site/update/2019/10/...ndroid-10.html
that's the reason i include opengapps pico for now.

And to use magisk, simply patch the boot.img by yourself in the magik manager app and flash it via fastboot.
Maybe you need to deactivate vbmeta, which wasn't the case at my site.

Gcam doesn't work with oemv3.
There is a library missing.

The Following 6 Users Say Thank You to MartinX3 For This Useful Post: [ View ] Gift MartinX3 Ad-Free
2nd February 2020, 07:53 PM |#4  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
02.02.2020
Quote:

The first LineageOS 17.1 build based on the SODP device trees.
My vanilla SODP release and LineageOS should share the same bugs.
Plus bugs / missing features in LineageOS and bugs introduced by myself porting SODP to LineageOS

Sadly I can't upload it at the moment to Android File Host.
Their new "Stackpath" DDOS blocking solution banned me, because I tried to upload the ROM in 6 browser tabs.

Fixed

Have Fun!

PS: Camera is work in progress.

TWRP 10 is not ready, so I sadly can't start develop one for the XZ2, XZ2C, XZ3.
https://twrp.me/site/update/2019/10/...ndroid-10.html
That's the reason I include OpenGapps Pico for now.

And to use Magisk, simply patch the boot.img by yourself in the magik manager app and flash it via fastboot.
Maybe you need to deactivate vbmeta, which wasn't the case at my site.

GCAM doesn't work with OEMv3.
There is a library missing.

The Following 7 Users Say Thank You to MartinX3 For This Useful Post: [ View ] Gift MartinX3 Ad-Free
3rd February 2020, 12:52 AM |#5  
Member
Thanks Meter: 12
 
More
Nice work Martin!!!
I had looked forward to be released this rom

And i have a question to you.
Does this rom support VoLTE?
3rd February 2020, 09:56 AM |#6  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
Quote:
Originally Posted by Orihamburger

Nice work Martin!!!
I had looked forward to be released this rom

And i have a question to you.
Does this rom support VoLTE?

Thank you

Yes, at least I can use VoLTE in my country with my provider.
You need to test it by yourself.
The Following 2 Users Say Thank You to MartinX3 For This Useful Post: [ View ] Gift MartinX3 Ad-Free
3rd February 2020, 11:40 AM |#7  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
I need some help from testers for logs and observed behavior.
It seems that the phone crashes while sleeping in combination with the installed firmware on my XZ2.
Does this crash only happen when someone upgraded his phone to stock 10.0 first or does it also happen with a previously installed stock 9.0 rom?
https://github.com/MartinX3-AndroidD...acker/issues/1
3rd February 2020, 01:01 PM |#8  
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by MartinX3

I need some help from testers for logs and observed behavior.
It seems that the phone crashes while sleeping in combination with the installed firmware on my XZ2.

I had the same on PE.
PE rom flashed over latest stock firmware, then latest aosp oem binary.
And always when I Iock phone for some time, impossible to wake up it. Only restart helps using volup+power.

P.S. now i'm on stock.
3rd February 2020, 01:29 PM |#9  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
Quote:
Originally Posted by zhka

I had the same on PE.
PE rom flashed over latest stock firmware, then latest aosp oem binary.
And always when I Iock phone for some time, impossible to wake up it. Only restart helps using volup+power.

P.S. now i'm on stock.

Thank you
I'm curious if it is the same issue.
3rd February 2020, 06:12 PM |#10  
Member
Thanks Meter: 9
 
More
hi martin, thanks a lot for your work, a question, in this version the general stability of this rom is the same of your sonyaosp project? i will try today or tomorrow
3rd February 2020, 09:25 PM |#11  
MartinX3's Avatar
OP Recognized Contributor
Thanks Meter: 2,493
 
Donate to Me
More
Quote:
Originally Posted by nikkdib

hi martin, thanks a lot for your work, a question, in this version the general stability of this rom is the same of your sonyaosp project? i will try today or tomorrow

Thank you, you're welcome

In theory it only contains bugs from SODP and LineageOS
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes