반응형

출처 :http://www.beer.org/blog/index.php/2014/10/24/how-to-auto-start-wifi-hotspot-on-android-4-4-4/


adb  에서 wifi 껏다켰다 하기


interface=wlan0

driver=nl80211

ctrl_interface=/data/misc/wifi/hostapd

ssid=drgate

channel=6

ieee80211n=1

hw_mode=g

ignore_broadcast_ssid=0

wpa=2

rsn_pairwise=CCMP

wpa_psk=115dfdf3a3c63c3692b5cfaf0ad73234e89a1e7b70037fd5cfcdcd2d608a6bc9




su

mount -o rw,remount /system

cd /system/etc/init.d

cat > 50hostapd

#!/system/bin/sh

/data/start_hostapd.sh &

^D

chmod 755 50hostapd


#!/system/bin/sh
while true; do
    su -c svc wifi enable
    sleep 1
    netcfg | grep wlan0 && break
    sleep 10
done
su -c svc wifi disable
sleep 2
/system/bin/hostapd -e /data/misc/wifi/entropy.bin /data/misc/wifi/hostapd.conf &


반응형

'Android' 카테고리의 다른 글

android WIFI 관련 각종 유틸리티들  (0) 2017.05.31
Android SoftAP 포팅 작업 내역  (0) 2017.05.31
Android keyboard, 안드로이드 키보드  (0) 2017.05.11
Posted by Real_G