Development [ROM] [UNOFFICIAL] [Android 13] [OSS] LineageOS 20.0 MicroG version / SafetyNet Pass / ih8sn

Search This thread

2spirit

Senior Member
lineage_logo.png


Hello,

I have build for myself a vanilla version of LineageOS 20.0 because I don't find any simple and pure version of LineageOS and I want to share my build here.

This work is based from different sources so many thanks for all this devs ! ;)

Credits :

LineageOS Team, PulKit077, Aryan, RootGhz720, MicroG team, Vantoman and many others ...

Sources :

- LineageOS 20.0 source
- VantomKernel
- xiaomi-sm6150 device / common / vendor trees
- MicroG
_____

Instructions for a clean flash :


- Use official TWRP 3.7.0_12 from Nebrassy
- Flash last firmware V13 or V14
- Download the ROM and check MD5
- Flash it
- Format Data and reboot

_____

Update instructions


- Download the ROM and check MD5
- Flash it
- Wipe cache and reboot

_____

After an update, you can launch this command to optimize the battery backup and kernel parameters. (Needs terminal and root)

Bash:
su -c "cmd package bg-dexopt-job"
su -c "cmd package compile -a -f --compile-layouts"

Wait the answer "Success" and reboot ;)

You can optionally run this command to reset battery stats :
Bash:
su -c dumpsys batterystats --reset-all
_____

NOT COMPATIBLE WITH LAST 256GB VERSION !!!

_____

Downloads :


Vanilla V13 firmware based version :
20230321 - MD5 (February security patch)
20230330 - MD5 (March security patch)


Vanilla V14 firmware based version :
20230421 - MD5 (April security patch / Aghisna kernel R13 / KernelSU)
20230509 - MD5 (May security patch / Aghisna kernel R14 / KernelSU)
20230512 - MD5 (May security patch / Vantom Kernel 4.14.314 )

_____

MicroG V13 firmware based version :
20230329 - MD5 (March security patch)
20230407 - MD5 (March security patch)

MicroG V14 firmware based version :
20230421 - MD5 (April security patch / Aghisna kernel R13 / KernelSU)
20230509 - MD5 (May security patch / Aghisna kernel R14 / KernelSU)
20230511 - MD5 (May security patch / Vantom Kernel 4.14.314 )

_____

SafetyNet Pass​


If you want to pass SafetyNet check, you need install Magisk and module SafetyNet-fix

Optionally, you can add a certified fingerprint to your device with the module MagiskHidePropsConf

Check this very well explained post from @minax007


_____

Gcam​


Only default camera from LineageOS is included (aperture), so don't ask to add another one (Leica, Miui, etc...) and install yourself.

You can find good setup for Gcam in the @Laptapper post

You can directly use my config for Gcam LMC R16 and this zip with config XML and library.

_____


Android Security Bulletins

_____


Screenshots


Screenshot_20230320-144221_Trebuchet.png

Screenshot_20230320-144330_Settings.png
Screenshot_20230320-143954_Settings.png

Screenshot_20230320-144843_Trebuchet.png
 
Last edited:

minax007

Senior Member
Jan 1, 2021
126
76
@2spirit

Thank you very much!

I think there are many out there who were looking for this.

Excellent!

I would love to see LineageOS become official.

Please create a pull request if you know how to get it "officialized" :cool:

Thanks!
 
  • Like
Reactions: Fostel

Stan m

Senior Member
Jun 1, 2020
79
15
Redmi Note 10 Pro
First of all, a pull request is not enough to be official.
Second, the creator of this thread can pull and share on their own. No need to bother the original author, just give them credit.
And lastly, you cannot open a development thread without sharing the entire source code...
 
  • Like
Reactions: minax007

minax007

Senior Member
Jan 1, 2021
126
76
First of all, a pull request is not enough to be official.
Second, the creator of this thread can pull and share on their own. No need to bother the original author, just give them credit.
And lastly, you cannot open a development thread without sharing the entire source code...

Hi @Stan m

thanks for your response!

Reading your answer I assume that you have knowledge about how we could get LineageOS official.

I would highly appreciate if you would explain what is needed to get it official.

And I would appreciate much more if you would support us on getting it official.

Regarding your last statement I assume that you wanted to point out to the fact that the source code of the signature spoofing patch was not shared by @2spirit , right?

I think that we should continue without signature spoofing as the official LineageOS builds come without.

If I have missed something please advise.

Thanks!
 
Last edited:

