Skip to content
/ mnet Public

Almost works, no internet access, otherwise stable. Updated mportal to python3 works with built in android hotspot on Android 10/11 tested on Oxygen OS and various Limeage based GSI's. mportal assumes you have termux imstalled for python3. The hotspot will repeat already connected wifi or attempts to find rmnet iface

Notifications You must be signed in to change notification settings

mnet-repo/mnet

Repository files navigation

#mnet wifi router/repeater depends python3(termux or compatible)

#Find termux from fdroid, then

apt update && apt upgrade && apt install python

mportal.py expects python3.x in /data/data/com.termux/files/usr/bin/python3

fix the shebang line if you have python elswhere #!/bin/env python3 may work if python3 is already in your PATH

#The repeater itself originates from the script found here...

#https://android.stackexchange.com/questions/37141/how-to-use-android-in-wi-fi-repeater-mode-by-bridging-wi-fi-with-access-point

#The captive portal is a fork of this repo...

#https://github.com/nikosft/captive-portal

#Tested on Android 10/11 running OxygenOS and Lineage/AOSP/PHH GSI's

##mrbox23 on XDA ##mnet-repo on Github

#WARNING: EXPIREMENTAL! ROOT REQUIRED! MAY NOT BE SAFE! USE WITH CAUTION #YOU ARE RESPOSIBLE AFTER ROOTING YOUR DEVICE

#No cats are harmed while putting this together, or as a result of my own personal use.

#Should be safe, keep it in /data and set permissions as you see fit, if your not sure, I'm not an expert and I've been wrong before. #I use /data/bin. #Message me, I'll help best I can. This began on a moto e5 play lineageOS 8.1(my first gsi device) and finished on moto g7 power lineageOS(9) currently working on OnePlus6T(fajita), OnePlusN10(lito), Moto G8, Rockchip Tablet, Rockpi 4b sbc(rk3399). pay attention for where your devices hostapd.conf lives(start your hotspot). Usually /data/vendor/wifi or /data/misc/wifi use the existing hostapd.conf as skeleton change ssid(2) to $SSID, interface to $AP, hw_mode to $HW, etc.

#Install:

#Copy mnet/mportal to data ex:

#!/system/bin/sh mkdir /data/bin cp mnet /data/bin/ cp mportal /data/bin chmod 0755 -R /data/bin chown 0.0 -R /data/bin export PATH=/data/bin:$PATH #optional/useful export PATH=$PATH:/data/data/com.termux/files/usr/bin

#Use:

#Start(remove the & to leave in foreground):

#mnet up &

#Stop:

#mnet down

#List connections:

#strings /proc/net/arp

#It's a hackjob at this point.

#Note: The python script will work indepent of mnet script. It can function with android system hotspot or other hotspot/repeater methods. Align the interface/gateway settings in mportal to match.

##TODO

#This project already works as a repeater, using p2p framework and functions without root.

#https://github.com/Mygod/VPNHotspot

Included captive portal page(It's click-through. Commented out within mportal is the user/password config it had originally) Connected confirmation Example client connection output Example output

About

Almost works, no internet access, otherwise stable. Updated mportal to python3 works with built in android hotspot on Android 10/11 tested on Oxygen OS and various Limeage based GSI's. mportal assumes you have termux imstalled for python3. The hotspot will repeat already connected wifi or attempts to find rmnet iface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published