title: Run custom ROM on Android Emulator
body: <p>I downloaded a third-party ROM, and I want to run it on the emulator first before flash it into the phone. Here is the contents of <code>cm-11-20140911-NIGHTLY-p3110.zip</code>:</p>
  
  <pre><code> 1. boot.img
   2. file_contexts
   3. META-INF/
   4. recovery/
   5. system/
  </code></pre>
  
  <p>I unpacked <code>boot.img</code> using the script <strong><code>unpack-bootimg.pl</code></strong> and get <code>boot.img-kernel</code>, and <code>boot.img-ramdisk.cpio.gz.</code> Then I repacked the system using the <strong><code>make_ext4fs</code></strong> and got <code>system.img</code>.</p>
  
  <p>I created an AVD and execute:</p>
  
  <p><code>emulator -system ~/cm11/system_new.img -ramdisk ~/cm11/boot.img-ramdisk.cpio.gz -kernel ~/cm11/boot.img-kernel -avd and442</code></p>
  
  <p>but all I got is nothing, the emulator screen is just black. There is no log message from <code>adb -s emulator-5554</code>.</p>
  
  <p>Now I am confused:</p>
  
  <ul>
  <li>can the third-party ROM be tested by the emulator?</li>
  <li>Am I doing the right way?  </li>
  </ul>