This is an automated script for install BurpSuite certificate in Android devices.
alias adb_set_proxy="adb -s <deviceIP>:5555 shell settings put global http_proxy $(ip -o -4 addr show <interfaceNetwork> | awk '{print $4}' | sed 's/\/.*//g'):8080"
alias adb_unset_proxy='adb -s <deviceIP> shell settings put global http_proxy :0'
- deviceIP: Android IP Address.
- interfaceNetwork: Network interface where your local IPv4 address is located.