[ROM][11][UNOFFICIAL][laurel_sprout][OSS] LineageOS 18.1

Search This thread

Harukey

Senior Member
Aug 10, 2018
148
549
2okpze5-png.5152475


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:

Rajendran Rasa

Senior Member
Oct 17, 2015
1,153
572
24
Thanjavur
@HarukeyUA
Since it's your personal build can you add smart charging feature (cherry pick) please (for battery health) , hope you release next build with smart charging feature plox
 

Harukey

Senior Member
Aug 10, 2018
148
549
1. Bugs?
2. Plans for going official?
All major features (including, but not limited to wfd, selinux enforcing, L1 drm) are working fine. But there still can be bugs I didn't discover because of my usage pattern and/or availability in my region.
I don't have any plans for official status.
 
  • Like
Reactions: Sairagav

Typhoon_Master

Senior Member
Jun 5, 2014
102
10
i flashed this rom ... now my phone is dead and will not turn on. :-(
(happened at point 6: "Reboot recovery (Advanced -> Reboot to recovery)")

any tipps for de-bricking anyone?

//edit:
i managed to flash the service-rom via MiFlash... the phone is okay again, and this ROM does also work now.
 
Last edited:

Harukey

Senior Member
Aug 10, 2018
148
549
i flashed this rom ... now my phone is dead and will not turn on. :-(
(happened at point 6: "Reboot recovery (Advanced -> Reboot to recovery)")

any tipps for de-bricking anyone?

//edit:
i managed to flash the service-rom via MiFlash... the phone is okay again.
Are you sure you had latest Android 11 Firmware in both slots? Which device version do you have (Global, EU)?
Rom boots fine on my global Mi A3 (128/4) upgraded to Android 11 firmware via fastboot flash
 

Typhoon_Master

Senior Member
Jun 5, 2014
102
10
Are you sure you had latest Android 11 Firmware in both slots? Which device version do you have (Global, EU)?
Rom boots fine on my global Mi A3 (128/4) upgraded to Android 11 firmware via fastboot flash
Yes. I had the latest official EU Version 12.0.4.0 (Android 11) on my device.

//edit:
however: i then flashed the service-rom from here via MiFlash. The Phone bootet again and i just flashed this rom now and it is working.
 
Last edited:
  • Like
Reactions: XDAnewone

Harukey

Senior Member
Aug 10, 2018
148
549
New build is up
Changelog:
- LineageOS source sync
- Merged LA.UM.9.1.r1-09100-SMxxx0.0 into kernel
- Kernel version 4.14.223
- Switch to source built perf interface
- Init script upstream from caf
- Updated carrier config from LA.UM.9.11.r1-02800-NICOBAR.0
- Imported dpm properties from stock

Download: SourceForge
 
  • Like
Reactions: XDAnewone

Harukey

Senior Member
Aug 10, 2018
148
549
Thanks for your work...
- Any screen-shots?
- How is the SOT & overall battery life?
Did you identify what went wrong at your first try?

Screenshots
Battery life is subjective and depends on your usage pattern

As for second post, I guess they had Android 11 firmware in one slot and Android 10 firmware in another, so when device switched slots it refused to boot due to firmware incompatibility.
 
  • Like
Reactions: XDAnewone

Dabrico

New member
Mar 7, 2021
3
0
France
Hi, I would like to know if it is possible to update the system from an old version of your rom without needing to reflash the rom and lose its data ?
Excuse me if my english is bad.
(I flashed the rom yesterday)
 
Last edited:

Harukey

Senior Member
Aug 10, 2018
148
549
Hi, I would like to know if it is possible to update the system from an old version of your rom without needing to reflash the rom and lose its data ?
Excuse me if my english is bad.
(I flashed the rom tomorrow)
If you coming from 17.1 you must format data.
If you coming from my older 18.1 build you can follow instruction from this thread skipping recovery fastboot flashing and format data steps
 

Dabrico

New member
Mar 7, 2021
3
0
France
If you coming from 17.1 you must format data.
If you coming from my older 18.1 build you can follow instruction from this thread skipping recovery fastboot flashing and format data steps

Thank you

[Edit :] I reinstalled your rom because my phone didn't want to boot after I followed your instructions.
 
Last edited:

Grogdor

Member
Jun 13, 2008
6
6
Brand new phone, had 9 so did the OTAa to 10 and 11, then I'm guessing this happened:

As for second post, I guess they had Android 11 firmware in one slot and Android 10 firmware in another, so when device switched slots it refused to boot due to firmware incompatibility.

If your instructions have a decent chance of resulting in a bricked device, it might be helpful to include steps to check or correct that before leading slot-noobs such as myself down the path to no-no-more-bootey-boot-land.

Thanks asshole for my new EDL cable, and the sweet ROM. It's nice, so far I've noticed:

- Phone... Settings... Calling accounts... does not persist between reboots with one SIM and a SIP account; choosing the SIP account as default reverts to the SIM every time. Curiously, with two SIMs inserted, this will persist on any of the three settings between reboots.

- Phone... call recording does not appear to work, blank audio files are created, although this was only tested with a SIP account so may just be a limitation. Also tried Call Recorder by SKVALEX v2.1.0 via Magisk module, same blank audio files.

- fingerprint reader doesn't work, but that's possibly due to my EDL adventure as it booted up after rawprogram4+patch4 and I couldn't get it back into EDL to do 5... so now I'm not really sure what state my device is in, joy.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Sorry for lack of participation in thread, new build is up.
    Notable changes:
    - LineageOS source sync
    - Fixed brightness scaling (credits @Vishalcj17)
    - Added qti thermal hal
    - Synced some props with stock rom (ril, sesnsors, media)
    - Switched to 1.1 qti bootctrl hal
    - Fixed aux cameras (tested with latest parrot gcam)
    - Merged LA.UM.9.11.r1-03600-NICOBAR.0 caf tag and 4.14.229 to kernel

    Download
  • 8
    2okpze5-png.5152475


    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
    4
    Sorry for lack of participation in thread, new build is up.
    Notable changes:
    - LineageOS source sync
    - Fixed brightness scaling (credits @Vishalcj17)
    - Added qti thermal hal
    - Synced some props with stock rom (ril, sesnsors, media)
    - Switched to 1.1 qti bootctrl hal
    - Fixed aux cameras (tested with latest parrot gcam)
    - Merged LA.UM.9.11.r1-03600-NICOBAR.0 caf tag and 4.14.229 to kernel

    Download
    2
    i flashed this rom ... now my phone is dead and will not turn on. :-(
    (happened at point 6: "Reboot recovery (Advanced -> Reboot to recovery)")

    any tipps for de-bricking anyone?

    //edit:
    i managed to flash the service-rom via MiFlash... the phone is okay again, and this ROM does also work now.
    1
    What is the difference between this lineageOS and the other android11 firmware one?
    This is OSS build.
    1
    1. Bugs?
    2. Plans for going official?
    All major features (including, but not limited to wfd, selinux enforcing, L1 drm) are working fine. But there still can be bugs I didn't discover because of my usage pattern and/or availability in my region.
    I don't have any plans for official status.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone