Добавление Google Apps в эмулятор Android (Intel x86 Atom System Image)
Все разработчики под Android знают, насколько медленно работает эмулятор. В июне прошлого года Intel представила Android, который работает в режиме x86 (без эмуляции ARM). И конечно, скорость эмулятора стала потрясающая. Но в системных образах этих эмуляторов отсутствуют Google Apps (Maps, GMail, Calendar, Google Play, аккаунт Google, . ).
В этой статье мы добавим приложения от Google.
Необходимо установить Intel Hardware Accelerated Execution Manager.
Скачиваем Google Apps (версия CM 10.1)
Также, через Android SDK необходимо скачать Intel x86 Atom System Image для Android 4.2.2 (API 17).
Создаём эмулятор:
Запускаем эмулятор из консоли с увеличенным системным разделом:
Заходим в папку, где архив с Google Apps, и запускаем скрипт (скрипт на bash):
Далее перезапускаем эмулятор в обычном режиме. Теперь у нас система с полным комплектом Google Apps!
Если будет появляться сообщение, что сбой в клавиатуре, то можно установить любую другую.
Полученный образ можно сохранить и использовать при создании новых эмуляторов на Android 4.2 (просто копировать его в папку avd соответствующего эмулятора). По этому же принципу можно сделать и под другие версии.
Успехов в разработке!
Update:
Как подсказывает Cancel можно не заморачиваться с yaffs2. Пока работает эмулятор, файл с образом системного раздела можно скопировать из /tmp/android-…
Источник
Factory Images for Nexus and Pixel Devices
This page contains binary image files that allow you to restore your Nexus or Pixel device’s original factory firmware. You will find these files useful if you have flashed custom builds on your device, and wish to return your device to its factory state.
Note that it’s typically easier and safer to sideload the full OTA image instead.
If you do use a factory image, please make sure that you re-lock your bootloader when the process is complete.
These files are for use only on your personal Nexus or Pixel devices and may not be disassembled, decompiled, reverse engineered, modified or redistributed by you or used in any way except as specifically set forth in the license terms that came with your device.
Terms and conditions
While it may be possible to restore certain data backed up to your Google Account, apps and their associated data will be uninstalled. Before proceeding, please ensure that data you would like to retain is backed up to your Google Account.
Downloading of the system image and use of the device software is subject to the Google Terms of Service. By continuing, you agree to the Google Terms of Service and Privacy Policy. Your downloading of the system image and use of the device software may also be subject to certain third-party terms of service, which can be found in Settings > About phone > Legal information, or as otherwise provided.
Acknowledge I have read and agree with the above terms and conditions.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Источник
Full OTA Images for Nexus and Pixel Devices
This page contains full OTA update packages that allow you to restore your Nexus or Pixel device’s original factory firmware. You will find these files useful if you have experienced a failure to take an OTA. This has the same effect as flashing the corresponding factory image, but without the need to wipe the device or unlock the bootloader.
These files are for use only on your personal Nexus or Pixel device and may not be disassembled, decompiled, reverse engineered, modified or redistributed by you or used in any way except as specifically set forth in the license terms that came with your device.
Terms and conditions
Downloading of the system image and use of the device software is subject to the Google Terms of Service. By continuing, you agree to the Google Terms of Service and Privacy Policy. Your downloading of the system image and use of the device software may also be subject to certain third-party terms of service, which can be found in Settings > About phone > Legal information, or as otherwise provided.
Acknowledge I have read and agree with the above terms and conditions.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Источник