安卓adb:
Windows版本:https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Mac版本:https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux版本:https://dl.google.com/android/repository/platform-tools-latest-linux.zip
下载安装包后解压到自定义文件夹,然后将安装地址添加到环境变量的path里面
打开电脑的系统设置,找到环境变量,把路径地址添加到path里面,win+r输入:control system,选择高级系统设置,
android四大组件:
1、activity
APP里一切活动都可以认为是一个activity,比如一个页面,一个控件,调用某一个接口等
AndroidManifest.xml:是每个APP里必须要有的一个文件,货物清单,列举APP里面的清单
2、service(后台服务)
3、broadcast receiver 广播接收
举例:手机电量提醒、网络异常、屏幕关闭/点亮
4、centent provider 内容提供
adb install 安装命令:
adb install +安装包路径
如果同时连接了多台手机,必须在命令中指定要在哪台手机上进行安装,使用参数-s参数+手机序列号
adb -s +手机序列号 install +安装包路径
卸载:adb uninstall +包名
adb shell dumpsys window |findstr mCurrentFocus---打开要卸载的应用再执行该命令
例如:来付APP,打开,执行该命令 就可获得包名
如果应用不多,可以使用adb shell pm list package -3,见字识义
adb shell pm list package -3 查询手机上的第三方应用程序
如