Wednesday, August 5, 2009

Tackling Android's Donut Branch Part II

The building process didn't finish yesterday, so I am continuing today morning. After the SDK is built, I had to symlink some directories to their proper places (wonder why this is so), because the "android" tool said "Error parsing SDK" or something like that, indicating it was missing these directories.

ln -s ~/android/mydroid/out/host/linux-x86/sdk/android-sdk_eng.zsol_linux-x86/platforms/ out/host/linux-x86/
ln -s ~/android/mydroid/out/host/linux-x86/sdk/android-sdk_eng.zsol_linux-x86/add-ons/ out/host/linux-x86/

After this, I was finally able to create an AVD like so:
zsol@silithus:~/android/mydroid$ android create avd -n donuttest -t 1
Android Donut (Preview) is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Created AVD 'donuttest' based on Android Donut (Preview), with the following hardware config:
hw.lcd.density=160

Awesome! Now I'm getting close. This command let me try the fresh build on an emulator:

zsol@silithus:~/android/mydroid$ emulator -sysdir out/target/product/generic/ -kernel ./prebuilt/android-arm/kernel/kernel-qemu @donuttest
This is what it looks like:
Hack away!

No comments:

Post a Comment