title: Android OTA release on Nexus devices, which certificates and private keys?
body: <p>I need to use the <code>INJECT_EVENTS</code> permission in my app, which means that I need to sign the app with the platform keys, see previous SO <a href="https://stackoverflow.com/questions/5383401/android-inject-events-permission">answer</a>.</p>
  
  <p>However, going through the process does not grant me the permissions, e.g. app details on the phone does not show <code>INJECT_EVENTS</code>.</p>
  
  <p>I use a Nexus 7 with Android 5.1 LMY47O. And thought that the Android stock version on Nexus devices would use the keys released in this Github <a href="https://github.com/android/platform_build/tree/master/target/product/security" rel="nofollow noreferrer">repo</a>.</p>
  
  <p>Is that not the case, see <a href="https://source.android.com/devices/tech/ota/sign_builds.html#certificates-keys" rel="nofollow noreferrer">link</a>?</p>
  
  <p>Or is the only way to build and install Android from source?</p>