Development [ROM] [Android13] crDroid | OFFICIAL | Poco F4 | Redmi K40S | MUNCH | 28th January, 2023

Search This thread
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:
https://github.com/crdroidandroid/crdroid_features/blob/12.1/README.mkdn

Flashing Instructions:

Pre-installation:

First time installation:

  • step 1. Download the latest build of the rom
  • step 2. Boot to the recovery
  • step 3. Format data
  • step 4. Copy rom build in memory
  • step 5. Flash

Update installation:

  • step 1. Download the latest build of the rom
  • step 2. Reboot to recovery
  • step 3. Copy the build to storage
  • step 4. Flash


Sources:
ROM: ROM Sources
Kernel: kernel
Trees: Munch
Common Device Trees: Common
Download:
ROM Rom Downloads

Known issues:

You'll tell me

Visit official website @ crDroid.net
Device Telegram Group
crDroid Community Telegram
crDroid Updates Channel
Donate so that I can pay for server
Donate (PayPal) so that I can pay for server

Donate to help our team pay server costs[/SIZE]
 
Last edited:

snehasish1994

Senior Member
Oct 8, 2015
51
21

Senjosei

Member
Jan 6, 2014
13
7
@akash.galaxy07 Latest update introduced some bugs & regressions
  • Worse battery doze performance (compared to prev version), and the log is being spammed by libperfmgr: Failed to write to node: /dev/stune/top-app/schedtune.boost. This behavior is similar to current SparkOS (which is why i switched to crDroid in the first place)
  • Similar audio issues as SparkOS where certain audio apps (i think those that play audio via native code and not the java api) will crackle / pop at random intervals.
  • When transitioning between 60 and 120hz the color will shift a bit. More noticable on black / dark colors
 
Last edited:

Senjosei

Member
Jan 6, 2014
13
7
Found a workaround for the audio clicks / pops / cracks on applications that plays audio via native code and not java api (e.g. games), also needs root. Goto /vendor/etc/audio_policy_configurations.xml

Line 101 and find this:
XML:
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW">
    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
    samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
Change it to
XML:
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_FAST">
    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
    samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>

This eliminates the weird audio issue while still keeping dolby functionality for music apps. Note this is a workaround and disables raw audio output, the real issue is still somewhere else (kernel maybe?) but it works for now. Maybe @akash.galaxy07 can look into it
 
  • Like
Reactions: Vega56
Perfect, I'll implement this workaround in next build for sure.
Found a workaround for the audio clicks / pops / cracks on applications that plays audio via native code and not java api (e.g. games), also needs root. Goto /vendor/etc/audio_policy_configurations.xml

Line 101 and find this:
XML:
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW">
    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
    samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
Change it to
XML:
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_FAST">
    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
    samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>

This eliminates the weird audio issue while still keeping dolby functionality for music apps. Note this is a workaround and disables raw audio output, the real issue is still somewhere else (kernel maybe?) but it works for now. Maybe @akash.galaxy07 can look into it
 
I'm working on these issues bro.
Will release the update soon
@akash.galaxy07 Latest update introduced some bugs & regressions
  • Worse battery doze performance (compared to prev version), and the log is being spammed by libperfmgr: Failed to write to node: /dev/stune/top-app/schedtune.boost. This behavior is similar to current SparkOS (which is why i switched to crDroid in the first place)
  • Similar audio issues as SparkOS where certain audio apps (i think those that play audio via native code and not the java api) will crackle / pop at random intervals.
  • When transitioning between 60 and 120hz the color will shift a bit. More noticable on black / dark colors
 

Top Liked Posts