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 11, 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. Linked below is a package that has come from another Android project that restore the Google parts. 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 out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
Downloads :
DO NOT USE TWRP OR ANY OTHER CUSTOM RECOVERY. READ INSTALLATION INSTRUCTIONS BEFORE INSTALLING
SourceForge folder (includes rom, LineageOS recovery image)
OpenGapps
Magisk
Installation :
You MUST have unlocked botloader and running latest stock android 11 on your phone
You can find information about installing and using adb here
1) Flash LineageOS recovery via fastboot using command
fastboot flash boot <name of the file>
2) Reboot to recovery
3) Download copy-partitions-20200903_1329.zip (this script makes sure both slots on your phone uses same firmware by copying it from active to inactive slot and was created by official LineageOS maintainers)
4) Navigate Apply update -> apply from ADB
5) Sideload copy-partitions-20200903_1329.zip using command
adb sideload copy-partitions-20200903_1329.zip
Tap 'continue' on your phone when prompted
6) Perform factory reset
7) Navigate Apply update -> apply from ADB
8) Sideload rom .zip
adb sideload <rom zip name>
9) Reboot recovery (Advanced -> Reboot to recovery)
Now you can sideload gapps or magisk if you need them (recovery might give you a warning about flashing unsigned files, just click second option and installation process will continue)
10) Navigate Apply update -> apply from ADB
11) Sideload rom .zip
adb sideload <zip name>
* For new Magisk versions change file extension to zip to be able to sideload it
12) Tap 'Reboot system now'
Updating to a new version:
1) Reboot recovery
2) Navigate Apply update -> apply from ADB
3) Sideload rom .zip using
adb sideload <rom zip name>
4) Reboot recovery (Advanced -> Reboot to recovery)
Now you need to sideload gapps or magisk if had them installed (recovery might give you a warning about flashing unsigned files, just click second option and installation process will continue)
5) Navigate Apply update -> apply from ADB
6) Sideload .zip package
adb sideload <zip name>
* For new Magisk versions change file extension to zip to be able to sideload it
7) Tap 'Reboot system now'
Notes :
- This is personal build for my own usage, I'm just sharing it
- Custom recoveries, kernels, mods are not supported
Trees :
Common tree: https://github.com/HarukeyUA/android_device_xiaomi_sm6125-common
Device tree: https://github.com/HarukeyUA/android_device_xiaomi_laurel_sprout
Kernel: https://github.com/HarukeyUA/android_kernel_xiaomi_laurel_sprout
Vendor: https://github.com/HarukeyUA/proprietary_vendor_xiaomi
Last edited: