Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 79f8cb44 authored by Jochen Sprickerhof's avatar Jochen Sprickerhof
Browse files

Don't start query if we don't have the permission

This avoids a exception after installation:

W AsyncQuery: Exception thrown during handling EVENT_ARG_QUERY
W AsyncQuery: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.calendar.CalendarProvider2 from ProcessRecord{9cce5d0 11544:ws.xsoh.etar/u0a147} (pid=11544, uid=10147) requires android.permission.READ_CALENDAR or android.permission.WRITE_CALENDAR
W AsyncQuery:    at android.os.Parcel.createException(Parcel.java:1950)
W AsyncQuery:    at android.os.Parcel.readException(Parcel.java:1918)
W AsyncQuery:    at android.os.Parcel.readException(Parcel.java:1868)
W AsyncQuery:    at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:4185)
W AsyncQuery:    at android.app.ActivityThread.acquireProvider(ActivityThread.java:6019)
W AsyncQuery:    at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2592)
W AsyncQuery:    at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1828)
W AsyncQuery:    at android.content.ContentResolver.query(ContentResolver.java:786)
W AsyncQuery:    at android.content.ContentResolver.query(ContentResolver.java:752)
W AsyncQuery:    at android.content.ContentResolver.query(ContentResolver.java:710)
W AsyncQuery:    at android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:79)
W AsyncQuery:    at android.os.Handler.dispatchMessage(Handler.java:106)
W AsyncQuery:    at android.os.Looper.loop(Looper.java:193)
W AsyncQuery:    at android.os.HandlerThread.run(HandlerThread.java:65)
W AsyncQuery: Caused by: android.os.RemoteException: Remote stack trace:
W AsyncQuery:    at com.android.server.am.ActivityManagerService.getContentProviderImpl(ActivityManagerService.java:12324)
W AsyncQuery:    at com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:12731)
W AsyncQuery:    at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:358)
W AsyncQuery:    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3377)
W AsyncQuery:    at android.os.Binder.execTransact(Binder.java:731)
W AsyncQuery:
I ActivityManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller cmp=com.android.packageinstaller/.permission.ui.GrantPermissionsActivity (has extras)} from uid
parent d8389e5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment