• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Development [KERNEL] [OFFICIAL] [MIUI/AOSP] [UNIFIED] LegionX V2.0 - By Venom_Stark

Search This thread

Abdullah.Csit

Senior Member
Feb 14, 2014
655
594
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
IMG_20210903_150946_068.jpg


« Disclaimer & INFO »​

Code:
# include <std_disclaimer.h>
/*
* Your warranty is... Still valid??.
*
* 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 KERNEL
* 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.
*/

Note: I'm just a library man all works saved to their owners this kernels made by love check credits. All copyright saved here with developer premison 😊👍
Name of Kernel: LegionX

Version of kernel: 2.0 NEW

Lates stable Update: 2021/sep/03

Supported Roms: MIUI & AOSP

Status: Stable




UNIFIED = MOJITO / SUNNY



« Changelogs »

[ Latest Release Changelog ]


Check Post #2 (click number) for changelogs

« NOTES »
In MIUI / MIUI based ROMs, kernel version will show "Unavailable" because MIUI doesn't support long names (because I used proton clang and lld) but kernel working perfectly you can see name in FKM tough.
• It's AIMING on Performance, stability,..
• If you can't flash with TWRP , use FK manager to flash it "root required".

KCAL works fine .Everytime you changed value in KCAL just screen off (Don't power off) and open screen .
New value will apply.

• If your device not booting to system just bootloop or fastboot only. Don't panic. re-flash your rom file without wiping data. And please report here with the name of rom and any details.

• If you update TWRP recovery, reflash the kernel again too.

• You don't need to Wipe data ! Only cashe and Dalvik.

• Report for any bugs/issues with logs if available.

« DOWNLOADS »
Latest Stable Build (LegionX V2.0):

Click here to download LegionX V2.0 (MIUI/AOSP)
Previous Stable build:

Click here to download V 1.0-LTO (AOSP Only) Build


« INSTALLATION »
1- Download Kernel & save it on internal storage.
2- Boot to recovery (TWRP).
3- Flash the kernel zip file.
4- Wipe Cashe & Dalvik. “Don't Wipe Data
5- Reboot to system.

NOTE: For pixel experience rom, use this Guide:

IT'S can safely installed on Pixel experience. Just follow this:

1- Boot TWRP recovery with this command:

Code:
fastboot boot twrp.img

2- Don't Install ramdisk or anything just go to LegionX Kernel on your storage and flash it.

3- Wipe Cashe & Dalvik.

4- Power Off then power on your device.

Done.

« CREDITS »
• Kernel by: @venom_stark , Thanks 😊
• Thanks to @ZIDAN44 , @CloudedQuartz ,@cyberknight777 & @Shararti1 .
• Thanks @AnomYT for Banner
• XDA-OP: @Abdullah.Csit
• #All testers.
• GitHub Source Link: https://github.com/venom-stark/mojito...
SHOW YOUR SUPPORT BY HITTING LIKE 👍
 
Last edited:

Abdullah.Csit

Senior Member
Feb 14, 2014
655
594
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
#Kernel Changelogs 2021/9/03:

Code:
LegionX v2.0:
-schedtune_assist: Cleanup and update
-sched/tune: Only force UX tasks to big cores
-f2fs: Enlarge min_fsync_blocks to 20
-diag: Add timer to make sure wakelock no stuck
-fs: Reduce cache pressure
lib/string: optimized memcpy,memmove, memset
-arm64: Import latest memcpy()/memmove() implementation
-ARM64/dts: qcom: Disable CoreSight DT entries for sdmmagpie
-scsi: ufs: Scrap Qualcomm's PM QoS implementation
-scsi: ufs: Scrap Qualcomm's PM QoS implementation
-msm: adreno: Relax CPU latency requirements to save power
-sched/fair: fix misfit with PELT
-qos: Don't allow userspace to impose restrictions on CPU idle
-mmc: Disable SPI CRC
-iommu: msm: Rewrite to improve clarity and performance
-PM: sleep: Don't allow s2idle to be used
-rcu: Speed up calling of RCU tasks callbacks
-Enable JUMP_LABEL and added some jump lebel patches


Code:
➡️ 2021/8/4 |

• MIUI not supported in this update ( On V2.0 will get update)

• Used LTO binary optimization

• Complied using proton clang with lld linker.

• Performance improvement

• Battery backup improvement



#Thread Changelog:

🆕 // 2021.august.4 //

- Introduce the new LOGO

- Kernel Updated ! 2021/8/4

- Added new note about MIUI in new update To «NOTES» section (IMPORTANT)



//
 
Last edited:

StaryMuz

Senior Member
Dec 27, 2012
396
127
You must have a broken system. Flash Miui from MiFlash with cleanup and then reload the desired custom ROM. This will align all partitions.

Kernel tested on PE+, camera error persists.
 
  • Like
Reactions: Abdullah.Csit

Abdullah.Csit

Senior Member
Feb 14, 2014
655
594
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
You must have a broken system. Flash Miui from MiFlash with cleanup and then reload the desired custom ROM. This will align all partitions.

Kernel tested on PE+, camera error persists.

Reported to developer

Developer answer : “Ok I will flash PE+ now and test camera.”

Tested : Camera working perfectly on PE+.

Wouldn't it be obvious if a system is broken? crDroid is working flawlessly atm.

At less test flashing Latest firmware it won't be hard and it's good for your device anyway.
 
Last edited:

Pachunko

Member
Jul 19, 2021
46
17
Xiaomi Redmi Note 5A
Redmi Note 10
Here's what I tried now:

1. Flashed stock firmware (clean all)
2. Booted up to MIUI - Copied crDroid rom, kernel, gapps to internal storage
3. Rebooted to fastboot - flashed twrp.img via fastboot command
4. Rebooted to recovery, installed everything: ROM, Gapps, kernel
5. Wiped data/cache
6. Reboot - stuck at crDroid logo (at least it's no longer fastboot loop)

Update: Rebooted to recovery, data cannot mount - encrypted. "default_password" doesn't work.
 
  • Wow
Reactions: Abdullah.Csit

Abdullah.Csit

Senior Member
Feb 14, 2014
655
594
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
Here's what I tried now:

1. Flashed stock firmware (clean all)
2. Booted up to MIUI - Copied crDroid rom, kernel, gapps to internal storage
3. Rebooted to fastboot - flashed twrp.img via fastboot command
4. Rebooted to recovery, installed everything: ROM, Gapps, kernel
5. Wiped data/cache
6. Reboot - stuck at crDroid logo (at least it's no longer fastboot loop)

Update: Rebooted to recovery, data cannot mount - encrypted. "default_password" doesn't work.

Just use fastboot recovery OTA tool flash CRdroid with it. Then wait till you boot in TWRP
Wipe data
Flash kernel
Reboot system

 
  • Like
Reactions: Pachunko

venom_stark

New member
Jul 19, 2021
4
6
Here's what I tried now:

1. Flashed stock firmware (clean all)
2. Booted up to MIUI - Copied crDroid rom, kernel, gapps to internal storage
3. Rebooted to fastboot - flashed twrp.img via fastboot command
4. Rebooted to recovery, installed everything: ROM, Gapps, kernel
5. Wiped data/cache
6. Reboot - stuck at crDroid logo (at least it's no longer fastboot loop)

Update: Rebooted to recovery, data cannot mount - encrypted. "default_password" doesn't work.

Here's what I tried now:

1. Flashed stock firmware (clean all)
2. Booted up to MIUI - Copied crDroid rom, kernel, gapps to internal storage
3. Rebooted to fastboot - flashed twrp.img via fastboot command
4. Rebooted to recovery, installed everything: ROM, Gapps, kernel
5. Wiped data/cache
6. Reboot - stuck at crDroid logo (at least it's no longer fastboot loop)

Update: Rebooted to recovery, data cannot mount - encrypted. "default_password" doesn't work.
It's a dynamic virtual A/B phone traditional way of flashing won't work.
First flash los recovery
Fastboot flash boot LosRecovery.img
Then boot to los recovery and format data.
Then click apply updated and flash rom thorough sideload..
After flashing rom reboot and rom will boot.
Then install twrp
Type command - fastboot boot twrp.img
After booting to twrp then go to advance click "flash current twrp". Then reboot system.
Then open twrp like normally by pressing vol+ and power button (you know)
Then flash kernel.
Edit: Don't need to flash TWRP in rom in which it pre-installed.
 
Last edited:
  • Like
Reactions: Pachunko

Abdullah.Csit

Senior Member
Feb 14, 2014
655
594
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
It's a dynamic virtual A/B phone traditional way of fishing won't work.
First flash los recovery
Fastboot flash boot LosRecovery.img
Then boot to los recovery and format data.
Then click apply updated and flash rom thorough sideload..
After flashing rom reboot and rom will boot.
Then install twrp
Type command - fastboot boot twrp.img
After booting to twrp then go to advance click "flash current twrp". Then reboot system.
Then open twrp like normally by pressing vol+ and power button (you know)
Then flash kernel.

I think he doesn't need to flash twrp again since CRdroid included TWRP.
Best way is using fastboot tool to flash his recovery rom

My regards
❤️🤞
 

Zirila

Senior Member
Jul 31, 2015
168
62
Here's what I tried now:

1. Flashed stock firmware (clean all)
2. Booted up to MIUI - Copied crDroid rom, kernel, gapps to internal storage
3. Rebooted to fastboot - flashed twrp.img via fastboot command
4. Rebooted to recovery, installed everything: ROM, Gapps, kernel
5. Wiped data/cache
6. Reboot - stuck at crDroid logo (at least it's no longer fastboot loop)

Update: Rebooted to recovery, data cannot mount - encrypted. "default_password" doesn't work.
the critical error is, you don't start the ROM after installing the rom.
flash the rom, start the rom, create a password/pattern so you get /data encryption key (you can disable it right after, but let system set it up once)
then, start flashing the rest. (installing gapps however might be necessary before booting it up for the fist time, idk)

if system can't decrypt /data, you will end up in a bootloop and/or fastboot loop.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    IMG_20210903_150946_068.jpg


    « Disclaimer & INFO »​

    Code:
    # include <std_disclaimer.h>
    /*
    * Your warranty is... Still valid??.
    *
    * 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 KERNEL
    * 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.
    */

    Note: I'm just a library man all works saved to their owners this kernels made by love check credits. All copyright saved here with developer premison 😊👍
    Name of Kernel: LegionX

    Version of kernel: 2.0 NEW

    Lates stable Update: 2021/sep/03

    Supported Roms: MIUI & AOSP

    Status: Stable




    UNIFIED = MOJITO / SUNNY



    « Changelogs »

    [ Latest Release Changelog ]


    Check Post #2 (click number) for changelogs

    « NOTES »
    In MIUI / MIUI based ROMs, kernel version will show "Unavailable" because MIUI doesn't support long names (because I used proton clang and lld) but kernel working perfectly you can see name in FKM tough.
    • It's AIMING on Performance, stability,..
    • If you can't flash with TWRP , use FK manager to flash it "root required".

    KCAL works fine .Everytime you changed value in KCAL just screen off (Don't power off) and open screen .
    New value will apply.

    • If your device not booting to system just bootloop or fastboot only. Don't panic. re-flash your rom file without wiping data. And please report here with the name of rom and any details.

    • If you update TWRP recovery, reflash the kernel again too.

    • You don't need to Wipe data ! Only cashe and Dalvik.

    • Report for any bugs/issues with logs if available.

    « DOWNLOADS »
    Latest Stable Build (LegionX V2.0):

    Click here to download LegionX V2.0 (MIUI/AOSP)
    Previous Stable build:

    Click here to download V 1.0-LTO (AOSP Only) Build


    « INSTALLATION »
    1- Download Kernel & save it on internal storage.
    2- Boot to recovery (TWRP).
    3- Flash the kernel zip file.
    4- Wipe Cashe & Dalvik. “Don't Wipe Data
    5- Reboot to system.

    NOTE: For pixel experience rom, use this Guide:

    IT'S can safely installed on Pixel experience. Just follow this:

    1- Boot TWRP recovery with this command:

    Code:
    fastboot boot twrp.img

    2- Don't Install ramdisk or anything just go to LegionX Kernel on your storage and flash it.

    3- Wipe Cashe & Dalvik.

    4- Power Off then power on your device.

    Done.

    « CREDITS »
    • Kernel by: @venom_stark , Thanks 😊
    • Thanks to @ZIDAN44 , @CloudedQuartz ,@cyberknight777 & @Shararti1 .
    • Thanks @AnomYT for Banner
    • XDA-OP: @Abdullah.Csit
    • #All testers.
    • GitHub Source Link: https://github.com/venom-stark/mojito...
    SHOW YOUR SUPPORT BY HITTING LIKE 👍
    4
    I'll prolly look into eff freqs and cpuidle with lpm vals
    3
    #Kernel Changelogs 2021/9/03:

    Code:
    LegionX v2.0:
    -schedtune_assist: Cleanup and update
    -sched/tune: Only force UX tasks to big cores
    -f2fs: Enlarge min_fsync_blocks to 20
    -diag: Add timer to make sure wakelock no stuck
    -fs: Reduce cache pressure
    lib/string: optimized memcpy,memmove, memset
    -arm64: Import latest memcpy()/memmove() implementation
    -ARM64/dts: qcom: Disable CoreSight DT entries for sdmmagpie
    -scsi: ufs: Scrap Qualcomm's PM QoS implementation
    -scsi: ufs: Scrap Qualcomm's PM QoS implementation
    -msm: adreno: Relax CPU latency requirements to save power
    -sched/fair: fix misfit with PELT
    -qos: Don't allow userspace to impose restrictions on CPU idle
    -mmc: Disable SPI CRC
    -iommu: msm: Rewrite to improve clarity and performance
    -PM: sleep: Don't allow s2idle to be used
    -rcu: Speed up calling of RCU tasks callbacks
    -Enable JUMP_LABEL and added some jump lebel patches


    Code:
    ➡️ 2021/8/4 |
    
    • MIUI not supported in this update ( On V2.0 will get update)
    
    • Used LTO binary optimization
    
    • Complied using proton clang with lld linker.
    
    • Performance improvement
    
    • Battery backup improvement



    #Thread Changelog:

    🆕 // 2021.august.4 //

    - Introduce the new LOGO

    - Kernel Updated ! 2021/8/4

    - Added new note about MIUI in new update To «NOTES» section (IMPORTANT)



    //
    3
    Ok I wanted to test if fastbooting is the problem for my device. So I tried to fix my adb drivers so I can try sideloading for the first time. Managed to fix the driver (adb devices finally showed my device in PE recovery).
    What I did next:

    1. While in PE recovery - apply update - adb sideload crDroid.zip - installed
    2. Rebooted - crDroid WORKS!
    3. Set up debugging, copied FlameGapps.zip to "Download" folder (it was not displaying in root while in TWRP)
    4. Reboot to TWRP - open Download - Flashed Gapps

    Booted without issues, everything's working!