網頁

2014年6月15日 星期日

Ubuntu 13.10 --- How to run Google Apps on Linux platform by Genymotion emulator

Today, there are more and more apps available on Google Play Store but we cannot use it directly on our system as Windows, Linux or Mac platform. This is why we need to choose Genymotion application for emulating Android environment on our desktop.

The Genymotion product is a Virtual Android Environment built on x86 and Virtualbox environment. The good news is there is free version so that we can use it for testing Android environment as develop program or deploy system.
How to do it?
At first, we have to prepare the following prerequisites
(1). Java
     By default, the java package has already been install after install Ubuntu 13.10 Desktop Graphic environment.ScreenHunter_307(2). Android SDK
     Download and extract Android SDK on the personal computer.ScreenHunter_240(3). VirtualBox
     To check the repository and install it if we never have the VirtualBox package.ScreenHunter_205(4). CPU virtualization (VT-X on Intel processors and AMD-V on AMD processors) is enabled

After the above process is confirmed, we will begin to prepare the related action as follows:
Download Genymotion Source
For downloading source(free) from GenyMotion Web Site https://cloud.genymotion.com 
,we have to firstly login if there is the existing account or sign up if never exist one before.ScreenHunter_198This is my first time come here so that will create the new account by using the sign up form.ScreenHunter_199After the registration finish, the Genymotion system will send out a verification mail to my registered email.ScreenHunter_201If we got the mail next to press Click here hyperlink,ScreenHunter_202 the registered account will be activated so that it can download any source now.
ScreenHunter_203That is to select the right package according to the system as Ubuntu x64 next to download and save it on the favorite location.ScreenHunter_204
Install and Launch GenymotionAfter the download process is finished, we have to enable Allow executing file as Program on the terminal by using the chmod +x ./genymotion-2.2.0_x64.bin commandScreenHunter_206
To install the Genymotion software into the specified path as /opt by using the sudo ./genymotion-2.2.0_x64.bin -d /opt commandScreenHunter_211
To switch to the installed directory next to launch the Genymotion tool by using the ./genymotion commandScreenHunter_212So does that the Genymotion player will be run now.

Add and Create a new Virtual DeviceOn the first running, the system will remind you to download the virtual device if never add it before. When we press the Yes button, the virtual device creation wizard will be launched.ScreenHunter_213In the Virtual device creation wizard, we will click Connect button to go ahead the next step.ScreenHunter_214To key in the registered credential for connecting to Genymotion cloudScreenHunter_215So do that the available virtual devices will show up.ScreenHunter_216In the moment, I will chose “Google Nexus 7 - 4.2.2 - API 17 - 800x1280” device next to click Next buttonScreenHunter_281To click Next buttonScreenHunter_282The image download will take quite a while depending on the Internet bandwidth.ScreenHunter_283To click Finish button if the virtual device is created successfully.ScreenHunter_284So does that the new virtual device will be added now.ScreenHunter_286
Start Virtual DeviceTo click the Play button for starting the Android phone emulator.ScreenHunter_287The process is starting virtual deviceScreenHunter_288Once the process is completed, the android phone will boot up normally.ScreenHunter_268
Due to the license issue, the ARM Translation and Google Play Apps is not available in this Genymotion emulator by default. So that we have to download some files as ARM Translation Installer and the correct Google Apps version from Google Apps (# 1)

Once the download is completed, we will drag & drop these files into the emulator.
At first, we will drag & drop Genymotion-ARM-Translation_v1.1.zip into the Genymotion VM.ScreenHunter_295After “File transfer in progress” finish, it will ask us whether want to flash it on Genymotion. To click OK button to go ahead.ScreenHunter_296Once this file has been flashed successfully, we need to reboot the virtual device right now.ScreenHunter_297Although we have already requested this VM to reboot, it still need to do it manually by using the adb reboot command.
Otherwise, the flash process will fail if directly close the VM window, not do the command!ScreenHunter_279Once the HomeScreen show up, please drag & drop the right version as gapps-jb-20130812-signed.zip into the Genymotion VM again.ScreenHunter_300To click OK button to flash this virtual device.ScreenHunter_302To click OK button to reboot it.ScreenHunter_304Of course, we also need to do the adb reboot command for rebooting this VM.ScreenHunter_279If we log on the VM again, the Welcome screen will show up so that the above flash will be successful.ScreenHunter_306
Google Apps Setting and RunningAs the new phone setup, the first step is choosing a language for us from the list of all available languages.ScreenHunter_269Due to we have a Google account, click Yes button to go aheadScreenHunter_270To key in the Google Account and passwordScreenHunter_271Once the Google account log on successfully, we can go to execute Google Play Store.ScreenHunter_321and begin to install the interesting application as Tower Of SaviorsScreenHunter_322To touch screen to start this game now!ScreenHunter_324
Reference :
(# 1)   ARM Translation Installer can be found by Google Search and Google Apps download URL is http://wiki.cyanogenmod.org/w/Google_Apps

沒有留言:

張貼留言

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.