RAR Password Unlocker - Remove WinRAR Security Password Easily

Wednesday, May 23, 2012

Getting started on Android for x86: Step-by-step guide on setting up Android 2.2/2.3 for X86 testing environment in Oracle Virtualbox


Background
With Google and Intel announcing collaboration on Android for X86 Intel Architecture last month on Intel IDF, it is official that the door is open for Android to, besides ARM, support Intel CPU family. As the only open source virtual software solution under the terms of the GNU GPL v2, cross-platforms Virtualbox provide a fast and simple solution to open source Android for x86. It allows developers to develop, test or port their existing  apps quickly without hardware. Standardized system images(iso/vdi) from Intel, Google and OEM partners repositories allow developer to test and validate their apps on designated platforms and get accepted earlier for targeted apps store. This is the first of a blog series  aiming at introducing a customer driven solution of developing, testing and validating apps with virtual Android, unconventional installation via VDI conversion, bridged networking and integration with Android Eclipse/DDMS platform.
Oracle full visualizer for Intel X86 architecture
Oracle Virtualbox platform packages are Open Source and Cross-Platforms which support Windows, IOS, Linux and Solaris. The binaries are released under the terms of the GPL version 2 and can be downloaded at:http://www.virtualbox.org/wiki/Downloads.  It support same virtual OS( in a single .vdi file) run on Windows, Linux and IOS, and is a critical key player in open source & cross-platforms ecosystem(Host OS, Virtualbox, Eclipse( Android)).
Download Google Android X86 iso image from Google
Go to Google Code site ( http://code.google.com/p/android-x86/downloads/detail?name=android-x86-2.2-generic.iso&can=2&q=), and download the Android of your preference. However, Android-x86 version 2.2  Generic and 2.3 Ginger Bread  are the versions that have been tested and confirmed the support of both LAN and Wireless connection via bridged network adapter configuration. Same iso image can also been located at www.android-86.org .
Install and setup Android in Virtualbox
Start Oracle VM Virtualbox Manager, and follow the steps below:
  • Start New:  1)Name: Android-x86 2.2 Generic, 2). Operating System: Linux, 3). Version: Linux 2.6.
  • Memory: 256- 512MB ( Dependent on how much memory your laptop/desktop has).
  • Virtual Hard Disk: Create new hard disk
  • Hard Disk Storage Type: Fixed-size storage
  • Virtual Disk Location and Size: default is 8GB. Select your preferred location for the single vdi. file
Before installation, make sure your parameters are set as below:
Click Settings on the top menu, and select Storage. Click the Green + icon next to IDE Controller and add Android-x86-2.2 Generic iso image you just downloaded from Google.  Then click OK.
Click Start to continue the installation:
Use Up and Down Key to move the highlighted selection to Installation - Install Android-x86 to harddisk, and then press Tab key to enter edit mode, and enter the following (case sensitive. See above):
  • DATA=sda1 SDCARD=sda5
This step is very important as we need to set primary partition for Android and a logical partition for SD Card so that you can use simulated SD Card latter to transfer files. You will find this very handy.
On next screens, do the following sequentially:
  • Create/Modify Partition
  • Highlight the Free Space, and use <- and -> key to select New
  • Select Primary
  • Set 7000MB for your sda1 partition ( or your prefered size if you have a big disk)
  • Select Beginning
  • Select Bootable
  • Select Write
  • Select Yes to confirm Write
  • Highlight the remaining Free Space
  • Select New
  • Select Logical
  • Select all remain harddisk size
  • Make sure do not make this sda5 bootable (do not select Bootable)
  • Write the sda5 partition and confirm with yes.
  • Select Quit
  • You will see the following table is created:
Click OK to continue to install and complete the steps below:
  • Format sda1 as ext3
  • Click Yes to install the boot loader grub
  • Click Yes to install /system directory as read-write
  • Select  Create a fake SD card
  • Use all default 2047MB size
