【轉】模擬器上安裝googleplay apk

來源:互聯網
上載者:User

標籤:

原文網址:http://blog.sina.com.cn/s/blog_9fc2ff230101gv57.html

1.進入到sdk\android-sdk-windows\tools>目錄下:

  1>啟動模擬器遊戲:4.4 模擬器名稱 已經存在的模擬器

    輸入: emulator -avd 4.4 -partition-size 300 -no-audio -no-boot-anim

  2>模擬器啟動完成
    輸入:adb shell

    輸入:mount

    rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock0 /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/mtdblock1 /data ext4 rw,seclabel,nosuid,nodev,noatime,nomblk_io_submi
t,data=ordered 0 0
/dev/block/vold/179:0 /mnt/media_rw/sdcard vfat rw,dirsync,nosuid,nodev,noexec,r
elatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,
iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=10
23,default_permissions,allow_other 0 0

    3>找到紅色部分
     輸入:mount -o remount,rw -t ext4 /dev/block/mtdblock0 /system

     輸入:mount

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock0 /system ext4 rw,seclabel,relatime,data=ordered 0 0
/dev/block/mtdblock1 /data ext4 rw,seclabel,nosuid,nodev,noatime,nomblk_io_submi
t,data=ordered 0 0
/dev/block/vold/179:0 /mnt/media_rw/sdcard vfat rw,dirsync,nosuid,nodev,noexec,r
elatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,
iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=10
23,default_permissions,allow_other 0 0

      4>查看上面紅色字型屬性由ro->rw

      輸入:chmod 777 /system/app

      5>最後安裝 GoogleLoginService.apk、GoogleServicesFramework.apk、Vending.apk(這些apk可以問百度下載) 輸入:adb push d:/GoogleLoginService.apk /system/app/.

       如果遇到error: device offline這樣的問題;

       新啟動一個cmd:

           輸入:adb kill-server

                 adb start-server

       在重新輸入:adb push D:/GoogleServicesFramework.apk /system/app/.

                   adb push D:/GoogleLoginService.apk /system/app/.

                   adb push D:/Vending.apk /system/app/.

     6>安裝完成

 

No Space left on device

adb push file /system/.. 
and meet problems like “failed to copy file to /system/„”, such as: failed to copy ‘file’ to ‘/system/„’: No space left on device failed to copy ‘file’ to ‘/system/„’: Out of memory 
The resolve method is not using the Eclipse or AVD Manager to start the Android emulator, but by use the command first: 

$emulator -avd youravdname -partition-size 128 
Then you can try the command “adb push file /system/„”, and the problem maybe resolved. 

 

【轉】模擬器上安裝googleplay apk

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.