java.lang.SecurityException: get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS.

JIRA | OldNightlyBug | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rp . Or join the community to write better ones.
  1. 0

    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)

    JIRA | 2 years ago | OldNightlyBug
    java.lang.SecurityException: get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS.
  2. 0

    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)

    JIRA | 2 years ago | OldNightlyBug
    java.lang.SecurityException: get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS.
  3. 0
    samebug 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()
    via goo.gl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.
  6. 0

    TelephonyManager crashing on android studio

    ezeenow.com | 1 year ago
    java.lang.RuntimeException: Unable to start activity ava.lang.SecurityException: Neither user 10101 nor current process has android.permission.READ_PHONE_STATE.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    get application info: Neither user 1210008 nor current process has android.permission.INTERACT_ACROSS_USERS.

    at android.os.Parcel.readException()
  2. Android Platform
    Parcel.readException
    1. android.os.Parcel.readException(Parcel.java:1546)
    2. android.os.Parcel.readException(Parcel.java:1499)
    2 frames
  3. Android
    TelecomManager.getVoiceMailNumber
    1. com.android.internal.telecom.ITelecomService$Stub$Proxy.getVoiceMailNumber(ITelecomService.java:1003)
    2. android.telecom.TelecomManager.getVoiceMailNumber(TelecomManager.java:776)
    2 frames
  4. com.android.dialer
    CallLogAdapter.bindStandAloneView
    1. com.android.dialer.calllog.PhoneNumberUtilsWrapper.isVoicemailNumber(PhoneNumberUtilsWrapper.java:65)
    2. com.android.dialer.calllog.CallLogAdapter.bindView(CallLogAdapter.java:392)
    3. com.android.dialer.calllog.CallLogAdapter.bindStandAloneView(CallLogAdapter.java:315)
    3 frames
  5. com.android.common
    GroupingListAdapter.getView
    1. com.android.common.widget.GroupingListAdapter.getView(GroupingListAdapter.java:474)
    1 frame
  6. com.android.dialer
    ShortcutCardsAdapter.getView
    1. com.android.dialer.list.ShortcutCardsAdapter.getView(ShortcutCardsAdapter.java:199)
    1 frame
  7. Android Platform
    View.measure
    1. android.widget.AbsListView.obtainView(AbsListView.java:2349)
    2. android.widget.ListView.measureHeightOfChildren(ListView.java:1270)
    3. android.widget.ListView.onMeasure(ListView.java:1182)
    4. android.view.View.measure(View.java:17554)
    4 frames
  8. com.android.dialer
    OverlappingPaneLayout.onMeasure
    1. com.android.dialer.widget.OverlappingPaneLayout.onMeasure(OverlappingPaneLayout.java:449)
    1 frame
  9. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:17554)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    4. android.view.View.measure(View.java:17554)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    7. android.view.View.measure(View.java:17554)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
    9. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    10. android.view.View.measure(View.java:17554)
    11. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
    12. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    13. android.view.View.measure(View.java:17554)
    14. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
    14 frames
  10. Android
    ActionBarOverlayLayout.onMeasure
    1. com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447)
    1 frame
  11. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:17554)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    3 frames
  12. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2871)
    1 frame
  13. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:17554)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    9. android.view.Choreographer.doFrame(Choreographer.java:550)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:135)
    14. android.app.ActivityThread.main(ActivityThread.java:5289)
    14 frames
  14. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  15. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    2 frames