Development [ROM][11.0][OFFICIAL] crDroid Android v7.x (mojito/sunny)

Search This thread

Zirila

Senior Member
Jul 31, 2015
182
78
MiFlash flash into both slots simultaneously. At the same time, it erases everything beforehand. That's why I always run MiFlash when I have problems with flash.

I think we're in the wrong thread. A moderator could move us, please.
For example, here.
indeed.
that's why I tried to reflash MIUI with MiFlash.. but due to the error, it didn't work. I also didn't want to try relocking, though.
 
oh, and just one thought:

could it be, that ROM developers assume that currently installed MIUI ROM is always on a-slot? because a-slot is the default when you open a new phone.
but I did a firmware update before unlocking, and after that, it switched of course to b-slot. from then on it was the default.
now when I flash the ROMs, they might expect it to be a-slot when it is actually b-slot.
You can't change the slots on the current TWRP, it's buggy.
Try fastboot method.
 

Zirila

Senior Member
Jul 31, 2015
182
78
regarding my error with "snapshotted state" while flashing with MiFlash.. I found the solution.

first, I tried to flash with "clean all and lock", but it showed the same error - this was not the way.
I researched a little further and found that the metadata partition is in a snapshotted state, which has something to do with the virtual a/b mechanism.
anyway, you can fix the snapshotted state by either merge or cancel the state.
for that you need the *latest* (Android 11) platform-tools with the latest fastboot.exe, because older version do not support this command.

then: fastboot.exe snapshot-update cancel
the snapshot gets cancelled and you can flash fastboot images of ROMs with MiFlash again normally.

more details and background info:

from: https://source.android.com/devices/tech/ota/virtual_ab/implement?hl=en

Fastboot tooling changes​

Android 11 makes the following changes to the fastboot protocol:
  • getvar snapshot-update-status — Returns the value that the boot control HAL communicated to the bootloader:
    • If the state is MERGING, the bootloader must return merging.
    • If the state is SNAPSHOTTED, the bootloader must return snapshotted.
    • Otherwise, the bootloader must return none.
  • snapshot-update merge — Completes a merge operation, booting to recovery/fastbootd if necessary. This command is valid only if snapshot-update-status is merging, and is only supported in fastbootd.
  • snapshot-update cancel — Sets the boot control HAL's merge status to CANCELLED. This command is invalid when the device is locked.
 

StaryMuz

Senior Member
Dec 27, 2012
560
185
regarding my error with "snapshotted state" while flashing with MiFlash.. I found the solution. ...
I have encountered this error before as well, but had to resolve it differently then.
It's quite possible that I extracted the boot.img from the Miui rom and used fastboot to load both slots (A/B). Maybe then MiFlash started working properly.

As for needing a new fastboot tool, I've already written about it and just put a new fastboot.exe in the old "minimal fastboot tool". Everything works as it should and with new commands. New fastboot.exe download.
 

Soyabkhan

Member
Mar 21, 2017
16
5
Redmi Note 10
There is bug in applock. When you open locked app within another app eg, opening gallery for selecting wallpaper or opening pdf file the applock prompt appear and disappear in one second and app does not open.
 

Zirila

Senior Member
Jul 31, 2015
182
78
I have encountered this error before as well, but had to resolve it differently then.
It's quite possible that I extracted the boot.img from the Miui rom and used fastboot to load both slots (A/B). Maybe then MiFlash started working properly.
then you manually flashed the boot.img to boot_a + boot_b with fastboot? I just tried to flash it with the flash_all.bat and MiFlash and whenever it wanted to touch the metadata partition the phone throw a remote error and wouldn't let me touch or change it. it's like read-only as long as the snapshot isn't cancelled. anyway, the fastboot command worked, thank goodness :)
As for needing a new fastboot tool, I've already written about it and just put a new fastboot.exe in the old "minimal fastboot tool". Everything works as it should and with new commands. New fastboot.exe download.
no prob, i knew, I also just added that info so other people fighting the same problem and reading the post find the fitting tools right away.
 

Zirila

Senior Member
Jul 31, 2015
182
78
let me note some things on installing CrDroid / LineageOS with TWRP alpha (06/2021).
This might guide some newcomers.

TWRP alpha seems to be unable to decrypt or mount the internal storage as writeable if NO rom has been installed before or partitions have been wiped and formated. (with MTP enabled in TWRP your computer will find the phone and internal storage, but it will fail to copy files)
IF a rom has been installed before, it tries to decrypt FBE (file based encryption) with the PIN you chose and then it is possible to load files with MTP to internal storage.

So, if you start from scratch, you have no ROM installed before, or wiped and formatted everything:
you fastboot-load TWRP and end up not being able to upload files (like ROM.zip or TWRP.img) with MTP to the internal storage... how do you select the files for flashing if they aren't available?
1) use external sd card (copy files on ext. sd card, select files from there in twrp)
2) use usb-otg if you have one.

or, and that's my way to go if you don't have a phone with ext.sdcard or usb-otg:

3) use ADB sideload.
in TWRP use ADB sideload to Flash the ROM.zip first (CrDroid/LineageOS). Start the ROM, create a PIN. That way the encryption password is set.
Now start TWRP again with fastboot boot twrp.img (because currently the rom-recovery is default).
this time it asks for user[0] password, enter your pin/pattern and TWRP is finally able to decrypt partitions and use the internal storage. from that point on forward you can copy images with MTP to your phones internal storage.
now in TWRP with MTP enabled, copy twrp.img to internal storage and install the twrp.img as ramdisk. don't hit the reboot (to system) button right there, go back and choose reboot-> reboot to recovery first.
After that it's all done, boot to system. The ROM and TWRP recovery is installed, and TWRP is finally able to decrypt storage and partitions.

on a sidenote:
- TWRP a/b switching indeed isn't working, use fastboot.exe --set-active=a (or b)
- if you flash magisk in twrp, *don't* install TWRP to ramdisk again right after that, just reboot to system, or it gets overwritten again.
 

Soyabkhan

Member
Mar 21, 2017
16
5
Redmi Note 10
let me note some things on installing CrDroid / LineageOS with TWRP alpha (06/2021).
This might guide some newcomers.

TWRP alpha seems to be unable to decrypt or mount the internal storage as writeable if NO rom has been installed before or partitions have been wiped and formated. (with MTP enabled in TWRP your computer will find the phone and internal storage, but it will fail to copy files)
IF a rom has been installed before, it tries to decrypt FBE (file based encryption) with the PIN you chose and then it is possible to load files with MTP to internal storage.

So, if you start from scratch, you have no ROM installed before, or wiped and formatted everything:
you fastboot-load TWRP and end up not being able to upload files (like ROM.zip or TWRP.img) with MTP to the internal storage... how do you select the files for flashing if they aren't available?
1) use external sd card (copy files on ext. sd card, select files from there in twrp)
2) use usb-otg if you have one.

or, and that's my way to go if you don't have a phone with ext.sdcard or usb-otg:

3) use ADB sideload.
in TWRP use ADB sideload to Flash the ROM.zip first (CrDroid/LineageOS). Start the ROM, create a PIN. That way the encryption password is set.
Now start TWRP again with fastboot boot twrp.img (because currently the rom-recovery is default).
this time it asks for user[0] password, enter your pin/pattern and TWRP is finally able to decrypt partitions and use the internal storage. from that point on forward you can copy images with MTP to your phones internal storage.
now in TWRP with MTP enabled, copy twrp.img to internal storage and install the twrp.img as ramdisk. don't hit the reboot (to system) button right there, go back and choose reboot-> reboot to recovery first.
After that it's all done, boot to system. The ROM and TWRP recovery is installed, and TWRP is finally able to decrypt storage and partitions.

on a sidenote:
- TWRP a/b switching indeed isn't working, use fastboot.exe --set-active=a (or b)
- if you flash magisk in twrp, *don't* install TWRP to ramdisk again right after that, just reboot to system, or it gets overwritten again.
I also installed this rom with twrp and I dont face any issues.
 

Zirila

Senior Member
Jul 31, 2015
182
78
I also installed this rom with twrp and I dont face any issues.
the process of installing the actual rom with twrp is not the problem here.
the problem is to get the rom.zip selectable for installation as the internal storage is not accessable from within twrp and MTP. if you are on the lucky side that twrp and your PC via MTP has access to internal storage right away, then it's great!
it was -never- the case on my side, however.
 

StaryMuz

Senior Member
Dec 27, 2012
560
185
The problems will be related to the existing content of the A/B sections.
If both partitions are managed properly by one rom, everything will be fine.
The main one will probably be the same boot.img
It can be easily extracted by extracting the rom and then flash it using fastboot to both partitions.
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
 

Zirila

Senior Member
Jul 31, 2015
182
78
why is the VANILLA version deprecated?
as there is no way to remove gapps after rom installation and/or updates/dirty flashes, I'd rather prefer a version without gapps.
Or is this just default for official CrDroid releases?
 

Anish Louis

Senior Member
May 25, 2021
90
11
Redmi Note 10
I just noticed a weird bug on crdroid. Touch is not working at bottom right corner. (Not exactly right bottom, but just a lit bit of left of bottom right corner.) Firstly i tot its my rn10's issue. But i checked it with other custom roms. (PE +) Its working perfecly.

(You can see tis issue if u are using gpay. The next button in upi password entering screen is exact in this buggy position. We have to touch it more than 2 or 3 times for sensing that next button.)
Hope u understand wat i meant. Is anyone noticed it or am i the only one having this issue?🙄
 
