当前位置:网站首页>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
测试精讲视频
如果你觉的文章读的不过瘾,可以查看详细的视频教程。
学习路线如下




边栏推荐
- 通过进程PID获取可执行文件路径(QueryFullProcessImageName)
- C language brush questions ~leetcode and simple questions of niuke.com
- Under VC, Unicode and ANSI are converted to each other, cstringw and std:: string are converted to each other
- Popular understanding of ovo and ovr
- Matplotlib drawing label cannot display Chinese problems
- [combinatorial mathematics] binomial theorem and combinatorial identity (binomial theorem | three combinatorial identities | recursive formula 1 | recursive formula 2 | recursive formula 3 Pascal / Ya
- 《微服务设计》读书笔记(上)
- 找映射关系
- Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
- Puppet自动化运维排错案例
猜你喜欢

String functions that you need to know

Redis主从、哨兵、集群模式介绍

Summary of concurrent full knowledge points

Detailed explanation of string function and string function with unlimited length

Tensorflow realizes verification code recognition (I)
![[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller](/img/a4/2156b61fbf50db65fdf59c8f5538f8.png)
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
![[cloud native training camp] module VIII kubernetes life cycle management and service discovery](/img/87/92638402820b32a15383f19f6f8b91.png)
[cloud native training camp] module VIII kubernetes life cycle management and service discovery

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

Popular understanding of decision tree ID3

Seckill system 3- product list and product details
随机推荐
Jvm-04-runtime data area heap, method area
VC下Unicode和ANSI互转,CStringW和std::string互转
从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍
Nppexec get process return code
Halcon与Winform学习第二节
C语言刷题~Leetcode与牛客网简单题
【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器
Unity function - unity offline document download and use
求字符串函数和长度不受限制的字符串函数的详解
Introduction, use and principle of synchronized
Didi off the shelf! Data security is national security
VS2017通过IP调试驱动(双机调试)
Popular understanding of ovo and ovr
Popular understanding of gradient descent
Unity功能——Unity离线文档下载及使用
函数栈帧的创建和销毁
redis缓存穿透,缓存击穿,缓存雪崩解决方案
C language brush questions ~leetcode and simple questions of niuke.com
Markdown file titles are all reduced by one level
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM