Intel Android Emulator Customization
- Tutorial
It all started with the need to fix hosts on the emulator from Intel . Only now all the instructions found did not lead to a positive result, as it turned out, due to the read-only system image. Since the task of editing hosts described by me is not so popular, it was decided to replace it with a more relevant and interesting one.
As a result, you get an emulator with an open file system and access to Google Play.
Well, we will enrich our emulator with various Google services!
All actions are described for Android 4.2 Intel Emulator and performed under OS X. In the course of the article I will provide direct links to the files, just in case I will indicate the pages where they can be downloaded.
The steps for Linux users will be almost identical, Windows users will need to find the necessary binaries on their own.
First, let's return the package manager to our OS
As a solution, ideal for Homebrew: how to install and to abandon l start using the brew in the X OS .
We put unyaffs
For its sake, a package manager was installed, and unyaffs itself is needed to extract the insides of the system image of the emulator.
In terminal:
We will worry in advance about the reverse operation of packaging in the image
a) download the source code ( yaffs2-source.tar ) from this page code.google.com/p/fatplus/downloads/list
b) extract
c) add 2 lines at the end of the devextras.h file before the last #endif
e) copy the mkyaffs2image file to the / usr / local / bin folder (for UI lovers. Finder: cmd + shift + G)
Source: nookdevs.com/Yaffs2OSX
Gutted
In terminal:
Getting started
a) download gapps.ics.20120703-2-aroma.zip from this page code.google.com/p/android-google-apps/downloads/list
b) unpack
c) just copy 4 apk’s and delete one. In the terminal, go to the unpacked folder, then do:
Stitching
In terminal:
And so, it remains only to check the performance of our Frankenstein
In terminal:
As you can see, the range on Google Play is a little lame. But it doesn’t matter: edit the build.prop file , which is located at the root of the system image, as you like , should help!
UPD: still need to add the necessary permissions . Thanks sergeyotro !
PS All the manipulations done are adequate not only for the Intel emulator with the latest version of Android, but also for the previous ones, starting with ICS. Just do not forget to fix the path to the folder with the system image inside the SDK in the commands.
As a result, you get an emulator with an open file system and access to Google Play.
Well, we will enrich our emulator with various Google services!
All actions are described for Android 4.2 Intel Emulator and performed under OS X. In the course of the article I will provide direct links to the files, just in case I will indicate the pages where they can be downloaded.
The steps for Linux users will be almost identical, Windows users will need to find the necessary binaries on their own.
First, let's return the package manager to our OS
As a solution, ideal for Homebrew: how to install and Caution: additional installation of Command Line Tools may be required.
a) simply through Xcode:
b) difficult through the Apple Developer website (but there is no need for Xcode):
developer.apple.com/downloads
b) difficult through the Apple Developer website (but there is no need for Xcode):
developer.apple.com/downloads
We put unyaffs
For its sake, a package manager was installed, and unyaffs itself is needed to extract the insides of the system image of the emulator. In terminal:
brew install --HEAD unyaffs
We will worry in advance about the reverse operation of packaging in the image
a) download the source code ( yaffs2-source.tar ) from this page code.google.com/p/fatplus/downloads/listb) extract
c) add 2 lines at the end of the devextras.h file before the last #endif
typedef long long __kernel_loff_t;
typedef __kernel_loff_t loff_t;
d) run the make command in the utils directory e) copy the mkyaffs2image file to the / usr / local / bin folder (for UI lovers. Finder: cmd + shift + G)
Source: nookdevs.com/Yaffs2OSX
Gutted
In terminal:cd ~/android-sdk-macosx/system-images/android-17/x86/
mkdir image
cd image/
unyaffs ../system.img
Note: we change the path to the SDK according to your situationResult:
Getting started
a) download gapps.ics.20120703-2-aroma.zip from this page code.google.com/p/android-google-apps/downloads/listb) unpack
c) just copy 4 apk’s and delete one. In the terminal, go to the unpacked folder, then do:
cp system/app/GoogleLoginService.apk ~/android-sdk-macosx/system-images/android-17/x86/image/app/
cp system/app/GoogleServicesFramework.apk ~/android-sdk-macosx/system-images/android-17/x86/image/app/
cp custom/market/Vending.apk ~/android-sdk-macosx/system-images/android-17/x86/image/app/
cp custom/market/MarketUpdater.apk ~/android-sdk-macosx/system-images/android-17/x86/image/app/
rm ~/android-sdk-macosx/system-images/android-17/x86/image/app/SdkSetup.apk
Note: we change the path to the SDK according to your situationStitching
In terminal:cd ~/android-sdk-macosx/system-images/android-17/x86/
mv system.img system_original.img
mkyaffs2image image system.img
Note: we change the path to the SDK according to your situationAnd so, it remains only to check the performance of our Frankenstein
In terminal:emulator @4.2.x86 &> /dev/null &
or more familiar wayandroid avd
Note: change the name of the emulator to yourMore pictures
As you can see, the range on Google Play is a little lame. But it doesn’t matter: edit the build.prop file , which is located at the root of the system image, as you like , should help!
UPD: still need to add the necessary permissions . Thanks sergeyotro !
PS All the manipulations done are adequate not only for the Intel emulator with the latest version of Android, but also for the previous ones, starting with ICS. Just do not forget to fix the path to the folder with the system image inside the SDK in the commands.