数据库、monkey、adb 常用命令

数据库总结

  • 创建数据库  
    create database database-name
  • 删除数据库
    drop database dbname
  • 创建一个新表
    create table tabname
  • 删除一个表
    drop table tabname
  • 查询所有数据
    select * from tbl_usr_member
  • 条件查询语句
    select * from tbl_usr_imei where company=“大健康总公司”    查询大健康总公司的IMEI号  PS:引号用英语的
  • 多条件并关系查询语句
    select * from tbl_usr_imei where company="大健康总公司" and imei="864631020533333"   查询大健康总公司IMEI号864631020533333的用户
  • 多条件或关系查询语句
    select * from tbl_usr_imei where company="大健康总公司" or  company="斯福德"  查询大健康总公司和斯福德的IMEI号
    select * from tbl_usr_imei where company="大健康总公司,斯福德" 
  • monkey常用命令

  • 1.--ignore-security-exception 跳过崩溃,继续运行monkey

    2.-v增加反馈信息的详细级别

    3.-p 指定一个或多个包

  • 1.adb shell monkey -p com.safety.healthspeaker -v 1000   让健康广播进行1000个动作,反馈一级详细信息。

    2.adb shell monkey -p com.safety.act -v 1000   让乐简进行1000个动作,反馈一级详细信息。

    3.adb shell monkey -p com.safety.healthspeaker -p com.safety.act -p com.android.providers.telephony -p  com.android.mms -p  com.android.settings -p com.android.gallery -p com.android.camera --throttle 300 -s 900 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes -v -v -v 100000 >monkey.txt

    乐简和手机常用功能跑100000次,日志以monkey。TXT

    4.adb shell monkey -p com.safety.healthspeaker -p com.safety.act -p com.android.settings -p --throttle 300 -s 900 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes --pct-montion-100 -v -v -v 10 >monkey111.txt

    工作中涉及到的adb命令

  • 1.打开任务管理器:devmgmt.msc
    2.查看当前手机运行的进程:ps|grep -v system|grep -v root
    3.利用adb命令导出文件:adb pull /sdcard/Safety/Desktop/error_2017-02-08_06-10-45.log D:\
    4.adb shell
    5.cd /sdcard/Safety/Desktop/lejian/statistics切换到sdcard/Safety/Desktop/lejian/statistics目录下
    6.tail -f 2017-2-14.txt  流逝显示
    7.tail -数字 2017-2-14.txt 显示最后X行

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值