How to install android market on emulator for all api#39;s(如何在模拟器上为所有 api 安装 android market)
问题描述
如何在 android 模拟器上安装 android market 和其他 apk.我尝试了一些解决方案,但它们似乎不起作用,或者不清楚.
How can I install android market and other apk's on the android emulator. I tried some solutions, but they don't seem to work, or are unclear.
推荐答案
如上人所说,不可用,但可以从文件资源管理器中提取apk.
As the person above says, it is not available, but you could extract the apk from the file explorer.
我用这个方法在api 4和8上安装market:
I used this method to install market on api 4 and 8:
如果您使用的是 Windows,请将/"更改为",然后键入android"而不是./android"
If you are using windows, change the "/" to "" and just type "android" instead of "./android"
1) go to android sdk path and create a new machine:
* type this in terminal:
cd "/home/<username>/.eclipse/android-sdk/tools"
* then this
./android
* then click on Tools -> Manage AVDs...
* create a new machine
2) start the machine and set the partition size
* go to this path:
cd "/home/<username>/.eclipse/android-sdk/tools"
* open the machine (keep the terminal open)
./emulator @<machine name> -partition-size 96
3) modify some files, root and install apps
* go to this path:
cd "/home/<username>/.eclipse/android-sdk/platform-tools"
* pull the 'build.prop' file in the platform-tools folder
./adb pull /system/build.prop
* remove this line: 'ro.config.nocheckin=yes' and save
* mount the partition to that we can write to it
./adb remount
* replace the edited file
./adb push build.prop /system/build.prop
* install the apps
./adb install "/home/<username>/Emulator files/GoogleServicesFramework.apk"
./adb install "/home/<username>/Emulator files/Gmail.apk"
./adb install "/home/<username>/Emulator files/Vending.apk"
4) root the phone
* go to this path:
cd "/home/<username>/.eclipse/android-sdk/platform-tools"
* mout system files
./adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
* put script for su in system
./adb push "/home/<username>/Emulator files/su" /system/xbin/su
* make system folder writeble
./adb shell chmod 06755 /system
./adb shell chmod 06755 /system/xbin/su
* install super user app to manage permissions
./adb install superuser.apk
5) if apps are not showing in the market:
* go to applications -> manage applications in the emulator
* click on google services framework -> force stop and delete cache
* click on market -> force stop and delete data + cache
* restart device
这篇关于如何在模拟器上为所有 api 安装 android market的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在模拟器上为所有 api 安装 android market


- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01