当前位置:网站首页>App mobile terminal test [4] APK operation
App mobile terminal test [4] APK operation
2022-07-03 15:52:00 【Leo_ Eagle】
apk Installation and uninstallation of
1. install apk
1.1 Default installation
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 Overlay installation
C:\Users\Leo>adb install -r G:\weixin703android1400.apk
1.3 Specify device installation ( Cover )
C:\Users\Leo>adb –s 127.0.0.1:62001 install -r G:\weixin703android1400.apk
2. uninstall apk
Be careful : uninstall apk Need to enter into shell Inside (adb shell)
2.1 First go to /data/app/ Next .
C:\Users\Leo>adb shell
[email protected]:/ # cd /data/app/
2.2 Execute delete command ( sign out shell Pattern , stay cmd Pass through adb uninstall Delete 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
Format :
adb uninstall com.tencent.mm
adb uninstall | -k com.tencent.mm explain :-k Uninstall the software but save the configuration and cache files .
Be careful :
stay /data/app/ All packages queried under the directory have numbers at the end , however adb uninstall *** At the end of 『-1 or -n』 Wait to erase .
Such as adb uninstall com.tencent.mm
com.tencent.mm-2
com.tencent.mobileqq-1
3. Check the installed applications on the device
C:\Users\Leo>adb -s 127.0.0.1:62001 shell
[email protected]:/ # pm list package
or
C:\Users\Leo>adb shell pm list package
Test intensive video
If you don't find your article enjoyable , You can see the detailed video tutorial .
《 Necessary skills for Mobile Testing 》
UI automated testing :Selenium3 automated testing
【 Test the full series of video courses 】
The learning route is as follows
边栏推荐
- Popular understanding of random forest
- XWiki Installation Tips
- 坚持输出需要不断学习
- 请做好3年内随时失业的准备?
- Tensorflow realizes verification code recognition (II)
- Driver and application communication
- Jvm-08-garbage collector
- Wechat payment -jsapi: code implementation (payment asynchronous callback, Chinese parameter solution)
- win32创建窗口及按钮(轻量级)
- Please be prepared to lose your job at any time within 3 years?
猜你喜欢
Microservices Seata distributed transactions
秒殺系統3-商品列錶和商品詳情
半监督学习
秒杀系统3-商品列表和商品详情
Wechat payment -jsapi: code implementation (payment asynchronous callback, Chinese parameter solution)
[系统安全] 四十三.Powershell恶意代码检测系列 (5)抽象语法树自动提取万字详解
GCC cannot find the library file after specifying the link library path
使用AUR下载并安装常用程序
Introduction series of software reverse cracking (1) - common configurations and function windows of xdbg32/64
从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍
随机推荐
Detailed pointer advanced 1
Persisting in output requires continuous learning
Go language self-study series | golang switch statement
The wonderful use of do{}while()
Jvm-05-object, direct memory, string constant pool
Visual upper system design and development (Halcon WinForm) -1 Process node design
Detailed explanation of four modes of distributed transaction (Seata)
App移动端测试【3】ADB命令
Brush questions -- sword finger offer
Redis在Windows以及Linux系统下的安装
App移动端测试【4】apk的操纵
Secsha system 1- login function
Final review points of human-computer interaction
如何使用 @NotNull等注解校验 并全局异常处理
从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍
Visual host system design and development (Halcon WinForm)
潘多拉 IOT 开发板学习(HAL 库)—— 实验5 外部中断实验(学习笔记)
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
Unity功能——Unity离线文档下载及使用
Reentrantlock usage and source code analysis