minax007

Senior Member
Jan 1, 2021
126
76
Hi @2spirit

I have tested your build also with the latest Android 13 firmware V14.0.1.0.TKFMIXM and can confirm that it works like a charm:


Via Magisk I have flashed microG, SafetyNetFix ...

All banking apps are working.

Your ROM is an excellent basis for people who care about security and do not want to use spyware like Google Apps.

Thanks for sharing!

Have you found time to check how you can get it official?
 

minax007

Senior Member
Jan 1, 2021
126
76
Do you use a magisk module for spoofing signature and microg ?

HOW TO GET SAFETYNET PASSED WITHOUT GOOGLE APPS (GApps):

This is important to get banking apps working without having Google Apps installed on the phone.
__________________________________________________________________________________________

In case you want to enable signature spoofing on any vanilla ROM (without signature spoofing) just follow this:
__________________________________________________________________________________________

Xposed framework implementation:


1. Install Magisk
2. Turn on Zygisk in Magisk app and reboot
3. Install LSPosed in Magisk app
4. Reboot
5. Open LSPosed manager from notification
__________________________________________________________________________________________

Signature Spoofing via FakeGApps:


1. Install "app-release.apk"
2. Enable it in LSPosed manager
3. Enable FakeGapps LSPosed manager
4. Reboot
__________________________________________________________________________________________

Install microG, SafetyNet fix and MagiskHidPropsConf modules in Magisk.



__________________________________________________________________________________________

Hide Magisk App and install Zygisk in the Magisk settings.

- Activate force Zygisk denial list
- Reboot
__________________________________________________________________________________________

Connect your phone to the internet (e.g. WiFi) and via cable to your PC and start terminal.
Enter the following commands (it could be that you need to confirm "su" via your phone):

adb shell
su
props

Select the following:
1 - Edit device fingerprint
f - Pick a certified fingerprint
25 - Redmi
17 - Redmi Note 10 Pro Global (11)
y(es)
y(es) (Reboot)

__________________________________________________________________________________________

On your phone in the "microG settings" you need to:
- Activate "Google device registration"
- Activate "Cloud messaging"
- Activate "Google SafetyNet"

That's it.
 
Last edited:

minax007

Senior Member
Jan 1, 2021
126
76
Thanks for this information, no needs to patch the sources now ;)

As there are several steps to follow I think it would help some users if you would still provide a signature spoofed version ... or even better if it would include microG ... so that the users have a "LineageOS with microG" build.

That would be certainly the easiest for people who care about security and want to use banking apps without GApps.


By the way:
In case LineageOS becomes official the "LineageOS for microG" is build automatically by the maintainers I have linked above.

Are you intending to create a pull request, so that LineageOS for the Redmi Note 10 Pro becomes official?

Until it becomes official if would certainly help to have two versions:

1. LineageOS vanilla build
2. LineageOS with microG (= signature spoofed version as you had it before + microG)
 
  • Like
Reactions: Fostel

minax007

Senior Member
Jan 1, 2021
126
76
Do you know if the LineageOS build made by MicroG team pass SafetyNet ?
No, it does not out of the box.

It has just microG installed.

But it is much easier to get it pass SafetyNet.

Just install the SafetyNetFix (this is sufficient for some devices ... e. g. dipper = Xiaomi Mi 8):


For some devices (e. g. surya = Poco X3 NFC) it could be necessary to install in addition also MagiskHidePropsConf - but this is not needed for all devices as mentioned before:


