[Samsung Galaxy J5 (2015) ROMs, Kernels, Recoveries] jacksand99:
In a voip app, I get an error that a permission is missiong when actually the permission is given in the configuration. The log cat is:

05-29 10:27:00.645 11773 11773 E AndroidRuntime: java.lang.SecurityException: getActiveSubscriptionInfoList: Neither user 10031 nor current process has android.permission.READ_PHONE_STATE.

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2004)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1950)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at com.android.internal.telephony.ISub$Stub$Proxy.getActiveSubscriptionInfoList(ISub.java:585)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.telephony.SubscriptionManager.getActiveSubscriptionInfoList(SubscriptionManager.java:655)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvh.ciB(SourceFile:158)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvh.ciA(SourceFile:153)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvh.ciz(SourceFile:122)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mup.uG(SourceFile:95)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mup.c(SourceFile:91)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mup.a(SourceFile:52)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvm.ciX(SourceFile:715)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nxo.ciX(SourceFile:1074)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nxh.b(SourceFile:82)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nxh.a(SourceFile:59)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nxo.a(SourceFile:813)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvm.n(SourceFile:500)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvm.a(SourceFile:209)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at mvm.processTangleEvent(SourceFile:545)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nxo.processTangleEvent(SourceFile:270)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nyv$b.b(SourceFile:35)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nyn.a(SourceFile:100)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nyn.e(SourceFile:68)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nyo.accept(Unknown Source:4)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at com.annimon.stream.Optional.a(SourceFile:96)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nyn.cAm(SourceFile:66)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nym.cAk(SourceFile:67)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at nym.onServiceConnected(SourceFile:38)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1652)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1681)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6494)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)

05-29 10:27:00.645 11773 11773 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)