[GSI][13] LineageOS 20 TrebleDroid-based

Search This thread

AndyYan

Recognized Contributor
Jan 30, 2012
4,684
4,189
Beijing
I'm wondering if you know of some way to query the charge level #/status (charging/not charging)?
Nope, sorry, although I am kinda curious (how the pen would report back its status).
I always just thought that vndklite meant system (or root, whatever you prefer) is RW.
This is actually a side effect of mounting the image and adding VNDKLite support. TD-based is built with EXT4 shared blocks enabled, but to mount/modify the image, it has to be unshared; "Light" on the other hand is simply unshared to begin with.
 

m0byn

Senior Member
Feb 13, 2023
73
13
  1. On my builds, "setprop persist.ui.spen.pointer true" should replace the pointer with Sammy's original blue dot, but that also replaces the mouse pointer, not sure if that's a price you're willing to pay.
"my builds" refers to the "light" version? I actually installed the TD version since in the "light" forum you mentioned the better support of TD for Samsung devices.
How can I set "setprop persist.ui.spen.pointer true" ? My device is not rooted.
  1. Unsurprisingly this device has FOD. I only inherited the FOD solution from PHH/TD, never took a look at it, so I'm not entirely sure what could be wrong either - a crude guess would be wrongly reported FOD X/Y coords, esp. under landscape.
This seems very plausible. Would you be interested in adjusting the coordinates? I would help out to find the correct ones the best I can.
  1. I've heard from a Tab S7 user that it worked for him (in fact he was the one who pointed out that the above pointer replacement also affecting mouse).
Ok, I will try to flash my Tab S4 then.
  1. Perhaps one of the audio options in Treble settings might help?
I do not think so. Maybe someone else figured out a correct setting? @AnonVendetta you maybe?

One last point: the "light" version installed on my Samsung Galaxy A50 actually has auto-brightness implemented. The TD version installed on my Samsung Galaxy Tab S6 does not have this option. Is it somehow possible to implement it in the TD version/for the Tab S6? @AnonVendetta mentioned that his Samsung tablet neither shows the option of auto-brightness.
 
Last edited:

Kenaz Rune

Senior Member
Mar 29, 2019
137
40
Google Pixel 6
Just wanted to mention as an alternative that MicroG works fine on the vanilla versions, if you just need working Play Store and basic Google apps compatibility. Lighter installed footprint/space used, and probably less usage of system resources.

You can just install MicroG Installer Revived as a Magisk module, will work on vndklite and non-vndklite versions. Or you can manually push its' files directly into the system partition, but you'll need root access and a vndklite variant.

You can get SafetyNet to pass with MicroG too, alongside enabling securize/spoof system properties. You might also need an extra Magisk module or 2. It was passing for me when I last tested.

This is the way.

I have a Galaxy Tab SM-T510, and it's becoming almost useless with GAPPS installed. Play services takes over 800M of RAM. It's still viable with MicroG. I'm hoping some soon to be released tablet will work with GSI or get custom ROMs, as this one is quite rickety.
 

rw_on_xda

Senior Member
Jun 24, 2013
431
243
Berlin
ping @Kenaz Rune

care to post:
1. what ROM *exactly' do you have installed ?
and
2. how exactly did you install the GSI ROM's ?
and
3. what stock ROM was on the device before ?

Why ?
I got boot loop's with GSI Rom's (greater than Android 12) on my SM-T510

last working: AOSP 12.1 v416
installed as described here:
 
Last edited:

Kenaz Rune

Senior Member
Mar 29, 2019
137
40
Google Pixel 6
ping @Kenaz Rune

care to post:
1. what ROM *exactly' do you have installed ?
and
2. how exactly did you install the GSI ROM's ?
and
3. what stock ROM was on the device before ?

Why ?
I got boot loop's with GSI Rom's (greater than Android 12) on my SM-T510

last working: AOSP 12.1 v416
installed as described here:



Gladly. First, for a long time, I used Magendanz' ROMS. Most recently, his LineageOS 19.1, which uses Andy's GSI with GAPPS. The key thing here is that he's been updating the rest of the firmware as Samsung releases it. If you're still on stock, that might be part of the problem.


I suggest you start with his version, then flash the GSI yourself onto system when updates are available here. When he releases a new update, flash his build to get all the tweaks and fixes for the other parts of the system. At this point, it's mostly about getting the security fixes from Samsung, which happens quarterly at best.


I just flashed Andy's Android 13 February release yesterday and it's working well. I just noticed recently that Minecraft is now working with MicroG. Some MicroG update in the last 4 months must have made that possible.


