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 :
SourceForge folder (includes rom, LineageOS recovery image)
OpenGapps 11 test packages
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
4) Sideload copy-partitions-20200903_1329.zip using command
adb sideload copy-partitions-20200903_1329.zip
Tap 'continue' on your phone when prompted
5) Perform factory reset
6) Navigate Apply update -> apply from ADB
7) Sideload rom .zip
adb sideload <rom zip name>
8) Reboot recovery (Advanced -> Reboot to recovery)
9) 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)
adb sideload <zip name>
* For new Magisk versions change file extension to zip to be able to sideload it
10) Tap 'Reboot system now'
Updating to a new version:
1) Reboot recovery
2) Sideload rom .zip using
adb sideload <rom zip name>
3) Reboot recovery (Advanced -> Reboot to recovery)
4) Sideload gapps or magisk if you had them (recovery might give you a warning about flashing unsigned files, just click second option and installation process will continue)
adb sideload <zip name>
* For new Magisk versions change file extension to zip to be able to sideload it
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: