Friday, October 29, 2010

Create an AVD from your custom Android build

[Thanks to http://blog.coralic.nl/2010/01/21/how-to-create-a-custom-rom-for-hero-from-android-sources/]

  1. Build Android
  2. In the Android SDK directory, make a copy of the platform that you customized
    • cd /opt/android/android-sdk
    • cd platforms
    • cp -rf android-8 custom-froyo
  3. Replace the images
    • cp ~/ws/froyo/out/target/product/generic/*.img custom-froyo/images
  4. Copy build.prop from your custom build
  5. Edit Pkg.Desc in source.properties
  6. Test that the correct strings show up
    • cd tools ./android list targets
  7. Create an AVD using your custom platform