Created
November 2, 2019 01:15
-
-
Save yehgdotnet/50271edb73db19d6e9246e5cc18e7a5f to your computer and use it in GitHub Desktop.
Android cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Dumping SQLite | |
sqlite3 [db] ".dump" | |
#### Getting IP address: | |
in Android emulator, run netcfg or ip addr to know the ip address | |
#### Elevating Terminal app to Root Terminal | |
type: su | |
#### Establish ADB connection from host to Android vm | |
adb connect IP:5555 | |
adb devices | |
### Elevate ADB Shell Root access | |
adb shell | |
xx# su | |
xx# id | |
OR | |
adb root | |
adb connect IP:5555 | |
adb shell | |
## Upload busybox-x86 | |
adb shell mkdir /data/busybox/busybox | |
adb push c:\lab-files\busybox-x86 /data/busybox/busybox | |
chmod 755 /data/busybox | |
./busybox --install -s | |
Run linux util like | |
/data/busybox/find / --name xxx | |
## List installed app | |
adb shell pm list packages | findstr "your target app" | |
adb uninstall com.xxx.yyy | |
## Kill app and Clear its application data | |
adb shell pm clear com.xxx.yyy | |
## Kill app | |
adb shell am force-stop com.xxx.yyy | |
## Disable/Enable app | |
adb shell disable/enable com.xxx.yyy | |
## Filtering Logcat | |
adb logcat -d (debug mode) | findstr /v password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment