Shell脚本:

#!/bin/bashdevices=( $(adb devices|grep device$|awk '{print $1}'|xargs echo) )case ${#devices[@]} in    0 )        echo "can't found a android device!"        ;;    1 )        serial=$devices        ;;    * )        select serial in ${devices[@]}; do            break;        done        ;;esacif [[ -z $serial ]]; then    echo "Not select a android device, exit not"    exit 1fiadb -s $serial shell echo OK

更多相关文章

  1. qt for android
  2. FFmpeg交叉编译
  3. Android(安卓)Bluetooth初始化流程
  4. [init.rc] android init.rc 总结
  5. Android平台开发-3G function porting-3G功能移植
  6. Android多渠道打包(五):360多渠道打包+
  7. 实力解剖一枚挖矿脚本,风骚操作亮瞎双眼
  8. MySQL 常用脚本
  9. 23 个非常实用的 Shell 拿来就用脚本实例

随机推荐

  1. Android(安卓)Matrix
  2. Android如何下抓取tcp数据包
  3. Android(安卓)4编程入门经典
  4. Android获取当前位置经纬度(非第三方地图
  5. Android分享文稿 ( by quqi99 )
  6. android中ContactsContract获取联系人的
  7. Android学习笔记(二)开发环境的安装
  8. Android之网络请求11————Retrofit的
  9. Andriod-View绘制流程
  10. Android版本更新实现