博客
关于我
06-adb命令之实用功能
阅读量:353 次
发布时间:2019-03-04

本文共 546 字,大约阅读时间需要 1 分钟。

目录


实用功能

   截屏

  • 截图保存到电脑:adb exec-out screencap -p > sc.png

  • 保存到设备里:adb shell screencap -p /sdcard/sc.png

   录制屏幕

  • adb shell screenrecord --time-limit 5 /sdcard/filename.mp4   最长180s

   查看连接过的 WiFi 密码

  • adb shell  -->  su  -->  cat /data/misc/wifi/*.conf  :注,需求root权限

   设置系统日期和时间

  • adb shell -->  su  -->  date -s  20160823.131500  :将系统日期和时间更改为 2016 年 08 月 23 日 13 点 15 分 00 秒,需求root  权限

   重启手机

  • adb  reboot

   检测设备是否已 root

  • adb shell  -->  su

   开启/关闭 WiFi

  • 开启 WiFi:adb root  --> adb shell svc enable

  • 关闭 WiFi:adb root  --> adb shell svc wifi disable 
  •   若执行成功,输出为空;若未取得 root 权限执行此命令,将执行失败,输出 Killed

 

 

 

 

 

转载地址:http://mule.baihongyu.com/

你可能感兴趣的文章
Netty:ChannelPipeline和ChannelHandler为什么会鬼混在一起?
查看>>
Netty:原理架构解析
查看>>
Network Dissection:Quantifying Interpretability of Deep Visual Representations(深层视觉表征的量化解释)
查看>>
Network Sniffer and Connection Analyzer
查看>>
Network 灰鸽宝典【目录】
查看>>
Network-Emulator Network-Emulator-Toolkit网络模拟器使用
查看>>
Networkx写入Shape文件
查看>>
NetworkX系列教程(11)-graph和其他数据格式转换
查看>>
Networkx读取军械调查-ITN综合传输网络?/读取GML文件
查看>>
NetworkX:是否为每个节点添加超链接?
查看>>
network小学习
查看>>
Netwox网络工具使用详解
查看>>
Net与Flex入门
查看>>
Net任意String格式转换为DateTime类型
查看>>
net包之IPConn
查看>>
net发布的dll方法和类显示注释信息(字段说明信息)[图解]
查看>>
Net和T-sql中的日期函数操作
查看>>
Net处理html页面元素工具类(HtmlAgilityPack.dll)的使用
查看>>
Net操作Excel(终极方法NPOI)
查看>>
Net操作配置文件(Web.config|App.config)通用类
查看>>