Skip to content

Commit a9da0ef

Browse files
committed
2014-10-08
1 parent de8bab0 commit a9da0ef

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎shell/batch_uninstall.sh‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
adb shell wait-for-device
4+
echo start remove...
5+
6+
for package in `adb shell pm list package -3 | cut -d : -f 2 | tr -d "\r"`
7+
do
8+
echo remove $package
9+
adb uninstall $package
10+
done

‎shell/screenshot.sh‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
#截取设备屏幕,将解图保存至当前目录下的screens文件夹
4+
5+
time=`adb shell date +%F_%H:%M:%S | tr -d "\r"`
6+
adb shell screencap -p data/local/tmp/$time
7+
8+
dir=screens
9+
10+
if [ ! -d "$dir" ]
11+
then
12+
mkdir $dir
13+
fi
14+
15+
adb pull data/local/tmp/$time $dir/${time}".png"

0 commit comments

Comments
 (0)