One more important point that burned me early on. The T510 uses the "a64" variety, not "ARM64". You will bootloop if you choose the wrong one.


1: lineage-20.0-20230218-UNOFFICIAL-a64_bvN

2: TWRP flash image to system partition

3: LineageOS 19.1
 
  • Like
Reactions: rw_on_xda

rw_on_xda

Senior Member
Jun 24, 2013
431
243
Berlin
...

One more important point that burned me early on. The T510 uses the "a64" variety, not "ARM64". You will bootloop if you choose the wrong one.
....
quiet clear, I used the Treble Info, what turned out:
- system-arm32_binder64_ab
- VNDK Version 30.0 supported

My attempt was with *a64_bvS-vndklite*, maybe that was my mistake.

very curious, cause I was flawless running system-squeak-arm32_binder64-vndklite-vanilla (based on Android 12.1)

my stock is 5CWA1 (of course with @Magendanz last TWRP)

+++ EDIT +++
tried lineage-20.0-20230218-UNOFFICIAL-a64_bvN

NO chance !
LOS logo is spinning since 10 minutes ! o_O
- of course: data was formated before flashing -
 
Last edited:

AndyYan

Recognized Contributor
Jan 30, 2012
4,684
4,189
Beijing
"my builds" refers to the "light" version? I actually installed the TD version since in the "light" forum you mentioned the better support of TD for Samsung devices.
How can I set "setprop persist.ui.spen.pointer true" ? My device is not rooted.
This is a universally useful and non-intrusive (default OFF) mod, so I added it to TD as well.
LOS has "rooted debugging" in Developer Options. Turn that on then "adb root" for a rooted shell.
One last point: the "light" version installed on my Samsung Galaxy A50 actually has auto-brightness implemented.
I just realized that you've been comparing across devices, i.e. you aren't controlling variables properly...
but I have it ro in vndklite :<
This might actually happen - I'm starting to observe it on some very recent OPlus (=OPPO+OnePlus+Realme) devices. Unfortunately I don't have a way out, nor am I really interested in checking "why" at the moment. Perhaps use Magisk for /system changes instead?
 

AnonVendetta

Senior Member
Apr 29, 2016
1,564
562
This is a universally useful and non-intrusive (default OFF) mod, so I added it to TD as well.
LOS has "rooted debugging" in Developer Options. Turn that on then "adb root" for a rooted shell.

I just realized that you've been comparing across devices, i.e. you aren't controlling variables properly...

This might actually happen - I'm starting to observe it on some very recent OPlus (=OPPO+OnePlus+Realme) devices. Unfortunately I don't have a way out, nor am I really interested in checking "why" at the moment. Perhaps use Magisk for /system changes instead?
I think it's more likely that this user simply doesn't understand how to remount as RW. vndklite builds only means that it *CAN* be remounted as RW...but the default state is still RO. It's never failed for me.

Also, he may be trying to remount a partition that isn't covered within the scope of the gsi img, like vendor or product. If those are RO for whatever reason, and they can't be remounted as RW, then nothing will work no matter what is tried. Besides ext4 shared_blocks, there is also the infamous "f2fs RO" issue, which is an entirely different problem, but still can't be remounted RW regardless.
 

m0byn

Senior Member
Feb 13, 2023
73
13
This is a universally useful and non-intrusive (default OFF) mod, so I added it to TD as well.
LOS has "rooted debugging" in Developer Options. Turn that on then "adb root" for a rooted shell.
I will try that with the next update! Thank you!
EDIT: it works like a charm! Thank you for including this!
I just realized that you've been comparing across devices, i.e. you aren't controlling variables properly...
Yes, I compared across devices.
 
Last edited:

AndyYan

Recognized Contributor
Jan 30, 2012
4,684
4,189
Beijing
Updated all variants with Android 13 QPR2 and March security patches. [Insert obligatory backup-and-test warning here]

As usual with "feature drops", things can change or break majorly.

Fixed in-call audio on Snapdragon 8 Gen 2 (SM8550), tested on OnePlus 11, should pave the way for future QCOM SoCs as well. Users of other SM8550 devices like Xiaomi 13 and RedMagic 8 Pro/+ might want to try this out too. Also pushed to TD upstream, so in case you don't like LOS, it's still coming to your favorite TD/-based GSI later.

Imported some SN fixes from HentaiOS - GAPPS users should now get CTS profile match as well.

Fixed videos sometimes getting stuck after pausing and resuming, thanks @Cozzmy13 for working it.

Fixed two-pane layout in Settings for tablets - set an appropriate density then force stop Settings for it to take effect.

