Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit d222f3d

Browse files
committed
including /data/misc/wifi/softap.conf in config pull
- this file holds the SSID and password of your portable Wi-Fi hotspot
1 parent 435a512 commit d222f3d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

doc/AdebarFiles.gv

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ digraph AdebarFiles {
1313
label = "files pulled from the device";
1414

1515
conf [ shape = folder, label = "./conf" ];
16-
conffiles [ shape = Mrecord, fontsize = 11, label = "build.prop|gps.conf|hosts|packages.xml|wpa_supplicant.conf" ];
16+
conffiles [ shape = Mrecord, fontsize = 11, label = "build.prop|gps.conf|hosts|packages.xml|wpa_supplicant.conf|softap.conf" ];
1717
conf -> conffiles;
1818
}
1919

lib/pull_config.lib

+14-2
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,28 @@ getSettings() {
2020
# build.prop
2121
msg="$((adb ${ADBOPTS} pull /system/build.prop "${BUILDPROP}") 2>&1)"
2222
doProgress "- build.prop: $msg" 2
23+
24+
# wpa_supplicant.conf
2325
if [[ ${ROOT_COMPAT} -eq 1 ]]; then
2426
msg="$((adb ${ADBOPTS} shell "su -c 'cat /data/misc/wifi/wpa_supplicant.conf'" > "${CONFDIR}/wpa_supplicant.conf") 2>&1)"
2527
else
2628
msg="$((adb ${ADBOPTS} pull /data/misc/wifi/wpa_supplicant.conf "${CONFDIR}/wpa_supplicant.conf") 2>&1)"
2729
fi
2830
[[ $? -ne 0 ]] && msg=$(ansi_code "${msg}" "red")
2931
[[ -z "$msg" ]] && msg="OK"
30-
31-
# wpa_supplicant.conf, gps.conf, hosts
3232
doProgress "- wpa_supplicant.conf: $msg" 2
33+
34+
# softap.conf
35+
if [[ ${ROOT_COMPAT} -eq 1 ]]; then
36+
msg="$((adb ${ADBOPTS} shell "su -c 'cat /data/misc/wifi/softap.conf'" > "${CONFDIR}/softap.conf") 2>&1)"
37+
else
38+
msg="$((adb ${ADBOPTS} pull /data/misc/wifi/softap.conf "${CONFDIR}/softap.conf") 2>&1)"
39+
fi
40+
[[ $? -ne 0 ]] && msg=$(ansi_code "${msg}" "red")
41+
[[ -z "$msg" ]] && msg="OK"
42+
doProgress "- softap.conf: $msg" 2
43+
44+
# gps.conf, hosts
3345
msg="$((adb ${ADBOPTS} pull /system/etc/gps.conf "${CONFDIR}/gps.conf") 2>&1)"
3446
doProgress "- gps.conf: $msg" 2
3547
msg="$((adb ${ADBOPTS} pull /system/etc/hosts "${CONFDIR}/hosts") 2>&1)"

0 commit comments

Comments
 (0)