title: Launch/Create Android Emulator that does not have (without) root access
body: <p>I need to run a security test on one of our Android mobile applications. </p>
  
  <ol>
  <li>It must not run if the device is rooted. </li>
  <li>It should run as expected on non-rooted devices.</li>
  </ol>
  
  <p>I have tested part 1 without issue and found it to work as expected.</p>
  
  <p>However, I cannot seem to create an emulator using the AVD Manager that will not start with root access. </p>
  
  <p>-Is there a command line method to reduce the emulator instance to non-rooted at startup? 
  -Failing that, is there a method to send an adb shell command (or other command line call) to reduce the permissions to the installed application?</p>
  
  <p>Thanks!</p>
  
  <p>Edit for @Fred. 
  I have opened the shell and changed it to the user id (uid) of the application under test. Note that in the image you can see the command, "adb shell su u0_a53" and then the next prompt includes the user, "u0_a53@generic_x86_64" as the returned shell and has the "$" indicating non-root access. However, when opening the application under test on the emulator, the application detects the device is rooted. What am I missing?</p>
  
  <p><a href="http://i.stack.imgur.com/FQu7R.jpg" rel="nofollow">See attached image - click here</a></p>