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

[UNOFFICIAL] LineageOS R Mod //LiR

Search This thread

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
L i R


< Your warranty is now void! >
We're 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 us for messing up your device, we will laugh at you


LiR is a project which based on LineageOS 18.1 with @AndyYan's and @phhusson's Treble GSI patches. Built with some Andy's patches & recommendations, also even without "ALLOW_MISSING_DEPENDENCIES=true" flag. System can run with SELinux enforced state, as original Phh AOSP GSI. Fully compatible with PHH-Treble patches. Has dynamic root which can be activated/deactivated without reboot - 'su' binary and SuperUser app (can works on all devices even with system read-only). Also has dynamic SafetyNet helper (but it compatible not with all devices), users have four ways to pass SafetyNet: a. just enable SafetyNet option (recommended) b. disable SafetyNet and enable "Spoof Pixel 5" then reboot c. enable both options and reboot d. mount system as RW and create empty file /system/phh/secure (legacy method), and in the Recovery do Wipe Data

UPDATE VERSION
latest build:
2021.09.15
treble patches: v313
SPL: 5 Sep 2021

FEATURES/CHANGES
see Project page changelog

DOWNLOAD (CL1CK HERE)
vanilla, gapps, go-gapps: all possible architectures

NAMING
Some information you should know about knowing what type of gsi it is

<ARCH>_xyZ

<ARCH>
can either be arm, a64 (arm32_binder64) or arm64
x
can either be a or b
y
can either be v, o, g or f
Z
can be N, S or Z

b
=
a/b
a = a-only

g = gapps
o = gapps-go
v = vanilla (no gapps included)
f = floss (free & open source apps instead gapps)

N = no superuser
S = superuser included
Z = dynamic superuser included

-lite = for VNDK Lite vendors (also can help with broken camera even on normal VNDK vendors)

so in most common example "arm64_avZ" is ARM64 A-only vanilla with dynamic superuser

CONTACTS
> telegram group
> project page

KN0WN BUGS
excluding fixes, the same as on LineageOS GSI by Andy Yan (in some cases doesn't work: broadcasting on TV, calls via BT; offline charging does not work normally etc)
NOTE: always test ROM first without Magisk (with clean boot ramdisk). and don't send me bug reports if you have:
a) Magisk installed
b) modified/custom vendor or kernel
c) dirty flashing rom without wiping data
d) modified props values (another device fingerprint and so on)


CREDITS
persons:
@phhusson, @AndyYan
projects: TrebleGSI • LineageOS • BlissROMs • crDroid • PixelExperience • ION • neon-OS • Havoc-OS • Evolution-X • LiquidRemix • ExtendedUI • ABC Rom • GrapheneOS • SyberiaOS
 
Last edited:

SimonFoxcoon

Member
Nov 12, 2020
22
5
Razer Phone 2
Nintendo Switch
in all my GSIs always used natural model name
also you can enable SafetyNet helper in Phh settings before login to the Play Store
I don't see Phh-Treble settings after installing arm64-bgZ, does this not have them? also no superuser app
EDIT: nvm it showed up, still no superuser app though
EDIT 2: forgive me i realize that superuser is a toggle
 
Last edited:
  • Like
Reactions: hacker812c

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
I don't see Phh-Treble settings after installing arm64-bgZ, does this not have them? also no superuser app
EDIT: nvm it showed up, still no superuser app though
EDIT 2: forgive me i realize that superuser is a toggle
please, read the changelogs)
(Phh Settings will show after second time open android settings)
 

Gomeman

Member
Aug 31, 2020
46
13
I flashed also version lir-v300m-210221-arm64-agZ.img on a Gome fenmmy note c7 plus. Works fine . Only cant get safetynet working. No matter i log out and log in google play with dinamic safety net ticked and no superuser.
Not much diference between CAOS and LineageOs. Only there si no recovery option in menu when you switch off.
Thanks. Good GSI rom though.
 

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
I flashed also version lir-v300m-210221-arm64-agZ.img on a Gome fenmmy note c7 plus. Works fine . Only cant get safetynet working. No matter i log out and log in google play with dinamic safety net ticked and no superuser.
Not much diference between CAOS and LineageOs. Only there si no recovery option in menu when you switch off.
Thanks. Good GSI rom though.
recovery option need to turn on in the Gestures settings
 

IamTheBRAVE

Senior Member
I was on CAOS, then LineageOs 18 then switched to LIR which is the best gsi yet!
One small issue i had: autobrightness overlay was not working. The apk doesn't contain the arrays/bools xmls, had to add them. On reboot, autobrighness button appears in quick settings as well as a toggle in display settings, but not doing anything. Adaptive brightness is working in my base rom, so it should be working, right?
As always, awesome job on the gsi, and switching to SimpleGallery was a good idea. Thanks👍
 

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
autobrightness overlay was not working. The apk doesn't contain the arrays/bools xmls, had to add them. On reboot, autobrighness button appears in quick settings as well as a toggle in display settings, but not doing anything. Adaptive brightness is working in my base rom, so it should be working, right?
well, are you tried "Enable AutoBrightness overlay" option in Phh settings > Misc?
 

