неделя, 20 май 2012 г.

How to use Google Maps API in Android emulator SDK version 17

This is the solution I've found on the Internet (http://stackoverflow.com/questions/9857325/google-maps-sdk-with-new-intel-atom-x86-emulator) for adding Google API support to the Intel Atom x86 AVD image. I've copied the solution to my blog for my own safekeeping.
  1. In Android Virtual Device Manager create an AVD with target "Android 2.3.3 - API Level 10" emulator -avd name_of_avd
  2. adb pull /system/etc/permissions/com.google.android.maps.xml
  3. adb pull /system/framework/com.google.android.maps.jar
  4. (optional) Remove the create AVD in Android Virtual Device Manager
  5. In Android Virtual Device Manager create an AVD with target "Intel Atom x86 system Image (Intel Corporation) - API Level 10"
  6. emulator -avd name_of_avd
  7. adb remount rw
  8. adb push com.google.android.maps.xml /system/etc/permissions
  9. adb push com.google.android.maps.jar /system/framework
  10. Download mkfs.yaffs2.x86
  11. adb push mkfs.yaffs2.x86 /data
  12. adb shell
  13. cd /data
  14. chmod 777 mkfs.yaffs2.x86
  15. ./mkfs.yaffs2.x86 /system system.img
  16. exit
  17. adb pull /data/system.img (...be patient)
  18. Copy system.img into avd directory
  19. Reboot emulator