├── system ├── etc │ └── firmware │ │ ├── rt3070.bin │ │ ├── rt73.bin │ │ ├── ar7010.fw │ │ ├── rt2561.bin │ │ ├── rt2661.bin │ │ ├── rt2860.bin │ │ ├── rt2870.bin │ │ ├── rt3071.bin │ │ ├── rt3290.bin │ │ ├── ar7010_1_1.fw │ │ ├── carl9170-1.fw │ │ ├── htc_9271.fw │ │ ├── mt7601u.bin │ │ ├── rt2561s.bin │ │ ├── brcm │ │ ├── bcm43xx-0.fw │ │ ├── bcm43xx_hdr-0.fw │ │ ├── brcmfmac4335-sdio.bin │ │ ├── brcmfmac4339-sdio.bin │ │ └── brcmfmac4354-sdio.bin │ │ ├── rtlwifi │ │ ├── rtl8188eufw.bin │ │ ├── rtl8188fufw.bin │ │ ├── rtl8192cfw.bin │ │ ├── rtl8192cfwU.bin │ │ ├── rtl8192cufw.bin │ │ ├── rtl8192defw.bin │ │ ├── rtl8192eefw.bin │ │ ├── rtl8192sefw.bin │ │ ├── rtl8821aefw.bin │ │ ├── rtl8822befw.bin │ │ ├── rtl8192cfwU_B.bin │ │ ├── rtl8192cufw_A.bin │ │ ├── rtl8192cufw_B.bin │ │ ├── rtl8192eu_nic.bin │ │ ├── rtl8192cufw_TMSC.bin │ │ └── rtl8821aefw_wowlan.bin │ │ └── ath9k_htc │ │ ├── htc_7010-1.4.0.fw │ │ └── htc_9271-1.4.0.fw └── vendor │ ├── bin │ ├── wifi_sniffer │ └── wifi_perf_diag │ ├── firmware │ ├── fw_bcmdhd.bin │ ├── fw_bcmdhd_mfg.bin │ ├── fw_bcmdhd_monitor.bin │ └── debugpolicy │ │ ├── gs101-dpm-user-sbdp-none.bin │ │ ├── gs201-dpm-user-sbdp-none.bin │ │ ├── gs101-dpm-user-sbdp-bypass.bin │ │ ├── gs201-dpm-user-sbdp-bypass.bin │ │ ├── gs101-dpm-userdebug-sbdp-none.bin │ │ ├── gs201-dpm-userdebug-sbdp-none.bin │ │ ├── gs101-dpm-userdebug-sbdp-bypass.bin │ │ └── gs201-dpm-userdebug-sbdp-bypass.bin │ └── etc │ └── init │ ├── init.wifi_sniffer.rc │ └── init.wifi_perf_diag.rc ├── META-INF └── com │ └── google │ └── android │ ├── updater-script │ └── update-binary ├── common ├── system.prop ├── post-fs-data.sh └── service.sh ├── module.prop ├── .gitattributes ├── LICENSE.md ├── README.md └── install.sh /system/etc/firmware/rt3070.bin: -------------------------------------------------------------------------------- 1 | rt2870.bin -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /common/system.prop: -------------------------------------------------------------------------------- 1 | # This file will be read by resetprop 2 | # Example: Change dpi 3 | # ro.sf.lcd_density=320 4 | -------------------------------------------------------------------------------- /system/etc/firmware/rt73.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt73.bin -------------------------------------------------------------------------------- /system/etc/firmware/ar7010.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/ar7010.fw -------------------------------------------------------------------------------- /system/etc/firmware/rt2561.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt2561.bin -------------------------------------------------------------------------------- /system/etc/firmware/rt2661.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt2661.bin -------------------------------------------------------------------------------- /system/etc/firmware/rt2860.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt2860.bin -------------------------------------------------------------------------------- /system/etc/firmware/rt2870.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt2870.bin -------------------------------------------------------------------------------- /system/etc/firmware/rt3071.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt3071.bin -------------------------------------------------------------------------------- /system/etc/firmware/rt3290.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt3290.bin -------------------------------------------------------------------------------- /system/vendor/bin/wifi_sniffer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/bin/wifi_sniffer -------------------------------------------------------------------------------- /system/etc/firmware/ar7010_1_1.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/ar7010_1_1.fw -------------------------------------------------------------------------------- /system/etc/firmware/carl9170-1.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/carl9170-1.fw -------------------------------------------------------------------------------- /system/etc/firmware/htc_9271.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/htc_9271.fw -------------------------------------------------------------------------------- /system/etc/firmware/mt7601u.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/mt7601u.bin -------------------------------------------------------------------------------- /system/etc/firmware/rt2561s.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rt2561s.bin -------------------------------------------------------------------------------- /system/vendor/bin/wifi_perf_diag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/bin/wifi_perf_diag -------------------------------------------------------------------------------- /system/etc/firmware/brcm/bcm43xx-0.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/brcm/bcm43xx-0.fw -------------------------------------------------------------------------------- /system/vendor/firmware/fw_bcmdhd.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/fw_bcmdhd.bin -------------------------------------------------------------------------------- /system/vendor/firmware/fw_bcmdhd_mfg.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/fw_bcmdhd_mfg.bin -------------------------------------------------------------------------------- /system/etc/firmware/brcm/bcm43xx_hdr-0.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/brcm/bcm43xx_hdr-0.fw -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8188eufw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8188eufw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8188fufw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8188fufw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cfw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cfw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cfwU.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cfwU.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cufw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cufw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192defw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192defw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192eefw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192eefw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192sefw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192sefw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8821aefw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8821aefw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8822befw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8822befw.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cfwU_B.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cfwU_B.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cufw_A.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cufw_A.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cufw_B.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cufw_B.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192eu_nic.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192eu_nic.bin -------------------------------------------------------------------------------- /system/vendor/firmware/fw_bcmdhd_monitor.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/fw_bcmdhd_monitor.bin -------------------------------------------------------------------------------- /system/etc/firmware/ath9k_htc/htc_7010-1.4.0.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/ath9k_htc/htc_7010-1.4.0.fw -------------------------------------------------------------------------------- /system/etc/firmware/ath9k_htc/htc_9271-1.4.0.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/ath9k_htc/htc_9271-1.4.0.fw -------------------------------------------------------------------------------- /system/etc/firmware/brcm/brcmfmac4335-sdio.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/brcm/brcmfmac4335-sdio.bin -------------------------------------------------------------------------------- /system/etc/firmware/brcm/brcmfmac4339-sdio.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/brcm/brcmfmac4339-sdio.bin -------------------------------------------------------------------------------- /system/etc/firmware/brcm/brcmfmac4354-sdio.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/brcm/brcmfmac4354-sdio.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8192cufw_TMSC.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8192cufw_TMSC.bin -------------------------------------------------------------------------------- /system/etc/firmware/rtlwifi/rtl8821aefw_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/etc/firmware/rtlwifi/rtl8821aefw_wowlan.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs101-dpm-user-sbdp-none.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs101-dpm-user-sbdp-none.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs201-dpm-user-sbdp-none.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs201-dpm-user-sbdp-none.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs101-dpm-user-sbdp-bypass.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs101-dpm-user-sbdp-bypass.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs201-dpm-user-sbdp-bypass.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs201-dpm-user-sbdp-bypass.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs101-dpm-userdebug-sbdp-none.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs101-dpm-userdebug-sbdp-none.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs201-dpm-userdebug-sbdp-none.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs201-dpm-userdebug-sbdp-none.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs101-dpm-userdebug-sbdp-bypass.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs101-dpm-userdebug-sbdp-bypass.bin -------------------------------------------------------------------------------- /system/vendor/firmware/debugpolicy/gs201-dpm-userdebug-sbdp-bypass.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Biohazardousrom/nh-magisk-wifi-firmware-gs101-gs201/HEAD/system/vendor/firmware/debugpolicy/gs201-dpm-userdebug-sbdp-bypass.bin -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=wirelessFirmware 2 | name=Wireless Firmware for Nethunter 3 | version=v2.0.4 4 | versionCode=2004 5 | author=rithvikvibhu 6 | description=This module adds the required firmware for external wireless adapters to be used with NetHunter. 7 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /common/post-fs-data.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Do NOT assume where your module will be located. 3 | # ALWAYS use $MODDIR if you need to know where this script 4 | # and module is placed. 5 | # This will make sure your module will still work 6 | # if Magisk change its mount point in the future 7 | MODDIR=${0%/*} 8 | 9 | # This script will be executed in post-fs-data mode 10 | -------------------------------------------------------------------------------- /common/service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Do NOT assume where your module will be located. 3 | # ALWAYS use $MODDIR if you need to know where this script 4 | # and module is placed. 5 | # This will make sure your module will still work 6 | # if Magisk change its mount point in the future 7 | MODDIR=${0%/*} 8 | 9 | # This script will be executed in late_start service mode 10 | -------------------------------------------------------------------------------- /system/vendor/etc/init/init.wifi_sniffer.rc: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Google Inc. All Rights Reserved. 2 | 3 | service wifi_sniffer_start /vendor/bin/wifi_sniffer start 4 | class late_start 5 | user root 6 | group root system 7 | disabled 8 | oneshot 9 | 10 | service wifi_sniffer_stop /vendor/bin/wifi_sniffer stop 11 | class late_start 12 | user root 13 | group root system 14 | disabled 15 | oneshot 16 | 17 | on property:vendor.wifi.sniffer.start=true 18 | start wifi_sniffer_start 19 | 20 | on property:vendor.wifi.sniffer.start=false 21 | start wifi_sniffer_stop 22 | -------------------------------------------------------------------------------- /system/vendor/etc/init/init.wifi_perf_diag.rc: -------------------------------------------------------------------------------- 1 | # Copyright 2022 Google Inc. All Rights Reserved. 2 | 3 | service wifi_perf_diag_start /vendor/bin/wifi_perf_diag start 4 | class late_start 5 | user root 6 | group root system 7 | disabled 8 | oneshot 9 | 10 | service wifi_perf_diag_stop /vendor/bin/wifi_perf_diag stop 11 | class late_start 12 | user root 13 | group root system 14 | disabled 15 | oneshot 16 | 17 | on property:vendor.wifi.perf_diag.start=true 18 | start wifi_perf_diag_start 19 | 20 | on property:vendor.wifi.perf_diag.start=false 21 | start wifi_perf_diag_stop 22 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2018 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Wireless Firmware for Nethunter 2 | 3 | This Magisk module adds the required firmware for external wireless adapters to be used with Nethunter. 4 | 5 | **NOTE:** Your kernel still needs to support external network adapters. This module only provides missing firmware, if any. 6 | 7 | The list of included firmware is given below. For other devices, [create a new issue on GitHub here.](https://github.com/rithvikvibhu/nh-magisk-wifi-firmware/issues) 8 | 9 | This module should work with any variant of Nethunter, but it was created to work with __Nali Kethunter__ (https://forum.xda-developers.com/android/software-hacking/nali-kethunter-modded-kernel-supported-t3770455) - another Magisk module by [@LazerL0rd](https://forum.xda-developers.com/member.php?u=7836278) which systemlessly installs Kali Nethunter. 10 | 11 | #### Supported chipsets: 12 | 13 | - **Ralink** - RT2501, RT2501USB, RT2561, RT2561S, RT2571W, RT2600, RT2661, RT2671, RT2760, RT2790, RT2860, RT2870, RT2890, RT3070, RT3071, RT3090, RT3290, RT5201, RT5600 14 | - **Realtek** - RTL8188* (EU/FTV), RTL8192* (CU/EU/DE/SE), RTL8821/12* (AE/AU/BU), RTL8822BU 15 | - **Atheros** - AR9170, AR7010 16 | - **Mediatek** - MT7601u 17 | - **Broadcom** - bcm43xx (not tested), BRCM4335, BRCM4339, BRCM4354, bcmhd4389 18 | 19 | 20 | #### Supported adapters 21 | 22 | - TL-WN722N 23 | - AWUS036NEH 24 | - TE-W322U 25 | - TL-WN722N-V2 26 | - Netgear_WN111v2 27 | - TL-WN821Nv3 28 | - (and many more. Check if chipset is listed above.) 29 | 30 | 31 | #### Changelog 32 | 33 | * v2.0.4 34 | - Added files for RTL8812BU, RTL8822BU, BRCM4335, BRCM4339, BRCM4354 35 | 36 | * v2.0.3 37 | - Added files for bcm43xx (meant for bcm4358) 38 | 39 | * v2.0.2 40 | - Added all Ralink files 41 | - Check chipset list above 42 | 43 | * v2.0.1 44 | - Added files for AR7010 and RTL8821 45 | 46 | * v2.0.0 47 | - Migrated to new Magisk Installer template 48 | - Added upater-script for zip flashing 49 | 50 | * v1.0.5 51 | - Added files for AR9170 52 | 53 | * v1.0.4 54 | - Added files for RTL8192 55 | 56 | * v1.0.3 57 | - Added files for RTL8188EU 58 | 59 | * v1.0.2 60 | - Added files for RT3070 and RT3071 61 | 62 | * v1.0.1 63 | - Added files for RT2870 and MT7601u 64 | 65 | * v1.0 66 | - Initial release 67 | 68 | 69 | **Source:** https://github.com/rithvikvibhu/nh-magisk-wifi-firmware 70 | **Issues / Request other firmware:** https://github.com/rithvikvibhu/nh-magisk-wifi-firmware/issues 71 | **Author:** [rithvikvibhu](https://github.com/rithvikvibhu) (https://github.com/rithvikvibhu) 72 | -------------------------------------------------------------------------------- /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | TMPDIR=/dev/tmp 4 | MOUNTPATH=/dev/magisk_img 5 | 6 | # Default permissions 7 | umask 022 8 | 9 | # Initial cleanup 10 | rm -rf $TMPDIR 2>/dev/null 11 | mkdir -p $TMPDIR 12 | 13 | # echo before loading util_functions 14 | ui_print() { echo "$1"; } 15 | 16 | require_new_magisk() { 17 | ui_print "***********************************" 18 | ui_print " Please install the latest Magisk! " 19 | ui_print "***********************************" 20 | exit 1 21 | } 22 | 23 | imageless_magisk() { 24 | [ $MAGISK_VER_CODE -gt 18100 ] 25 | return $? 26 | } 27 | 28 | ########################################################################################## 29 | # Environment 30 | ########################################################################################## 31 | 32 | OUTFD=$2 33 | ZIPFILE=$3 34 | 35 | mount /data 2>/dev/null 36 | 37 | # Load utility functions 38 | if [ -f /data/adb/magisk/util_functions.sh ]; then 39 | . /data/adb/magisk/util_functions.sh 40 | NVBASE=/data/adb 41 | else 42 | require_new_magisk 43 | fi 44 | 45 | # Preperation for flashable zips 46 | setup_flashable 47 | 48 | # Mount partitions 49 | mount_partitions 50 | 51 | # Detect version and architecture 52 | api_level_arch_detect 53 | 54 | # Setup busybox and binaries 55 | $BOOTMODE && boot_actions || recovery_actions 56 | 57 | ########################################################################################## 58 | # Preparation 59 | ########################################################################################## 60 | 61 | # Extract common files 62 | unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2 63 | 64 | [ ! -f $TMPDIR/install.sh ] && abort "! Unable to extract zip file!" 65 | # Load install script 66 | . $TMPDIR/install.sh 67 | 68 | if imageless_magisk; then 69 | $BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules 70 | MODULEROOT=$NVBASE/$MODDIRNAME 71 | else 72 | $BOOTMODE && IMGNAME=magisk_merge.img || IMGNAME=magisk.img 73 | IMG=$NVBASE/$IMGNAME 74 | request_zip_size_check "$ZIPFILE" 75 | mount_magisk_img 76 | MODULEROOT=$MOUNTPATH 77 | fi 78 | 79 | MODID=`grep_prop id $TMPDIR/module.prop` 80 | MODPATH=$MODULEROOT/$MODID 81 | 82 | print_modname 83 | 84 | ui_print "******************************" 85 | ui_print "Powered by Magisk (@topjohnwu)" 86 | ui_print "******************************" 87 | 88 | ########################################################################################## 89 | # Install 90 | ########################################################################################## 91 | 92 | # Create mod paths 93 | rm -rf $MODPATH 2>/dev/null 94 | mkdir -p $MODPATH 95 | 96 | on_install 97 | 98 | # Remove placeholder 99 | rm -f $MODPATH/system/placeholder 2>/dev/null 100 | 101 | # Custom uninstaller 102 | [ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh 103 | 104 | # Auto Mount 105 | if imageless_magisk; then 106 | $SKIPMOUNT && touch $MODPATH/skip_mount 107 | else 108 | $SKIPMOUNT || touch $MODPATH/auto_mount 109 | fi 110 | 111 | # prop files 112 | $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop 113 | 114 | # Module info 115 | cp -af $TMPDIR/module.prop $MODPATH/module.prop 116 | if $BOOTMODE; then 117 | # Update info for Magisk Manager 118 | if imageless_magisk; then 119 | mktouch $NVBASE/modules/$MODID/update 120 | cp -af $TMPDIR/module.prop $NVBASE/modules/$MODID/module.prop 121 | else 122 | mktouch /sbin/.magisk/img/$MODID/update 123 | cp -af $TMPDIR/module.prop /sbin/.magisk/img/$MODID/module.prop 124 | fi 125 | fi 126 | 127 | # post-fs-data mode scripts 128 | $POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh 129 | 130 | # service mode scripts 131 | $LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh 132 | 133 | # Handle replace folders 134 | for TARGET in $REPLACE; do 135 | mktouch $MODPATH$TARGET/.replace 136 | done 137 | 138 | ui_print "- Setting permissions" 139 | set_permissions 140 | 141 | ########################################################################################## 142 | # Finalizing 143 | ########################################################################################## 144 | 145 | cd / 146 | imageless_magisk || unmount_magisk_img 147 | $BOOTMODE || recovery_cleanup 148 | rm -rf $TMPDIR $MOUNTPATH 149 | 150 | ui_print "- Done" 151 | exit 0 152 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | ########################################################################################## 2 | # 3 | # Magisk Module Installer Script 4 | # 5 | ########################################################################################## 6 | ########################################################################################## 7 | # 8 | # Instructions: 9 | # 10 | # 1. Place your files into system folder (delete the placeholder file) 11 | # 2. Fill in your module's info into module.prop 12 | # 3. Configure and implement callbacks in this file 13 | # 4. If you need boot scripts, add them into common/post-fs-data.sh or common/service.sh 14 | # 5. Add your additional or modified system properties into common/system.prop 15 | # 16 | ########################################################################################## 17 | 18 | ########################################################################################## 19 | # Config Flags 20 | ########################################################################################## 21 | 22 | # Set to true if you do *NOT* want Magisk to mount 23 | # any files for you. Most modules would NOT want 24 | # to set this flag to true 25 | SKIPMOUNT=false 26 | 27 | # Set to true if you need to load system.prop 28 | PROPFILE=false 29 | 30 | # Set to true if you need post-fs-data script 31 | POSTFSDATA=false 32 | 33 | # Set to true if you need late_start service script 34 | LATESTARTSERVICE=false 35 | 36 | ########################################################################################## 37 | # Replace list 38 | ########################################################################################## 39 | 40 | # List all directories you want to directly replace in the system 41 | # Check the documentations for more info why you would need this 42 | 43 | # Construct your list in the following format 44 | # This is an example 45 | REPLACE_EXAMPLE=" 46 | /system/app/Youtube 47 | /system/priv-app/SystemUI 48 | /system/priv-app/Settings 49 | /system/framework 50 | " 51 | 52 | # Construct your own list here 53 | REPLACE=" 54 | " 55 | 56 | ########################################################################################## 57 | # 58 | # Function Callbacks 59 | # 60 | # The following functions will be called by the installation framework. 61 | # You do not have the ability to modify update-binary, the only way you can customize 62 | # installation is through implementing these functions. 63 | # 64 | # When running your callbacks, the installation framework will make sure the Magisk 65 | # internal busybox path is *PREPENDED* to PATH, so all common commands shall exist. 66 | # Also, it will make sure /data, /system, and /vendor is properly mounted. 67 | # 68 | ########################################################################################## 69 | ########################################################################################## 70 | # 71 | # The installation framework will export some variables and functions. 72 | # You should use these variables and functions for installation. 73 | # 74 | # ! DO NOT use any Magisk internal paths as those are NOT public API. 75 | # ! DO NOT use other functions in util_functions.sh as they are NOT public API. 76 | # ! Non public APIs are not guranteed to maintain compatibility between releases. 77 | # 78 | # Available variables: 79 | # 80 | # MAGISK_VER (string): the version string of current installed Magisk 81 | # MAGISK_VER_CODE (int): the version code of current installed Magisk 82 | # BOOTMODE (bool): true if the module is currently installing in Magisk Manager 83 | # MODPATH (path): the path where your module files should be installed 84 | # TMPDIR (path): a place where you can temporarily store files 85 | # ZIPFILE (path): your module's installation zip 86 | # ARCH (string): the architecture of the device. Value is either arm, arm64, x86, or x64 87 | # IS64BIT (bool): true if $ARCH is either arm64 or x64 88 | # API (int): the API level (Android version) of the device 89 | # 90 | # Availible functions: 91 | # 92 | # ui_print 93 | # print to console 94 | # Avoid using 'echo' as it will not display in custom recovery's console 95 | # 96 | # abort 97 | # print error message to console and terminate installation 98 | # Avoid using 'exit' as it will skip the termination cleanup steps 99 | # 100 | # set_perm [context] 101 | # if [context] is empty, it will default to "u:object_r:system_file:s0" 102 | # this function is a shorthand for the following commands 103 | # chown owner.group target 104 | # chmod permission target 105 | # chcon context target 106 | # 107 | # set_perm_recursive [context] 108 | # if [context] is empty, it will default to "u:object_r:system_file:s0" 109 | # for all files in , it will call: 110 | # set_perm file owner group filepermission context 111 | # for all directories in (including itself), it will call: 112 | # set_perm dir owner group dirpermission context 113 | # 114 | ########################################################################################## 115 | ########################################################################################## 116 | # If you need boot scripts, DO NOT use general boot scripts (post-fs-data.d/service.d) 117 | # ONLY use module scripts as it respects the module status (remove/disable) and is 118 | # guaranteed to maintain the same behavior in future Magisk releases. 119 | # Enable boot scripts by setting the flags in the config section above. 120 | ########################################################################################## 121 | 122 | # Set what you want to display when installing your module 123 | 124 | print_modname() { 125 | ui_print "*******************************" 126 | ui_print " NH Wireless Firmware " 127 | ui_print " - rithvikvibhu " 128 | ui_print "*******************************" 129 | } 130 | 131 | # Copy/extract your module files into $MODPATH in on_install. 132 | 133 | on_install() { 134 | # The following is the default implementation: extract $ZIPFILE/system to $MODPATH 135 | # Extend/change the logic to whatever you want 136 | ui_print "- Extracting module files" 137 | unzip -o "$ZIPFILE" 'system/*' -d $MODPATH >&2 138 | } 139 | 140 | # Only some special files require specific permissions 141 | # This function will be called after on_install is done 142 | # The default permissions should be good enough for most cases 143 | 144 | set_permissions() { 145 | # The following is the default rule, DO NOT remove 146 | set_perm_recursive $MODPATH 0 0 0755 0644 147 | 148 | # Here are some examples: 149 | # set_perm_recursive $MODPATH/system/lib 0 0 0755 0644 150 | # set_perm $MODPATH/system/bin/app_process32 0 2000 0755 u:object_r:zygote_exec:s0 151 | # set_perm $MODPATH/system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0 152 | # set_perm $MODPATH/system/lib/libart.so 0 0 0644 153 | } 154 | 155 | # You can add more functions to assist your custom script code 156 | --------------------------------------------------------------------------------