Update ADB related commands
This commit is contained in:
parent
4bfab68b72
commit
5ba41b3e9e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user