Simple Component

Create and build a simple tool for AOSP:

Configure the shell:

# cd ~/aosp
# source build/envsetup.sh
# lunch 1

Tasks:

  • Create an empty folder simp in ~/aosp/external
  • Add files:
    • simple.c – simple hello world program
    • Android.mk – copy and modify from ~/aosp/external/netcat
  • Build the program using ‘mm’ and copy to the emulator using ‘adb push’
  • Build the ROM and test your work