看uid uid=12910198,一定是微信分身了,微信本身uid你在这用户手机上市是10198
Android11分享图片到朋友圈提示图片不存在,预览图也不展示1、我们的App 目标版本是26 2、用户的手机系统是Android 11 3、图片分享使用的FileProvider方式进行 4、其他版本的手机如9、10系统的, 分享朋友圈时,微信重启闪退两次; 发送给朋友时,微信正常调起,点击分享直接微信闪退,崩溃信息如下:第一个是朋友圈异常,第二个是朋友 授权代码: val contentUri = FileProvider.getUriForFile(context, "com.fanggeek.agent.fileprovider.CustomFileProvider", // 要与`AndroidManifest.xml`里配置的`authorities`一致,假设你的应用包名为com.example.app file) // 授权给微信访问路径 context.grantUriPermission("com.tencent.mm", // 这里填微信包名 contentUri, Intent.FLAG_GRANT_READ_URI_PERMISSION) return contentUri.toString() // contentUri.toString() 即是以"content://"开头的用于共享的路径 Process: com.tencent.mm, PID: 28806 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tencent.mm/com.tencent.mm.plugin.sns.ui.SnsUploadUI}: java.lang.SecurityException: Permission Denial: opening provider com.fanggeek.agent.fileprovider.CustomFileProvider from ProcessRecord{a8520e1 28806:com.tencent.mm/u129a198} (pid=28806, uid=12910198) that is not exported from UID 10514 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3894) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4077) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8375) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) Caused by: java.lang.SecurityException: Permission Denial: opening provider com.fanggeek.agent.fileprovider.CustomFileProvider from ProcessRecord{a8520e1 28806:com.tencent.mm/u129a198} (pid=28806, uid=12910198) that is not exported from UID 10514 at android.os.Parcel.createException(Parcel.java:2071) at android.os.Parcel.readException(Parcel.java:2039) at android.os.Parcel.readException(Parcel.java:1987) at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5092) at android.app.ActivityThread.acquireProvider(ActivityThread.java:7502) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2939) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2155) at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1682) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1514) at android.content.ContentResolver.openInputStream(ContentResolver.java:1198) at com.tencent.mm.vfs.ContentsSchemeResolver$ContentProviderFileSystem.openRead(SourceFile:58) at com.tencent.mm.vfs.a.bgz(SourceFile:22) at com.tencent.mm.vfs.NativeFileSystem.e(SourceFile:500) at com.tencent.mm.vfs.NativeFileSystem.f(SourceFile:34) at com.tencent.mm.vfs.NativeFileSystem$c.d(SourceFile:404) at com.tencent.mm.vfs.a.c(SourceFile:79) at com.tencent.mm.vfs.q.ne(SourceFile:352) at com.tencent.mm.plugin.sns.ui.ap.az(SourceFile:206) at com.tencent.mm.plugin.sns.ui.SnsUploadUI.aC(SourceFile:1911) at com.tencent.mm.plugin.sns.ui.SnsUploadUI.onCreate(SourceFile:256) at android.app.Activity.performCreate(Activity.java:8121) at android.app.Activity.performCreate(Activity.java:8109) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3867) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4077) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8375) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) Process: com.tencent.mm, PID: 21312 java.lang.SecurityException: Permission Denial: opening provider com.fanggeek.agent.fileprovider.CustomFileProvider from ProcessRecord{a693371 21312:com.tencent.mm/u129a198} (pid=21312, uid=12910198) that is not exported from UID 10514 at android.os.Parcel.createException(Parcel.java:2071) at android.os.Parcel.readException(Parcel.java:2039) at android.os.Parcel.readException(Parcel.java:1987) at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5092) at android.app.ActivityThread.acquireProvider(ActivityThread.java:7502) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2939) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2155) at android.content.ContentResolver.query(ContentResolver.java:939) at android.content.ContentResolver.query(ContentResolver.java:891) at android.content.ContentResolver.query(ContentResolver.java:840) at com.tencent.mm.vfs.ContentsSchemeResolver$ContentProviderFileSystem.bgD(SourceFile:85) at com.tencent.mm.vfs.q.bgN(SourceFile:231) at com.tencent.mm.ui.transmit.SendAppMessageWrapperUI.a(SourceFile:962) at com.tencent.mm.ui.transmit.SendAppMessageWrapperUI.a(SourceFile:26788) at com.tencent.mm.ui.transmit.SendAppMessageWrapperUI$7.a(SourceFile:718) at com.tencent.mm.pluginsdk.ui.applet.o$10.onClick(SourceFile:513) at com.tencent.mm.ui.widget.a.d$4.onClick(SourceFile:697) at android.view.View.performClick(View.java:7281) at android.view.View.performClickInternal(View.java:7255) at android.view.View.access$3600(View.java:828) at android.view.View$PerformClick.run(View.java:27924) at android.os.Handler.handleCallback(Handler.java:900) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8375) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.am.ActivityManagerService.getContentProviderImpl(libmapleservices.so:5651088) at com.android.server.am.ActivityManagerService.getContentProvider(libmapleservices.so:5668252) at android.app.IActivityManager$Stub.onTransact(libmapleframework.so:5488216) at com.android.server.am.ActivityManagerService.onTransact(libmapleservices.so:6774416) at com.android.server.am.HwActivityManagerService.onTransact(libmaplehwServices.so:1435196)
2021-02-10老哥,你这个图片不存在是用户只有一个微信的情况下发生的吗,看用户Android6.0的应该没有微信双开功能
安卓分享图片至朋友圈提示图片不存在?应用调用分享sdk,分享朋友圈,跳转到分享界面,不显示图片,点击发表提示“图片不存在”,目前线上有一个用户反馈此问题,想了解下是什么原因导致的,能跳转到微信界面的情况下,应该是数据都校验通过的。 设备:oppo a57t ;android 6.0.1 [图片]
2021-02-10建议你保存在相册后,使用相册图片uri进行分享,亲测可用。。线上问题怀疑是分区存储导致的图片uri权限问题导致
Android 11 的分身微信中,使用微信分享 SDK 分享失败https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Share_and_Favorites/Android.html 在Android 11 的分身微信中,使用上述方式进行分享,会分享失败。
2020-12-06建议你保存在相册后,使用相册图片uri进行分享,亲测可用。。线上问题怀疑是分区存储导致的图片uri权限问题导致
微信分享图片问题,,微信分身无法分享成功https://developers.weixin.qq.com/doc/oplatform/Mobile_App/FAQ/Android.html 微信分享图片问题,使用imagePath,微信分身无法分享成功,
2020-12-06建议你保存在相册后,使用相册图片uri进行分享,亲测可用。。线上问题怀疑是分区存储导致的图片uri权限问题导致
使用imagePath分享到微信(双开)分身失败https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Share_and_Favorites/Android.html [图片] 能调起来双开微信,但是分享不出去,其它的分享链接那些是可以的,就是图片不行
2020-12-06