Update ADB related commands

This commit is contained in:
Anton Zadvorny 2023-01-03 06:48:03 +03:00
parent 4bfab68b72
commit 5ba41b3e9e
3 changed files with 5 additions and 5 deletions

View File

@ -5,10 +5,10 @@
apk=${1}
if [[ -z $apk ]]; then
apk=$(find . -maxdepth 5 -type f -name '*.apk' ! -iname ".*" | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:install]'" | awk '{print $1}')
apk=$(find . -maxdepth 5 -type f -name '*.apk' ! -iname ".*" | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:install]'")
fi
if [[ $apk ]]; then
echo "Trying $apk"
adb install -g -r $apk
adb install -g -r "$apk"
fi

View File

@ -5,10 +5,10 @@
obbdir=${1}
if [[ -z $obbdir ]]; then
obbdir=$(find . -maxdepth 5 -name '*.obb' ! -iname ".*" -exec dirname {} \; | sort -u | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:push]'" | awk '{print $1}')
obbdir=$(find . -maxdepth 5 -name '*.obb' ! -iname ".*" -exec dirname {} \; | sort -u | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:push]'")
fi
if [[ $obbdir ]]; then
echo "Trying $obbdir"
adb push $obbdir /sdcard/Android/obb/
adb push "$obbdir" /sdcard/Android/obb/
fi

View File

@ -5,7 +5,7 @@
apk=${1}
if [[ -z $apk ]]; then
apk=$(adb shell cmd package list packages | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:uninstall]'" | awk '{print $1}' | sed 's/package://g')
apk=$(adb shell cmd package list packages | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:uninstall]'" | sed 's/package://g')
fi
if [[ $apk ]]; then