title: Installing Android System-App on Emulator does not work
body: <p>I have a System App that is capable of performing some system level tasks (Ex: remote reboot etc.). I want to try this out in the Android-Dev-Studio Emulator.</p>
  
  <p>I have googled for it and this is what I've found so far:</p>
  
  <p>Build the .apk</p>
  
  <ul>
  <li>adb remount</li>
  <li>adb push [MyApp.apk] /system/app/ <em>(this is <strong>/system/priv-app</strong> in API Level 19+)</em></li>
  <li>adb shell chmod 644 /system/app/[MyApp.apk]</li>
  <li>adb reboot</li>
  </ul>
  
  <p>I have done all of this. I've tried copying my apk to both folders "/system/app/" and "/system/priv-app/" folders. Regardless, when I reboot the emulator does not show anything and gets stuck.</p>
  
  <p><a href="https://stackoverflow.com/questions/25456561/cant-get-android-app-installed-as-system-app-on-emulator-to-get-past-securityex">According to this question</a> reboot does not work for emulators which I also noticed to be correct, since the copied .apk file is lost upon restart. </p>
  
  <p>What am I missing here? </p>
  
  <p>I am compiling and building for SDKVersion - 21. So which folder should I copy my system app to? (/system/app/ or /system/priv-app)?</p>
  
  <p>Also if reboot does not work for emulators, how do I get the app installed and running?</p>