Signature spoofing is already included in LineageOS with microG.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Official LineageOS is out now ( thanks to Aryan, Danielm and others) so this ROM is obsolete, just waiting the build by MicroG team ;)
    The MicroG build is there now.

    2
    The MicroG build has been working for me. With magisk and the safetynet fix, it passes safetynet.

    lineage-20.0-20230906-microG-sweet
    fw_sweet_miui_SWEETGlobal_V14.0.4.0.TKFMIXM_8f4f7797e0_13.0
    Magisk.v26.3
    safetynet-fix-v2.4.0-MOD_1.3-microG

    I'm not using AccA now, since the battery charge control is built-in to LineageOS.

    After charging fully to 100%, I got about 6 days of light/normal use from 100% to 25% battery. That seems pretty good to me. And the battery stats look legit, without odd stuff taking up 200% + battery.

    I often hear complaints that the battery is slow to charge, but I wonder if it's because of the indication on the screen. It usually says "Charging slowly" and gives a long estimate to charge completion. But in reality, it seems inaccurate.

    I have a usb tester, and I can see it's charging at around 9V 2.5A ~ 22 watts. Not as fast as it could charge, but still pretty good and definitely not slow charging. See screenshot/pictures attached.
    2
    Hi there !

    Any update for this ROM, I build for myself an MicroG version who pass SafetyNet out of the box ( just active needed options in MicroG settings )

    The sources is coming from Official LineageOS and MicroG repository.

    You need to use this recovery to flash.

    You can find here if you want test it :

    Downloads :

    recovery
    20230920 MicroG LineageOS 20.0 - MD5

    Instructions :

    - flash recovery in fastboot mode : fastboot flash recovery recovery.img
    - reboot to recevery mode -> format data -> apply update -> and use adb sideload to flash the rom -> reboot and test
    1
    Official LineageOS is out now ( thanks to Aryan, Danielm and others) so this ROM is obsolete, just waiting the build by MicroG team ;)
  • 20
    lineage_logo.png


    Hello,

    I have build for myself a vanilla version of LineageOS 20.0 because I don't find any simple and pure version of LineageOS and I want to share my build here.

    This work is based from different sources so many thanks for all this devs ! ;)

    Credits :

    LineageOS Team, PulKit077, Aryan, RootGhz720, MicroG team, Vantoman and many others ...

    Sources :

    - LineageOS 20.0 source
    - VantomKernel
    - xiaomi-sm6150 device / common / vendor trees
    - MicroG
    _____

    Instructions for a clean flash :


    - Use official TWRP 3.7.0_12 from Nebrassy
    - Flash last firmware V13 or V14
    - Download the ROM and check MD5
    - Flash it
    - Format Data and reboot

    _____

    Update instructions


    - Download the ROM and check MD5
    - Flash it
    - Wipe cache and reboot

    _____

    After an update, you can launch this command to optimize the battery backup and kernel parameters. (Needs terminal and root)

    Bash:
    su -c "cmd package bg-dexopt-job"
    su -c "cmd package compile -a -f --compile-layouts"

    Wait the answer "Success" and reboot ;)

    You can optionally run this command to reset battery stats :
    Bash:
    su -c dumpsys batterystats --reset-all
    _____

    NOT COMPATIBLE WITH LAST 256GB VERSION !!!

    _____

    Downloads :


    Vanilla V13 firmware based version :
    20230321 - MD5 (February security patch)
    20230330 - MD5 (March security patch)


    Vanilla V14 firmware based version :
    20230421 - MD5 (April security patch / Aghisna kernel R13 / KernelSU)
    20230509 - MD5 (May security patch / Aghisna kernel R14 / KernelSU)
    20230512 - MD5 (May security patch / Vantom Kernel 4.14.314 )

    _____

    MicroG V13 firmware based version :
    20230329 - MD5 (March security patch)
    20230407 - MD5 (March security patch)

    MicroG V14 firmware based version :
    20230421 - MD5 (April security patch / Aghisna kernel R13 / KernelSU)
    20230509 - MD5 (May security patch / Aghisna kernel R14 / KernelSU)
    20230511 - MD5 (May security patch / Vantom Kernel 4.14.314 )

    _____

    SafetyNet Pass​


    If you want to pass SafetyNet check, you need install Magisk and module SafetyNet-fix

    Optionally, you can add a certified fingerprint to your device with the module MagiskHidePropsConf

    Check this very well explained post from @minax007


    _____

    Gcam​


    Only default camera from LineageOS is included (aperture), so don't ask to add another one (Leica, Miui, etc...) and install yourself.

    You can find good setup for Gcam in the @Laptapper post

    You can directly use my config for Gcam LMC R16 and this zip with config XML and library.

    _____


    Android Security Bulletins

    _____


    Screenshots


    Screenshot_20230320-144221_Trebuchet.png

    Screenshot_20230320-144330_Settings.png
    Screenshot_20230320-143954_Settings.png

    Screenshot_20230320-144843_Trebuchet.png
    6
    Can we have support group (e.g. on Telegram) for these ROM development for better communication?
    Maybe I am too old for that but I prefer XDA more. I did not find Telegram groups to be better communication. Thousands of not relevant posts daily. A huge part of them are 'off topic' or non-English spoken.
    Just my two cents.
    5
    I send a email today to LineageOS Team ;)

    Now the March patch is included and no needs to update before April patch so perhaps I will try to compile any microg version ;)