android avd 安装应用到SD卡

  • 目标:在android 虚拟机上运行 clash of clans,并同步进度
  • 过程:
    • 新建avd,target选择 google APIs,level 19, internal storage: 1024M
    • 启动,发现internal storage只有200M(google后,应该是4.4的bug),空间不足,无法安装
    • 新建4.3 的avd,可安装,提示升级google play services
    • 再回4.4,使用adb install -s coc.apk,错误照常,-s 参数无效
    • 运行:adb shell pm set-install-location 2
    • 再装: adb install coc.apk,成功安装,但openGL依赖找不到,无法启动
    • 拷贝tools/lib/下相关lib到tools下
    • 使用emulator-arm @AVD_4.4启动
    • 成功;

猜你喜欢

转载自avidmouse.iteye.com/blog/1995071