Konubinix' opinionated web of thoughts



adb Android

launch activity

am start -n yourpackagename/.activityname


find available activities

adb shell pm list packages -f Then you can use adb pull:

adb pull <APK path from previous command> and then aapt to get the information you want:

aapt dump badging <pulledfile.apk>


example with slightbackup

clk android adb shell pm list packages -f|gi slightba
TMP="$(mktemp -d)"
trap "rm -rf '${TMP}'" 0

cd "${TMP}"

clk android adb pull /data/app/de.shandschuh.slightbackup-AtJUMUgaD889KHasQ8QaKg==/base.apk
aapt dump badging base.apk | gi launchable-activity
/data/app/de.shandschuh.slightbackup-AtJUMUgaD889KHasQ8QaKg==/base.apk: 1 file pulled, 0 skipped. 1.9 MB/s (78433 bytes in 0.040s)
launchable-activity: name='de.shandschuh.slightbackup.BackupActivity'  label='Slight backup' icon=''
clk android adb shell am start -n 'de.shandschuh.slightbackup/.BackupActivity'
Starting: Intent { cmp=de.shandschuh.slightbackup/.BackupActivity }

Notes pointant ici