├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── README.md ├── customize.sh ├── module.prop ├── post-fs-data.sh ├── service.sh └── system └── bin ├── txtweak ├── wifigithub ├── wifilatency └── wifilatencyoff /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.4+! " 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 20400 ] && require_new_magisk 31 | 32 | nohup am start -a android.intent.action.VIEW -d https://t.me/modulostk >/dev/null 2>&1 & 33 | 34 | install_module 35 | exit 0 36 | -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wi-Fi Bonding NoLog [Qcom] 2 | 3 | ![](https://i.ibb.co/0hMGsNj/1690350350097.png) 4 | 5 | ## Description 6 | This module doubles your bandwidth, disables Wi-Fi packet logging (has high overhead and several related security issues) and other logging for less background load and perhaps some battery life. 7 | 8 | ## Others tweaks manual: 9 | - Force Wi-fi Low Latency Mode: This mode consumes more energy even if the screen is off if you want to activate it follow the steps below. 10 | 1. Open Termux and type: 11 | su -c wifilatency 12 | 2. To disable it: 13 | su -c wifilatencyoff 14 | 15 | - Tcp low latency (deleted): This is a legacy option, it has no effect anymore. 16 | 17 | - Increase Transmission Queue Length:The txqueuelen option in the ifconfig command is used to set or display the transmission queue length for a network interface on Linux. Transmission queue length refers to the maximum number of packets that can wait in the transmission queue before being sent. When you set the transmission queue length with txqueuelen, you define the maximum number of packets that can be queued for transmission on the network interface. A higher value allows for a larger transmission queue, which can be beneficial in high network load or congestion situations, as it provides more space to queue packets before they are dropped or transmission delays occur. 18 | 1. First check the value of txqueuelen with the following command (termux): 19 | su -c "/bin/ifconfig wlan0" 20 | 2. If the default value of txqueuelen is equal to or greater than 4000 you should edit the txtweak file (system/bin) inside the module and increase the value to test. 21 | 3. To return to the default simply put the value you checked at the beginning in the following command and paste it into termux (or just reboot your device): 22 | su -c "/bin/ifconfig wlan0 txqueuelen valor" 23 | 24 | ## Installation 25 | 1. First delete your Wi-Fi password 26 | 2. Uninstall previous version of this module (reboot) 27 | 3. Install the module in Magisk (reboot) 28 | 4. Connect to your Wi-Fi. 29 | 5. Enjoy! 30 | 31 | ## Support 32 | - [GitHub](https://github.com/LeanxModulostk/wifi-bonding-nolog) 33 | - [Telegram Channel](https://t.me/modulostk) 34 | 35 | ## Special Thanks 36 | 37 | • [Google 💩 for WCNSS_qcom_cfg.ini](https://android.googlesource.com/device/google/coral/+/refs/heads/android10-c2f2-release/WCNSS_qcom_cfg.ini) 38 | 39 | • [Source Android for Wifi low-latency mode](https://source.android.com/docs/core/connect/wifi-low-latency) 40 | 41 | • [simonsmh for Wifi Bonding Module](https://github.com/Magisk-Modules-Repo/wifi-bonding) 42 | 43 | • [~~水龙&黎木汐 for reduces the number of standby wakeups~~](https://t.me/modulostk/3822) 44 | 45 | • [syphyr for disable wifi packet logging](https://gitea.rockhost.se/Piteball/android_device_samsung_msm8976-common/commit/be2d161200b87de43d7f4f86a8176efd5627b9b1) 46 | 47 | • [~~@Xizi1.5 for Super TCP~~](https://t.me/modulostk/99) 48 | 49 | • [tcp_max_reordering](https://sysctl-explorer.net/net/ipv4/tcp_max_reordering/) 50 | 51 | • [Zackptg5 for the MMT-Ex template](https://github.com/Zackptg5) 52 | 53 | • [Topjohnwu for making Magisk](https://github.com/topjohnwu) 54 | -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | ui_print "" 2 | ui_print "" 3 | ui_print "▒█░░▒█ ░▀░ ░░ ▒█▀▀▀ ░▀░ " 4 | ui_print "▒█▒█▒█ ▀█▀ ▀▀ ▒█▀▀▀ ▀█▀ " 5 | ui_print "▒█▄▀▄█ ▀▀▀ ░░ ▒█░░░ ▀▀▀ " 6 | ui_print " " 7 | ui_print "▒█▀▀█ █▀▀█ █▀▀▄ █▀▀▄ ░▀░ █▀▀▄ █▀▀▀ " 8 | ui_print "▒█▀▀▄ █░░█ █░░█ █░░█ ▀█▀ █░░█ █░▀█ " 9 | ui_print "▒█▄▄█ ▀▀▀▀ ▀░░▀ ▀▀▀░ ▀▀▀ ▀░░▀ ▀▀▀▀ " 10 | ui_print " " 11 | ui_print "▒█▄░▒█ █▀▀█ ▒█░░░ █▀▀█ █▀▀▀ " 12 | ui_print "▒█▒█▒█ █░░█ ▒█░░░ █░░█ █░▀█ " 13 | ui_print "▒█░░▀█ ▀▀▀▀ ▒█▄▄█ ▀▀▀▀ ▀▀▀▀" 14 | ui_print "" 15 | ui_print "" 16 | [ -x `which magisk` ] && { 17 | if magisk --denylist ls &>/dev/null; then 18 | CMDPREFIX="magisk --denylist exec" 19 | elif magisk magiskhide ls &>/dev/null; then 20 | CMDPREFIX="magisk magiskhide exec" 21 | fi 22 | } || unset CMDPREFIX 23 | 24 | CHECK_DIRS="/system /vendor /product /system_ext" 25 | EXISTING_DIRS="" 26 | for dir in $CHECK_DIRS; do 27 | [[ -d "$dir" ]] && EXISTING_DIRS="$EXISTING_DIRS $dir" 28 | done 29 | 30 | CFGS=$($CMDPREFIX find $EXISTING_DIRS -type f -name WCNSS_qcom_cfg.ini) 31 | for CFG in $CFGS 32 | do 33 | [[ -f $CFG ]] && { 34 | mkdir -p `dirname $MODPATH$CFG` 35 | ui_print "- Migrating $CFG" 36 | $CMDPREFIX cp -af $CFG $MODPATH$CFG 37 | ui_print "- Starting modify" 38 | sed -i '/gChannelBondingMode24GHz=/d;/gChannelBondingMode5GHz=/d;/gForce1x1Exception=/d;/sae_enabled=/d;/BandCapability=/d;/wlanLoggingEnable=/d;/wlanLoggingFEToConsole=/d;/gEnableDebugLog=/d;/gFwDebugLogType=/d;/gFwDebugLogLevel=/d;/gEnablefwlog=/d;/gEnablePacketLog=/d;/gEnableNUDTracking=/d;/gEnableLogp=/d;/gFwDebugLogLevel=/d;/gFwDebugModuleLoglevel=/d;s/^END$/gChannelBondingMode24GHz=1\ngChannelBondingMode5GHz=1\ngForce1x1Exception=0\nsae_enabled=1\nBandCapability=0\nwlanLoggingEnable=0\nwlanLoggingFEToConsole=0\ngEnableDebugLog=0\ngFwDebugLogType=0\ngFwDebugLogLevel=0\ngEnablefwlog=0\ngEnablePacketLog=0\ngEnableNUDTracking=0\ngEnableLogp=0\nEND/g' $MODPATH$CFG 39 | 40 | # Find and modify xtwifi.conf 41 | xtwifi_conf=$($CMDPREFIX find $EXISTING_DIRS -type f -name xtwifi.conf) 42 | if [ -n "$xtwifi_conf" ]; then 43 | xtwifi_dir=$(dirname $xtwifi_conf) 44 | mkdir -p $MODPATH/$xtwifi_dir 45 | $CMDPREFIX cp -af $xtwifi_conf $MODPATH/$xtwifi_dir 46 | sed -i -e 's/DEBUG_GLOBAL_LOG_LEVEL = [0-9]*/DEBUG_GLOBAL_LOG_LEVEL = 0/g' $MODPATH/$xtwifi_dir/xtwifi.conf 47 | fi 48 | } 49 | done 50 | 51 | [[ -z $CFG ]] && abort "- Installation FAILED. Your device didn't support WCNSS_qcom_cfg.ini." || { mkdir -p $MODPATH/system; mv -f $MODPATH/vendor $MODPATH/system/vendor; mv -f $MODPATH/product $MODPATH/system/product; mv -f $MODPATH/system_ext $MODPATH/system/system_ext;} -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=wifi-bonding-nolog 2 | name=Wi-Fi Bonding NoLog [Qcom] 3 | version=1.17.1 4 | versionCode=8 5 | author=simonsmh x @LeanHijosdesusMadres 6 | description=Doubles your bandwidth, disables logs for less background loading (maybe save battery) and other tweaks (su -c wifigithub) 7 | support=https://t.me/modulostk 8 | -------------------------------------------------------------------------------- /post-fs-data.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | MODDIR ${0%/*} 3 | 4 | # @modulostk [telegram] 5 | ##################################### 6 | resetprop -n sys.wifitracing.started 0 7 | resetprop -n persist.vendor.wifienhancelog 0 8 | -------------------------------------------------------------------------------- /service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | MODDIR=${0%/*} 3 | #————————————————————————————# 4 | # Execute script by tytydraco and his project ktweak, thanks! 5 | #————————————————————————————# 6 | write() { 7 | # Bail out if file does not exist 8 | [[ ! -f "$1" ]] && return 1 9 | 10 | # Make file writable in case it is not already 11 | chmod +w "$1" 2> /dev/null 12 | 13 | # Write the new value and bail if there's an error 14 | if ! echo "$2" > "$1" 2> /dev/null 15 | then 16 | echo "Failed: $1 → $2" 17 | return 1 18 | fi 19 | } 20 | 21 | sleep 60 22 | 23 | #————————————————————————————# 24 | # Stop Dump & Diag # 25 | #————————————————————————————# 26 | su -c stop tcpdump vendor.tcpdump vendor_tcpdump cnss_diag vendor.cnss_diag 27 | su -c am kill tcpdump vendor.tcpdump vendor_tcpdump cnss_diag vendor.cnss_diag 28 | su -c killall -q -9 tcpdump vendor.tcpdump vendor_tcpdump cnss_diag vendor.cnss_diag 29 | 30 | #————————————————————————————# 31 | # Clear Wifi Logs # 32 | #————————————————————————————# 33 | rm -rf /data/vendor/wlan_logs 34 | touch /data/vendor/wlan_logs 35 | chmod 000 /data/vendor/wlan_logs 36 | 37 | #————————————————————————————# 38 | # Clear Wifi Logs # 39 | #————————————————————————————# 40 | #Maximal reordering level of packets in a TCP stream. 300 is a fairly conservative value, but you might increase it if paths are using per packet load balancing (like bonding rr mode) Default: 300 41 | write /proc/sys/net/ipv4/tcp_max_reordering "1000" 42 | 43 | exit 0 -------------------------------------------------------------------------------- /system/bin/txtweak: -------------------------------------------------------------------------------- 1 | #————————————————————————————# 2 | # Txqueuelen Tweak # 3 | #————————————————————————————# 4 | #La opción `txqueuelen` en el comando `ifconfig` se utiliza para establecer o mostrar la longitud de la cola de transmisión (transmission queue length) para una interfaz de red en Linux. La longitud de la cola de transmisión se refiere al número máximo de paquetes que pueden esperar en la cola de transmisión antes de ser enviados. 5 | #Cuando se establece la longitud de la cola de transmisión con `txqueuelen`, se define el número máximo de paquetes que pueden encolarse para su transmisión en la interfaz de red. Un valor más alto permite una cola de transmisión más grande, lo que puede ser beneficioso en situaciones de alta carga de red o de congestión, ya que proporciona un mayor espacio para encolar paquetes antes de que se descarten o se produzcan retrasos en la transmisión. 6 | #Verifica el valor actual de "txqueuelen" (verificar esti antes o desactiva el modulo reinicia y verifica): 7 | #su -c "/bin/ifconfig wlan0" 8 | echo "▸Please wait moment" 9 | sleep 2 10 | su -c "/bin/ifconfig wlan0 txqueuelen 4000" 11 | sleep 2 12 | echo " " 13 | echo "░█████╗░███╗░░██╗" 14 | echo "██╔══██╗████╗░██║" 15 | echo "██║░░██║██╔██╗██║" 16 | echo "██║░░██║██║╚████║" 17 | echo "╚█████╔╝██║░╚███║" 18 | echo "░╚════╝░╚═╝░░╚══╝" 19 | echo "Txqueuelen Tweak" 20 | echo " " 21 | echo "☬ @ModulOStk" 22 | echo " " 23 | -------------------------------------------------------------------------------- /system/bin/wifigithub: -------------------------------------------------------------------------------- 1 | nohup am start -a android.intent.action.VIEW -d https://github.com/LeanxModulostk/wifi-bonding-nolog >/dev/null 2>&1 & -------------------------------------------------------------------------------- /system/bin/wifilatency: -------------------------------------------------------------------------------- 1 | #https://source.android.com/docs/core/connect/wifi-low-latency 2 | echo "▸Please wait moment" 3 | sleep 2 4 | su -c "cmd wifi force-low-latency-mode enabled" 5 | sleep 2 6 | echo " " 7 | echo "░█████╗░███╗░░██╗" 8 | echo "██╔══██╗████╗░██║" 9 | echo "██║░░██║██╔██╗██║" 10 | echo "██║░░██║██║╚████║" 11 | echo "╚█████╔╝██║░╚███║" 12 | echo "░╚════╝░╚═╝░░╚══╝" 13 | echo "FORCE WI-FI LOW LATENCY MODE" 14 | echo " " 15 | echo "☬ @ModulOStk" 16 | echo " " -------------------------------------------------------------------------------- /system/bin/wifilatencyoff: -------------------------------------------------------------------------------- 1 | echo "▸Please wait moment" 2 | sleep 2 3 | su -c "cmd wifi force-low-latency-mode disabled" 4 | sleep 2 5 | echo " " 6 | echo "░█████╗░███████╗███████╗" 7 | echo "██╔══██╗██╔════╝██╔════╝" 8 | echo "██║░░██║█████╗░░█████╗░░" 9 | echo "██║░░██║██╔══╝░░██╔══╝░░" 10 | echo "╚█████╔╝██║░░░░░██║░░░░░" 11 | echo "░╚════╝░╚═╝░░░░░╚═╝░░░░░" 12 | echo "FORCE WI-FI LOW LATENCY MODE" 13 | echo " " 14 | echo "☬ @ModulOStk" 15 | echo " " 16 | --------------------------------------------------------------------------------