You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importing a backup on a fresh installation of the app causes this message to appear in the logcat:
Caught a RuntimeException from the binder stub implementation.
java.lang.SecurityException: Permission Denial: reading
com.nononsenseapps.notepad.database.MyContentProvider uri
content://com.nononsenseapps.notepad.debug.MyContentAuthority/notification/with_task_info
from pid=0, uid=1000 requires the provider be exported, or grantUriPermission()
at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:1023)
at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:818)
at android.content.ContentProvider$Transport.query(ContentProvider.java:256)
at android.content.ContentResolver.query(ContentResolver.java:1229)
at android.content.ContentResolver.query(ContentResolver.java:1161)
at android.content.ContentResolver.query(ContentResolver.java:1117)
at com.nononsenseapps.notepad.database.Notification.getNotificationsWithTasks(Notification.java:508)
at com.nononsenseapps.notepad.database.Notification.getNotificationsWithTime(Notification.java:496)
at com.nononsenseapps.helpers.NotificationHelper.notifyPast(NotificationHelper.java:228)
at com.nononsenseapps.helpers.NotificationHelper.-$$Nest$smnotifyPast(Unknown Source:0)
at com.nononsenseapps.helpers.NotificationHelper$ContextObserver.onChange(NotificationHelper.java:688)
at android.database.ContentObserver.onChange(ContentObserver.java:184)
at android.database.ContentObserver.onChange(ContentObserver.java:202)
at android.database.ContentObserver.onChange(ContentObserver.java:238)
at android.database.ContentObserver.dispatchChange(ContentObserver.java:335)
at android.database.ContentObserver$Transport.onChangeEtc(ContentObserver.java:357)
at android.database.IContentObserver$Stub.onTransact(IContentObserver.java:120)
at android.os.Binder.execTransactInternal(Binder.java:1505)
at android.os.Binder.execTransact(Binder.java:1444)
CampelloManuel
changed the title
java.lang.SecurityException when importing a backup on Pixel 8a
java.lang.SecurityException in the logcat
Sep 11, 2024
Describe the bug
importing a backup on a fresh installation of the app causes this message to appear in the logcat:
...but the app still works fine.
The problem is in the constructor of
com.nononsenseapps.helpers.NotificationHelper.ContextObserver
, which is an useless class marked for removal.See https://stackoverflow.com/questions/36694212/getting-a-permission-denial-when-querying-my-own-contentprovider-from-my-own-app who experienced the same problem.
In our case, removing
ContextObserver
is the best solution to explore, since it's a useless class.how To Reproduce
Technical information
The text was updated successfully, but these errors were encountered: