Development [ROM][13.0][OFFICIAL] SparkOS [AOSP][STABLE][11/10/2022]

Search This thread

Senjosei

Member
Jan 6, 2014
13
7
BUG: Certain audio apps playing via speaker will make crackling / popping noise at some intervals
Using Spark-13.2-Official-munch-20221113-gapps.zip
TEST: Goto settings -> Sound & Vibration -> Clear speakers, turn it on and wait for the crackle / poping.

When played through bluetooth headsets theres no crackling, and i just flashed from stock MIUI and there was no cracking before so its not a hardware issue. Crackling doesnt just appear on the clean speaker, other apps also produces it, stock utube doesnt, some audio players do.
Atm ive mitigated this by using ArrowOS's latest kernel. No more audio issues that ive observed.
Nvm i spoke too soon kekw
 
Last edited:

Senjosei

Member
Jan 6, 2014
13
7
I have no problems with the sound.
Use the vanilla version.
I am using the vanilla version. The issue now also appears in latest crDroid after they cherry pick some stuff from SparkOS. It only clicks/crackles/pops on apps that plays audio via native code and not the java api (mostly games n hifi audio players).
 

Senjosei

Member
Jan 6, 2014
13
7
Im using the vanilla version with my own gapps installed systemlessly via magisk. I'll do another doze test with gapps off.
I've done more tests with my gapps off, still the same. For comparison heres my doze test with 20221121 crDroid.
Screenshot_20221130-121402_TachiyomiJ2K.png

Which is way better compared too this
Another thing ive noticed is the doze battery drain is very bad. View attachment 5772037
7 hours of doze for 12% battery is preetyy yikez.
 
  • Wow
Reactions: Atexor

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 @spkal01 can look into it
 
  • Like
Reactions: Vega56

Atexor

Senior Member
Jun 28, 2014
410
156
Poland
No, but i have noticed some weirdness with the internet (mobile data / wifi). Like a game will complain theres no internet even tho utube is running in the background. And 1 time when mobile data isnt giving me internet, i tried to restart it but it got stuck at the initial boot screen (before the bootanimation) before i force restart it again.

I got similar issue on my previous phone with lack of internet and needed to enable and disable airplane mode for few moments. Disabling mobile data/WiFi didn't helped.

------------------------------
I got another fatal reboot when phone was unused (without tethering this time), now phone booted normally. Below you will find some more logs @spkal01:
 

568060545

New member
Aug 2, 2018
3
0
Thank you for bringing us such a good ROM, but one downside is that it doesn't provide multi-weight fonts for Chinese, Japanese, and Korean like other native ROMs. This leads to single-weight fonts in many apps and system UI, but I found a Magisk module that would make it great if you could merge it into the Sparks ROM.
 

HARDWELL919

Member
Dec 5, 2022
17
7
There's screen brightness problems. It just randomly changes to a brighter color and then switches back. It happens while I scroll and type. It's annoying tbh.
 

Senjosei

Member
Jan 6, 2014
13
7
There's screen brightness problems. It just randomly changes to a brighter color and then switches back. It happens while I scroll and type. It's annoying tbh.
This happens when the refresh rate switches from 60hz to 120hz. A workaround for now is to set it at 120hz all the time and choose which apps at 60hz. (This also happens on other roms, but worse on roms that have 90hz as an option)
 
  • Like
Reactions: 11insomnium

Atexor

Senior Member
Jun 28, 2014
410
156
Poland
Sending SMS stopped worked for me, what is interesting receiving working. APN is set correctly. Too much bugs in this rom in recent time :/. I used Textra and it didn't even gave me info that sms was not send, switched to default app aand here I see issue. All permissions are granted.

Log while trying to send new message: https://pastebin.com/kmCRr8RV
1670601096316.png


edit: strange, in my APN probably disappeared address in MMSC row. I didn't even change/set APNs after rom installation and didn't open that settings before - SMS just was working since flashing so I guess something was set under MMSC when it was working.

I restored (set) MMSC "http://mmsc.play.pl/mms/wapenc" for Internet APN for my provider (telco Play in Poland), connection was reseted and seems to work now.
 
Last edited:

aresjan

Member
Dec 27, 2011
16
2
Thanks for the fantastic ROM, i'm using it as my daily driver. With the app Snap Cam you can record video with 1080p 240 fps and 4k 120fps resolutions. Is there any way to add that feature to the stock camera?
 

Atexor

Senior Member
Jun 28, 2014
410
156
Poland
Does it charge at a 120w?
Phone technically is constructed to charge at max 67W. I checked and my phone maximum got ~50-55W using official charger and cable. It's still really fast.

Years ago there were modifications for various phones that increased the maximum charging current (I used one for my samsung s3 and changed 1A->1.1A) but I doubt if it still makes sense and if it is still safe with such large watts.
 

