java.lang.SecurityException

tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I have two user accounts on my phone (say Owner and User). When configuring accounts permissions under the Owner account, I enable sms and call for User. While in user, when launching the dialer, it crashes with the exception described below. Note that I can still make calls (e.g. by selecting an existing contact in my concat list and calling it through the contact dialog). When disabling sms and calls for User from the Owner account, the dialer does not crash (for User) but then of course, only emergency calls are allowed. This happens for freshly created users. Stack trace of Dialer when crashing: java.lang.SecurityException: get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS. at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1499) at com.android.internal.telecom.ITelecomService$Stub$Proxy.getVoiceMailNumber(ITelecomService.java:1003) at android.telecom.TelecomManager.getVoiceMailNumber(TelecomManager.java:776) at com.android.dialer.calllog.PhoneNumberUtilsWrapper.isVoicemailNumber(PhoneNumberUtilsWrapper.java:65) at com.android.dialer.calllog.CallLogAdapter.bindView(CallLogAdapter.java:392) at com.android.dialer.calllog.CallLogAdapter.bindStandAloneView(CallLogAdapter.java:315) at com.android.common.widget.GroupingListAdapter.getView(GroupingListAdapter.java:474) at com.android.dialer.list.ShortcutCardsAdapter.getView(ShortcutCardsAdapter.java:199) at android.widget.AbsListView.obtainView(AbsListView.java:2349) at android.widget.ListView.measureHeightOfChildren(ListView.java:1270) at android.widget.ListView.onMeasure(ListView.java:1182) at android.view.View.measure(View.java:17554) at com.android.dialer.widget.OverlappingPaneLayout.onMeasure(OverlappingPaneLayout.java:449) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2871) at android.view.View.measure(View.java:17554) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:550) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    via by OldNightlyBug,
  • I have two user accounts on my phone (say Owner and User). When configuring accounts permissions under the Owner account, I enable sms and call for User. While in user, when launching the dialer, it crashes with the exception described below. Note that I can still make calls (e.g. by selecting an existing contact in my concat list and calling it through the contact dialog). When disabling sms and calls for User from the Owner account, the dialer does not crash (for User) but then of course, only emergency calls are allowed. This happens for freshly created users. Stack trace of Dialer when crashing: java.lang.SecurityException: get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS. at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1499) at com.android.internal.telecom.ITelecomService$Stub$Proxy.getVoiceMailNumber(ITelecomService.java:1003) at android.telecom.TelecomManager.getVoiceMailNumber(TelecomManager.java:776) at com.android.dialer.calllog.PhoneNumberUtilsWrapper.isVoicemailNumber(PhoneNumberUtilsWrapper.java:65) at com.android.dialer.calllog.CallLogAdapter.bindView(CallLogAdapter.java:392) at com.android.dialer.calllog.CallLogAdapter.bindStandAloneView(CallLogAdapter.java:315) at com.android.common.widget.GroupingListAdapter.getView(GroupingListAdapter.java:474) at com.android.dialer.list.ShortcutCardsAdapter.getView(ShortcutCardsAdapter.java:199) at android.widget.AbsListView.obtainView(AbsListView.java:2349) at android.widget.ListView.measureHeightOfChildren(ListView.java:1270) at android.widget.ListView.onMeasure(ListView.java:1182) at android.view.View.measure(View.java:17554) at com.android.dialer.widget.OverlappingPaneLayout.onMeasure(OverlappingPaneLayout.java:449) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2871) at android.view.View.measure(View.java:17554) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:550) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    via by OldNightlyBug,
  • TelephonyManager crashing on android studio
    via by Unknown author,
  • TelephonyManager crashing on android studio
    via Stack Overflow by jason
    ,
    • java.lang.SecurityException: get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS. at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1499) at com.android.internal.telecom.ITelecomService$Stub$Proxy.getVoiceMailNumber(ITelecomService.java:1003) at android.telecom.TelecomManager.getVoiceMailNumber(TelecomManager.java:776) at com.android.dialer.calllog.PhoneNumberUtilsWrapper.isVoicemailNumber(PhoneNumberUtilsWrapper.java:65) at com.android.dialer.calllog.CallLogAdapter.bindView(CallLogAdapter.java:392) at com.android.dialer.calllog.CallLogAdapter.bindStandAloneView(CallLogAdapter.java:315) at com.android.common.widget.GroupingListAdapter.getView(GroupingListAdapter.java:474) at com.android.dialer.list.ShortcutCardsAdapter.getView(ShortcutCardsAdapter.java:199) at android.widget.AbsListView.obtainView(AbsListView.java:2349) at android.widget.ListView.measureHeightOfChildren(ListView.java:1270) at android.widget.ListView.onMeasure(ListView.java:1182) at android.view.View.measure(View.java:17554) at com.android.dialer.widget.OverlappingPaneLayout.onMeasure(OverlappingPaneLayout.java:449) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447) at android.view.View.measure(View.java:17554) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536) at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2871) at android.view.View.measure(View.java:17554) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:550) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)

    Users with the same issue

    Unknown User
    2 times, last one,
    Indri Yunita
    2 times, last one,
    franky li
    4 times, last one,
    Ranjana Dangol
    12 times, last one,
    Aravind
    86 times, last one,
    229 more bugmates