当前位置: 首页 > news >正文

[安卓按键精灵辅助工具]一些安卓端可以用的雷电模拟器adb命令

在雷电论坛上看到很多adb命令,不过并没有针对安卓按键进行处理,这里做了一下测试,把能用在安卓按键上的adb命令整理出来。

调用adb命令使用的山海插件中的Execute 执行shell命令

adb命令源码如下:
Import "shanhai.lua"
shanhai.Execute ("setprop phone.imei 865166023949731")
/*
shanhai.execute("date 032114392017.22 set") 修改本地时间
shanhai.execute("wm size 720x1280") //修改分辨率
shanhai.Execute ("setprop call.keyboard back") //keypress
shanhai.Execute ("setprop call.reboot com.tencent.mm") //重启模拟器,启动指定包名
shanhai.Execute ("setprop call.input 文字") //输入文字,支持中文
shanhai.Execute ("setprop call.network offline") //断网 按键助手会断开
ShanHai.execute("settings put global http_proxy 115.212.127.23:4274") //ip代理
shanhai.execute("settings delete global global_http_proxy_host") //清除ip代理
shanhai.Execute ("setprop call.network connect") //联网
shanhai.Execute ("setprop call.shake null") //摇一摇 测试微信可用
shanhai.Execute ("setprop call.locate 117,29") //修改定位
shanhai.Execute ("am start -n com.tencent.mm/.ui.LauncherUI") //打开包名组件
shanhai.Execute ("am force-stop com.tencent.mm") //关闭软件 包名
shanhai.Execute ("input text 123") //输入文字 不支持中文
shanhai.Execute ("input tap 119 203") //点击坐标
shanhai.Execute ("screencap -p /sdcard/pictures/screencap.png") //截屏
shanhai.Execute ("setprop phone.imei 865166023949731") //修改imei测试无效果,只针对getprop有效
TracePrint shanhai.Execute ("getprop phone.imei") //获取imei
shanhai.Execute ("setprop phone.imsi 460000000000000") //imsi 有效
TracePrint shanhai.Execute ("getprop phone.imsi") //获取imsi
shanhai.Execute ("setprop phone.simserial 89860000000000000000") //修改sim卡id号
TracePrint shanhai.Execute ("getprop phone.simserial") //获取手机SIM卡id
shanhai.Execute ("setprop phone.linenum 13800000000") //设置手机号(重启后自动回复原来的)
traceprint shanhai.Execute ("getprop phone.linenum") //获取手机号
shanhai.Execute ("setprop ro.product.manufacturer iPhone") //设置手机品牌 (重启后自动回复原来的)
TracePrint shanhai.Execute ("getprop ro.product.manufacturer") //获取手机品牌
shanhai.Execute ("setprop ro.product.model iPhone12") //设置手机型号 (重启后自动回复原来的)
TracePrint shanhai.Execute ("getprop ro.product.model") //获取手机型号
shanhai.Execute ("pm install /sdcard/pictures/com.chiachiplee_1.apk") //安装app install 安装包路径
shanhai.Execute ("pm uninstall com.chiachiplee") //卸载APP uninstall 包名
shanhai.Execute ("pm clear com.chiachiplee") //清除指定app 数据
TracePrint shanhai.Execute ("pm path com.tencent.mm") //获取包名对应的APK路径
TracePrint shanhai.Execute ("pm list packages") //获取所有包名
TracePrint shanhai.Execute ("pm list packages -f") //获取模拟器所有包名并且包括APK路径
TracePrint shanhai.Execute ("getprop phone.androidid") //获取安卓id
TracePrint shanhai.Execute ("getprop ro.build.date.utc") //获取时间戳
TracePrint shanhai.Execute ("getprop ro.build.date") //获取日期
TracePrint shanhai.Execute ("getprop keyguard.no_require_sim") //获取sim卡1的状态
shanhai.execute ("service call statusbar 1") //打开通知栏
shanhai.execute ("service call statusbar 2") //关闭通知栏
shanhai.execute ("mv ")
*/

TracePrint shanhai.GetTopActivity()
TracePrint shanhai.Execute ("getprop phone.net_operatorname")

相关文章:

  • 关于安卓dialogFragment中,EditText无法删除文字的问题
  • Android NTP自动同步时间机制
  • 展开说说Android之Glide详解_使用篇
  • DRG支付场景模拟器扩展分析:技术实现与应用价值
  • 算法导论第三章:数据结构艺术与高效实现
  • 为什么TCP有粘包问题,而UDP没有
  • 前端导出PDF(适配ios Safari浏览器)
  • 力扣HOT100之技巧:136. 只出现一次的数字
  • opencl的简单介绍以及c++实例
  • 爱普生FC-135R晶振在广域网LoRa设备中的应用
  • openEuler 虚拟机中 Shell 脚本实现自动化备份与清理实践
  • Tomcat线程模型
  • 单链表经典算法
  • nt!CcGetDirtyPages函数分析
  • 软件测试相关问题
  • 蓝牙无线串口入门使用教程(以大夏龙雀 WF24 和 BT36 为例)
  • PCI总线概述
  • 【开源工具】:基于PyQt5的智能网络驱动器映射工具开发全流程(附源码)
  • Java 大视界——Java大数据在智能安防视频监控中的异常事件快速响应与处理机制
  • 动态规划2——路径动态规划
  • 整站网站优化/培训机构网站制作
  • 阿里云 wordpress 邮件/连云港网站seo
  • wordpress类似头条主题/百度官方优化软件
  • 网站开发用什么技术asp/seo搜索优化招聘
  • 视频制作价格明细/优化大师手机版
  • 生物科技 网站模板下载/什么是互联网销售