And finally for builders, starting this month LOS has moved to Git LFS for hosting their Chromium webviews. Please re-init the repo with "--git-lfs" flag BEFORE syncing again or you will hit errors. If you already have a bad sync, clear the residue and re-init:
Code:
rm -rf external/chromium-webview/prebuilt/*
rm -rf .repo/projects/external/chromium-webview/prebuilt/*
rm -rf .repo/project-objects/LineageOS/android_external_chromium-webview_prebuilt_*
 

uluruman

Senior Member
Oct 23, 2021
267
49
The dim backlight problem on Samsung A32 is still there. I presume the latest phh's vendor_hardware_overlays with the fixes from captaincookie200 were not included in this release. I've been waiting for this but alas... Too bad I can't include those myself, I have compiled the apks but no matter how I try the modified system.img is causing the bootloop. I still can't figure out why. It seems that the absence of "shared blocks" is not the cause, so I think I have to return to experimenting with VB signatures, may be that's the cause.
 

AndyYan

Recognized Contributor
Jan 30, 2012
4,684
4,189
Beijing
@tangy912 reminded me that, since the beginning of LOS20, I've been using arm64 GAPPS on A64G* builds (when I should be using arm). It took 2+ months for it to be found out - I guess A64* just don't have that many users nowadays? Anyway, I've uploaded new A64GN builds that supposedly now contain arm GAPPS. I haven't had an A64 device in years, so it's entirely up to you to try out.
 
Last edited:
  • Like
Reactions: AfiqAffandi
The dim backlight problem on Samsung A32 is still there. I presume the latest phh's vendor_hardware_overlays with the fixes from captaincookie200 were not included in this release. I've been waiting for this but alas... Too bad I can't include those myself, I have compiled the apks but no matter how I try the modified system.img is causing the bootloop. I still can't figure out why. It seems that the absence of "shared blocks" is not the cause, so I think I have to return to experimenting with VB signatures, may be that's the cause.
to fix brightness go to phh settings > samsung features > enable extended brightness range

phh settings > misc > use alternative backlight scale


phh settings > misc > allow setting brightness to the lowest

and reboot




i myself switched to march lineage td. works great on ondemand and my own custom built kernel on the latest one ui 5.1 firmware
 
  • Like
Reactions: uluruman

sanjibukai

Member
Apr 2, 2016
21
1
Hello everybody,

I successfully installed this ROM on my Poco M4 Pro (MTK processor) which has an AMOLED display, but I'm not able to make the Always On Display working on the device.

Is it something I'm missing or is it just that this ROM is not compatible with my phone?
 

AndyYan

Recognized Contributor
Jan 30, 2012
4,684
4,189
Beijing
I successfully installed this ROM on my Poco M4 Pro (MTK processor) which has an AMOLED display, but I'm not able to make the Always On Display working on the device.
Although someone made an overlay for your device, he neither enabled doze nor defined proper brightness/position for it.
I'd say don't bother, AOD on GSIs are often unoptimized and can drain battery pretty fast.
 

sanjibukai

Member
Apr 2, 2016
21
1
Although someone made an overlay for your device, he neither enabled doze nor defined proper brightness/position for it.
I'd say don't bother, AOD on GSIs are often unoptimized and can drain battery pretty fast.
An overlay?
I guess I just learned something.. So do I need to search for an "overlay"?

In one side, I really need AoD as I'm using it as a clock on my desk. So I somehow just want to just go back to stock MIUI ROM)
But on the other side, now I found MIUI so bloated and slow and most importantly on recent ROMs it's impossible to have full screen gestures with a third party app - which is a bummer as well)

I'm so sad and stuck :(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Updated all variants with May security patches and in sync with TD 20230429. [Insert obligatory backup-and-test warning here]
    3
    Hello i run LOS 20-20230507-UNOFFICIAL-arm64_bvS on a xiaomi redmi note 11, and i can't send any SMS or MMS in 4G, only 3G mode (By changing prefered network) works well...any idea ?
    Set up IMS/VoLTE properly in Treble settings.
    It was at this point the phone display started stuttering whenever I'd touch the screen (and sometimes would do so without). The setup process was stuttering throughout the entire process.

    At the end of the setup, after I pressed on the final button at the end of the Lineage Setup, the screen finally went black and the only sort of response I could do was to hold the power button, which showed me a minimal power menu.
    This sounds like something crashing hard in the background repeatedly - a logcat would perhaps be useful.
    Also is the TD based rom, or the light rom expected to have better compatibility with phones like the Legion Y70 (ignoring the call bug)?
    Neither - right now it's a known issue that Moto/Lenovo QCOM S vendor devices have spotty or no SMS reception, and this can easily break daily driving. I've even bought a device just to look into this, but so far I don't know how to solve it within a GSI environment (device-specific ROMs have more room to work with).
    "Disclaimer:
    No flashing instructions will be offered. If you're here in this forum, you should know what you're doing."

    Keep jealously guarding your secrets and let the rest of the world die stupid, you lousy rats!
    Just because this is a generic image doesn't mean there's a generic enough way of flashing it everywhere. I've handled dozens of devices for GSI purposes so far, and many have curious traits that one would never know until a hands-on. You can blame me for being lazy and not summarizing findings on my devices on PHH's wiki, but I won't take blame for not offering an all-encompassing guide that "just works".
    3
    Lecture you? Dude, by installing just one Google app after your MicroG exhbition all that you said above failed down deep in the water so better revise your thinking from ground up :D
    Unfortunately, Play Store is a necessary addition to MicroG. And it's otherwise the only not open source Google app i include. It's pretty much the only way to buy apps or make in-app purchases. And some apps check their licenses to make sure they're not pirated. Without PS, this isn't possible, not without resorting to other apps/methods that coincidentally are forbidden for discussion by XDA rules.

    If "revise your thinking" means "switch back to GApps" or "buy an iPhone"....no thanks. If I'm just going to play by the accepted rules that Google and the manufacturers push, then this means that I should only run stock ROMs, always keep bootloader locked, etc. No to that too.

    On this, we can agree to disagree, and that's the end of this line of conversation, I'm drawing the line by deciding it's not worth discussing with you anymore. It all started because you asked "Why not just flash G variant than?" I interpreted this as you not being aware of MicroG, or why some would choose it over GApps.
    2
    It's strange really, flashed week ago or so and still no stats. We'll keep on looking but at least I know it's me and not for rest of you guys, ✌️
    Oh, gotta say I debloated a ton of apps from it so I may exaggerated a bit lol
    You probably debloated too much. There's not much of a point in doing so, LOS is very clean, even the GApps builds. If you want a gsi that doesn't need debloating, go for Phh's AOSP vanilla builds. No fluff, just raw Android. And its' bugs will be 99% the same as this LOS. For GApps, use vndklite and flash MindTheGApps on top, if you have TWRP.
    2
    @syneoa: I suggest reflashing the gsi, then using this to debloat:


    It doesn't really delete anything, so if you debloat too much, just edit your config file and reflash the mod zip. Anything you've "deleted" will be back.

    You can also do real deletion without a module, but then it will be harder to put something back if you make a mistake.

    For deleting mobile data stuff, I guess you missed the "remove telephony subsystem" option in Phh Treble Settings, Misc menu.
  • 25
    640px-Lineage_OS_Logo.png

    LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and reliability over stock Android for your device.
    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
    All the source code for LineageOS is available in the LineageOS GitHub repo. And if you would like to contribute to LineageOS, please visit Gerrit Code Review.

    MUST-READ BACKGROUND - Android 13 and the two approaches:
    As some of you already know, due to various reasons, @phhusson , who kickstarted the GSI trend and committed to it over the years, is backing out from future development
    - there won't be any AOSP 13+ builds or patches directly from him. He did most of the heavylifting for fixing bugs and implementing features, and selflessly supported more than his AOSP GSIs and more than devices he own. For the situation of GSIs today, we owe him a big thank-you.
    Earlier, inspired by @PeterCxy , I took the "light" approach, which starts over from AOSP's generic gsi_* target and adds the minimum amount of fixes needed for my own devices, intentionally leaving many legacy devices behind. For more details about it, visit its own thread.
    Meanwhile, a number of existing builders incl. myself have formed the TrebleDroid organization, with PHH himself helping us in technical issues. TD will forward-port PHH's final patches (v415) onto Android 13 and attempt to fix new issues. This is still a new and ongoing process, but if done right, will have compatibility and feature-completion on par with past PHH-based GSIs. This thread contains LOS builds based on TrebleDroid's collective work, which supposedly suits legacy devices, Samsung, etc. better than "light".

    Disclaimer:
    No flashing 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.

    MUST-READ - reporting bugs:
    If you want to report a bug, then you MUST try reproducing on an AOSP reference build of around the same date from TrebleDroid, and ONLY proceed to report here when it's specific to this GSI. This filters out bugs common to all TD-based GSIs, which you should still let me know, but it might not be mine to fix. I might silently ignore your report if you skip this.

    Download:
    https://sourceforge.net/projects/andyyan-gsi/files/
    Scroll down for the naming rules of variants.
    Compressed as .xz archives - extract first.

    Stuff on GitHub (builders-only):
    Most things should be self-explanatory. Not the cleanest code, but should help if you need some clues.
    Thanks to:
    • The LineageOS team
    • @phhusson - shaped the treble community, and still takes care of TrebleDroid at a higher level
    • @PeterCxy - coded critical fixes such as sysbta
    • The TrebleDroid builders
    • ...and more
    Donate?
    https://paypal.me/AndyCGYan
    7
    Updated all variants with April security patches and in sync with TD 20230417. [Insert obligatory backup-and-test warning here]

    All modern Xiaomi/Redmi devices should be able to see high refresh rates now (if supported), without having to spoof properties globally.
    6
    Notes:
    • I now have a rather taxing day job, and can't devote nearly as much time/effort into this as I did as a student, or even a year ago.
    • I now daily-drive "light", so I can't test TD-based builds as extensively as before. For the same reason, I likely won't build/upload any TD-based "personal" build either.
    • While most >=A13 GSIs out there are going to be TD-based, some perform better than others - some devs have their own patches that haven't been merged into TD yet. I myself will stay close to TD's raw patchset as much as possible, without picking patches from others left and right. If you find another GSI working better, don't just complain - try to narrow down which ones, and the intersection of them might be an unmerged patch that, if approved, would be merged into TD and benefit all.
    • GAPPS builds are offered as-is without guarantees. As a Chinese I can't/won't help with GAPPS/SN issues - please help each other out.
    • ADB is intentionally insecure, even on first boot (turned on by default and no authentication needed). GSIs are more fragile compared to device-specific custom ROMs, both on first boot (no-boot issues) and on subsequent boots (after tuning certain Treble settings), and I insist that no-auth ADB is a must-have for debugging and general fail-safe.
    • Signature spoofing (MicroG) is supported, but only for priv-apps. This is a security consideration from PHH.
    • On *S variants, install PHH-SU and you'll get basic root for apps, good for devices that don't play well with Magisk or when you don't need modules.
    • Refer to this post for explanation/workaround of an MediaTek-specific kernel bug that causes no internet.
    6
    Updated all variants with Android 13 QPR2 and March security patches. [Insert obligatory backup-and-test warning here]

    As usual with "feature drops", things can change or break majorly.

    Fixed in-call audio on Snapdragon 8 Gen 2 (SM8550), tested on OnePlus 11, should pave the way for future QCOM SoCs as well. Users of other SM8550 devices like Xiaomi 13 and RedMagic 8 Pro/+ might want to try this out too. Also pushed to TD upstream, so in case you don't like LOS, it's still coming to your favorite TD/-based GSI later.

    Imported some SN fixes from HentaiOS - GAPPS users should now get CTS profile match as well.

    Fixed videos sometimes getting stuck after pausing and resuming, thanks @Cozzmy13 for working it.

    Fixed two-pane layout in Settings for tablets - set an appropriate density then force stop Settings for it to take effect.

    And finally for builders, starting this month LOS has moved to Git LFS for hosting their Chromium webviews. Please re-init the repo with "--git-lfs" flag BEFORE syncing again or you will hit errors. If you already have a bad sync, clear the residue and re-init:
    Code:
    rm -rf external/chromium-webview/prebuilt/*
    rm -rf .repo/projects/external/chromium-webview/prebuilt/*
    rm -rf .repo/project-objects/LineageOS/android_external_chromium-webview_prebuilt_*
    5
    Updated all variants with January security patches and in sync with TD 20230104. [Insert obligatory backup-and-test warning here]

    During my CoV downtime, A13 QPR1 happened and TD-based had a lot of changes as well, which accumulated to this month and I had to update more patches than expected (way more than "Light" - lower maintenance is why I made that in the first place). I might've made oopsies along the way, so I don't feel quite confident about this batch, and you should exercise extra caution.

    Some users have reported that securize bootloops their device, and the current "integrally securize" approach means they can't boot up even once. This month I've changed it yet again to "securize on-demand", which is similar to how you securize on PHH/TD-based (a toggle in Treble Settings), but reversible and doesn't require SU.
    For new users who are unsure about whether securize might bootloop your device, please turn on USB Debugging and Rooted Debugging below it, and if/when you do hit a bootloop on the next boot, you'll have a rooted ADB shell available to you, from where you can toggle off manually:
    Code:
    adb root
    adb shell setprop persist.sys.phh.securize false
    adb reboot
    For users who are already on a gN build, be sure to toggle it on and reboot right after you update!

    Properly fixed exfat for Samsung/Sony, tested on the one Sammy I still own.