title: Cannot get WAKE_LOCK permission on Android 8 Oreo
body: <p>My app has <code>&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;</code> added to the <code>AndroidManifest.xml</code>. However calls to acquire the lock <code>PowerManager.PARTIAL_WAKE_LOCK</code> crash the app on Oreo devices.</p>
  
  <pre><code>    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}: java.lang.SecurityException: Neither user 10094 nor current process has android.permission.WAKE_LOCK.
  </code></pre>