├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── README.md ├── customize.sh ├── module.prop ├── service.sh └── uninstall.sh /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 | # Android TCP Optimization 2 | 3 | ## Description 4 | Tuning the initcwnd and initrwnd parameters can have a significant improvement in TCP performance. 5 | Resulting in faster web page downloads and faster connection between servers. 6 | 7 | • Check: su -c ip route 8 | 9 | ## Support 10 | - [GitHub](https://github.com/LeanxModulostk/Android-TCP-Optimization) 11 | - [Telegram Channel](https://t.me/modulostk) 12 | 13 | ## Special Thanks 14 | 15 | • [Zackptg5 for the MMT-Ex template](https://github.com/Zackptg5) 16 | 17 | • [Topjohnwu for making Magisk](https://github.com/topjohnwu) 18 | -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | SKIPMOUNT=false 2 | PROPFILE=true 3 | POSTFSDATA=false 4 | LATESTARTSERVICE=true 5 | 6 | print_modname() { 7 | ui_print "*******************************" 8 | ui_print " @modulostk en Telegram " 9 | ui_print "*******************************" 10 | } 11 | 12 | on_install() { 13 | unzip -o "$ZIPFILE" 'system/*' -d "$MODPATH" >&2 14 | } 15 | 16 | set_permissions() { 17 | set_perm_recursive "$MODPATH" 0 0 0755 0644 18 | } -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=ATCPO 2 | name=Android TCP Optimization 3 | version=v1 4 | versionCode=1 5 | author=@LeanHijosdesusMadres [telegram] 6 | description=Tuning the initcwnd and initrwnd parameters can have a significant improvement in TCP performance. 7 | support=https://t.me/modulostk 8 | -------------------------------------------------------------------------------- /service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | # wait a while to ensure the system has started completely 4 | sleep 20 5 | 6 | #Optimización TCP de Android 7 | ip route | while read p; do ip route change $p initcwnd 20 initrwnd 20; done 8 | 9 | #chau 10 | exit -------------------------------------------------------------------------------- /uninstall.sh: -------------------------------------------------------------------------------- 1 | # Don't modify anything after this 2 | [[ -f "$INFO" ]] && { 3 | while read LINE; do 4 | if [[ "$(echo -n "$LINE" | tail -c 1)" == "~" ]]; then 5 | continue 6 | elif [[ -f "$LINE~" ]]; then 7 | mv -f "$LINE~" "$LINE" 8 | else 9 | rm -f "$LINE" 10 | while true; do 11 | LINE=$(dirname $LINE) 12 | [[ "$(ls -A $LINE 2>/dev/null)" ]] && break 1 || rm -rf "$LINE" 13 | done 14 | fi 15 | done < $INFO 16 | rm -f "$INFO" 17 | } --------------------------------------------------------------------------------