[DISCONTINUED][GSI][9][Reference] LineageOS 16.0 GSI (all archs) and how to build them

Search This thread

krus5

Member
Jun 26, 2012
11
1
cubot A5

Just to let you know it works on cubot a5 is just bit slow and laggy and battery drain was about 30% during night on aeroplane mode. Apart from it everything worked.
 

T3ll3S

Member
Oct 11, 2019
26
6
Hello, this ROM works fine on my Alcatel 1x 5059D but I cant charge the phone when I shutdown, it only charges when the phone is booted up. What do I do?
:confused:
 

&(*)

Senior Member
May 8, 2020
380
32
Xperia XZ2
G8231 & G8232 XZs crashes/freezes running a/b GSI Lineage & Havoc; freezes on lock screen after first shutdown and reboot, sporadic freezing thereafter. Anyone with tweaks or a fix with the same issue on other devices (tried the appops.xml delete, remanifests after the service is started upon reboot)? Was able to setenforce SELinux (1) to my surprise, nothing to do with the random crashes and freezes. Maybe it's the latest update/build?
 

gringo80

Account currently disabled
Jun 8, 2018
743
656
No answers or help, as usual..
Really sad.

LOS GSI builds are not for noobs ... sorry for you guys ! There are a lot of stuff that the end users must complete themselves for their specific vendors : fixing audio, bluetooth, fingerprint, additional permissions, battery offline charger, init, FM Radio, NXP NFC ... etc. You must refere to your stock ROM to achieve these things !

All GSI must be used as a "base" ROM ... and not as a "full" ROM ... That's why it is called "Treble Experimentation" !

Cheers
 

gringo80

Account currently disabled
Jun 8, 2018
743
656
Nice, but ...

I just built a LOS 16.0 release with the July 2020 security patch and posted the images here: https://www.androidfilehost.com/?w=files&flid=306989

In services.jar (core)
Xiaomi FOD Interface (aka IXiaomiFingerprint) is missing from vendor
facola (FOD icon) is missing in com/android/server/fingerprint

You are using LOS FingerprintInscreen implementation, that had no system/vendor library or permission and no interface link in /bin/rw-system.sh, you should keep the one from AOSP used by phhusson !

Cheers
:good:
 

JonnyTech

Senior Member
Dec 4, 2013
133
46
OnePlus 6T
Magendanz said:
it's not clear to me why anyone would be using LOS 16.0 GSIs at this point now that LOS 17.1 is so stable.

Yes, LOS 17.1 is indeed very stable, but on my low-end device it is rather laggy, consuming ~90% RAM just at idle. The difference in performance and responsiveness between 16.0 and 17.1 is substantial, so as much as I want to upgrade, I cannot if I want a usable device. Thanks for your reply, much appreciated, I shall continue to use your last LOS 16.0 build for the foreseeable future.
 

GroovyG

Senior Member
Jan 18, 2011
197
68
Things are really smooth and flawless! Tested since my latest comment on this thread and no regreats ever since ?

However, background imagens app crashes sometimes (not a big issue, but maybe check that out in the future).

NOTE: I found a really strong solution for the ones who suffer from UI/app stutters like me. It really brings the performance to stock-like level, which is great on a GSI. Kudos to Anton Paulic and Dinolek for this.
You have to paste the following code in your vendor build.prop (to prevent the lost of it during system flashes)

debug.sf.latch_unsignaled=1
Wooooow thank you so much!

I'm just setting up a device (BV9100) with @eremitein 's LiR GSI and found it VERY laggy everywhere, a search brought me to your post and boom! Smooth as silk!
 

AndyYan

Recognized Contributor
Jan 30, 2012
4,713
4,260
Beijing
Someone outside of XDA informed me that the 16.0 build script is broken, so I hastily synced and fixed it, up to the point where it'll start building, but I didn't actually finish the build, so no image updates.

