Android General code

常用的命令

code 说明
adb connect 192.168.2.123 连接到Android设备
adb disconnect 192.168.2.123 断开Android设备
adb logcat -v time >(path) 导出设备logo
adb pull /data/anr/traces.txt (path) 导出设备logo
adb -s 192.168.2.123 logcat -v time >(path) 导出连接到的设备logo
adb -s 192.168.2.95 pull /sdcard/package.log /Users/wangtao/Desktop/respond.log 导出设备数据到文件
adb -s 127.0.0.1 shell input keyevent 82 adb 给app发送按键命令
adb shell monkey -p com.micro.player -p com.micro.player --throttle 100 -v 500000000 monkey 间隔 100
adb shell ps | grep monkey 查找当前的monkey进程
adb shell kill 13339 关闭当前的monkey进程
adb shell monkey -p com.ftxjoy.cibn_tvplayer -c android.intent.category.LAUNCHER 1 adb 启动apk
adb -s 192.168.2.163 push /Users/xx/Downloads/video.m2ts /storage/emulated/0 adb push 文件
adb -s 192.168.2.163 shell am start 包名/MainActivity路径 adb 启动app
adb -s 192.168.2.163 shell am force-stop 包名 adb 停止app
aapt dump badging apk路径 adb 反编译apk
1. 打包上传到svn

assembleAAARelease 中的AAA 表示 productFlavors里面的
app\release\V1.3.3\%1\ 表示svn的本地路径

gradlew assembleAAARelease
move app\build\outputs\apk\%1\release\*.apk app\release\V1.3.3\%1\
svn add app\release\V1.3.3\%1\*.apk
svn commit -m "add apk file : %1" 
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,800评论 19 139
  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 175,901评论 25 709
  • 用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你...
    hw1212阅读 14,501评论 2 59
  • 最近学习鸟哥的Linux私房菜:基础学习篇(第四版),按鸟哥的教程目录,自己也写一系列博客总结自己认为重要知识点。...
    DeppWang阅读 4,151评论 0 6
  • 大学毕业那年,每天上下班都需要在同一个地方换乘公交车,在等车的位置,马路对面就是一栋高楼,印象中有二十几层。 开始...
    风页数阅读 1,417评论 0 0