[Lenovo ZUK Z2 (Plus) ROMs, Kernels, Recoveries, & ] amogh1988:
Getting below error on stock launcher,using nova launcher for now

time: 1543551736111

msg: java.lang.SecurityException: Neither user 10199 nor current process has android.permission.DEVICE_POWER.

stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.launcher3/com.android.launcher3.Launcher}: android.view.InflateException: Binary XML file line #33: Binary XML file line #33: Error inflating class com.android.launcher3.Workspace

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2914)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:193)

at android.app.ActivityThread.main(ActivityThread.java:6680)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Caused by: android.view.InflateException: Binary XML file line #33: Binary XML file line #33: Error inflating class com.android.launcher3.Workspace

Caused by: android.view.InflateException: Binary XML file line #33: Error inflating class com.android.launcher3.Workspace

Caused by: java.lang.reflect.InvocationTargetException

at java.lang.reflect.Constructor.newInstance0(Native Method)

at java.lang.reflect.Constructor.newInstance(Constructor.java:343)

at android.view.LayoutInflater.createView(LayoutInflater.java:647)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

at android.view.LayoutInflater.inflate(LayoutInflater.java:515)

at android.view.LayoutInflater.inflate(LayoutInflater.java:423)

at android.view.LayoutInflater.inflate(LayoutInflater.java:374)

at com.android.launcher3.Launcher.onCreate(Launcher.java:299)

at android.app.Activity.performCreate(Activity.java:7144)

at android.app.Activity.performCreate(Activity.java:7135)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2894)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:193)

at android.app.ActivityThread.main(ActivityThread.java:6680)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Caused by: java.lang.SecurityException: Neither user 10199 nor current process has android.permission.DEVICE_POWER.

at android.app.ContextImpl.enforce(ContextImpl.java:1812)

at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1840)

at android.content.ContextWrapper.enforceCallingOrSelfPermission(ContextWrapper.java:776)

at android.content.ContextWrapper.enforceCallingOrSelfPermission(ContextWrapper.java:776)

at com.android.launcher3.Workspace.<init>(Workspace.java:290)

at com.android.launcher3.Workspace.<init>(Workspace.java:265)

... 28 more