FORUMS
Remove All Ads from XDA

[10] LineageOS 17.0 for z3c

985 posts
Thanks Meter: 1,956
 
By NeoArian, Recognized Developer on 2nd October 2019, 10:15 AM
Post Reply Email Thread
LineageOS
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.
 */
Introduction
Quote:

LineageOS, an open-source Android distribution, is available for several devices,
with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
Join us and breathe new life in your device, be it old or new.

If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

Images
COMING SOON


Features
Individuality
Quote:

Customization is paramount to productivity.
That’s why LineageOS promises to push for user personalization and preference.
Everyone is unique and your device should be too.

Security
Quote:

Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
Trust will help you understand the security of your device and warn you about possible threats.
We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
And to make your device more secure, lock everything behind an enhanced lock screen.

Longevity
Quote:

LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

Installation instructions
Prerequisites:
  • Unlocked Sony Xperia Z3 Compact
  • Fastboot drivers to install TWRP
  • Micro-USB Cable to connect your phone to your computer
Install:
  1. Reboot to TWRP. *
  2. Wipe cache, dalvik cache, data and system.
  3. Install ROM.
  4. Install 10.0 Gapps for ARM. **
* recommended TWRP: Post #2
** optional

Changelog
Code:
COMING SOON
Old Changelogs



Downloads
Download the ROM

Sources
DEVICE:
https://github.com/z3c-pie/device_sony_z3c
https://github.com/z3c-pie/device_sony_msm8974-common
https://github.com/z3c-pie/device_sony_shinano-common

KERNEL:
https://github.com/z3c-pie/kernel_sony_msm8974

Addons
OpenGapps
Magisk
SU-Addon


Thanks
Whole LineageOS Team for this amazing ROM
@koron393
@SpiritCroc
@Myself5
@nailyk
@drakonizer
@rcstar6696
@tomascus
I hope I haven't forgot anyone

Bugs
Current hardware support state: Gist
WHAT'S BROKEN
  • Offline Charging displays a bright black screen
  • Encryption
  • You tell me.


FAQ
COMING SOON

XDA:DevDB Information
LineageOS 17.0 for z3c, ROM for the Sony Xperia Z3 Compact

Contributors
NeoArian
ROM OS Version: Android 10
ROM Kernel: Linux 3.x
ROM Firmware Required: 23.5.A.1.291
Based On: AOSP

Version Information
Status: Beta

Created 2019-10-02
Last Updated 2019-10-02
The Following 12 Users Say Thank You to NeoArian For This Useful Post: [ View ]
2nd October 2019, 10:15 AM |#2  
NeoArian's Avatar
OP Recognized Developer
Flag Gladbeck
Thanks Meter: 1,956
 
Donate to Me
More
TWRP Recovery
TWRP 3.3.1 for our z3c with Android 10!

The TWRP for Android 10 is available here: https://sourceforge.net/projects/eph...c.img/download
Source is available at: https://github.com/z3c-pie/twrp_devi...e/android-10.0

Changelog for twrp-3.3.1-1-A10.0-z3c.img
  • Added Bootlogo, booting from offline state will display the original sony logo now instead of nothing
  • Fixed fastboot boot
  • Updated kernel cmdline from 23.5.A.1.291

How to install this build:
  • Reboot to fastboot by holding volume up while connecting your device to your computer
  • Open a terminal and move to the directory with TWRP in it
  • Rename the downloaded image to twrp.img
  • Type
    Code:
    fastboot flash recovery twrp.img
  • Boot into TWRP while the device is powered off press the power and volume down button

Feel free to ask questions or give feedback about TWRP here .

Have a nice day!

Additional information about the recovery on this device:
Quote:

First of all we should make the basics clear: On our Z3 Compact we have got a bootloader update which can boot a recovery from powered off state by pressing volume down and the power button. Because we haven't ever had this updated bootloader and not all sony devices received the update, there have been some intelligent people who brought a special init binary which can handle recovery boots during a normal boot. This means when using advanced reboot from the ROM or pressing a volume key while the sony logo appears at boot. https://github.com/LineageOS/android...s/lineage-16.0

To make this work there is this method to extract the ramdisk: https://github.com/LineageOS/android...ct_ramdisk.cpp which uses zlib to decompress it. So far so good, zlib can decompress the default compression for recovery ramdisk which is gzip. However LZMA is more effective to reduce the size so we took it's advantage: https://github.com/omnirom/android_d...15bdc8573679bc in order to fit recoverys compiled from recent environments (android-9.0 in my case) into our small FOTAKernel partition.

According to this change the init_sony can't handle the recovery boot anymore because it can't decompress the recovery's ramdisk so nailyk and Diewi (as far as i know) added support to decompress LZMA compressed ramdisk's with this chain: https://github.com/sonyxperiadev/dev...ull/20/commits
However these commits have never been merged into the LineageOS/android_device_sony_common nor the sonyxperiadev/device-sony-common-init. Since your ROM, CarbonROM, is using a fork of LineageOS/android_device_sony_common is missing these commits the recovery boot fails with a kernel panic, like this: https://del.dog/egawososux.htm

So you can either use a recovery which doesn't compress the ramdisk with LZMA (for example the one from here: https://forum.xda-developers.com/z3-...aries-t3837192 or ask your ROM developer to pick the according commits into the sony_common tree/use my fork of LineageOS's one https://github.com/z3c-pie/android_d...c82d8bf0486a93 which would enable you to use recent TWRP builds with a LZMA compressed ramdisk.

I hope i presented it clearly and in the right way,
Have a nice day!

EDIT: Minimized patch for LZMA is available here: https://review.lineageos.org/c/Linea...ommon/+/252923

The Following 7 Users Say Thank You to NeoArian For This Useful Post: [ View ]
2nd October 2019, 11:16 PM |#3  
NeoArian's Avatar
OP Recognized Developer
Flag Gladbeck
Thanks Meter: 1,956
 
Donate to Me
More
The new build is up!
Get it from here: https://sourceforge.net/projects/eph...c.zip/download
Make sure to use the new TWRP from Post #2 because Android 10 introduces System-as-Root which can lead to weird behaviour in the old TWRP.
Note that there are not all features from LineageOS 16.0 ported over yet and there can be unexpected, yet unlisted bugs.

MY personal hardware support list can be found here: https://gist.github.com/ArianK16a/1e...22d9cf0e16c3c0 but as always, i can't guarantee you anything!

Happy flashing!
The Following 11 Users Say Thank You to NeoArian For This Useful Post: [ View ]
3rd October 2019, 12:07 AM |#4  
Junior Member
Thanks Meter: 1
 
More
I will try, thx :>

but there are no opengapps for 10,
what about this? will be good?
https://www.cyanogenmods.org/downloa...or-android-10/
3rd October 2019, 02:07 AM |#5  
Junior Member
Thanks Meter: 1
 
More
hah ok now I don`t know anything... ;/
still same problem with this freakin camera and torch exactly like in v16

all my steps:

1.
flashtool64 -> Stock Android 6.0.1 for D5803 - 23.5.A.1.291 - Unbranded - Baltic Generic (1288-5413)
https://forum.xda-developers.com/z3-...d5833-t2906706

2.
TWRP for 6.01 - with this https://forum.xda-developers.com/z3-...75-lb-t3418714
Kernel .575 -> recovery for mm575 ->kernel .291

3.
installation of yours TWRP - twrp-3.3.1-A10.0-z3c

4. in twrp 3.3.1 wipe cache, dalvik cache, data and system, rom installation

5. camera and torch doesn`t working ;/ "camera keeps stopping" and torch is greyed out
3rd October 2019, 10:16 AM |#7  
NeoArian's Avatar
OP Recognized Developer
Flag Gladbeck
Thanks Meter: 1,956
 
Donate to Me
More
Quote:
Originally Posted by hhpl

hah ok now I don`t know anything... ;/
still same problem with this freakin camera and torch exactly like in v16

all my steps:

1.
flashtool64 -> Stock Android 6.0.1 for D5803 - 23.5.A.1.291 - Unbranded - Baltic Generic (1288-5413)
https://forum.xda-developers.com/z3-...d5833-t2906706

2.
TWRP for 6.01 - with this https://forum.xda-developers.com/z3-...75-lb-t3418714
Kernel .575 -> recovery for mm575 ->kernel .291

3.
installation of yours TWRP - twrp-3.3.1-A10.0-z3c

4. in twrp 3.3.1 wipe cache, dalvik cache, data and system, rom installation

5. camera and torch doesn`t working ;/ "camera keeps stopping" and torch is greyed out

I don't understand what you are doing after you flashed stock. Can you also format data within my twrp? I have recognised that the /data partition size has been set wrong in most older TWRP's.
Quote:
Originally Posted by hhpl

I will try, thx :>

but there are no opengapps for 10,
what about this? will be good?
https://www.cyanogenmods.org/downloa...or-android-10/

There are GApps: https://sourceforge.net/projects/ope...beta/20190928/
The Following 2 Users Say Thank You to NeoArian For This Useful Post: [ View ]
3rd October 2019, 11:40 AM |#8  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by NeoArian

I don't understand what you are doing after you flashed stock. Can you also format data within my twrp? I have recognised that the /data partition size has been set wrong in most older TWRP's.

ok I had something in my head that I needed first this marshmallow recovery... I don`t know why

but now I flashed once again 291 and then yours twrp and wiped all the stuff ofc included data and still torch and camera doesn`t work ;/
3rd October 2019, 11:43 AM |#9  
NeoArian's Avatar
OP Recognized Developer
Flag Gladbeck
Thanks Meter: 1,956
 
Donate to Me
More
Quote:
Originally Posted by hhpl

I don't understand what you are doing after you flashed stock. Can you also format data within my twrp? I have recognised that the /data partition size has been set wrong in most older TWRP's.

ok I had something in my head that I needed first this marshmallow recovery... I don`t know why

but now I flashed once again 291 and then yours twrp and wiped all the stuff ofc included data and still torch and camera doesn`t work ;/

Format is not wipe. Make sure that twrp asks you to confirm by typing yes.
The Following 2 Users Say Thank You to NeoArian For This Useful Post: [ View ]
3rd October 2019, 12:22 PM |#10  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by NeoArian

Format is not wipe. Make sure that twrp asks you to confirm by typing yes.

ok done, once again nothing new, still same situation
3rd October 2019, 02:17 PM |#11  
Junior Member
Thanks Meter: 0
 
More
Can this ROM be installed on top of LineageOS 16 without wape?
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