title: Android edit system.img file
body: <p>I want to add certificate to my image file so latter I can start an emulator with that certificate.</p>
  
  <pre><code>emulator -avd my_adb_device -system path_to_image_file
  </code></pre>
  
  <p>But I don't know how to edit image files.</p>
  
  <p>I been trying several things without luck.</p>
  
  <ul>
  <li><a href="https://www.olimex.com/wiki/How_to_edit_prebuilt_Android_images" rel="noreferrer">https://www.olimex.com/wiki/How_to_edit_prebuilt_Android_images</a></li>
  <li><a href="http://androidforum.tytung.com/how-to-create-system-img-file-from-a-flashable-zip-t38.html" rel="noreferrer">http://androidforum.tytung.com/how-to-create-system-img-file-from-a-flashable-zip-t38.html</a></li>
  </ul>
  
  <p>Any ideas how this can be achieved?</p>