title: Modifying init.rc to add my own android native service
body: <p>I'm working on a Freescale i.mx53 board with Android 2.3.3, and I'm trying to add my own android native service into init.rc so that it runs on boot. I've tried following the guide at <a href="http://www.androidenea.com/2009/08/init-process-and-initrc.html" rel="nofollow">http://www.androidenea.com/2009/08/init-process-and-initrc.html</a>, including their example service code. However, I'm building the example service code into an ARM binary with android ndk instead.</p>
  
  <p>The example service works if I run it manually in an adb shell. However, when I put it at the end of src/system/core/rootdir/init.rc nothing seems to happen.</p>
  
  <p>I look at the init.rc in the device root directory after booting up and it isn't the same as the init.rc in the source. Notably, the lines that I've added in aren't there.</p>
  
  <p>What could be wrong?</p>