Android模拟器应用技巧详细介绍
如果我们想对Android操作系统进行相应改变的换,需要通过模拟器的应用来进行相关操作。在这里就先为大家介绍一下有关Android模拟器应用技巧,让大家对这一模拟器有一个初步的认识。
1. 在Android模拟器上安装和卸载APK包
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) adb uninstall [-k] < package> - remove this app package from the device ('-k' means keep the data and cache directories)
安装:
adb install filename.apk D:\android-sdk\tools>adb install filename.apk * daemon not running. starting it now * * daemon started successfully * 347 KB/s (111196 bytes in 0.312s) pkg: /data/local/tmp/filename.apk Success
卸载:
adb uninstall filename.apk
或者
adb shell rm data/app/filename.apk
2. 在Android模拟器上使用sd card
生成sdcard镜像文件:
mksdcard: create a blank FAT32 image to be used with the Android emulator usage: mksdcard [-l label] < size> < file> 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 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
启动模拟器:emulator -sdcard sdcard镜像文件
例如: emulator -sdcard sdcard.img
将资源放入到sdcard里面: adb push source-file /sdcard
例如:
D:\android-sdk\tools>adb push NOTICE.txt /sdcard 1088 KB/s (156733 bytes in 0.140s)
相关推荐
yangChong 2020-08-03
zyygive 2020-07-29
yangChong 2020-07-29
绿豆饼 2020-07-28
adb shell cd system/app rm *.apk21. 获取管理员权限: adb root22. 启动Activity: adb shell am start -n 包名/包名+类名。
蓝天梦 2020-07-28
rookieding 2020-07-26
zyygive 2020-06-11
zyygive 2020-06-09
安辉 2020-05-27
KarlMarxs 2020-05-15
xilove0 2020-04-20
laijunfeng 2020-04-07
KarlMarxs 2020-02-23
Soinice 2020-02-18
zyygive 2020-02-17
ProgrammerFan00 2020-02-16
Ubuntu黑客 2020-02-14
89590098 2020-02-01