. /tmp/backuptool.functions
else
S=/system
+ # _____________________________________________________________________________________________________________________
+ # Detect A/B partition layout https://source.android.com/devices/tech/ota/ab_updates
+ # and system-as-root https://source.android.com/devices/bootloader/system-as-root
+ if [ -n "$(cat /proc/cmdline | grep slot_suffix)" ];
+ then
+ device_abpartition=true
+ S=/system/system
+ elif [ -n "$(cat /proc/mounts | grep /system_root)" ];
+ then
+ device_abpartition=true
+ S=/system_root/system
+ else
+ device_abpartition=false
+ S=/system
+ fi
fi
# path is needed when running from recovery (at install)
. /tmp/backuptool.functions
else
S=/system
+ # _____________________________________________________________________________________________________________________
+ # Detect A/B partition layout https://source.android.com/devices/tech/ota/ab_updates
+ # and system-as-root https://source.android.com/devices/bootloader/system-as-root
+ if [ -n "$(cat /proc/cmdline | grep slot_suffix)" ];
+ then
+ device_abpartition=true
+ S=/system/system
+ elif [ -n "$(cat /proc/mounts | grep /system_root)" ];
+ then
+ device_abpartition=true
+ S=/system_root/system
+ else
+ device_abpartition=false
+ S=/system
+ fi
fi
# path is needed when running from recovery (at install)
. /tmp/backuptool.functions
else
S=/system
+ # _____________________________________________________________________________________________________________________
+ # Detect A/B partition layout https://source.android.com/devices/tech/ota/ab_updates
+ # and system-as-root https://source.android.com/devices/bootloader/system-as-root
+ if [ -n "$(cat /proc/cmdline | grep slot_suffix)" ];
+ then
+ device_abpartition=true
+ S=/system/system
+ elif [ -n "$(cat /proc/mounts | grep /system_root)" ];
+ then
+ device_abpartition=true
+ S=/system_root/system
+ else
+ device_abpartition=false
+ S=/system
+ fi
fi
# path is needed when running from recovery (at install)
export PATH=/system/bin
-iptables -t nat -A OUTPUT ! -o tun0 -p udp --dport 53 -j DNAT --to-destination 8.8.8.8
-iptables -t nat -A OUTPUT ! -o tun0 -p tcp --dport 53 -j DNAT --to-destination 8.8.8.8
+iptables -t nat -A OUTPUT ! -o tun0 -p udp --dport 53 -j DNAT --to-destination 9.9.9.9
+iptables -t nat -A OUTPUT ! -o tun0 -p tcp --dport 53 -j DNAT --to-destination 9.9.9.9