├── .gitattributes ├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── README.md ├── apis ├── 26 │ └── arm │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ └── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 27 │ └── arm │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ └── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 28 │ ├── arm │ │ └── system │ │ │ ├── bin │ │ │ └── audiohq │ │ │ └── lib │ │ │ ├── libaudioheadquarter.so │ │ │ └── libaudioprocessing.so │ └── arm64 │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ ├── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so │ │ └── lib64 │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 29 │ ├── arm │ │ └── system │ │ │ ├── bin │ │ │ └── audiohq │ │ │ └── lib │ │ │ ├── libaudioheadquarter.so │ │ │ └── libaudioprocessing.so │ └── arm64 │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ ├── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so │ │ └── lib64 │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 30 │ ├── arm │ │ └── system │ │ │ ├── bin │ │ │ └── audiohq │ │ │ └── lib │ │ │ ├── libaudioheadquarter.so │ │ │ └── libaudioprocessing.so │ └── arm64 │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ ├── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so │ │ └── lib64 │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 31 │ ├── arm │ │ └── system │ │ │ ├── bin │ │ │ └── audiohq │ │ │ └── lib │ │ │ ├── libaudioheadquarter.so │ │ │ └── libaudioprocessing.so │ └── arm64 │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ ├── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so │ │ └── lib64 │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 32 │ └── arm64 │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ ├── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so │ │ └── lib64 │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so ├── 33 │ └── arm64 │ │ └── system │ │ ├── bin │ │ └── audiohq │ │ ├── lib │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so │ │ └── lib64 │ │ ├── libaudioheadquarter.so │ │ └── libaudioprocessing.so └── 34 │ └── arm64 │ └── system │ ├── bin │ └── audiohq │ ├── lib │ ├── libaudioheadquarter.so │ └── libaudioprocessing.so │ └── lib64 │ ├── libaudioheadquarter.so │ └── libaudioprocessing.so ├── customize.sh ├── module.prop ├── sepolicy.rule ├── service.sh ├── service_try_enforcing.sh ├── system └── priv-app │ └── AudioHeadQuarter │ └── AudioHeadQuarter.apk └── uninstall.sh /.gitattributes: -------------------------------------------------------------------------------- 1 | # Declare files that will always have LF line endings on checkout. 2 | META-INF/** text eol=lf 3 | *.prop text eol=lf 4 | *.sh text eol=lf 5 | *.md text eol=lf 6 | 7 | # Denote all files that are truly binary and should not be modified. 8 | system/** binary 9 | -------------------------------------------------------------------------------- /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.0+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20000 ] && require_new_magisk 31 | 32 | if [ $MAGISK_VER_CODE -ge 20400 ]; then 33 | # New Magisk have complete installation logic within util_functions.sh 34 | install_module 35 | exit 0 36 | fi 37 | 38 | ################# 39 | # Legacy Support 40 | ################# 41 | 42 | TMPDIR=/dev/tmp 43 | PERSISTDIR=/sbin/.magisk/mirror/persist 44 | 45 | is_legacy_script() { 46 | unzip -l "$ZIPFILE" install.sh | grep -q install.sh 47 | return $? 48 | } 49 | 50 | print_modname() { 51 | local authlen len namelen pounds 52 | namelen=`echo -n $MODNAME | wc -c` 53 | authlen=$((`echo -n $MODAUTH | wc -c` + 3)) 54 | [ $namelen -gt $authlen ] && len=$namelen || len=$authlen 55 | len=$((len + 2)) 56 | pounds=$(printf "%${len}s" | tr ' ' '*') 57 | ui_print "$pounds" 58 | ui_print " $MODNAME " 59 | ui_print " by $MODAUTH " 60 | ui_print "$pounds" 61 | ui_print "*******************" 62 | ui_print " Powered by Magisk " 63 | ui_print "*******************" 64 | } 65 | 66 | # Override abort as old scripts have some issues 67 | abort() { 68 | ui_print "$1" 69 | $BOOTMODE || recovery_cleanup 70 | [ -n $MODPATH ] && rm -rf $MODPATH 71 | rm -rf $TMPDIR 72 | exit 1 73 | } 74 | 75 | rm -rf $TMPDIR 2>/dev/null 76 | mkdir -p $TMPDIR 77 | 78 | # Preperation for flashable zips 79 | setup_flashable 80 | 81 | # Mount partitions 82 | mount_partitions 83 | 84 | # Detect version and architecture 85 | api_level_arch_detect 86 | 87 | # Setup busybox and binaries 88 | $BOOTMODE && boot_actions || recovery_actions 89 | 90 | ############## 91 | # Preparation 92 | ############## 93 | 94 | # Extract prop file 95 | unzip -o "$ZIPFILE" module.prop -d $TMPDIR >&2 96 | [ ! -f $TMPDIR/module.prop ] && abort "! Unable to extract zip file!" 97 | 98 | $BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules 99 | MODULEROOT=$NVBASE/$MODDIRNAME 100 | MODID=`grep_prop id $TMPDIR/module.prop` 101 | MODNAME=`grep_prop name $TMPDIR/module.prop` 102 | MODAUTH=`grep_prop author $TMPDIR/module.prop` 103 | MODPATH=$MODULEROOT/$MODID 104 | 105 | # Create mod paths 106 | rm -rf $MODPATH 2>/dev/null 107 | mkdir -p $MODPATH 108 | 109 | ########## 110 | # Install 111 | ########## 112 | 113 | if is_legacy_script; then 114 | unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2 115 | 116 | # Load install script 117 | . $TMPDIR/install.sh 118 | 119 | # Callbacks 120 | print_modname 121 | on_install 122 | 123 | # Custom uninstaller 124 | [ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh 125 | 126 | # Skip mount 127 | $SKIPMOUNT && touch $MODPATH/skip_mount 128 | 129 | # prop file 130 | $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop 131 | 132 | # Module info 133 | cp -af $TMPDIR/module.prop $MODPATH/module.prop 134 | 135 | # post-fs-data scripts 136 | $POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh 137 | 138 | # service scripts 139 | $LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh 140 | 141 | ui_print "- Setting permissions" 142 | set_permissions 143 | else 144 | print_modname 145 | 146 | unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2 147 | 148 | if ! grep -q '^SKIPUNZIP=1$' $MODPATH/customize.sh 2>/dev/null; then 149 | ui_print "- Extracting module files" 150 | unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2 151 | 152 | # Default permissions 153 | set_perm_recursive $MODPATH 0 0 0755 0644 154 | fi 155 | 156 | # Load customization script 157 | [ -f $MODPATH/customize.sh ] && . $MODPATH/customize.sh 158 | fi 159 | 160 | # Handle replace folders 161 | for TARGET in $REPLACE; do 162 | ui_print "- Replace target: $TARGET" 163 | mktouch $MODPATH$TARGET/.replace 164 | done 165 | 166 | if $BOOTMODE; then 167 | # Update info for Magisk Manager 168 | mktouch $NVBASE/modules/$MODID/update 169 | cp -af $MODPATH/module.prop $NVBASE/modules/$MODID/module.prop 170 | fi 171 | 172 | # Copy over custom sepolicy rules 173 | if [ -f $MODPATH/sepolicy.rule -a -e $PERSISTDIR ]; then 174 | ui_print "- Installing custom sepolicy patch" 175 | # Remove old recovery logs (which may be filling partition) to make room 176 | rm -f $PERSISTDIR/cache/recovery/* 177 | PERSISTMOD=$PERSISTDIR/magisk/$MODID 178 | mkdir -p $PERSISTMOD 179 | cp -af $MODPATH/sepolicy.rule $PERSISTMOD/sepolicy.rule || abort "! Insufficient partition size" 180 | fi 181 | 182 | # Remove stuffs that don't belong to modules 183 | rm -rf \ 184 | $MODPATH/system/placeholder $MODPATH/customize.sh \ 185 | $MODPATH/README.md $MODPATH/.git* 2>/dev/null 186 | 187 | ############# 188 | # Finalizing 189 | ############# 190 | 191 | cd / 192 | $BOOTMODE || recovery_cleanup 193 | rm -rf $TMPDIR 194 | 195 | ui_print "- Done" 196 | exit 0 -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # audiohq 2 | ## Description 3 | Provide binary and apk for controlling each applications volume 4 | 5 | ## Installation 6 | Flash it on MagiskManager 7 | DO NOT FLASH ON: Flyme,EMUI,GAME Phone system or any oem modified system(EXCEPT MIUI for now) 8 | 9 | ## Pages 10 | [English Page](https://alcatraz323.github.io/audiohq/index_en.html) 11 | [中文页面](https://alcatraz323.github.io/audiohq/index.html) 12 | 13 | #### More 14 | The matched stable apk has been added to module file(will be mounted to /system/priv-app),apk is also published on GooglePlay And Coolapk -------------------------------------------------------------------------------- /apis/26/arm/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/26/arm/system/bin/audiohq -------------------------------------------------------------------------------- /apis/26/arm/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/26/arm/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/26/arm/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/26/arm/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/27/arm/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/27/arm/system/bin/audiohq -------------------------------------------------------------------------------- /apis/27/arm/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/27/arm/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/27/arm/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/27/arm/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/28/arm/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm/system/bin/audiohq -------------------------------------------------------------------------------- /apis/28/arm/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/28/arm/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/28/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/28/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/28/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/28/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/28/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/28/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/29/arm/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm/system/bin/audiohq -------------------------------------------------------------------------------- /apis/29/arm/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/29/arm/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/29/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/29/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/29/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/29/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/29/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/29/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/30/arm/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm/system/bin/audiohq -------------------------------------------------------------------------------- /apis/30/arm/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/30/arm/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/30/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/30/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/30/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/30/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/30/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/30/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/31/arm/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm/system/bin/audiohq -------------------------------------------------------------------------------- /apis/31/arm/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/31/arm/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/31/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/31/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/31/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/31/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/31/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/31/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/32/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/32/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/32/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/32/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/32/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/32/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/32/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/32/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/32/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/32/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/33/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/33/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/33/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/33/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/33/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/33/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/33/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/33/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/33/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/33/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/34/arm64/system/bin/audiohq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/34/arm64/system/bin/audiohq -------------------------------------------------------------------------------- /apis/34/arm64/system/lib/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/34/arm64/system/lib/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/34/arm64/system/lib/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/34/arm64/system/lib/libaudioprocessing.so -------------------------------------------------------------------------------- /apis/34/arm64/system/lib64/libaudioheadquarter.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/34/arm64/system/lib64/libaudioheadquarter.so -------------------------------------------------------------------------------- /apis/34/arm64/system/lib64/libaudioprocessing.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/apis/34/arm64/system/lib64/libaudioprocessing.so -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | SKIPUNZIP=1 2 | API_SUPPORT_MAX=34 3 | API_SUPPORT_MIN=26 4 | 5 | TO_INSTALL_ARCH="arm" 6 | 7 | run_oem_syetem_warning(){ 8 | ui_print "!!!WARNING, Pls stop this installation or revert if you are" 9 | ui_print "using oem modified system, such as sumsung's one ui, flyme, " 10 | ui_print "emui...(EXCEPT MIUI for now)" 11 | ui_print "!!!WARNING, Pls stop this installation or revert if you are" 12 | ui_print "using oem modified system, such as sumsung's one ui, flyme, " 13 | ui_print "emui...(EXCEPT MIUI for now)" 14 | ui_print "!!!WARNING, Pls stop this installation or revert if you are" 15 | ui_print "using oem modified system, such as sumsung's one ui, flyme, " 16 | ui_print "emui...(EXCEPT MIUI for now)" 17 | ui_print "!!!Installing and reboot on those system will cause soft brick" 18 | ui_print "!!!Waiting for 10secs for you to exit" 19 | sleep 10s 20 | } 21 | 22 | run_arch_check(){ 23 | ui_print "- Current support arch : arm, arm64" 24 | ui_print "- Running Arch check" 25 | if [[ "$ARCH" != "arm" && "$ARCH" != "arm64" ]]; then 26 | abort "! Err : unsupported platform: $ARCH, please check for the latest version to try if supported now" 27 | else 28 | ui_print "- Device platform: $ARCH" 29 | fi 30 | 31 | ui_print "- Checking audioserver info" 32 | audioserver_info=$(file /system/bin/audioserver) 33 | ui_print "'audioserver' info : $audioserver_info" 34 | 35 | filter="64-bit" 36 | result=$(echo $audioserver_info | grep "${filter}") 37 | if [[ "$result" != "" ]]; then 38 | ui_print "- To install arch : arm64" 39 | TO_INSTALL_ARCH="arm64" 40 | if [[ $API == 26 || $API == 27 ]]; then 41 | abort "! Err : Your api isn't support this arch audiohq, contact developer for more information" 42 | fi 43 | 44 | if [[ $API == 28 || $API == 32 || $API == 33 || $API == 34 ]]; then 45 | ui_print "! WARNING : This api may not fit arm64 arch, the software would not work probably, and your audiosystem may crash" 46 | fi 47 | else 48 | ui_print "- To install arch : arm" 49 | TO_INSTALL_ARCH="arm" 50 | fi 51 | } 52 | 53 | run_api_check(){ 54 | ui_print "- Current support api $API_SUPPORT_MIN - $API_SUPPORT_MAX" 55 | ui_print "- Running Api Version check" 56 | if [[ $API < API_SUPPORT_MIN || $API > API_SUPPORT_MAX ]]; then 57 | abort "! Err : unsupported Api: $API, please check for the latest version to try if supported now" 58 | else 59 | ui_print "- Android System Api: $API" 60 | fi 61 | } 62 | 63 | run_magisk_check(){ 64 | ui_print "- Your Magisk version : $MAGISK_VER_CODE" 65 | if [[ $MAGISK_VER_CODE -ge 20200 ]]; then 66 | ui_print "- Magisk version available" 67 | else 68 | abort "! Err : Your Magisk is too old too add sepolicy, pls upgrade to 20.2 or higher" 69 | fi 70 | } 71 | 72 | volume_keytest() 73 | { 74 | ui_print "- Vol Key Test -" 75 | ui_print " Pls Press Vol Up(+):" 76 | (/system/bin/getevent -lc 1 2>&1 | /system/bin/grep VOLUME | /system/bin/grep " DOWN" > "$TMPDIR"/events) || return 1 77 | return 0 78 | } 79 | 80 | volume_choose() 81 | { 82 | #note from chainfire @xda-developers: getevent behaves weird when piped, and busybox grep likes that even less than toolbox/toybox grep 83 | while (true); do 84 | /system/bin/getevent -lc 1 2>&1 | /system/bin/grep VOLUME | /system/bin/grep " DOWN" > "$TMPDIR"/events 85 | if (`cat "$TMPDIR"/events 2>/dev/null | /system/bin/grep VOLUME >/dev/null`); then 86 | break 87 | fi 88 | done 89 | if (`cat "$TMPDIR"/events 2>/dev/null | /system/bin/grep VOLUMEUP >/dev/null`); then 90 | return 1 91 | else 92 | return 0 93 | fi 94 | } 95 | 96 | run_volume_key_test(){ 97 | # Check whether using a legacy device 98 | # ----------------------------------- 99 | ui_print "- Start volume key test" 100 | if volume_keytest; then 101 | KEYTEST=volume_choose 102 | else 103 | KEYTEST=false 104 | ui_print "! Can't do volume key selection, install will run as default (CHECK and SHUTDOWN SeLinux)" 105 | ui_print "! If the installtion is SUCCESSFUL, You can comment 'setenforce 0' in $MODPATH/service.sh to enable Se Enforcing Mode" 106 | fi 107 | ui_print "- Key test function complete" 108 | } 109 | 110 | run_selinux_select_n_check(){ 111 | ui_print " " 112 | ui_print "--- Select Installation Target ---" 113 | ui_print " Vol+ = Default(CHECK and SHUTDOWN SeLinux)" 114 | ui_print " Vol- = Try enforcing(This would probably NOT work on some third party or default permissive kernel)" 115 | ui_print " " 116 | 117 | if "$KEYTEST"; then 118 | CHECK_SE=1 119 | ui_print "Selected: Try Se enforcing" 120 | else 121 | CHECK_SE=0 122 | ui_print "Selected: Default(CHECK and SHUTDOWN SeLinux), script will try shutdown SeLinux" 123 | ui_print "If the installtion is SUCCESSFUL, You can comment 'setenforce 0' in $MODPATH/service.sh to enable Se Enforcing Mode" 124 | fi 125 | 126 | if [[ $CHECK_SE == 0 ]]; then 127 | ui_print "- Checking SeLinux state" 128 | selinux=$(getenforce) 129 | ui_print "-- Current SeLinux : $selinux" 130 | setenforce 0 131 | aft_selinux=$(getenforce) 132 | ui_print "-- Aft SeLinux : $aft_selinux" 133 | if [[ "$aft_selinux" != "Permissive" ]]; then 134 | abort "! Err : Your SeLinux cannot be shutdown, check your kernel" 135 | else 136 | ui_print "- SeLinux can be shutdown" 137 | fi 138 | fi 139 | } 140 | 141 | print_warning() { 142 | ui_print "! Caution, If you have installed AudioHQ's Apk, this operation will override the apk data, pls do backup" 143 | } 144 | 145 | set_permissions() { 146 | ui_print "- Setting permissions" 147 | # The following is the default rule, DO NOT remove 148 | set_perm_recursive $MODPATH 0 0 0755 0644 149 | 150 | # Here are some examples: 151 | set_perm_recursive $MODPATH/system/lib 0 0 0644 152 | set_perm_recursive $MODPATH/system/lib64 0 0 0644 153 | set_perm $MODPATH/system/bin/audiohq 0 2000 0755 u:object_r:system_file:s0 154 | set_perm $MODPATH/system/bin/audiohqserver 0 2000 0755 u:object_r:system_file:s0 155 | # set_perm $MODPATH/system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0 156 | # set_perm $MODPATH/system/lib/libart.so 0 0 0644 157 | } 158 | 159 | run_oem_syetem_warning 160 | print_warning 161 | run_api_check 162 | run_arch_check 163 | run_magisk_check 164 | run_volume_key_test 165 | run_selinux_select_n_check 166 | 167 | ui_print "- Extracting module files" 168 | 169 | UNZIP_TARGET="apis/$API/$TO_INSTALL_ARCH/system" 170 | ui_print "- Target unzip $UNZIP_TARGET" 171 | 172 | unzip -o "$ZIPFILE" "uninstall.sh" -d $MODPATH >&2 173 | unzip -o "$ZIPFILE" "$UNZIP_TARGET/*" -d $MODPATH >&2 174 | unzip -o "$ZIPFILE" "sepolicy.rule" -d $MODPATH >&2 175 | unzip -o "$ZIPFILE" "module.prop" -d $MODPATH >&2 176 | 177 | if [[ $CHECK_SE == 0 ]]; then 178 | unzip -o "$ZIPFILE" "service.sh" -d $MODPATH >&2 179 | else 180 | unzip -o "$ZIPFILE" "service_try_enforcing.sh" -d $MODPATH >&2 181 | mv "$MODPATH/service_try_enforcing.sh" "$MODPATH/service.sh" 182 | fi 183 | 184 | mv "$MODPATH/$UNZIP_TARGET" "$MODPATH/" 185 | rm -rf "$MODPATH/apis" 186 | 187 | ui_print "- Extracting apk" 188 | unzip -o "$ZIPFILE" 'system/*' -d $MODPATH >&2 189 | 190 | ui_print "- File extraction complete" 191 | set_permissions 192 | -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=module_audiohq 2 | name=AudioHQ - Advanced Audio Controller 3 | version=Rev 0.91 4 | versionCode=5 5 | author=Alcatraz, Decontamination(Coolapk) 6 | description=Provide binary and apk for controlling each applications volume 7 | -------------------------------------------------------------------------------- /sepolicy.rule: -------------------------------------------------------------------------------- 1 | allow audioserver default_android_service service_manager find 2 | allow priv_app default_android_service service_manager find 3 | -------------------------------------------------------------------------------- /service.sh: -------------------------------------------------------------------------------- 1 | MODDIR=${0%/*} 2 | 3 | mkdir -p /data/misc/audiohq 4 | 5 | setenforce 0 6 | 7 | audiohq --service --force 8 | 9 | ( 10 | killall audioserver 2>/dev/null 11 | )& -------------------------------------------------------------------------------- /service_try_enforcing.sh: -------------------------------------------------------------------------------- 1 | MODDIR=${0%/*} 2 | 3 | mkdir -p /data/misc/audiohq 4 | 5 | #setenforce 0 6 | 7 | audiohq --service --force 8 | 9 | ( 10 | killall audioserver 2>/dev/null 11 | )& 12 | -------------------------------------------------------------------------------- /system/priv-app/AudioHeadQuarter/AudioHeadQuarter.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alcatraz323/audiohq_module/ed4a25b101b4b14b9474df44e91419108887e469/system/priv-app/AudioHeadQuarter/AudioHeadQuarter.apk -------------------------------------------------------------------------------- /uninstall.sh: -------------------------------------------------------------------------------- 1 | rm -rf /data/misc/audiohq --------------------------------------------------------------------------------