Now sit back and relax until the installation is complete. Before reboot, just remeber that you still have an Android 2.2 installation iso image loaded as virtual boot CD-rom. So you have to go back to Setting->Storage to remove the iso image. Now reboot:
Before startting to run virtual Android, you first need to click Machine on top menu and select Disable Mouse Integration. By clicking any area in Android, you mouse icon will change to a darker color, and now you are free to run Virtual Android on your laptop just like a real Android device.  The complete virtual Android is saved as a single .vdi file and you can find it at C:\Users\yourname\VirtualBox VM
Popular keys for virtual Android-X86 on  laptop
At the very first start, you will need to click Machine on the top menu, and select Disable Mouse Integration to enter into virtual Android( rightctrl release the mouse):
  • Esc key = Back 1 screen
  • Window  key =back to Home Key
  • Right Ctrl = Release Mouse key lock
  • Right Click Mouse: Back Key
  • Home = Home Button
  • Alt-F1 = Enter terminal
  • Alt-F7  = exit   Terminal
  • Menu key: Android Bottom menu
  • Alt-F4: Power off
Set up SD card
Virtualbox Android  has pretty much all the functionality of an Android device except for the ability of making calls, location service and proximity sensor etc (same as any emulator including Google AVD). In addition, having the ability to run Android virtually, provides an alternative solution for those who do not want to set aside a computer for this purpose. To get startted, the first step you need to do is to install the SD Card and enable install from outside Android InMarket. To Do this, first go to Setting:
  • Go to Setting -> Appstore -> Storage settings ->SD card
  • Mount SD card
  • Format SD Card.
Connect your Virtual Android to internet as a real device
Dependent on how you connect your host laptop to Internet, you will need different network setting to connect your Android to internet:
  • Wireless: If you are connected to internet via wireless adapter, before you start your virtual Android, you need to go to Setting ->Network  to Enable your wireless network Adapter:
  •  Network Cable(Cat5): If you are connected to internet via your network port via cat5 cable,  before you start your virtual Android, you need to go to Setting -> Network  to Enable your network Adapter:
Bridged adapter option. All network functionalities are exactly same as real device, and offers:
  • Bi-directional access for Guest and Host in single laptop.
  • Bi-directional Access on a subnet.
  • Bi-directional access between virtual Android’s
After selecting correct network adapter, now start your Android. Unlock your screen and type Alt+F1 to enter into Android terminal window, and enter very typical Linux command: netcfg.  If you see your eth0 obtained an IP address from your DHCP server, your Android is connected to Internet:
Lets get some free apps loaded before shopping Google  Android Market
Start your Brower and confirm that your virtual Android is connected to internet like a real device:
Then, start AndAppStore, and get some free apps for your Android Apps development and testing. Currently there are around 5000 apps listed in Android-x86 2.2 AndAppStore :
One of app that I found of most useful is File Expert (Utilities::File & Disk Management) that you can setup a Web share and FTP shareon your virtual Android so that you can freely download and upload files,  which are very convenient when you start to build your development environment:
You can set up your own user name and password for increased security.
Develop and test your Android Apps ( .apk package)
Google apps are all packaged with .apk extension, and put in /system/app folder.  With virtual Android-x86, you can easily upload/download your .apk package:
After you upload your .apk package to /system/app folder,  you can get access to terminal via Alt-F1 and run the following command:
chown 1000:1000 /system/app/yourpackage.apk
Then your app will show up in Android menu.
Test different screen size and resolution
By default, Android in virtualbox is displayed in 800x600. You can easily change the screen size and resolution to your prefered size or the same size of your targeted Android  device. To do this, you need to press"e"  twice at Android start menu to reach grub edit menu and enter vga=ask at the end of entry as below:
Then press "b" to boot your Android, and the screen size and resolution options are displayed as below.  You can select whatever the size/resolution you want to start the Android:
Android-x86 in Virtualbox  vs  Google  Android Virtual Device (AVD)?
There is no doubt, Android-x86 in Virtualbox is way faster than Google AVD. Below are some difference:
Virtual Box:
  • Fast: X86 based ( same as iOS or WP7 emulator)
  • Only emulate User-mode
  • OS image(.vdi) easy to transfer, customizable to meet different needs.
  • Allow quick and convenient Snapshot
Google AVD in Google Android SDK:
  • Slow- ARM based(ARM-eabi)
  • Full system QEMU: emulate whole guest system.
  • Additional Dalvik VM, need to run bytecodes for Android Apps

No comments:

Post a Comment

 

Followers

