A Magisk module changing audio samplerates at the system-wide mixer for the best Hi-Fi experience
This module has been developed for casual music lovers to be able to experience the essence of my root script “USB SampleRate Changer” by the automation of Magisk.
Its features
- Setting the samplerate of the USB HAL audio driver to be maximum automatically (up to 768 kHz & 32 bits; but 192 kHz & 32 bits for Tensor devices only)
- Setting its USB data transfer period to be 2000 usec for reducing jitter, instead of usual 5000 usec
- Setting the samplerate of the AOSP Bluetooth audio driver automatically depending upon a selected codec without double re-sampling unlike offload drivers
- Setting the samplerate of internal speakers to be maximum; 384 kHz & 32 bits for Qcom devices, 48 kHz & 32 bits for others
- Default re-sampling parameters are the same as “Resampling for cheapies” (can be overridden by other modules), i.e., very mastering level quality being much better than the over-sammpling quality of very expensive DAC’s applied when “The bit-perfect mode”
- Optimizing I/O kernel tunables for reducing jitter (most effective and almost safe as kernel tuning)
- Designed for using “Audio Msic. Settings” or “Hifi maximizer” together, but can be used by itself only
- Since the above two modules override re-sampling parameters, use “Resampling for cheapies” in addition if you use cheapie devices (Bluetooth LDAC earphones, cheap USB DAC’s, and internal speakers, etc.)
- Strongly recommending to install “Audio jitter silencer” together and uninstall (or disable) “Digital Wellbeing” app (for reducing very large jitters which this module cannot reduce by itself)!
- Disabling DRC (a kind of compression) if enabled, and the call screening framework under audio HAL’s for reducing jitter
Notes
- This module can run only on devices using a 7.0 audio policy configuration prevailing since Android 14 or so including custom ROM’s supporting relatively old ones (especially phh GSI’s doing since Android 12), excluding recent AIDL only ones like Pixel 9 series.
- This module has been tested on LineageOS and crDroid ROM’s, and phh GSI’s (Android 14, and Qualcomm SoC & MediaTek SoC & Tensors combinations).
- Also don’t forget disabling “Absolute Volume” of Bluetooth devices in developer settings and setting a volume at the Bluetooth devices side to be maximum for the best audio quality, though most people may think inversely.
- Almost all equalizers and some apps (using a much worse internal re-sampler to output; e.g. old Am@zon music app, some VOIP apps, etc.) cannot work for greater than 192 kHz audio outputs (but of which quality is far better sometimes). And the latest Am@zon music app re-samples up to 192 kHz for such high frequency audio output, i.e. incurs much worse double re-sampling. If you prefer such ones, modify
SampleRatePrimary="384000"
toSampleRatePrimary="192000"
or evenSampleRatePrimary="48000"
(these samplerates affect only internal speakers and wired headsets), and also the third argument ofpatchClearLock
command from “max” (means up to 768 kHz) to “default” (does up to 192 kHz) in “customize.sh” in a ZIP file of this module and install (or update) the modified one. - “DRC remover” and “USB Samplerate Unlocker” are already included; Don’t try installing them together
DISCLAIMER
- I am not responsible for any damage that may occur to your device, so it is your own choice whether to attempt this module or not.
Download Link
Module Info
Other modules
Sound Enhancement & Dolby Atmos Sony Xperia 10 Magisk Kernelsu Module
Sound Enhancement & Dolby Atmos Sony Xperia 10 Magisk or kernelsu Module DISCLAIMER Dolby & Sony apps and blobs are owned by Dolby™ and Sony™. The MIT license specified here is for the Magisk Module only, not for Dolby nor Sony apps and blobs. Descriptions Equalizers soundfx ported from Sony …...
MIUI / ANX Camera
A modified version of the original ANXCamera by @AEonAX, aims to work on Android 12+ since ANXCamera’s not officially supports it. More information about ANXCamera: :earth_americas: Official Website | :book: WIKI Check dev branch for recent commits/updates. Features Support Android 12-14 …...
DEX Optimizer Magisk and kernelsu modules
OT - one-time - after installing the module, the script is executed once, then the script and module deletes itself completely (except for the log file) D - daily - the script is executed after each device reboot without complete removal. Dex Optimization The dex optimizer. Improves performance, …...
EdXposed Framework Manager
Companion Android application for EdXposed. Link Download ...
EdXposed Framework
A Riru module trying to provide an ART hooking framework (initially for Android Pie) which delivers consistent APIs with the OG Xposed, leveraging YAHFA (or SandHook) hooking framework, supports Android 8.0 ~ 11. Xposed is a framework for modules that can change the behavior of the system and apps …...
NLSound For Qualcomm Devices
This module globally improves audio quality when recording video/audio and listening to audio on your device. Changelog Fixed sound in audio calls using Telegram for Poco X3 NFC device Fix incrorrect condition skip -> Skip at one of the installer points Fixed Hi-Res output operation for some …...
Universal GMS Doze
Universal GMS Doze is a Magisk module designed to limit the background activity of Google Mobile Services (GMS) for better battery efficiency. It optimizes wakelocks and GMS processes without disrupting notifications or core Google app functionality. Ideal for users looking to extend battery life …...
FirusXinjektor Magisk Ksu Module
Elevate your experience with customizable profiles! Changelogs Must try once. Specially Improved for smoothness. Added New Misc Tweaks. Added TCP tweaks. Added some settings for profiles. Added many more tweaks. Improved Improved overall tweaks. Improved VM Tweaks. Improved priority functions. …...
Cross Compiled Binaries (ccbins) Magisk kernelsu Module
In the dynamic world of Android customization, Magisk has emerged as a powerful tool for gaining root access and modifying your device without permanently altering the system partition. One of the many modules available for Magisk is the Cross Compiled Binaries (ccbins) module, which brings the …...
Chroot Distro Magisk Ksu Module
Install linux distributions on android with chroot warning : this work only on rooted android devices chroot-distro path : /data/local/chroot-distro/ Android paths on distributions : /dev /sys /proc /dev/pts /sdcard /system /storage /data usage help chroot-distro help list of available linux …...