当前位置:网站首页>App移动端测试【4】apk的操纵
App移动端测试【4】apk的操纵
2022-07-03 15:30:00 【Leo_Eagle】
apk的安装与卸载
1. 安装apk
1.1 默认安装
C:\Users\Leo>adb connect 127.0.0.1:62001
already connected to 127.0.0.1:62001
C:\Users\Leo>adb install G:\weixin703android1400.apk
Performing Push Install
[ 34%] /data/local/tmp/weixin703android1400.apk
1.2 覆盖安装
C:\Users\Leo>adb install -r G:\weixin703android1400.apk
1.3 指定设备安装(覆盖)
C:\Users\Leo>adb –s 127.0.0.1:62001 install -r G:\weixin703android1400.apk
2. 卸载apk
注意:卸载apk需要进入到shell里面(adb shell)
2.1 首先进入到/data/app/下。
C:\Users\Leo>adb shell
[email protected]:/ # cd /data/app/
2.2 执行删除命令(退出shell模式,在cmd下通过adb uninstall删除apk)
adb uninstall
C:\Users\Leo>adb shell
[email protected]:/ # cd /data/app/
[email protected]:/data/app # ls
com.tencent.mm-2
com.tencent.mobileqq-1
[email protected]:/data/app # adb uninstall com.tencent.mm
/system/bin/sh: adb: not found
C:\Users\Leo>adb uninstall com.tencent.mm
格式:
adb uninstall com.tencent.mm
adb uninstall | -k com.tencent.mm 说明:-k卸载软件但是配置及缓存文件保存。
注意:
在/data/app/目录下查询的包末尾都带数字,但是adb uninstall *** 的时候末尾的『-1或-n』等要抹掉。
如adb uninstall com.tencent.mm
com.tencent.mm-2
com.tencent.mobileqq-1
3. 查看设备上面的安装应用
C:\Users\Leo>adb -s 127.0.0.1:62001 shell
[email protected]:/ # pm list package
或
C:\Users\Leo>adb shell pm list package
测试精讲视频
如果你觉的文章读的不过瘾,可以查看详细的视频教程。
学习路线如下




边栏推荐
- The markdown file obtains the pictures of the network and stores them locally and modifies the URL
- 《微服务设计》读书笔记(下)
- Detailed comments on MapReduce instance code on the official website
- Popular understanding of linear regression (I)
- 北京共有产权房出租新规实施的租赁案例
- 在MapReduce中利用MultipleOutputs输出多个文件
- Introduction, use and principle of synchronized
- Backtracking method to solve batch job scheduling problem
- redis单线程问题强制梳理门外汉扫盲
- qt使用QZxing生成二维码
猜你喜欢

视觉上位系统设计开发(halcon-winform)-4.通信管理

Kubernetes advanced training camp pod Foundation

C language brush questions ~leetcode and simple questions of niuke.com
![MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)](/img/cd/2e4f5884d034ff704809f476bda288.png)
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)

Tensorflow realizes verification code recognition (I)

Jvm-06-execution engine

Halcon and WinForm study section 1

视觉上位系统设计开发(halcon-winform)-5.相机

秒杀系统2-Redis解决分布式Session问题

需要知道的字符串函数
随机推荐
使用AUR下载并安装常用程序
秒殺系統3-商品列錶和商品詳情
Enable multi-threaded download of chrome and edge browsers
Using Tengine to solve the session problem of load balancing
驱动与应用程序通信
秒杀系统3-商品列表和商品详情
Detailed explanation of string function and string function with unlimited length
PyTorch crop images differentiablly
Puppet automatic operation and maintenance troubleshooting cases
如何使用 @NotNull等注解校验 并全局异常处理
Stress test WebService with JMeter
C语言刷题~Leetcode与牛客网简单题
[combinatorial mathematics] binomial theorem and combinatorial identity (binomial theorem | three combinatorial identities | recursive formula 1 | recursive formula 2 | recursive formula 3 Pascal / Ya
Halcon与Winform学习第一节
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
Tensorflow realizes verification code recognition (I)
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
The method of parameter estimation of user-defined function in MATLAB
[cloud native training camp] module VIII kubernetes life cycle management and service discovery
What is machine reading comprehension? What are the applications? Finally someone made it clear