• Stars
    star
    209
  • Rank 188,325 (Top 4 %)
  • Language
    Shell
  • License
    GNU Affero Genera...
  • Created almost 3 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Magisk module for setting miscellaneous audio configuration values (media audio volume steps (100 steps), raising the resampling quality, disabling the effects framework, etc.)

A Magisk module for setting miscellaneous audio configuration values

This module,

  1. changes the number of steps in media volume to 100 steps (0.4~0.7dB per step),
  2. raises the resampling quality of the Android OS mixer (AudioFlinger) to a very mastering quality (i.e., no resampling distortion in a real sense),
  3. disables the effects framework of the mixer (to interface to equalizers, virtualizers, visualizers, echo cancelers, automatic gain controls, etc.) for obtaining a nearly direct low jitter audio pass (very few vulnerable equalizers may crash without this framework, but please ignore it),
  4. disables the android built-in spatial audio feature (A13 or higher; especially Tensor devices) for obtaining a nearly direct low jitter audio pass too,
  5. disables pre-installed Moto Dolby features and Digital Wellbeing (please uninstall this manually if remaining as a usual app) for the same as above,
  6. stops Tensor device's AOC daemon for reducing significant jitter,
  7. adjusts a USB transfer period of the USB HAL driver (not the recently common hardware offloading USB (tunneling) driver, but including Tensor device's offloading USB driver) for directly reducing the jitter of a PLL in a DAC (even in an asynchronous mode); Use "USB_SampleRate_Changer" to switch from the usual hardware offloading USB (tunneling) driver to the USB HAL one,
  8. sets a higher bitrate limit of bluetooth codec SBC (dual channel mode) for EDR 2Mbps entry class earphones (not for EDR 3Mbps performance ones, but including AV amplifiers and BT speakers),
  9. sets an audio scheduling tunable "vendor.audio.adm.buffering.ms" "2" to reduce jitter on all audio outputs,
  10. nullifies volume listener libraries in "soundfx" folders for disabling slight compression (maybe a peak limiter only on Qcomm devices); I recommend using "DRC remover" additionally for disabling much larger compression (DRC) if on Qcomm devices

for improving audio quality effectively in a simple manner.


  • Don't forget to install "Audio jitter silencer" together and uninstall "Digital Wellbeing" app (for reducing very large jitters which this module cannot reduce as itself)! If you like much clearer replay (especially on Qcomm devices using an offloading USB driver with large jitter), use "USB_SampleRate_Changer" for reducing the jitter (making foggy sound).

  • Don't use Am@zon music using a much worse internal re-sampler which bypasses the mastering quality re-sampling in the OS mixer (audioFlinger). Other music streaming services don't use such an internal re-sampler, as far as I know.

  • This module has been tested on LineageOS and ArrowOS ROM's, and phh GSI's (Android 10 ~ 13, Qualcomm & MediaTek SoC, and Arm32 & Arm64 combinations).

  • Note 1: This module raises the resampling quality from AOSP standard one (stop band attenuation 90dB & cut off 100% of the Nyquist frequency & half filter length 32) to a very mastering quality (179dB & 99% & 408 for Android 12 and later devices and 160db & 91% & 480 for Android 9 & 10 & 11 ones (except low performance ones), but 167dB & 106% & 368 (194dB & 100% & 520 exceptionally for Galaxy S4) for low performance Android 12 and later devices, 160dB & 91% & 320 for low performance Android 9 & 10 & 11 ones; because earlier than Android 12 has a bug relating to aliasing processing around the Nyquist frequency). However, this cannot raise the quality for Android 8.1 and earlier ones. Please keep in mind that those attenuation values are used for a resampler design as targeted ones and may not be accomplished in the AOSP implementation.

  • Note 2: Entry class USB DAC's usually adopt an interface chip communicating with the adaptive mode or the synchronous one defined in the USB audio standard. As in these modes an Android host controller sends audio sampling rate clock signals to the DAC, jitter generated at the host side affects the audio quality of the DAC tremendously. Higher class DAC's communicate with the asynchronous mode (also defined in the standard) to a host controller, but they actually use a PLL to reduce jitter from the host not to stutter even in heavy jitter situations. As this result, they behave as the adaptive mode with a feedback loop to dynamically adjust the host side sampling clock signals while referring a DAC side clock in a real sense, so even with the asynchronous mode they are more or less affected by host side jitter. You can see the mode of your USB DAC by opening "/proc/asound/card1/stream0" on your phone while playing music. Please see a word in parentheses at "Endpoint:" lines; "SYNC", "ADAPTIVE" or "ASYNC" means that your DAC uses "synchronous", "adaptive" or "asynchronous" mode to communicate to your phone, respectively. Moreover, almost all audio peripherals, e.g., bluetooth earphones, internal DAC's, network audio devices have a PLL in themselves and are affected by host side jitter for the same reason.

  • I recommend expert users not to install "Audio jitter silencer", but manually to disable "Manage apps automatically" in "Battery manager" (or "Adaptive battery" of "Adaptive preferences") in the battery section (needless to say, don't enable battery savers, performance limiters and the like), turning off "Adaptive connectivity" in the Network & internet section (if exists), and changing "Battery optimization" from "Optimize" to "Don't optimize" (or change "Battery usage" from "Optimized" to "Unrestricted") for following app's manually through the settings UI of Android OS (to lower less than 10Hz jitter making extremely short reverb or foggy sound like distortion) even though disabling the Android doze itself: music (streaming) player apps, their licensing apps (if exist), "AirMusic" (if exists), "AirMusic Recording Service" (system app; if exists), equalizer apps (if exist), "Bluetooth" (system app), "Bluetooth MIDI Service" (system app), "MTP Host" (system app), "NFC Service" (system app; if exists), "Magisk" (if exists), System WebView apps (system app), Browser apps, "PhhTrebleApp" (system app; if exists), "Android Services Library" (system app), "Android Shared Library" (system app), "Android System" (system app), "System UI" (system app), "Input Devices" (system app), {Gesture, 3 Button, 2 Button} Navigation Bar apps (which you are using only; system app), "crDroid System" (system app; if exists), "LineageOS System" (system app; if exists), launcher app, "Google Play Store" (system app), "Google Play services" (system app), "Styles & wallpaper" or the like (system app), {Lineage, crDroid, Arrow, etc.} themes app (system app; if exists), "AOSP panel" (system app; if exists), "OmniJaws" (system app; if exists), "OmniStyle" (system app; if exists), "Active Edge Service" (system app; if exists), "Android Device Security Module" (system app; if exists), "Call Management" (system app; if exists), "Phone" (system app; if exists), "Phone Calls" (system app; if exists), "Phone Services" (system app; if exists), "Phone and Messaging Storage" (system app; if exists), "Storage Manager" (system app), "Default" (system app; if exists), "Default StatusBar" (system app; if exists), "Wfd Service" (system app; if exists), "Wallpaper" or the like (system app), "Adreno Graphics Drivers" (system app; if exists), "com.android.providers.media" (system app), "Files by Google" (system app; if exists), "Google Play Services for AR" (system app; if exists), "Google Services Framework" (system app), "Waterfall cutout" (system app), "Punch Hole cutout" (system app), "Network Manager" (system app), "Companion Device Manager" (system app), "Intent Filter Verification Service" (system app), "Calendar", camera apps, keyboard app, kernel adiutors (if exist), etc. And uninstall "Digital Wellbeing" (system app; if it exists) itself or change "Battery usage" from "Optimized" to "Restricted" (this is very harmful for audio like camera servers). Because "Audio jitter silencer" isn't complete and needs some maintenance after its installation.

  • See also my companion script "USB_SampleRate_Changer" to change the sample rate of the USB (HAL) audio class driver and a 3.5mm jack on the fly like Bluetooth LDAC or Windows mixer to enjoy high resolution sound or to reduce resampling distortion (actually pre-echo, ringing and intermodulation) ultimately. If annoying (perhaps, for many people) DRC (Dynamic Range Control, i.e., a kind of compression) has been enabled on your device (e.g., smart phones and tablets having an SDM??? or SM???? model numbered SoC internally), you can disable DRC by this script. Or you can use my magisk module "DRC remover" to simply disable DRC only.

  • Appendix (Resampling Parameter Examples):

    Stop band attenuation (dB) Half filter length Cut-off (%) Stop band (%) Memo
    90 32 100 AOSP default
    This mod. parameters: - - - -
    160 320 91 Low Performance devices under A12
    160 480 91 High Performance devices under A12
    167 368 106 Low Performance devices for A12 and later
    179 408 99 High Performance devices for A12 and later, and Galaxy S4
    External examples: - - - -
    100 29 109 AK4493 (Sharp Roll-Off for N-fold over-sampling)
    120 35 110 ESS 9038PRO (Sharp Roll-Off for N-fold over-sampling)
    98 130 98.5 MacOS Leopard (guess)
    160 240 100 iZotope, No-Alias (guess)
    98 64 100 SoX HQ linear phase (guess)
    170 520 100 SoX VHQ linear phase (guess)


DISCLAIMER

  • I am not responsible for any damage that may occur to your device, so it is your own choice to attempt this module.

More Repositories

1

HideNavBar

Fullscreen/Immersive Gesture Tweaks for Android 10-14
Shell
473
star
2

MiXplorer

This package has born as personal-use purpose, just grouping all the features it provides, in order to simplify the installation/update process, making MiXplorer a full "all-in-one" in one shot...
Shell
270
star
3

ktweak

A no-nonsense kernel tweak script for Linux and Android systems, backed by evidence.
Shell
269
star
4

NoStorageRestrict

Remove the restriction when selecting folders through SAF
Shell
207
star
5

open_webview

A magisk module created to replace system webview
Shell
184
star
6

BuiltIn-BusyBox

Systemless Magisk module that installs and symlinks BusyBox with its applets to the Magisk built-in busybox binary
Shell
175
star
7

submission

Information regarding the submission of Magisk Modules to the Alt-Repo.
155
star
8

magic-flash

An android CLI flash tool without custom recoveries
Shell
142
star
9

sensitive_props

Reset sensitive properties to safe state, take from MagiskHide code
Shell
139
star
10

HuskyDG_BootloopSaver

Protect your system from bootloop caused by Magisk modules.
Shell
135
star
11

json

Magisk Manager JSON file generation for the repository list
Python
102
star
12

abootloop

Protection from bootloop
Shell
95
star
13

audio-jitter-silencer

For avoiding foggy sound like (jitter) distortion on all digital audio outputs, this Magisk module disables very large audio jitter generators (w.r.t. battery draining & optimizations, and wireless connectivity).
Shell
90
star
14

microG-GApps

microG alternative to Google Apps
Shell
81
star
15

Malwack

Say goodbye to unwanted digital pests and send malware running with Malwack, your virtual fly swatter for the cyber world. It's like having a bouncer for your device – no entry for malware, bugs, or party crashers! (A Malware, ad and spyware blocker for magisk)
Shell
81
star
16

Lawnchair

Lawnchair launcher + feeds + recents
Shell
78
star
17

drc-remover

A remover of DRC (Dynamic Range Control, i.e., compression) sticking to all audio outputs on some major devices
Shell
77
star
18

usb-samplerate-unlocker

USB (HAL) Audio Class drivers on Android have a limiter of sample rates at 96kHz. This magisk module unlocks the limiter.
Shell
77
star
19

magisk_overlayfs

Make system partition become read-write. Kernel must support overlayfs!
Shell
70
star
20

ToyBox-Ext

Systemless Magisk module for ARMv7 or higher, to install (additional) ToyBox applets
Shell
69
star
21

open_fonts

A magisk module created to replace system fonts
Shell
69
star
22

gaming

Gaming Mode that will get applied automatically when the game starts.
Shell
69
star
23

microg_installer

Install microG GmsCore, GsfProxy, FakeStore (or Play Store if you want so) and MapsV1 to /system/
Shell
68
star
24

Simple_BootloopSaver

Protect your system from bootloop caused by Magisk modules by turning off all your modules and restart your system if bootloop is detected.
Shell
66
star
25

chroot-distro

install linux distributions on android
Shell
62
star
26

GMSDoze

GMS Doze
Shell
61
star
27

SystemlessDebloater

Select and systemlessly debloat preinstalled system apps. Supporting up to System As Root (SAR), Dynamic partitions and Android 13. Module must be installed through Magisk app, not TWRP
Shell
59
star
28

custom-certificate-authorities

A Magisk module which adds custom certificate authorities from a pre-defined path on the Android file system to the system trust store.
Shell
54
star
29

mkshrc

Provide a systemless implementation of mkshrc for a better terminal experience on Android devices.
JavaScript
51
star
30

gboard-dict-3

Gboard 词库 Magisk 模块, 基于《现代汉语词典》
Shell
50
star
31

node

Running Node.js on a Android device
JavaScript
49
star
32

data_backup

User Data backup creator from system for Google Pixels and other devices. (subsequent restoring by data_restore.zip script)
Shell
46
star
33

compatible-magisk-mirroring

A Magisk module providing the compatible Magisk-mirroring for installing pure Magisk modules on incompatible Magisk variants and KernelSU (incl. APatch)
Shell
44
star
34

YAKT

Yet Another Kernel Tweaker. A Magisk module to Tweak your Kernel parameters
Shell
43
star
35

lhroot

Linux Chroot Installer & Bootscript Magisk Module.
Shell
41
star
36

backup

An android CLI partition backup tool without custom recoveries.
Shell
41
star
37

migrate

Tools and information for mirroring existing repositories to the Alt-Repo.
Shell
41
star
38

supl-replacer

Magisk module to replace the SUPL provider in gps.conf
Shell
40
star
39

ytrevancedinject

YouTube ReVanced package by HuskyDG
Shell
39
star
40

Magisk-Tailscaled

Magisk/KernelSU module for running Tailscale on rooted Android devices.
Shell
38
star
41

AFWall-Boot-AntiLeak

A module to prevent internet access on boot BEFORE AFWall started and applied
Shell
38
star
42

patching

Patch your own Magisk Module APK for third-party repo support.
36
star
43

isodrive

Shell
35
star
44

ezme-nodebug

Change some props and "remove" LineageOS ones.
Shell
35
star
45

wifi-bonding-nolog

This module doubles your bandwidth and Super and Low Latency TCP, reduces the number of standby wakeups, and disables Wi-Fi packet logging (has high overhead and various related security issues) to save battery life.
Shell
35
star
46

DalvikHyperthreading

This does is helps the multithread line to tell the cpu to easily do more faster proccessing without overheating.
Shell
34
star
47

ThemedProject

Shell
33
star
48

systemui-bootloop

Fixed SystemUI bootloops. This is now deprecated.
Shell
31
star
49

CustomizedNavbar

The Magisk Module for AOSP, CAF, LOS Based roms. MIUI Optionaly
Shell
28
star
50

magisk_proc_monitor

A Magisk/Zygisk module allows user to run script whenever app process start
Shell
27
star
51

AdGuardDNS4Magisk

Using the "AdGuard DNS" DNS system-lessly! As simple as that and block ads and trackers.
Shell
26
star
52

King-Tweaks

A magisk module which have the objective of maximize user experience
23
star
53

mmpatch

A tool to patch the Magisk Manager APK for use with third-party respositories.
Shell
22
star
54

trichromelibrary-squoosh

Remove the outdated TrichromeLibrary | 移除过时的 TrichromeLibrary
Shell
22
star
55

data_isolation_support

Enable /data/data isolation for old Android version (Android 10 and lower). Require Magisk Process Monitor 1.1+
Shell
22
star
56

xmlpak-RE

Shell
21
star
57

heimdall-ndk

Heimdall for Android NDK
Shell
21
star
58

xhhttp

Friendly and fast tool for sending HTTP requests as Magisk module
Shell
21
star
59

zram-swap-manager

A versatile zRAM swap manager with dynamic swappiness - for Android and GNU/Linux systems.
Shell
20
star
60

cmdpatch

An Android Linux Kernel command line patch tool using Magisk's magiskboot binary.
Shell
20
star
61

Disable_high_volume_warning

Magisk module that sets 'audio.safemedia.bypass=true' to disable the warning when augmenting the volume above a certain level.
Shell
19
star
62

FOSSAPPS

An Open source GAPPS Alternative
Shell
18
star
63

MagiskHide

Shell
17
star
64

Fdroid-Priv

F-Droid Priviledged Extension (Magisk)
Shell
16
star
65

com.omergoktas.Foundation

Magisk module comprising essential apps (including a patched version of Google Play Store compatible with microG) and convenient settings for vanilla Android builds.
Shell
16
star
66

Google_Product_Sans_Font

Systemless Google Product Sans Font for Android 12. A Magisk Module.
Shell
15
star
67

Magisk-Captive-Control

Read-only mirror from GitLab. A Magisk Module aiming to control (change/disable) Android Captive Portal Detection.
Shell
14
star
68

Google-Sans-Plus

Systemless Google Sans module. (also contains A11 leaked emojis)
Shell
14
star
69

FluentEmojiMagisk

A Magisk module that replaces Android system emojis with Fluent Emojis from Microsoft.
Shell
14
star
70

HuskyDG_SwapRAM

Expand RAM memory by converting a part of storage to Swap RAM
Shell
14
star
71

unityfix

Unity app incorrectly sets cpu affinity to max capacity cores. Setup the library name and mask to always report the same max cpu freq to the tasks.
Shell
14
star
72

StevenBlock

Ad Blocking Module for Android (Magisk - KernelSU - APatch)
Shell
14
star
73

frozen_magisk_app

Dynamic freezing Magisk app
Shell
13
star
74

ttf-twemoji

Changes your system emoji to Twemoji!
Shell
13
star
75

MacRandomizationEnabler

Shell
12
star
76

acc

Upstream repo:
Shell
12
star
77

perf-limit-xiaomi-12

Limit CPU and GPU performance to desired level on Xiaomi devices with Qualcomm Gen 1 CPU
Shell
12
star
78

saturation

A Magisk Module to adjust the saturation of the display to 2x
Shell
12
star
79

OneController

Magisk module which adds proper key mapping for various game controllers.
Shell
12
star
80

NotchBarKiller

Kill that pesky black bar in (most) fullscreen apps/games!
Shell
12
star
81

Magisk-DRM-Disabler

Read-only mirror from GitLab. A Magisk module designed to disable DRM completely on Android
Shell
12
star
82

BraviaEngine

Sony Bravia Engine X-Reality for Magisk
Shell
11
star
83

ytmusic_revancedinject

YouTube ReVanced package by HuskyDG
Shell
11
star
84

GMS-Doze_Block_FindMyDevice

GMS Doze - Bloquea 'Find My Device'
Shell
10
star
85

Detach

Detach Android MOD ported as a Magisk Module
Shell
10
star
86

fbind

A versatile Android mounting utility for folders, EXT4 images, LUKS/LUKS2 encrypted volumes, regular partitions and more.
Shell
10
star
87

oneplus-8series-9r-camera-unlocker

Shell
10
star
88

magisk-autoboot

a Magisk module to enable automatic booting/for turning on of your Android device when it's connected to a charger or USB.
Shell
10
star
89

CloudflareDNS4Magisk

Using Cloudflare's DNS system-lessy through Magisk Framework
Shell
9
star
90

selinux_mode

Shell
9
star
91

vintf-bypass

Magisk Module to bypass VTS HAL and Kernel config checks on boot.
Shell
9
star
92

charch

The Magisk Module implementation of the ChArch script.
Shell
9
star
93

json-v2

Stored Magisk Modules for MMRL and Supported App
9
star
94

NoProcStatRestriction

Remove /proc/stat restriction on Android O and above
Shell
8
star
95

sqlite3

SQLite 3 Magisk Module for Android arm64-v8a, armeabi-v7a, x86 and x86_64. The releases can be found at the following link:
Shell
8
star
96

AdGuardDNS4Magisk-IPv6

Using the "AdGuard DNS" DNS system-lessly! As simple as that and block ads and trackers.
Shell
7
star
97

Evolve-Evo

Alternative sans font
Shell
7
star
98

CloudflareDNS4Magisk-IPv6

Using Cloudflare's DNS system-lessy through Magisk Framework
Shell
7
star
99

ezme-dex-space

Changes how Android's dex2oat compiles packages to save space, rather than focus on speed
Shell
7
star
100

smallbattery

This module makes the system think that it has a smaller battery than normal, which will apply more precise adjustments to save battery
Shell
7
star