FORUMS

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

4,133 posts
Thanks Meter: 3,288
 
Post Reply Email Thread


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.
The Following 82 Users Say Thank You to AndyYan For This Useful Post: [ View ] Gift AndyYan Ad-Free
GuestK00171
6th March 2019, 11:52 AM |#2  
Guest
Thanks Meter: 0
 
More
Is there any chance for A-only 64 build?
The Following 2 Users Say Thank You to For This Useful Post: [ View ] Gift Ad-Free
6th March 2019, 04:09 PM |#3  
Dejvid50's Avatar
Senior Member
Flag Topoľčany
Thanks Meter: 959
 
More
Quote:
Originally Posted by Lecterr

Is there any chance for A-only 64 build?

I hope will be for A-only too.. many people would welcome it .
7th March 2019, 05:20 AM |#4  
AndyYan's Avatar
OP Recognized Contributor
Flag Beijing
Thanks Meter: 3,288
 
Donate to Me
More
Quote:
Originally Posted by Lecterr

Is there any chance for A-only 64 build?

Quote:
Originally Posted by Dejvid50

I hope will be for A-only too.. many people would welcome it .

Done, check OP. I can't spare an A-only device to test it though, try at your own risk.
EDIT: might have to wait for SF to mirror the file...
The Following 3 Users Say Thank You to AndyYan For This Useful Post: [ View ] Gift AndyYan Ad-Free
GuestK00171
7th March 2019, 09:09 AM |#5  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by AndyYan

Done, check OP. I can't spare an A-only device to test it though, try at your own risk.
EDIT: might have to wait for SF to mirror the file...

Thank you very much!!! Will test and give feedback....ist it build on latest Phhs V111?
7th March 2019, 09:18 AM |#6  
odysseus84's Avatar
Senior Member
Flag Solothurn
Thanks Meter: 116
 
More
Cool, which one is the a-only? ...it's not clearly writen
7th March 2019, 09:32 AM |#7  
Senior Member
Thanks Meter: 63
 
Donate to Me
More
Quote:
Originally Posted by odysseus84

Cool, which one is the a-only? ...it's not clearly writen

I thought it's the avN one. (Didn't boot on my phone.)
7th March 2019, 09:39 AM |#8  
AndyYan's Avatar
OP Recognized Contributor
Flag Beijing
Thanks Meter: 3,288
 
Donate to Me
More
As of now I've received 1 report of A-only booting up alright. Although I don't take hardware-related bug reports, it's advised to post whether it boots on your device so as to let other users know.

Quote:
Originally Posted by Lecterr

Thank you very much!!! Will test and give feedback....ist it build on latest Phhs V111?

Not sure how I could determine that, but it's fresh synced.

Quote:
Originally Posted by odysseus84

Cool, which one is the a-only? ...it's not clearly writen

avN, bvN - not clear enough?
GuestK00171
7th March 2019, 10:52 AM |#9  
Guest
Thanks Meter: 0
 
More
Thanks again for A-only build...tested and works great on MiMax3 with stock PIE vendor!!!

Only thing not working is equalizer for audio, opens a empty screen but no FC or error message...but ringtone, music etc. working.
The Following User Says Thank You to For This Useful Post: [ View ] Gift Ad-Free
7th March 2019, 12:19 PM |#10  
Member
Thanks Meter: 16
 
More
Just tested this on a Nokia 7 Plus (B2N) with the bvN images. Everything seems to work just fine, except for VoLTE/VoWiFi (which I don't care that much about anyways...).

Voice calls, Camera, MusicFX, Fingerprint, Bluetooth, LTE, all work as expected. Will come back after some usage with more info about battery life and such.
@AndyYan Awesome stuff, Andy! Thank you for this guide--will try to build it myself soon enough after I run your build for a few days to test.

By the way, do you think this will get OTA updates from LineageOS? The updater seems to work as expected, but haven't seen any new options there yet.

Thanks again!
7th March 2019, 12:36 PM |#11  
AndyYan's Avatar
OP Recognized Contributor
Flag Beijing
Thanks Meter: 3,288
 
Donate to Me
More
Quote:
Originally Posted by MadalinC

By the way, do you think this will get OTA updates from LineageOS? The updater seems to work as expected, but haven't seen any new options there yet.

Nope, LOS team even stated explicitly they won't be making any official GSIs.
The Following 2 Users Say Thank You to AndyYan For This Useful Post: [ View ] Gift AndyYan Ad-Free
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