Update ADB related commands
This commit is contained in:
parent
4bfab68b72
commit
5ba41b3e9e
@ -5,10 +5,10 @@
|
|||||||
apk=${1}
|
apk=${1}
|
||||||
|
|
||||||
if [[ -z $apk ]]; then
|
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
|
fi
|
||||||
|
|
||||||
if [[ $apk ]]; then
|
if [[ $apk ]]; then
|
||||||
echo "Trying $apk"
|
echo "Trying $apk"
|
||||||
adb install -g -r $apk
|
adb install -g -r "$apk"
|
||||||
fi
|
fi
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
obbdir=${1}
|
obbdir=${1}
|
||||||
|
|
||||||
if [[ -z $obbdir ]]; then
|
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
|
fi
|
||||||
|
|
||||||
if [[ $obbdir ]]; then
|
if [[ $obbdir ]]; then
|
||||||
echo "Trying $obbdir"
|
echo "Trying $obbdir"
|
||||||
adb push $obbdir /sdcard/Android/obb/
|
adb push "$obbdir" /sdcard/Android/obb/
|
||||||
fi
|
fi
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
apk=${1}
|
apk=${1}
|
||||||
|
|
||||||
if [[ -z $apk ]]; then
|
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
|
fi
|
||||||
|
|
||||||
if [[ $apk ]]; then
|
if [[ $apk ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user