[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Does anyone have an idea what could cause this:

10-13 21:11:07.003 3713 3733 E DatabaseUtils: Writing exception to parcel
10-13 21:11:07.003 3713 3733 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=5810, uid=10092 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
10-13 21:11:07.003 3713 3733 E DatabaseUtils:	at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:605)
10-13 21:11:07.003 3713 3733 E DatabaseUtils:	at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:480)
10-13 21:11:07.003 3713 3733 E DatabaseUtils:	at android.content.ContentProvider$Transport.query(ContentProvider.java:211)
10-13 21:11:07.003 3713 3733 E DatabaseUtils:	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
10-13 21:11:07.003 3713 3733 E DatabaseUtils:	at android.os.Binder.execTransact(Binder.java:453)
10-13 21:11:07.039 2823 2915 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa09e61e0
10-13 21:11:07.039 5810 6172 E iu.UploadsManager: Insufficient permissions to process media
10-13 21:11:07.039 5810 6172 E iu.UploadsManager: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=5810, uid=10092 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.os.Parcel.readException(Parcel.java:1620)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.content.ContentResolver.query(ContentResolver.java:493)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.content.ContentResolver.query(ContentResolver.java:435)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at inr.a(PG:110)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at com.google.android.libraries.social.autobackup.FingerprintScannerIntentService.onHandleIntent(PG:81)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.os.Handler.dispatchMessage(Handler.java:102)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.os.Looper.loop(Looper.java:148)
10-13 21:11:07.039 5810 6172 E iu.UploadsManager:	at android.os.HandlerThread.run(HandlerThread.java:61)
10-13 21:11:07.089 2823 2915 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa09e61e0
10-13 21:11:07.139 2823 2915 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa09e

^ that's the only error message between.

...

ANR in android.intent.action.SCREEN_ON

This happens when the device is not connected to any power source and was in standby for more than let's say 5-10 seconds when I try to wake it up again. The screen stays black ofc but logcat doesn't report anything else all is fine except that. I've found some hints via google but no one could track it down.

Wake up is fine as long as it's connected to a power source (USB/AC)

...Let's think about what is involved during wake/lock and may be affected by the power source.

The crash above doesn't really look related in any way and the ANR may be a coincidence. I cannot really see any error in the logs just surfaceflinger dropping events. That's what it usuallly does during sleep.

Edit: Ok it seems like this was a coincidence. I get the following message after I send a keyevent 26 (Power button):

10-14 17:58:30.769 5119 5119 W art : Method processed more than once: java.lang.String java.lang.IntegralToString.stringOf(char[])
10-14 17:58:30.804 5119 5119 W art : Method processed more than once: void java.util.zip.ZipEntry.<init>(byte[], java.io.InputStream, java.nio.charset.Charset, boolean)
10-14 17:58:30.815 5119 5119 W art : Method processed more than once: void java.util.jar.ManifestReader.readName()
10-14 17:58:30.816 5119 5119 W art : Method processed more than once: java.lang.String java.io.ByteArrayOutputStream.toString(java.lang.String)
10-14 17:58:30.836 5119 5119 W art : Method processed more than once: void java.util.Properties.load(java.io.Reader)
10-14 17:58:30.866 5119 5119 D AndroidRuntime: Calling main entry com.android.commands.input.Input
10-14 17:58:30.869 5119 5119 W art : Method processed more than once: java.lang.String java.lang.IntegralToString.intToHexString(int, boolean, int)
10-14 17:58:30.869 5119 5119 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=2354954, downTime=2354954, deviceId=-1, source=0x101 }
10-14 17:58:30.876 5119 5119 D AndroidRuntime: Shutting down VM
10-14 17:58:30.882 5119 5119 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
10-14 17:58:30.882 5119 5119 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.hardware.input.IInputManager.injectInputEvent(android.view.InputEvent, int)' on a null object reference
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at android.hardware.input.InputManager.injectInputEvent(InputManager.java:798)
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at com.android.commands.input.Input.injectKeyEvent(Input.java:234)
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at com.android.commands.input.Input.sendKeyEvent(Input.java:185)
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at com.android.commands.input.Input.run(Input.java:97)
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at com.android.commands.input.Input.main(Input.java:60)
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
10-14 17:58:30.882 5119 5119 E AndroidRuntime:	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:256)
10-14 17:58:30.915 5119 5119 E AndroidRuntime: Error reporting crash
10-14 17:58:30.915 5119 5119 E AndroidRuntime: java.lang.RuntimeException: Bad file descriptor
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.os.BinderProxy.transactNative(Native Method)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.os.BinderProxy.transact(Binder.java:503)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.os.ServiceManager.getService(ServiceManager.java:55)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2628)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2627)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.util.Singleton.get(Singleton.java:34)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:84)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:95)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
10-14 17:58:30.915 5119 5119 E AndroidRuntime:	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)

Hm there are 2 standby modes... sleep and doze https://developer.android.com/training/monitoring-device-state/doze-standby.html

It seems to happen only on sleep.