chore: wrap su -c commands in quotes for consistency and safety
Signed-off-by: NgankBakaa <ngankbakaa@gmail.com>
This commit is contained in:
parent
b2466fc2d5
commit
13eb89c55f
1 changed files with 2 additions and 2 deletions
|
|
@ -316,11 +316,11 @@ do
|
|||
adb start-server
|
||||
adb install 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk'
|
||||
echo "ATTENTION : Network traffic will be redirected to [medium.com] for 20 seconds !!!"
|
||||
adb shell su -c iptables -t nat -A OUTPUT -p tcp -d 0/0 -j DNAT --to-destination 162.159.153.4:443
|
||||
adb shell su -c 'iptables -t nat -A OUTPUT -p tcp -d 0/0 -j DNAT --to-destination 162.159.153.4:443'
|
||||
adb shell am start -n com.mbmobile/io.flutter.plugins.MainActivity
|
||||
sleep 20
|
||||
echo "Restoring network traffic"
|
||||
adb shell su -c iptables -t nat -F OUTPUT
|
||||
adb shell su -c 'iptables -t nat -F OUTPUT'
|
||||
echo "Press [Try again] after got 1005/1007 error on MB, so it's can skip device not secure dialog !"
|
||||
else
|
||||
echo "[MBCP_Flutter_SelfPatched.apk] not found, cannot continue !"
|
||||
|
|
|
|||
Loading…
Reference in a new issue