如何在仿真器上安装安卓市场上所有的API [英] How to install android market on emulator for all api's

查看:97
本文介绍了如何在仿真器上安装安卓市场上所有的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能在Android模拟器安装Android市场和其他的apk。我尝试了一些解决方案,但他们似乎并没有工作,或不明确。

解决方案

由于以上的人说,这是不可用的,但你可以提取文件资源管理器的APK。

我用这个方法在API 4和8安装市场:

  

如果您使用的是Windows,改变/为\,只是式   机器人,而不是./android

  1)进入Android SDK中的路径,并创建一个新的机器:
    *键入此终端:
        CD/home/<username>/.eclipse/android-sdk/tool​​s
    *那么这
        ./android
    *然后点击工具 - &GT;管理AVDS ...
    *创建一个新的机器

2)启动机器并设置分区大小
    *去这个路径:
        CD/home/<username>/.eclipse/android-sdk/tool​​s
    *打开机器(保持终端开放)
        ./emulator @&LT;机器名称&gt; -partition尺寸96

3)修改了一些文件,根和安装应用程序
    *去这个路径:
        CD/home/<username>/.eclipse/android-sdk/platform-tools
    *拉'build.prop文件中的平台工具文件夹
        ./adb拉/system/build.prop
    *删除此行:ro.config.nocheckin = YES'和保存
    *挂载的分区,我们可以写入
        ./adb重新装入
    *替换编辑过的文件
        ./adb推build.prop /system/build.prop
    *安装应用程序
        ./adb安装的/ home /&lt;用户名&GT; /仿真器的文件/ GoogleServicesFramework.apk
        ./adb安装的/ home /&lt;用户名&GT; /仿真器的文件/ Gmail.apk
        ./adb安装的/ home /&lt;用户名&GT; /仿真器的文件/ Vending.apk

4)根电话
    *去这个路径:
        CD/home/<username>/.eclipse/android-sdk/platform-tools
    *城市作战系统文件
        ./adb壳安装邻RW,重新挂载-t YAFFS2的/ dev /块/ mtdblock03 /系统
    *把脚本素系统
        ./adb推的/ home /&lt;用户名&GT; /仿真器的文件/苏/系统/ XBIN /苏
    *使系统文件夹writeble
        ./adb外壳搭配chmod 06755 /系统
        ./adb外壳搭配chmod 06755 /系统/ XBIN /苏
    *安装超级用户的应用程序来管理权限
        ./adb安装superuser.apk

5)如果应用程序没有显示在市场上:
    *去应用程序 - &GT;管理在模拟器中的应用
    *点击谷歌服务框架 - &GT;强制停止并删除缓存
    *点击市场 - &GT;强制停止和删除数据+缓存
    *重启设备
 

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.

解决方案

As the person above says, it is not available, but you could extract the apk from the file explorer.

I used this method to install market on api 4 and 8:

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