• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Unofficial Lineage 18.1 GSI

Search This thread

Besuz

Member
Hi!

First: I am NOT a dev or contributor of this rom. Please visit before going ahead: https://forum.xda-developers.com/t/gsi-11-lineageos-18-x-gsi-all-archs.4205461/
Second: You do anything at your own risk and should know how to recover a non booting device!

Just playing around with this rom on my SHT-AL09, tested on version 20210317 so far:

Working
- Mobile network including 4G (German carrier Telekom)
- Outgoing & Incoming calls
- Bluetooth
- 2,4 & 5g Wifi
- Front & Back camera
- Video recording
- MTP
- SDcard
- GPS (seems to be working on Telegram)
- Fingerprint reader

Not Working:
- Mobile network icon shows no signal strength
- VoLTE
- VoWIFI

How to install:
- Make a backup.
- Device needs to have bootloader unlocked.
- Visit the above link again --> sourceforge --> lineage-18.x and download version "...treble_arm64_bv*" + unpack it.
- Visit: https://www.xda-developers.com/flash-generic-system-image-project-treble-device/ (I have done it via bootloader method.)

How to update:
- Dont know yet. :)

Unfortunately I cant get TWRP to work, so I cant test gapps or root. If you have a clue, please let me know - thx!
 

Attachments

  • Screenshot_20210410-223813_Einstellungen.png
    Screenshot_20210410-223813_Einstellungen.png
    172.4 KB · Views: 356
  • Like
Reactions: jbmc83 and tensux

massima

Senior Member
Nov 7, 2014
159
52
So you tested a GSI Lineage ROM on the your M5, is it rooted? Should be great to see magisk included in any room, i use Phh treble Quack, it's pre-rooted with su.
 
  • Like
Reactions: jbmc83

Besuz

Member
Hi @massima

according to this post by one of the dev's Magisk is broken and supersu should be used instead. I can confirm that this works. You do not need working TRWP, just install the app from fdroid, as mentioned.

For me the rom works well, but as I use the tablet without gapps and only as a youtube player (YT Vanced works fine!), I have not really tested "real world szenarios" yet. Also I cannot say something regarding camera quality and battery performance in comparsion to the stock rom, as I went straigt to Linage 15.1 when I got the tablet in 2018.
 

massima

Senior Member
Nov 7, 2014
159
52
Yes, i remember that magisk is incompatible with GSI images. I never used Lineage, for me an AOSP experience is the best. I'm waiting to upgrade to Quack when it will receive its last update probably a vanilla edition because the gapps version has a RO system partition and the vnk version doesn't fit, every version is prerooted with phh-su.
Thanks

P.S.: i added a page of our beloved M5 in the phh's wiki.
 

spoo333

Member
Apr 1, 2020
18
1
Yes, i remember that magisk is incompatible with GSI images. I never used Lineage, for me an AOSP experience is the best. I'm waiting to upgrade to Quack when it will receive its last update probably a vanilla edition because the gapps version has a RO system partition and the vnk version doesn't fit, every version is prerooted with phh-su.
Thanks

P.S.: i added a page of our beloved M5 in the phh's wiki.
Hi Massima,
Sorry for this noob question - where would I find the M5 entry in the phh's wiki?
And generally, is it possible to install a treble rom on the M5 with gapps and functioning bluetooth? I've been using Openkirin so far but no luck with bluetooth there.
Many thanks for any help you can offer.
 

massima

Senior Member
Nov 7, 2014
159
52
Hi Massima,
Sorry for this noob question - where would I find the M5 entry in the phh's wiki?
And generally, is it possible to install a treble rom on the M5 with gapps and functioning bluetooth? I've been using Openkirin so far but no luck with bluetooth there.
Many thanks for any help you can offer.
This is the link, just search your device mine is the M5 8" wifi (sht-w09). You can flash a vanilla (no gapps), the gapps version (be aware is Read Only). if you need a rewritable System partition download the vndklite version (arm64-AB-gapps-vndklite is 2,9Gb but it will not fit in the standard partition <2,9GB ).
I haven't ever tested the bluetooth so i can't say if it works.
 
  • Like
Reactions: spoo333

Steffe89

Senior Member
Aug 27, 2012
128
20
Thanks for the report. This finally gave me confidence to upgrade mine. I did an upgrade from huawai 9.1 to ASOP Phhusson with gapps. I had to register the device at google to get access to gapps -pretty straightforward (https://www.google.com/android/uncertified/). It was relatively straightforward and took about an hour, which was mainly spend on reading.
 
Last edited:

toystory2000

Member
Apr 24, 2016
19
0
Thanks for the report. This finally gave me confidence to upgrade mine. I did an upgrade from huawai 9.1 to ASOP Phhusson with gapps. I had to register the device at google to get access to gapps -pretty straightforward (https://www.google.com/android/uncertified/). It was relatively straightforward and took about an hour, which was mainly spend on reading.
May I know how to do because when I key command in my pc adb shell, it shows:
C:\adb>adb shell 'sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \ "select * from main where name = "android_id";"'
/system/bin/sh: sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \ select * from main where name = android_id;: inaccessible or not found
Thanks
 

Steffe89

Senior Member
Aug 27, 2012
128
20
May I know how to do because when I key command in my pc adb shell, it shows:
C:\adb>adb shell 'sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \ "select * from main where name = "android_id";"'
/system/bin/sh: sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \ select * from main where name = android_id;: inaccessible or not found
Thanks
Sure. There's a typo in the line, hence i wrote it in several commands, e.g.
> adb shell
> sqlite3 /data/data/com.google.android.gsf/databases/gservices.db
> "select * from main where name = "android_id";


Anyone know how to install magisk? I succeed patching recovery_ramdisk.img. However, does not flash properly (no warnings). My guess is that phh.superuser interveens and needs to be uninstalled (https://github.com/phhusson/device_phh_treble/blob/android-9.0/phh-securize.sh). As adb root i'm unable to do so though.
 

Besuz

Member
@Steffe89
"Magisk compatibility is mostly broken since Android 11 - use PHH-SU instead. Install the app and you'll get root for apps."
 

Steffe89

Senior Member
Aug 27, 2012
128
20
@Steffe89
"Magisk compatibility is mostly broken since Android 11 - use PHH-SU instead. Install the app and you'll get root for apps."
Maybe.... According to many posts v21 brings stable magisk support to android 11 so that is a little contradictory....
Anyhow, I'm not really interested in root. I want try and see if magisk with universal patch could make root-hating apps and widewine L1 drm work.
 

toystory2000

Member
Apr 24, 2016
19
0
Sure. There's a typo in the line, hence i wrote it in several commands, e.g.
> adb shell
> sqlite3 /data/data/com.google.android.gsf/databases/gservices.db
> "select * from main where name = "android_id";


Anyone know how to install magisk? I succeed patching recovery_ramdisk.img. However, does not flash properly (no warnings). My guess is that phh.superuser interveens and needs to be uninstalled (https://github.com/phhusson/device_phh_treble/blob/android-9.0/phh-securize.sh). As adb root i'm unable to do so though.
Thanks a lot
 

spoo333

Member
Apr 1, 2020
18
1
Sure. There's a typo in the line, hence i wrote it in several commands, e.g.
> adb shell
> sqlite3 /data/data/com.google.android.gsf/databases/gservices.db
> "select * from main where name = "android_id";


Anyone know how to install magisk? I succeed patching recovery_ramdisk.img. However, does not flash properly (no warnings). My guess is that phh.superuser interveens and needs to be uninstalled (https://github.com/phhusson/device_phh_treble/blob/android-9.0/phh-securize.sh). As adb root i'm unable to do so though.

You're probably aware of that anyway, but just checking that you didn't use "fastboot flash ramdisk patched_boot.img" or "fastboot flash recovery_ramdisk patched_boot.img"
 

spoo333

Member
Apr 1, 2020
18
1
Perhaps try again and check that you've got recovery_ramdisk as the target?

I'm also curious because I'm currently on Openkirin and would like to try what you've been doing. Currently have Magisk installed and wouldn't want to be without it because of Adaway etc.
Do you mind describing your steps: you had official Huawei 9.1 installed, then unlocked the bootloader, flashed Phhusson and then added Gapps?
 

massima

Senior Member
Nov 7, 2014
159
52
@spoo333: i tried to send an image from my M5 to the pc and viceversa with bluetooth, no problem.

@Steffe89:
  1. i read in the phh' s telegram channel to remove root with the securize option, then clean the cache. I did't test it.
  2. I found this in the phh's gsi channel:
flash super su phh
create sbin
edit init.environ.rc (it's on /)
add line
export PATH /sbin:/vendor/bin:/system/bin
save
remove su in system/bin
done flash magisk

Once again i don't test it, i'm using phh supersu. See/write here.
 
  • Like
Reactions: spoo333

spoo333

Member
Apr 1, 2020
18
1
@spoo333: i tried to send an image from my M5 to the pc and viceversa with bluetooth, no problem.

@Steffe89:
  1. i read in the phh' s telegram channel to remove root with the securize option, then clean the cache. I did't test it.
  2. I found this in the phh's gsi channel:
flash super su phh
create sbin
edit init.environ.rc (it's on /)
add line
export PATH /sbin:/vendor/bin:/system/bin
save
remove su in system/bin
done flash magisk

Once again i don't test it, i'm using phh supersu. See/write here.
Massima, that's encouraging to hear re bluetooth. Hope Bluetooth headphones would work too...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hi!

    First: I am NOT a dev or contributor of this rom. Please visit before going ahead: https://forum.xda-developers.com/t/gsi-11-lineageos-18-x-gsi-all-archs.4205461/
    Second: You do anything at your own risk and should know how to recover a non booting device!

    Just playing around with this rom on my SHT-AL09, tested on version 20210317 so far:

    Working
    - Mobile network including 4G (German carrier Telekom)
    - Outgoing & Incoming calls
    - Bluetooth
    - 2,4 & 5g Wifi
    - Front & Back camera
    - Video recording
    - MTP
    - SDcard
    - GPS (seems to be working on Telegram)
    - Fingerprint reader

    Not Working:
    - Mobile network icon shows no signal strength
    - VoLTE
    - VoWIFI

    How to install:
    - Make a backup.
    - Device needs to have bootloader unlocked.
    - Visit the above link again --> sourceforge --> lineage-18.x and download version "...treble_arm64_bv*" + unpack it.
    - Visit: https://www.xda-developers.com/flash-generic-system-image-project-treble-device/ (I have done it via bootloader method.)

    How to update:
    - Dont know yet. :)

    Unfortunately I cant get TWRP to work, so I cant test gapps or root. If you have a clue, please let me know - thx!
    1
    So you tested a GSI Lineage ROM on the your M5, is it rooted? Should be great to see magisk included in any room, i use Phh treble Quack, it's pre-rooted with su.
    1
    Hi Massima,
    Sorry for this noob question - where would I find the M5 entry in the phh's wiki?
    And generally, is it possible to install a treble rom on the M5 with gapps and functioning bluetooth? I've been using Openkirin so far but no luck with bluetooth there.
    Many thanks for any help you can offer.
    This is the link, just search your device mine is the M5 8" wifi (sht-w09). You can flash a vanilla (no gapps), the gapps version (be aware is Read Only). if you need a rewritable System partition download the vndklite version (arm64-AB-gapps-vndklite is 2,9Gb but it will not fit in the standard partition <2,9GB ).
    I haven't ever tested the bluetooth so i can't say if it works.
    1
    @spoo333: i tried to send an image from my M5 to the pc and viceversa with bluetooth, no problem.

    @Steffe89:
    1. i read in the phh' s telegram channel to remove root with the securize option, then clean the cache. I did't test it.
    2. I found this in the phh's gsi channel:
    flash super su phh
    create sbin
    edit init.environ.rc (it's on /)
    add line
    export PATH /sbin:/vendor/bin:/system/bin
    save
    remove su in system/bin
    done flash magisk

    Once again i don't test it, i'm using phh supersu. See/write here.
    1
    Massima, that's encouraging to hear re bluetooth. Hope Bluetooth headphones would work too...
    I haven't a bluetooth headphone so i cannot test it😔