[Discontinued][ROM][Onclite]LineageOS 17.1 nightlies[OFFICIAL]

Search This thread

r6680jc

Senior Member
Sep 6, 2009
438
84
Yogyakarta & Purbalingga
How did you do that?
Just by modifying five props values (all the props modified are shown in the termux screenshot).

Note:
Security patch date should match the device fingerprint.

You can either modify build.prop or use setprop in the init file to change those two props (both work, I've tried).

Editing done from PC, pushed into device using flashable zip.


------------------------------

To change the following three props:

ro.boot.verifiedbootstate
ro.boot.veritymode
ro.boot.vbmeta.device_state

I patched the kernel (boot.img) by modifying the cmdline (so those three values will be fixed to the ones included in the kernel cmdline), (because I failed to setprop those from init).

------------------------------

I used to change two more props to pass safetynet (ro.debuggable=0 and ro.build.type=user), but after some testings, I found those 2 aren't needed to change.

------------------------------

Why?
Because I don't want root and don't want magisk installed.
 
Last edited:

Danilo-Sanchez

Senior Member
Aug 13, 2015
1,097
857
Sao Paulo
Just by modifying five props values (all the props modified are shown in the termux screenshot).

Note:
Security patch date should match the device fingerprint.

You can either modify build.prop or use setprop in the init file to change those two props (both work, I've tried).

Editing done from PC, pushed into device using flashable zip.


------------------------------

To change the following three props:

ro.boot.verifiedbootstate
ro.boot.veritymode
ro.boot.vbmeta.device_state

I patched the kernel (boot.img) by modifying the cmdline (so those three values will be fixed to the ones included in the kernel cmdline), (because I failed to setprop those from init).

------------------------------

I used to change two more props to pass safetynet (ro.debuggable=0 and ro.build.type=user), but after some testings, I found those 2 aren't needed to change.

------------------------------

Why?
Because I don't want root and don't want magisk installed.

I would like to do this, but it seems a little complicated.
I didn't understand how can I patch boot.img.
 

r6680jc

Senior Member
Sep 6, 2009
438
84
Yogyakarta & Purbalingga
I would like to do this, but it seems a little complicated.
I didn't understand how can I patch boot.img.

Use Android image kitchen:

Extract boot.img from the ROM zip.
Put it in the Android Image Kitchen folder.

Run "unpackimg.bat" wait until unpacking finished.

Go to "split_img" folder, open "boot.img-cmdline" using notepad++ (not regular Windows notepad).

Add this to the end of the first line (notice there's a space before the first androidboot here):
Code:
 androidboot.verifiedbootstate=green androidboot.veritymode=enforcing androidboot.vbmeta.device_state=locked

Make sure there is still an empty second line.
Save the edited "boot.img-cmdline".
Run "repackimg.bat".

The edited kernel will be saved as "image-new.img", flash this into boot partition using fastboot or TWRP or other custom recovery.

------------------------------

For editing build.prop or using init to change device fingerprint and security patch date:

The latest device fingerprint for Redmi7/Y3 Global:
Code:
xiaomi/onc/onc:9/PKQ1.181021.001/V11.0.7.0.PFLMIXM:user/release-keys
The matching security patch date:
Code:
2020-10-01
 
Last edited:

Danilo-Sanchez

Senior Member
Aug 13, 2015
1,097
857
Sao Paulo
Use Android image kitchen:

Extract boot.img from the ROM zip.
Put it in the Android Image Kitchen folder.

Run "unpackimg.bat" wait until unpacking finished.

Go to "split_img" folder, open "boot.img-cmdline" using notepad++ (not regular Windows notepad).

Add this to the end of the first line (notice there's a space before the first androidboot here):
Code:
 androidboot.verifiedbootstate=green androidboot.veritymode=enforcing androidboot.vbmeta.device_state=locked

Make sure there is still an empty second line.
Save the edited "boot.img-cmdline".
Run "repackimg.bat".

The edited kernel will be saved as "image-new.img", flash this into boot partition using fastboot or TWRP or other custom recovery.

------------------------------

For editing build.prop or using init to change device fingerprint and security patch date:

The latest device fingerprint for Redmi7/Y3 Global:
Code:
xiaomi/onc/onc:9/PKQ1.181021.001/V11.0.7.0.PFLMIXM:user/release-keys
The matching security patch date:
Code:
2020-10-01

Thank you very much. I'll try it here.
 

r6680jc

Senior Member
Sep 6, 2009
438
84
Yogyakarta & Purbalingga
New device build fingerprint (Android 10 based MIUI 11.0.1.0 Redmi 7 global stable beta):
Code:
xiaomi/onc/onc:10/QKQ1.191008.001/V11.0.1.0.QFLMIXM:user/release-keys

Matching security patch date (December 2020):
Code:
2020-12-01
 

Attachments

  • lineage-17.1-20201220-onclite-pass-safetynet-new-fp.zip
    13.5 MB · Views: 5
  • Like
Reactions: Danilo-Sanchez

nastslay

Member
May 11, 2020
13
0
I couldn't tell you because I've never used that bank , sorry. But I guess it should work with no problem. If you get to do the step 5 in the thread that I told you, you'll have to choose the fingerprint for the redmi 7, otherwise may not work.

sorry to bother you again, but can you link clear instruction for instalinag magisk. i followed this instruction but i can not boot into magisk. im using official lineage 17.1 recovery
 

Annuart

Member
Jan 13, 2021
9
0
Xiaomi Redmi 7
I think I found a couple of minor bugs. Sometimes it doesn't detect the swipe to the left/right when I try to deactivate my alarm. Also, if I'm taking multiple pictures in WhatsApp with flash, the flash doesn't activate until I tap to focus (It only occurs with the second photo and above.) Other than that, the rom is very smooth and has good performance.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    ElEGfr4.png



    Code:
    /*
     * Your warranty is now void.
     *
     * I am 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 me for messing up your device, I will laugh at you.
     */

    LineageOS is a free, community built, aftermarket firmware distribution of Android 10 (Q), 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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.



    What's working:
    • WiFi
    • RIL (Calls , SMS , Data)
    • Bluetooth
    • Fingerprint
    • Audio
    • Video
    • Camera
    • Camcorder
    • Flash
    • IR
    • FM Radio
    • Sensors
    • LED
    • GPS
    • VoLTE
    • VoWiFi
    • Encryption (FBE)

    Known issues:
    • you tell me

    Downloads:

    Instructions:
    • Reboot to recovery
    • Format /system, /data and /cache
    • Install LineageOS zip package
    • Install GApps of your choice [optional]
    • Reboot

    Important note:
    • Format data is necessary if MIUI was previously installed or device was encrypted with other encryption methods like FBE.
    • No Custom Kernels are supported in this thread.

    Device wiki:

    Device sources:





    XDA:DevDB Information
    Lineage OS for Redmi 7, ROM for the Xiaomi Redmi 7

    Contributors
    Dhina_17
    Source Code: https://github.com/LineageOS

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Pie firmware
    Based On: AOSP

    Version Information
    Status: Nightly
    Stable Release Date: 2020-04-19

    Created 2020-04-19
    Last Updated 2020-07-29
    7
    Happy to announce that We are now LineageOS official. ;)


    Refer this to move from unofficial build to official build.

    https://wiki.lineageos.org/signing_builds.html#test-keys-to-official-or-vice-versa
    2
    Changelogs:
    April 19, 2020:
    • Initial build
    • SELinux Enforcing
    • Updated Blobs from LA.UM.8.6.2.r1-06600-89xx.0
    • Kernel - Upstreamed to 4.9.219
    • Kernel - Merged latest CAF tag LA.UM.8.6.2.r1-06900-89xx.0

    May 29, 2020:
    • Initial official release
    • Updated Blobs from daisy Q release
    • Kernel - Upstreamed to 4.9.224
    • Kernel - Merged latest CAF tag LA.UM.8.6.2.r1-07100-89xx.0

    Check changelogs for upcoming nightlies here
    2
    Is this some kind of conspiracy? Nowhere does the fm radio work!
    From next release,it will be fixed