当前位置:网站首页>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




边栏推荐
- Detailed explanation of four modes of distributed transaction (Seata)
- Visual host system design and development (Halcon WinForm)
- Tensorflow realizes verification code recognition (II)
- Approval process design
- 潘多拉 IOT 开发板学习(HAL 库)—— 实验5 外部中断实验(学习笔记)
- Distributed task scheduling XXL job
- Digital image processing -- popular Canny edge detection
- CString在多线程中的问题
- 整形和浮点型是如何在内存中的存储
- The difference between mutually exclusive objects and critical areas
猜你喜欢

关于网页中的文本选择以及统计选中文本长度

Summary of concurrent full knowledge points

Brush questions -- sword finger offer

Download and install common programs using AUR

Popular understanding of gradient descent

Microservice - fuse hystrix

Seckill system 2 redis solves the problem of distributed session

2022年Q2加密市场投融资报告:GameFi成为投资关键词

Summary of JVM knowledge points

Popular understanding of ovo and ovr
随机推荐
秒殺系統3-商品列錶和商品詳情
How are integer and floating-point types stored in memory
Unityshader - materialcapture material capture effect (Emerald axe)
几种常见IO模型的原理
Srs4.0+obs studio+vlc3 (environment construction and basic use demonstration)
App mobile terminal test [5] file writing and reading
Calibre LVL
Vs2017 is driven by IP debugging (dual machine debugging)
整形和浮点型是如何在内存中的存储
Halcon and WinForm study section 2
Download and install common programs using AUR
Wechat payment -jsapi: code implementation (payment asynchronous callback, Chinese parameter solution)
Visual upper system design and development (Halcon WinForm) -5 camera
子类隐藏父类的同名函数
C语言刷题~Leetcode与牛客网简单题
Visual upper system design and development (Halcon WinForm) -6 Nodes and grids
Microservices Seata distributed transactions
从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍
突破100万,剑指200万!
App移动端测试【3】ADB命令