#!/bin/sh
loopDir(){
for file in find *
do
if [ -d $file ]
then
echo "directory [ $file ] "
cd ./$file
loopDir
cd ..
elif [ -f $file ]
then
if [ ${file##*.} = "apk" ]
then
echo "file [ $file ] "
adb install -r $file
fi
fi
done
}
loopDir
保存爲install.sh 放在有apk的文件夾下 終端運行就可以了