[Android Software/Hacking General [Developers Only]] OJ:
What is Android Virtual Device?

An Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator.

In simple words, this thing will let you use android phone in your PC! But, with some limitations.

This AVD comes with Android SDK. So, the guide starts now.

♦ Setup Android SDK -

● Download and install Java - Link or Link

● Download and install Android SDK - Link

● While installing SDK choose the directory C:\android-sdk-windows\ only (Install it in root directory, not in any extra folder).

● Now, you have installed sdk.

● Now, open SDK Manager from android-sdk-folder. Here, you will see a list of tools. In that deselect everything first and then select Android Version (API) of your choice.

● Click on install packages and let the packages to be downloaded and installed.

♦ Setup and start AVD -

● Open AVD Manager from android-sdk.

● Click on "New" button. A window will appear with many choices and selection.

● Fill every box as per your choices and requirements and click on ok.

● Window will hang for some time as it is creating your AVD.

● Once the AVD is created, close everything.

♦ Rooting AVD and Adding Google Play -

● Now, in your pc, open CMD (Start>run>cmd or Start>search>cmd)

● In cmd, type - cd C:\android-sdk-windows\tools\ In general, it is the directory where your android sdk's tools directory is.

● Now, we will start the emulator from command line. For that, type -

emulator -avd your avd name -system-partition 128 -no-snapshot-load

and press enter.

● It will start the avd. Now, we will push the needed files to system via adb.

● Download the attachment below. Extract all files to the "tools" folder in your android-sdk.

● In cmd, type -

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system

● Now, we will push files to system, type -

adb push su /system/xbin/
adb push busybox /system/xbin/
adb push Superuser.apk /system/app/

● Now, we have to give permissions, type -

adb shell chmod 06755 /system/xbin/su
adb shell chmod 06755 /system/xbin/busybox
adb shell chmod 644 /system/app/Superuser.apk

Rooting done!

● Now, for Google play, we have to push the files -

adb push Vending.apk /system/app/
adb push GoogleServicesFramework.apk /system/app/
adb push MarketUpdater.apk /system/app/

● Now, permissions, type -

adb shell chmod 644 /system/app/Vending.apk
adb shell chmod 644 /system/app/GoogleServicesFramework.apk
adb shell chmod 644 /system/app/MarketUpdater.apk

● Now, if you want -

adb push rootexplorer.apk /system/app/
adb push rootcheck.apk /system/app/
adb shell chmod 644 /system/app/rootexplorer.apk
adb shell chmod 644 /system/app/rootcheck.apk

● Now, important. We have to copy system to data for making it modifyable image. Type -

adb shell busybox rm -R /data/*
adb shell busybox ls /data

● Type -

adb shell busybox cp -a /system/* /data/
adb shell busybox ls /data

Done!

● Now, /data is your /system. So, now navigate to - C:\Users\yourusername\.android\avd\youravdname.avd\

and copy the file "userdata-qemu.img to a root directory such as C:\userdata-qemu.img. Rename it to "system.img"

● Close the emulator and then again type in cmd -

cd C:\android-sdk-windows\tools\

and type -

emulator -avd your avd name -system C:\system.img

This will start the AVD with your customized rooted system image. Everytime start the AVD like this.

● Now, check the root with root checker app and you are done..!!!

Now, Enjoy your android device on PC with root as well as Google Play.

Mods not now. Coming soon........