Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
478 views
in Technique[技术] by (71.8m points)

c# - How to add permission to com.sec.android.provider.badge.BadgeProvider uri content://com.sec.badge/apps in Xamarin Forms

Am getting below error on my Samsung phone running android 10. I have been try to fix this for days now and no luck.

I have added

<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" />
<uses-permission android:name="com.sec.android.provider.badge.permission.READ" />

to my AndroidManifest file and no luck still. I would appreciate your help.

{Java.Lang.SecurityException: Permission Denial: writing com.sec.android.provider.badge.BadgeProvider 
uri content://com.sec.badge/apps from pid=30440, uid=10440 requires 
com.sec.android.provider.badge.permission.WRITE, or grantUriPermission()
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualIntMethod 
(Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, 
Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in 
<8b3b636835d84984ba4604c1f57b1983>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualInt32Method (System.String 
encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0001f] 
in <8b3b636835d84984ba4604c1f57b1983>:0
at Android.Content.ContentResolver.Update (Android.Net.Uri uri, Android.Content.ContentValues values, 
System.String where, System.String[] selectionArgs) [0x0008e] in <44e54a86dea24313a2bdb807df77c27a>:0

Thanks in anticipation

question from:https://stackoverflow.com/questions/65868969/how-to-add-permission-to-com-sec-android-provider-badge-badgeprovider-uri-conten

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...