the process of installing the actual rom with twrp is not the problem here.
the problem is to get the rom.zip selectable for installation as the internal storage is not accessable from within twrp and MTP. if you are on the lucky side that twrp and your PC via MTP has access to internal storage right away, then it's great!
it was -never- the case on my side, however.
Why do u use twerp, when u work with PC? Just use los recovery & sideload zips.
 

Zirila

Senior Member
Jul 31, 2015
182
78
Why do u use twerp, when u work with PC? Just use los recovery & sideload zips.
because TWRP is the more versatile tool, los recovery cannot keep up with it and later on I miss many features of it.
But you're right, your suggestion might also work for some users.
I guess that with updated TWRP soon, thats not a problem anymore, anyway.
 

slay3r159

Member
Dec 4, 2011
10
0
Great Rom! Is there a way to set which default homescreen to use when pressing the home button?
I cannot seem to find a way
 

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    BE3pE0l.png



    Code:
    *** Disclaimer
    I am not responsible for any damage you made to your device
    You have been warned


    crDroid is designed to increase performance and reliability over stock Android for your device also attempting to bringing many of the best features existent today

    Features

    Click for feature list


    Always Have a full functional Backup. Just in case!
    GAPPS | MICROG | Vanilla

    Useful Links:

    Magisk
    Orange Fox
    Logcat Reader

    Installation Order:
    > Flash / Sideload
    > Reboot to Recovery
    > Format (optional)

    [OR]

    Install it directly from fastboot if you have issues with sideloading

    Don't expect any support if you:
    - are not running the included kernel
    - have installed any crazy mods !
    - have modified system files

    Thanks to:

    - Google
    - LineageOS
    - SlimRoms
    - AOSPA (Paranoid Android)
    - OmniRom
    - NamelessROM
    - Many others... (if you're feeling upset being out of the thanks list just send a PM )


    Contributors:
    @ZIDAN44
    @TheMalachite
    @gwolfu
    @mukesh22584
    @adi153


    XDA:DevDB Information
    Source Code: https://github.com/crdroidandroid
    Kernel Source Tree: xiaomi-sdm678 / android_kernel_xiaomi_mojito
    ROM OS Version: Android 11
    Based On: LineageOS


    👍SMASH THE LIKE & SHOW YOUR APPRECIATION👍
    14
    Highlights & Device Specific Changes:
    Maintainer: Prince Cooper (Discontinued)
    Build type: Monthly

    ==== 01 October, 2021 ====


    - Fixed Slow charging
    - Fixed camera color shift
    - Moved to TWRP (due to ofox kernel issues)
    - Allow all filesystems for USB-OTG
    - Don't check prox before pulsing

    ==== 27 September, 2021 ====

    - Moved to armv8-2a
    - OrangeFox Recovery preincluded
    - Added Battery Health Stats
    - Added camera cutout notch
    - Added XiaomiParts (Dirac, Clear Speaker & Thermal Profiles)
    - Added color modes
    - Updated blobs from V12.5.3.0.RKGMIXM
    - Drop ANX/MiuiCam support for now
    - Improved Haptic Feedback
    - Fixed Google Backup/Restore
    - Fixed FMRadio
    - Fixed WFD/Cast
    - Fixed LDAC & AptxHD
    - Replaced PlayStore with Aurora Store in microg variant
    - Smarter decisions on whether to use 2/5Ghz AP
    - Updated device cutout corners
    - Disabled wifi firmware logging
    - Fixed whatsapp mic delay or crashes
    - More Smooth AF

    ==== 21 August, 2021 ====

    - Fixed OKGoogle Detection
    - Fixed CPU Thermal Info
    - Fixed Document Mode
    - Added Clone Shots (miuicam)
    - Added Smart Charging
    - Added Burn-in Protection
    - Added Smart Pixels
    - Brought back TWRP

    ==== 09 August, 2021 ====

    - crDroid 7.9 upstream
    - August patch merged
    - mojito: TWRP drop due to instability
    - mojito: Bluetooth AAC codec Fixed
    - mojito: Wired headset volume buttons fixed
    - mojito: ANXCam replaced with MiuiCam port
    - mojito: Fastbootd added to Power Menu
    - mojito: DavikHeap fixed for 4gb variants
    - Revamped Dialer dark theming
    - Updated native services for better FPS (to be tested)
    - Fixed new message compose with stock Messaging app
    - Removed blur additional changes to fix blur glitches
    - Added option to disable pill (crdroid > UI)
    - Added customization for rounded corners (crdroid > UI)
    - Enabled cached app freezer
    - Various under the hood updates and misc fixes

    ==== 16 July, 2021 ====

    - crDroid 7.8 upstream
    - July security patch
    - Increased system size
    - Pre-included TWRP
    - Included ANXCam 185R
    - Fixed Cam AV sync bugs
    - Quickstep Blur fixes
    - Fix media playback issues
    - Fixed VolumeDialog animation when ringer and notification are unlinked
    - Power menu UI customizations

    ==== 08 June, 2021 ====

    - Recovery ROMs from now
    - Vanilla Variant discontinued
    - Latest Firmware Mandatory
    - Added Gboard Lite
    - Removed MiXplorer Apps
    - Less frequent camcorder audio bug

    ==== 03 June, 2021 ====

    - Home crash fixed
    - Added stock terminal, AudioFX
    - LOS Recovery resolution to native
    - VANILLA / GAPPS variants included
    - SafetyNet Pass (No fix needed)

    ==== 24 May, 2021 ====

    - Fastboot ROM.
    - Weather Provider fixed
    - Added Custom Headers
    - Video Recording Stutter fixed (can be random)
    - Samsung UI audio implemented
    - Added Gboard, Via & FMRadio (won't work until we get OSS Vendor)
    - Removed substitute apps, improved response time, much more

    ==== 20 May, 2021 ====

    - Initial Build
    - May security patch
    - Removed some stock apps
    - Added QuickPic Gallery
    9
    Highlights & Device Specific Changes:
    Maintainer: Anush Madathumkara
    Build type: Monthly


    ==== 17 December, 2021 ====

    - Based on Latest WCSF Kernel
    - Fixed Widevine L1
    - Fixed random systemui crashes on Widevine L1
    - mojito: overlay: set CPU temperature paths
    - mojito: overlay: reduce rounded statusbar corner padding
    - sm6150-common:Build libgui and its vendor version
    - sm6150-common:sepolicy: fix Widevine DRM
    - sm6150-common:Add a missing media blob from stock
    - sm6150-common:Add missing DRM blobs from stock

    ==== 17 November, 2021 ====

    - Based on Rebased WCSF Kernel
    - Fixed some partition related issues (Now flashable via OFRP)
    - sm6150-common: Build atrace 1.0 service hals
    - sm6150-common: rootdir: Remove enable-low-power trigger from recovery
    - sm6150-common: rootdir: Allow all filesystems for USB-OTG
    - sm6150-common: prop: Disable sf EGL image tracking
    - sm6150-common: Kill kernel cmdline console parameters
    - sm6150-common: wifi: Disable wifi packet logging
    - sm6150-common: configs: power: Remove pixel audio hints
    - sm6150-common: overlay: Disable global mode and CDMA choices
    - sm6150-common: overlay: Allow seamless Doze state transitions
    - sm6150-common: rootdir: Chown drv8846_dev & akm09970 camera nodes
    - sm6150-common: prop: Switch to Codec2 by default
    - sm6150-common: prop: Disable Codec2 input surface
    - sm6150-common: parts: Add drawable icon for AOD
    - sm6150-common: sepolicy: Address virtual AB OTA denies
    - sm6150-common: Set NUM_FRAMEBUFFER_SURFACE_BUFFERS to 3
    - sm6150-common:Kang HWUI props from stock mojito qssi-user 11 RKQ1.201022.002 V12.5.3.0.RKGMIXM release-keys
    - sm6150-common:Add 300Mhz scaling_min_freq for CPUBigClusterMinFreq and CPULittleClusterMinFreq
    - sm6150-common: BoardConfig: Drop graphics layer memory buffer
    - sm6150-common:Add HDR & WCG Flags
    - sm6150-common: Do not use phase offsets as duration.
    - sm6150-common: prop: Fix screenrecord lag
    - sm6150-common: Define [email protected] into FCM
    - mojito: Update to Redfin November FP
    - Improved Stability && performance
    - 1080p Youtube playback issue addressed (FWIP)

    ==== 27 October, 2021 ====

    - Upated WCS kernel
    - Raised reserved partitions to support for improving gapps support
    - sm6150-common: Disable partial FB excl rect
    8
    New update is out changelogs and link is updated in thread :)
    Also u can flash crdroid normally using twrp or ofrp from now onwards
    Happy Flashing :)
    7
    New Build is available :-

    ==== 05 October, 2021 ====

    - Initial Build based on changed partitions
    - WCSF is default kernel
    - Note: This build doesnt has prebuild TWRP . Backup your full data before flashing.


    Notes:
    • Recommended Gapps Are MindThegapps & Nikgapps Basic
    • Flash Only Via Fastboot OTA Installer (https://forum.xda-developers.com/t/tool-flash-custom-roms-through-fastboot-mojito-sunny.4300957/)
    • You Can't Flash This Rom Via Recovery
    • You Can Flash Gapps Via Twrp Or Orfp
    • Make Sure To Backup All Data Before Flashing (It Might Loose Because Of Different Partition)