Man, time flies, the breakage happened early this year and it went unnoticed...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 83
    640px-Lineage_OS_Logo.png


    Background:
    We've been offered LOS 16 GSIs in the past (here, and here), but they haven't been updated in quite a while, so as a LineageOS lover, I decided to step up and do it myself. Turns out it wasn't so easy - there were a number of hurdles that prevented it from building properly, booting or being feature-complete. But here I am, having figured out most if not all what's needed, and verified booting on an arm64 ab device I own, I'm ready to share my findings as well as some builds with you.

    Disclaimer:
    This is still mostly a LineageOS team / PHH @phhusson effort, credits to them and all associated for making all this possible.
    No instructions will be offered. If you're here in this forum, you should know what you're doing.
    No guarantees that everything would work. This is a GSI, bugs are bound to happen.
    Do not report hardware-related bugs in this thread. I am selfish and only care about getting it running on my device with whatever features I need working. Plus I'm not PHH and can't solve any either.

    Download:
    https://sourceforge.net/projects/andyyan-gsi/files/
    Compressed as .xz archives - extract first.
    Vanilla except for these changes:
    • Modifications needed to make it build/boot/feature-complete, see below
    • Disabled "vendor mismatch" warning on boot
    • Re-enabled lockscreen shortcuts
    • Default stretch-to-fullscreen (force apps to render in 18:9)

    Extra tip:
    If you have a relatively low-end device and experience UI stutters, try this simple build.prop trick (technically a debug property, so use at your own risk). Thanks @SnapTheRipper for bringing it up!

    Modifications needed (builders-only):
    Now for the juicy part. On top of PHH's already fantastic build script, you'll need these:
    device/phh/treble:
    build/make:
    external/tinycompress:
    frameworks/base:
    vendor/lineage:
    vendor/qcom/opensource/cryptfs_hw:
    And that's it. Doesn't look like much, but most are pretty hacky solutions, and I don't expect them to be merged anywhere. As I said, I'm only interested in getting it running, I don't care what it takes.

    Stuff on GitHub (builders-only):
    I've also collected necessary scripts/patches and uploaded them: treble_build_los, treble_patches (PHH's treble_patches adjusted for LOS). Not the cleanest code, but should help if you still need more clues.

    Donate?
    https://paypal.me/AndyCGYan

    Thanks for reading - I hope this could be of use to fellow LineageOS lovers / home builders.
    24
    Things are really smooth and flawless! Tested since my latest comment on this thread and no regreats ever since ?

    However, background imagens app crashes sometimes (not a big issue, but maybe check that out in the future).

    NOTE: I found a really strong solution for the ones who suffer from UI/app stutters like me. It really brings the performance to stock-like level, which is great on a GSI. Kudos to Anton Paulic and Dinolek for this.
    You have to paste the following code in your vendor build.prop (to prevent the lost of it during system flashes)

    debug.sf.latch_unsignaled=1
    14
    Updated all variants with September security patches and in sync with PHH v119. [Insert obligatory backup-and-test warning here]
    - Now covering all device architectures, including arm-ab, arm_binder64-a, arm_binder64-ab - as shown by the survey, these have very few users and thus weren't thoroughly crowd-tested, but I believe I've done what I can here. I've worked around the privapp permissions so you won't need that whitelist xml from earlier.
    - Using PHH's FOD implementation, as stated before
    - Minor changes to building process will be synced to GitHub shortly, when I have time

    Since I shelled out quite a bit for that SSD, here's a donation link if you like this stuff and want to help me a bit: https://paypal.me/AndyCGYan
    13
    A lil teaser - I managed to build and boot LOS 17 based on PHH v200.e. The building flow is largely unchanged, which is a relief. The image itself seems to function okay (I didn't test it in-depth), but LOS 17 upstream is still under development so certain features are missing, and the issues and non-booting samples people report about PHH v20x builds should also apply here.
    I might upload a test build for one arch after I clean up the process, but actual release will follow PHH's.
    Please keep in mind that PHH v20x is currently pre-release. The best thing to do right now is to try installing those AOSP test builds on your devices and report non-booting/bugs/instabilities to help PHH develop.
    12
    Updated all 3 variants with July security patches and in sync with PHH v115. [Insert obligatory backup-and-test warning here]