请问这个是需要要求什么权限?如何修改?
java.lang.SecurityException: Permission Denial: reading com.tencent.mm.plugin.base.stub.WXCommProvider uri content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram from pid=31336, uid=10499 requires null, or grantUriPermission()
at android.os.Parcel.createExceptionOrNull(Parcel.java:2441)
at android.os.Parcel.createException(Parcel.java:2425)
at android.os.Parcel.readException(Parcel.java:2408)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190)
at android.database.DatabaseUtils.readExceptionFromParcel.java:142)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:481)
at android.content.ContentResolver.query(ContentResolver.java:1237)
at android.content.ContentResolver.query(ContentResolver.java:1162)
at android.content.ContentResolver.query(ContentResolver.java:1118)
at com.tencent.mm.opensdk.openapi.BaseWXApiImplV10.sendLaunchWXMiniprogram(Unknown Source:69)
at com.tencent.mm.opensdk.openapi.BaseWXApiImplV10.sendReq(Unknown Source:369)
2023年了,这个bug还存在
我也遇到该问题了,Android12通过微信SDK调起微信小程序会出现,需要什么权限呢?
这样么
activity.grantUriPermission("app包名", Uri.parse("content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram"), Intent.FLAG_GRANT_READ_URI_PERMISSION);