2022-06-04 20:25:45 +00:00
|
|
|
### ADB
|
|
|
|
# mnemonic [AD]b [U]nistall
|
|
|
|
# install apk via adb
|
|
|
|
|
|
|
|
apk=${1}
|
|
|
|
|
|
|
|
if [[ -z $apk ]]; then
|
2023-01-03 03:48:03 +00:00
|
|
|
apk=$(adb shell cmd package list packages | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:uninstall]'" | sed 's/package://g')
|
2022-06-04 20:25:45 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $apk ]]; then
|
|
|
|
echo "Trying $apk"
|
|
|
|
adb uninstall $apk
|
|
|
|
fi
|