栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何在模拟器上为所有API安装Android Market

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何在模拟器上为所有API安装Android Market

正如上面的人所述,它不可用,但是您可以从文件资源管理器中提取apk。

我使用此方法在api 4和api 8上安装了market:

如果您使用的是Windows,请将“ /”更改为“ ”,然后键入“ android”而不是“ ./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 machine2) 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 963) 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.apk5) 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


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/573970.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号