aresjan

Member
Dec 27, 2011
16
2
I can confirm. Option is still available, but phone doesn't wake up when double tapped.
I update to latest version and double tap still works perfect. Double tap for the screen off works from the home screen on any empty space or the notification bar, and double tap to wake works ok. i have all the double tap options activated, the ones from the screen options, and the ones from fireworks>gestures .
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Just wanted to thank the developers for great work. I had been on Xiaomi.eu, but wanted something with more frequent updates. Banking apps working fine, and what seems to be a comparable camera to stock.
    1
    Are you using gapps version?. I updated from the version of 20 of december to the 14 of january and the bluetooth problem was fixed (or at leat i can connect to the car and headphones trough A2DP), I'm using the gapps version and wipe Dalvik and cache.
    yes im using the gapps version, did a clean install wipe data, dalvik cache, still no luck with music on Bluetooth other sounds from phone work.

    EDIT: i dirty flashed the same ROM and my bluetooth was fixed! all good now , Great ROM!
    1
    Ciao, per curiosità, come fai ad avere il meteo in homepage? Non riesco a trovare l'opzione per esso?😅
    home screen settings, long press on home screen and activate At A Glance
    1
    Stock MIUI user here... Thinking to jump to this ROM. Currently I am currently running firmware v13.0.7. v14.02.2 just became available for my device. My question is, in order to install the latest SparkOS release (230230114), which firmware version shall I have flashed previously? v13 or v14? I ask this because when the last SparkOS build was released, firmware v13 was the latest one for my reregion

    Latest v13 is your safe bet. Everything works flawlessly, except Bluetooth audio shenanigans. flashing on top of latest v14 is still untested as for now.
    1
    best cusrom, thank you dev!!!
  • 21
    [ROM][13.0][UNOFFICIAL/OFFICIAL] SparkOS [AOSP][STABLE][11/10/2022]

    intro.jpg

    SparkOS is an AOSP based ROM, packed with many features without sacrificing stability and performance.
    In short a fully functional operating system as stable and customizable as it should be.

    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.
    */

    Device Specific Issues:
    • None found during my testing

    Requirements
    • Latest Global Firmware

    Downloads
    Get the latest SparkOS Build for munch Download
    Firmware https://xiaomifirmwareupdater.com/firmware/munch/
    Magisk (optional) https://github.com/topjohnwu/Magisk/releases
    Recovery OrangeFox

    Note: On -gapps builds GApps are included, don't flash separately.

    Notes
    • Encryption is enabled by default
    • SELinux is enforcing
    • Immensitty Kernel Included


    The provided Recovery is recommended if you want to stay encrypted, no custom recovery supports encryption on Android13, i.e. you won't be able to decrypt your data.
    <!-- Might be different for different devices -->
    Flashing Instructions
    Clean flash (coming from a different ROM):

    • Download ROM from the link above
    • Download Magisk v23.0 or newer (optionally)
    • Reboot to recovery
    • Wipe cache, dalvik, data
    • Flash latest global stable firmware (link above)
    • Flash ROM zip
    • Format data (if encrypted)
    • Reboot and voila!
    • To get root access, reboot to recovery after ROM setup and flash magisk.

    Updating to a newer build (dirty flash):
    • Flash ROM zip and magisk (optional)
    • Wipe cache and dalvik (optional, recommended)
    • Reboot and voila!

    Join our Telegram Group https://t.me/SparkOSChannel
    See our Website for more info https://spark-os.live/
    Buy me a Coffee https://paypal.me/spyroskal

    Source Code
    SparkOS https://github.com/Spark-Rom
    Device Tree and Vendor Tree https://github.com/Spark-Devices
    Kernel Tree https://github.com/Spark-Devices/kernel_xiaomi_munch

    ROM OS Version: Android 13.
    ROM Kernel: Linux 4.14.x
    Stable Release Date: 11 10 2022
    Latest Release Date: 11 10 2022
    2
    [ROM][13.0][UNOFFICIAL/OFFICIAL] SparkOS [AOSP][STABLE][11/10/2022]

    intro.jpg

    SparkOS is an AOSP based ROM, packed with many features without sacrificing stability and performance.
    In short a fully functional operating system as stable and customizable as it should be.

    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.
    */

    Device Specific Issues:
    • None found during my testing

    Requirements
    • Latest Global Firmware

    Downloads
    Get the latest SparkOS Build for munch Download
    Firmware https://xiaomifirmwareupdater.com/firmware/munch/
    Magisk (optional) https://github.com/topjohnwu/Magisk/releases
    Recovery OrangeFox

    Note: On -gapps builds GApps are included, don't flash separately.

    Notes
    • Encryption is enabled by default
    • SELinux is enforcing
    • Immensitty Kernel Included


    The provided Recovery is recommended if you want to stay encrypted, no custom recovery supports encryption on Android13, i.e. you won't be able to decrypt your data.
    <!-- Might be different for different devices -->
    Flashing Instructions
    Clean flash (coming from a different ROM):

    • Download ROM from the link above
    • Download Magisk v23.0 or newer (optionally)
    • Reboot to recovery
    • Wipe cache, dalvik, data
    • Flash latest global stable firmware (link above)
    • Flash ROM zip
    • Format data (if encrypted)
    • Reboot and voila!
    • To get root access, reboot to recovery after ROM setup and flash magisk.

    Updating to a newer build (dirty flash):
    • Flash ROM zip and magisk (optional)
    • Wipe cache and dalvik (optional, recommended)
    • Reboot and voila!

    Join our Telegram Group https://t.me/SparkOSChannel
    See our Website for more info https://spark-os.live/
    Buy me a Coffee https://paypal.me/spyroskal

    Source Code
    SparkOS https://github.com/Spark-Rom
    Device Tree and Vendor Tree https://github.com/Spark-Devices
    Kernel Tree https://github.com/Spark-Devices/kernel_xiaomi_munch

    ROM OS Version: Android 13.
    ROM Kernel: Linux 4.14.x
    Stable Release Date: 11 10 2022
    Latest Release Date: 11 10 2022
    It seems to be the most optimized among the Android 13 chrome installations. The camera is also close to miui genuine, thank you so much.
    2
    This bug still exist after I flash lasted build.

    I'll try other rom instead...
    This is not a problem for me.
    Did you look out to switch the MAC address option? The default here is to use a randomized MAC every time you try to connect, therefore it asks every time for a password. You can set it to per-network randomized or just use the device MAC and it should work fine. just have to "edit" the settings for that specific network.
    2
    Flashed new build (dirty flash).

    I am surprised because slow motion mode (960fps/720p) works great with MIUI camera. I didn't manage to get it working on any gcam before. However 64mpx mode causes strange kind of crash - I am getting notification in MIUI camera about not available camera. I cannot switch to other mode except removing app cache.

    Not sure whether it's related with dolby configs, but YouTube ReVanced seems to work better. It doesn't crash now with higher amount of patches, before I used only options to keep YouTube in background while playing music and removing general ads.

    Also, there is still issue with ability to disable permament notification-bar from Mi Notify app, which shouldn't be possible.

    PS. Changelog of build for curious people:

    25-Oct-2022​


    • Introduced MiuiCam
    • Enabled smart Charging
    • Enabled blur
    • Enabled smart pixels
    • Enabled battery health
    • Reworked some dolby configs
    2
    Hello, I noticed that new build is up, so Inform these curious of you without Telegram. I just dirty flashed and... I have feeling that front camera photos looks worse on artifical lightning - both gcam and pre-built MIUICam. the photos are less clear and there are lines like in a person with astigmatism. It's strange, because I didn't notice it before and sometimes in this place under this light I used the front camera.

    Allso I needed to reflash Magisk in OrangeFox separately (in Magisk Manager I was getting error with my magisk.img) and then reinstall YouTube ReVanced and re-patch it again (edit: I noticed that YouTube was downgraded to older version and it caused incompatibilities).

    Strange. I hope AoD will work better now as stated below.

    13-Nov-2022​

    • Fixed Front camera resolution
    • Fixed 64mp mode
    • Fixed 4k 30 fps and front cam video
    • Enabled system info
    • Switched to NoKernel
    • Optimized power hint
    • Improved battery drain on aod
    • Introduced Hbm mode

    And overall SparkOS changelog in 13.2:​

    • Merged November security patch
    • Updated translations from crowdin
    • Fixed audio playback control on screen off
    • Addeded an option to use HEVC for screen recorder
    • Added charging icon to charging animation
    • Added the ability to toggle bluetooth battery level
    • Fixed the bluetooth hiding toggle
    • Added some more monet presets
    • Improve color detection for monet
    • Introduced Pulse
    • Improved some system animations
    • Introduced Ls shortcuts customization
    • Introduced optional Qs system info
    • Introduced app lock and Face unlock
    • Added vibration pattern customization
    • Reworked Ls clocks and added more customization options
    • Added an option to display data usage on qs panel
    • Recolored the privacy indicators and made them optional
    • Reworked OmniJaws weather implementation
    • Added reticker styles
    • Reworked the volume panel and added customizations for it
    • Added more battery styles
    • Optimized auth ripple animation
    • Added user configurable fingerprint wake-and-unlock
    • Implemented Bluetooth dialog
    • Added more fonts and icon shapes
    • Optimized qsb on Launcher3
    • Fixed some crashes on fireworks
    • Added toggle to switch between AOSP/Google battery graphs
    • More under the hood changes and improvements