java.lang.SecurityException

uid 10069 does not have android.permission.UPDATE_APP_OPS_STATS.

Samebug tips5

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()


rafaelrafael

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Stack trace

  • java.lang.SecurityException: uid 10069 does not have android.permission.UPDATE_APP_OPS_STATS. at android.os.Parcel.readException(Parcel.java:1431) at android.os.Parcel.readException(Parcel.java:1385) at android.content.IClipboard$Stub$Proxy.setPrimaryClip(IClipboard.java:171) at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:125) at android.widget.TextView.setPrimaryClip(TextView.java:8466) at android.widget.TextView.onTextContextMenuItem(TextView.java:8221) at android.widget.Editor$SelectionActionModeCallback.onActionItemClicked(Editor.java:2818) at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:2569) at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:133) at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735) at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874) at com.android.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:547) at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:115) at android.view.View.performClick(View.java:4240) at android.view.View$PerformClick.run(View.java:17721) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method)

Write tip

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

Users with the same issue

Unknown UserUnknown User
14 times, last one
PierrePierre
3 times, last one
Hiren AmaliyarHiren Amaliyar
669 times, last one
filipebatistafilipebatista
48 times, last one
SacchiSacchi
138 times, last one
232 more bugmates