In the last post I’ve explained how to install the most difficult part of iDroid (but honestly, was it really difficult ?)
Now that you’ve successfully installed your Froyo it’s time to install some apps for it and to see how it works.

To start with this second part, I assume you have the Android SDK installed on your computer (http://developer.android.com/sdk/installing.html) because we are going to use some of its features to connect directly to the phone.

ADB and APK

The greatest problem with the iDroid is the connection over USB because the USB driver is not working well (I’ve never managed to let Windows 7 recognize my i(A)phone as a device). Even if you manually try to setup the driver of your Android Phone over the Device Manager under Windows, you won’t be able completely able to let the device be recognized. Curious problem…

So how are we going to put the data and debug on our phone? My first thought was to install an ssh client/server to access the iPhone’s hard drive.
But the Android being really slow downloading applications over WLAN, I’ve decided to do it over ADB. ADB, what? The ADB acronym stands for Android Debug Bridge and will allow you not only to send data to the Android but also to install APK files directly onto your iPhone.

The first step is to get the IP address over the WLAN adapter of the iPhone.

It’s easy to get it: Parameters -> Wireless & Network Settings -> Wi-Fi

Now that you have the IP Address, let’s use connect to the device. To do this, you only need to type these command on your computer:

adb connect 192.168.0.6:5555

Assuming 192.168.0.6 is the IP Address of your Android Phone. Of course the port 5555 needs to be available for adb, but I assume that you haven’t changed this.
The adb server on the iPhone will

You will get following screen if everything is correctly connected:

Now we need something like a ssh shell no ? Here the adb will help us again. Type :

adb shell

And you will get following screen. Notice the # at the beginning of each line

Now you can input commands like ls –l pwd cat etc..
There is no access restriction concerning the adb shell. It means that you will be able to mess up everything if you don’t know what commands your are using. Especially the famous rm should be used very carefully!

To install an *.apk file to your android :

adb install nameOfApk.apk

This will automatically install the apk to your android/iPhone

And to push data to your iPhone:

adb push afileOnYourComputer fileOnYourPhone

Now you should have no problem to install and transfer your data to the Android Phone.

Final notes

Here we are, now you can use your iPhone as an Android Phone 😉 As stated in my first post, only use this if would want to test Android on your iPhone or if you want to quickly see how your Android application might look like. Personally I use iDroid for debugging and testing Android applications. As I want to target several versions (1.6, 2.2) the iDroid is a good compromise and the best solution to avoid the awful emulator! Of course don’t expect to debug complex 3D rendering on your iDroid, the hardware and the software are at the moment too slow to render it.

If you have questions concerning this installation, please feel free to ask me using the comments fields of this post. Don’t hesitate to share your experience concerning iDroid.

Issues

Here is a small compilation of problems I’ve met using iDroid

– Installing AIR 2.5 won’t work

– Lack of official Google Market won’t let you install Adobe Flash Player. Of course some APKs are around, but I wouldn’t recommend you to download it, as some are fakes

– WLAN support is really buggy: the WiFi Connection can be lost during a transfert. The best solution in this case is to reboot your device and reenable the Wi-Fi option.