android Read-Only file system

Enable ‘Unknown sources’ under Settings > Security

adb shell settings put global verifier_verify_adb_installs 0

mount -o rw,remount /system

openssl x509 -subject_hash_old -in $file > $hash_number

mv /sdcard/ca.file /system/etc/security/cacerts/$hash_number.0

adb shell am force-stop $package_name

iptables -t nat -A OUTPUT -d 0.0.0.0/0 -p tcp -j DNAT –to 192.168.20.21

iptables -t nat -D OUTPUT -d 0.0.0.0/0 -p tcp -j DNAT –to 192.168.20.21