当前位置: 首页 > 面试题库 >

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

荀学文
2023-03-14
问题内容

如何在android模拟器上安装android market和其他apk。我尝试了一些解决方案,但它们似乎不起作用或不清楚。


问题答案:

正如上面的人所述,它不可用,但是您可以从文件资源管理器中提取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 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


 类似资料:
  • 新手反应本机 < li >使用https://Facebook . github . io/react-native/docs/getting-started . html设置我的MacOSX El Capitan for Android设备仿真器(iPhone仿真器已经为我工作) 在尝试构建生成的模板React Native app(通过rect-native init)时,我遇到了以下构建错误

  • 问题内容: 如何在标准的python环境中安装软件包, 即 使用新的软件包并使所有用户可以使用该新软件包,而无需使用? 通过使用以下内容,该软件包仅以root权限安装: 证明: 请不要建议我改用。我想知道我的错误以及如何正确使用点子。 编辑 我猜问题是因为不允许小组和所有人阅读已安装的内容: 问题答案: 你可能有一个错误的设定所讨论这里 从您的上一次编辑,我想您已设置为。试着做

  • 当我尝试在Emulator中运行我的应用程序时,安装失败,它会显示一个用于卸载应用程序的弹出窗口,如, 一旦我按下OK按钮,它显示正在安装,几次之后它显示安装失败,这是日志, 在我的studio上,已启用即时运行,步骤:文件 禁用我得到另一个错误,如下所示:,

  • 问题内容: 在模拟器上,我可以从“设置”中卸载SD卡。 然后,我可以将其安装在操作系统上,然后正常卸载。 我还无法弄清楚如何在仿真器上重新安装它(而无需重新启动它)。 提示: 该命令无关:这是关于 该命令无关:仅与启动模拟器有关 将SD卡安装在两个地方当然会搞砸一切(我尝试过) 更多: 输出以下内容: 尝试使用与上面相同的选项在卸载外壳后再次从外壳挂载,将出现段错误 不知道为什么双斜杠,我想这只是

  • 如果我添加一个新的手机仿真器图像,我可以使用Play Store选择一个图像。 但是当我尝试为平板电脑添加图像时,没有显示Play Market的选项。此外,在安装任何API后,我找不到Play Market。

  • 主要内容:1.本节引言,2.去哪里下Genymotion,3.下载Genymotion,4.安装Genymotion,5.创建Android模拟器,6.怎么在模拟器上运行程序,7.可能遇到的问题,8.本节小结1.本节引言 如果你符合下述三种情况的话,你可以考虑安装一个Genymotion Android模拟器: 没有真机调试,只能用模拟器 嫌SDK内置的AVD启动速度,运行速度慢 电脑配置还可以,最好4G内存以上 如果你满足上述三种情况的话,那么装个比真机还快的Genymotion吧! 官方给出