Android 模拟器应用技巧
如果我们想对
Android 操作系统进行相应改变的换,需要通过模拟器的应用来进行相
关操作。在这里就先为大家介绍一下有关
Android 模拟器应用技巧,让大家对这一模拟器有
一个初步的认识。
1. 在 Android 模拟器上安装和卸载 APK 包
1
adb install [-l] [-r] < file> - push this package
file to the device and install it ('-l' means forward-lock the app) ('-r' means
reinstall the app, keeping its data)
2
adb uninstall [-k] < package> - remove this
app package from the device ('-k' means keep the data and cache directories)
安装
:
3
adb install filename.apk D:\android-sdk\tools>adb install filename.apk
4
* daemon not running. starting it now * * daemon started successfully *
5
347 KB/s (111196 bytes in 0.312s) pkg: /data/local/tmp/filename.apk
6
Success
卸载
:
7
adb uninstall filename.apk
或者
8
adb shell rm data/app/filename.apk
2. 在 Android 模拟器上使用 sd card
生成
sdcard 镜像文件:
9
mksdcard: create a blank FAT32 image to be
used with the Android emulator usage: mksdcard [-l label] < size> < file>
10
if < size> is a simple integer,
it specifies a size in bytes if < size> is an integer followed by 'K',
it specifies a size in KiB
11
if < size> is an integer followed by 'M',
it specifies a size in MiB D:\android-sdk\tools>mksdcard.exe -l
sdcard 2048M sdcard.img