首页 > 系统 > Android > 正文

在Android 模拟器上安装和卸载APK包的方法

2020-04-11 12:20:08
字体:
来源:转载
供稿:网友

模拟器(emulator.exe)

可以在 Android SDK 的安装目录下的 tools 文件夹找到运行文件(F:GPhoneandroid-sdk-windows-1.0_r1 ools),双击运行模拟器。

安装 APK 包

adb install [-l] [-r]

- push this package file to the device and install it
<'-l' means forward-lock the app>
<'-r' means reinstall the app, keeping its data>

例如:adb install F:GphoneMyCodeHelloAndroidinHelloAndroid.apk

查看安装位置

adb shell

#cd data

#cd app

#ls

显示已经安装的 APK 包

com.android.hello.apk

卸载 APK 包

adb shell

#cd data

#cd app

#ls

# rm com.android.hello.apk

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表