IamTheBRAVE

Senior Member
well, are you tried "Enable AutoBrightness overlay" option in Phh settings > Misc?
Yes, it's on. Button is there but no adjustments to brightness.
Screenshot_20210227-201959_XDA_Developers.png
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    1
    "lir-v312-210813-arm64-bgZ" indicates to me as per screenshot...?
    Note that Camera2 (com.android.camera2) ≠ Snap (org.lineageos.snap). Snap requires some device-specific configuration.
    1
    I have try it yet, and doesnt work. It´s still on Magisk red state. I am trying using patches on Magisk, but doesnt work. The error is in CTSProfile (basicintegrity appears OK) :confused:
    i don't care about magisk cts
    those options can help passing SafetyNet without magisk and even with weird vendors
    do clean install v313 without magisk(remove magisk totally) and enable in Phh settings > Misc > Safetynet first and then Pixel 5 spoofing and reboot
    1
    i can confirm that safetynet works without magisk, enabling safetynet and pixel 5 spoofing and rebooting, on my device. Very smooth GSI.
    1
    • Andy's GSI: The wifi runs on WPA+WPA2 and WPA2+WPA3
    • Eremitein'S bgz version: The wifi runs just on WPA+WPA2. If I switsch the router to WPA2+WPA3 the wifi comes off, if I switch the router back to WPA+WPA2 it comes on again.
    Thanks. I can confirm that with v313 (changes: disabled WPA2 to WPA3 auto-upgrade) I can set up my router back to WPA2 + WPA3 and the wifi on the phone stays on...
  • 14
    L i R


    < Your warranty is now void! >
    We're 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 us for messing up your device, we will laugh at you


    LiR is a project which based on LineageOS 18.1 with @AndyYan's and @phhusson's Treble GSI patches. Built with some Andy's patches & recommendations, also even without "ALLOW_MISSING_DEPENDENCIES=true" flag. System can run with SELinux enforced state, as original Phh AOSP GSI. Fully compatible with PHH-Treble patches. Has dynamic root which can be activated/deactivated without reboot - 'su' binary and SuperUser app (can works on all devices even with system read-only). Also has dynamic SafetyNet helper (but it compatible not with all devices), users have four ways to pass SafetyNet: a. just enable SafetyNet option (recommended) b. disable SafetyNet and enable "Spoof Pixel 5" then reboot c. enable both options and reboot d. mount system as RW and create empty file /system/phh/secure (legacy method), and in the Recovery do Wipe Data

    UPDATE VERSION
    latest build:
    2021.09.15
    treble patches: v313
    SPL: 5 Sep 2021

    FEATURES/CHANGES
    see Project page changelog

    DOWNLOAD (CL1CK HERE)
    vanilla, gapps, go-gapps: all possible architectures

    NAMING
    Some information you should know about knowing what type of gsi it is

    <ARCH>_xyZ

    <ARCH>
    can either be arm, a64 (arm32_binder64) or arm64
    x
    can either be a or b
    y
    can either be v, o, g or f
    Z
    can be N, S or Z

    b
    =
    a/b
    a = a-only

    g = gapps
    o = gapps-go
    v = vanilla (no gapps included)
    f = floss (free & open source apps instead gapps)

    N = no superuser
    S = superuser included
    Z = dynamic superuser included

    -lite = for VNDK Lite vendors (also can help with broken camera even on normal VNDK vendors)

    so in most common example "arm64_avZ" is ARM64 A-only vanilla with dynamic superuser

    CONTACTS
    > telegram group
    > project page

    KN0WN BUGS
    excluding fixes, the same as on LineageOS GSI by Andy Yan (in some cases doesn't work: broadcasting on TV, calls via BT; offline charging does not work normally etc)
    NOTE: always test ROM first without Magisk (with clean boot ramdisk). and don't send me bug reports if you have:
    a) Magisk installed
    b) modified/custom vendor or kernel
    c) dirty flashing rom without wiping data
    d) modified props values (another device fingerprint and so on)


    CREDITS
    persons:
    @phhusson, @AndyYan
    projects: TrebleGSI • LineageOS • BlissROMs • crDroid • PixelExperience • ION • neon-OS • Havoc-OS • Evolution-X • LiquidRemix • ExtendedUI • ABC Rom • GrapheneOS • SyberiaOS
    7
    6
    LiR v302 2021.03.18 (beta2)
    download /// changelog
    5
    5