#!/bin/bash#~/bin/apkuninstaller# if you have more than one devices, # use adbs="adb -s $devce_numberno" to specify itadbs=adb#1. get the app list form devicei=0;for list in `$adbs shell ls -1 /data/data/`do     apklist[$i]=$list;    ((i++));done#2. echo the app list to user selectfor (( i = 0; i < ${#apklist[@]}; i++ )); do    n=$[$i+1]    printf "%3d)" $n    echo " ${apklist[$i]}"done#3. choices and uninstall appuninstall(){    for n in $@; do         echo " Uninstall ${apklist[$[$n-1]]} "        $adbs uninstall ${apklist[$[$n-1]]}    done}read -p ">>What apps you want to uninstall?[Multi-select]: " uninstallList uninstall $uninstallList

#!/bin/bash#~/bin/apkunstallerfor n in $@ ;     do echo "Install $n.." adb install $n done

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 创建第一个".py" 和 ".ipynb" 文件
  2. Python数据类型-List介绍(下)-列表推导式
  3. 以B站C语言视频为基础的课后总结(二)
  4. 51CTO学员PMP学习心得
  5. 2017年文章汇总 - Python数据之道
  6. 程序员如何优雅的排版公众号的内容
  7. 也谈谈我的github之路-写在Github成立十
  8. 浅析Redis 4.0新特性之LazyFree
  9. 一文读懂 TKE 及 Kubernetes 访问权限控
  10. 关于新版Anaconda(v5.1.0)安装后可能出现的