Useful Commands
Last updated
Last updated
List packages inside the device: adb shell cmd package list packages
Get APK from package:
Set Proxy: adb shell settings put global http_proxy 192.168.0.15:5555
Disable Proxy: adb shell settings put global http_proxy :0
See shared Preferenses: adb shell run-as com.moofwd.mooestrouaveiro cat /data/data/com.moofwd.mooestrouaveiro/shared_prefs/com.moofwd.mooestrouaveiro.xml
See logs(If enabled): adb logcat --pid=$(adb shell pidof com.moofwd.mooestrouaveiro)
Setup app to accept burp certificate:
create a file: ~/app/res/xml/network_security_config.xml
add the following info to the file:
Add android:networkSecurityConfig="@xml/network_security_config" to AndroidManifest.xml.
Unpack apk: apktool d -s name.apk -o target_dir
Repack apk:
Backup(If package not debuggable we can try):
adb backup -f <name>.ab -noapk <package>
java -jar abe.jar unpack ~/backup.ab ~/backup.tar ()
Unpack apk: apktool d -s name.apk -o target_dir