Labels

act (1) Action (155) Adveture (53) adway (1) android (6) android 2.2 (1) android 4.0 (1) android 4.o os (1) android devices: Samsung Galaxy S2 (3) Android Emulators (9) android game (1) android games (6) Android Hacks (29) android messaging (1) android os 4.0.4 (1) android smartphones (2) Android Tricks (2) Android Tutorials (39) android x86 (5) Android x86 download (1) android x86 download 4.0.4 (1) Android x86 FlashPlayer (1) android x86 games (1) android x86 virtual box (1) android-x86 (19) androidx86 (1) angry bird (1) angry birds (1) antivirus (1) apk (3) apk+data (5) app (1) applications (34) apps (2) Arcade (109) arm translator (1) asphalt (1) avengers (1) bang bang racing (1) BBM (1) bbm released (1) best health insurance (1) best insurance for car finder (1) Blackberry Messenger (1) blackberry messenger released (1) blackmarket (1) blackmart alpha 0.9.2.44 (1) blackmart alpha 0.99.2.42 (2) blackmart store for android (1) block ads (1) Brain (12) Business (1) camera app (2) car insurance app (1) Casual Games (2) Communication (6) crack poweramp (1) Cracked Apps (48) Cracked Games (27) Customization (5) data (3) Dead trigger 2 (1) Defence Games (1) desktop (2) Despicable Me v1.2.0 (1) download virtualbox (1) Entertainment (1) facebook games (1) Fantasy (1) Fighting (21) flash (1) flash games (2) flash player (1) football (1) for android (1) FPS(First Person Shooting) Game (11) fpse emulator (1) free games (3) free poweramp (1) Free Premium Apps (45) froyo (1) full version (2) Galaxy S2 (1) Game Cheats (5) Game Emulators (5) Gameloft (8) games (7) games for android x86 (1) gingerbread (1) gta (1) gta san andreas (1) gta vice city (1) hd game (12) hd games (225) hd gaming (8) health insurance (1) Heroes of Order (1) Horror Games (2) How to root (4) htc (4) HTC One X (3) Hunting Games (1) hvga (1) ics (3) install android (2) install virtualbox (1) insurance app (2) intel (1) intel x86 (1) introduction (2) key (1) king of fighters 97 (1) kof (2) kof 97 (2) laptop (1) laptop pc (1) laptop pcs (3) latest android (1) Latest Updates (1) Launchers (6) linux (2) messaging (4) messaging 7 (1) messaging client (1) micromax (3) Moded Games (4) modern combat (1) Music and Media (9) Musical game (2) must have apps 2013 (2) netbook (1) nfs (1) nfs most wanted (1) Note (2) Note2 (1) notebook pcs (2) noteboots (1) official android x86 (1) official bbm (1) official blackberry messssenger (1) oracle (1) order and chaos (1) pc (1) pc laptops (1) pen drive (1) Personalisation (10) pes (1) pes 2012 (1) photo album for android x86 (1) Photography (7) platform (1) playstation games for android (2) poweramp (1) ppsspp (2) premium games (15) privacy policy (1) Productivity (4) ps1 for android (1) ps2 (1) PSP Emulator (2) PSP Supported Games (2) Puzzle (17) quake3 (1) qvga (1) racing games (39) Root Android Device (5) run android (1) run android in pc (1) Running Games (5) s2 (1) s3 (3) samsung (2) samsung galaxy (2) sd data+apk (1) sdcard (1) shooting games (21) Social Apps (3) Sony Ericsson Xperia Ars S (1) sports (4) Sports Games (21) starwars (1) Strategy (55) T (1) tab (1) temple run oz New moded (1) Text and Email Apps (3) THD (1) Themes (4) tip (1) Tips 'n' Tricks (60) Tools (13) Top Games 2013 (1) touchscreen (1) tricks (1) twitch.tv live (1) unetbootin (1) vice city (1) videoLan (1) virtualbox (1) vlc (1) whatsapp plus messenger (1) Whatsapp+ messenger (1) widgets (1) windows phone 7 messaging (1) wp7 messsaging (1) x86 (1) Xperia ArcoS (1) Xperia P (1) Xperia Play (1) youtube (1)

Contact Form

Name

Email *

Message *