Admob 安全异常:权限被拒绝

2024-03-24

我点击 AdView 并打开阿里巴巴应用程序 https://play.google.com/store/apps/details?id=com.alibaba.intl.android.apps.poseidonPlay商店页面,然后安装它。之后,我开始收到此错误,并且每当我点击 AdView 时我的应用程序就会崩溃。卸载这个阿里巴巴应用程序后,我可以点击并查看广告。

现在我很好奇为什么会发生这种情况?

Caused by java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.alibaba.intl.android.apps.poseidon/com.alibaba.android.intl.weex.activity.WeexPageActivity } from ProcessRecord{800f07c 11735:com.figengungor.konuscevir/u0a452} (pid=11735, uid=10452) not exported from uid 10256

这是我的完整崩溃报告:

Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.figengungor.konuscevir/com.google.android.gms.ads.AdActivity}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.alibaba.intl.android.apps.poseidon/com.alibaba.android.intl.weex.activity.WeexPageActivity } from ProcessRecord{800f07c 11735:com.figengungor.konuscevir/u0a452} (pid=11735, uid=10452) not exported from uid 10256
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2726)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2787)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1504)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6247)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:872)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:762)
arrow_drop_down
Caused by java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.alibaba.intl.android.apps.poseidon/com.alibaba.android.intl.weex.activity.WeexPageActivity } from ProcessRecord{800f07c 11735:com.figengungor.konuscevir/u0a452} (pid=11735, uid=10452) not exported from uid 10256
android.os.Parcel.readException (Parcel.java:1683)
android.os.Parcel.readException (Parcel.java:1636)
android.app.ActivityManagerProxy.startActivity (ActivityManagerNative.java:3141)
android.app.Instrumentation.execStartActivity (Instrumentation.java:1520)
android.app.Activity.startActivityForResult (Activity.java:4317)
android.app.Activity.startActivityForResult (Activity.java:4276)
android.app.Activity.startActivity (Activity.java:4600)
android.app.Activity.startActivity (Activity.java:4568)
com.google.android.gms.ads.internal.util.ac.a (:com.google.android.gms.DynamiteModulesA:1154)
com.google.android.gms.ads.internal.overlay.a.a (:com.google.android.gms.DynamiteModulesA:93)
com.google.android.gms.ads.internal.overlay.a.a (:com.google.android.gms.DynamiteModulesA:36)
com.google.android.gms.ads.internal.overlay.m.a (:com.google.android.gms.DynamiteModulesA:366)
com.google.android.gms.ads.internal.overlay.client.c.onTransact (:com.google.android.gms.DynamiteModulesA:58)
android.os.Binder.transact (Binder.java:499)
com.google.android.gms.b.ahc.a ()
com.google.android.gms.ads.AdActivity.onCreate ()
android.app.Activity.performCreate (Activity.java:6757)
android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1119)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2679)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2787)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1504)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6247)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:872)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:762)

这不是您的应用程序中的错误,而是“阿里巴巴B2B贸易”应用程序中的错误。从该应用程序的 apk 中:

$ aapt l -a Alibaba\ com\ B2B\ Trade\ App_v4.15.1.apk | grep -A 17 WeexPageActivity 
      E: activity (line=1284)
        A: android:theme(0x01010000)=@0x7f0a010d
        A: android:name(0x01010003)="com.alibaba.android.intl.weex.activity.WeexPageActivity" (Raw: "com.alibaba.android.intl.weex.activity.WeexPageActivity")
        A: android:exported(0x01010010)=(type 0x12)0x0
        A: android:screenOrientation(0x0101001e)=(type 0x10)0xffffffff
        A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
        E: intent-filter (line=1290)
          E: action (line=1291)
            A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
          E: category (line=1293)
            A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
          E: category (line=1294)
            A: android:name(0x01010003)="com.alibaba.android.intl.category.WEEX" (Raw: "com.alibaba.android.intl.category.WEEX")
          E: data (line=1296)
            A: android:scheme(0x01010027)="http" (Raw: "http")
          E: data (line=1297)
            A: android:scheme(0x01010027)="https" (Raw: "https")
          E: data (line=1298)
            A: android:scheme(0x01010027)="file" (Raw: "file")

看起来他们将 http/https/file 方案(未指定主机)注册到未导出的 Activity。因此,每个尝试使用这些方案之一启动意图的应用程序都会崩溃。

我的 2 美分:Android 不应该使应用程序崩溃,在这种情况下它应该忽略未导出的活动。

更多细节here https://github.com/wordpress-mobile/WordPress-Android/issues/4991. 他们已接到通知 https://github.com/alibaba/weex/issues/2139#issuecomment-270736431并且应该尽快修复他们的应用程序。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Admob 安全异常:权限被拒绝 的相关文章

随机推荐

  • 如何在存储库根文件夹中没有 .travis.yml 文件的情况下使用 Travis?

    我真的很想使用 Travis 而不需要将 travis yml 存储在我的存储库的根文件夹中 知道是否可以将其移动到不同的文件夹中 存储在另一个存储库中或在 Travis 网站上指定吗 From 定制构建 http docs travis
  • 通过 Web API 2 流式传输视频内容

    我正在研究执行以下操作的最佳方法 我有一堆闭路电视录像文件 MP4 文件 大小从 4MB 50MB 不等 我想通过门户网站提供这些文件 我的第一个想法是通过 Web API 流式传输文件 所以我找到了下面的链接 http www strat
  • R中DataTable中的条件格式单元格

    到目前为止我有以下代码作为示例 library DT datatable iris options list pageLength 5 gt formatStyle Sepal Width backgroundColor styleInte
  • 如何在 Elm 中换行 html 文本

    我有这样的文字 Special menu nFrenchfire 1ea nHamborger 2ea nMeatball 1ea 我想用 Html 标签在 Elm 中对其进行断线 例如pre or span它应该像这样显示 Special
  • Linux/ 将目录作为文件打开

    我一直在阅读 Brian Kernighan 和 Dennis Ritchie C 编程语言 第 8 6 章是关于 UNIX 操作系统下的目录列表的 他们说一切 甚至目录都是文件 这意味着我应该能够将目录作为文件打开 我已经尝试使用 std
  • 作曲家更新 -vvv 不起作用

    我已经在 ubuntu 14 04 上全局安装了 Composer 当我跑步时作曲家 版本它适用于以下输出 Composer version 1 0 dev 45b1f356c24d87788a339f6a50d6d78bef464c47
  • 如何在 Pygame 中一次运行多个 while 循环

    我正在尝试为一个项目开发一个简单的 Pygame 程序 该项目仅显示一些面孔并以文本到语音的方式进行对话 但最后有一个 while 循环 这是代码运行所必需的 但会阻止另一个 while 循环我需要程序运行 我试图添加的 while 循环用
  • Spring Security 中的会话在手动过期(无效)后不会被销毁

    我正在编写一个游戏 网络应用程序 的代码 我想在其中实施以下策略 允许用户登录一次 第二次登录会出现警告消息和一个选择 离开或坚持登录 如果用户选择登录 则他之前的所有会话都将过期 由于 Spring Security 设施 它运行良好 p
  • 如何在Visual Studio代码中连接TFS

    我是 VS 代码新手 到目前为止 它看起来非常好 而且比 VS 轻得多 我如何将现有的 TFS 服务器连接到 VS 代码 我的 TFS 必须保留在本地 公司要求 我读到这是可以做到的 但到目前为止我只看到了 Git 或 TFVC 的示例 正
  • Pandas:查找一列中的所有唯一值并将另一列中的所有值标准化为其最后一个值

    Problem 我想在一列中找到所有唯一值并标准化 另一列中的对应值与其最后一个值 我想通过pandas模块使用python3 Example 原始数据集 Fruit Amount Orange 90 Orange 80 Orange 10
  • SQL Server 逻辑分组最近时间

    我正在寻找解决这个问题的最佳方法 但到目前为止还没有任何运气 我正在使用 Microsoft SQL Server 2008 这是用户的示例数据 姓名 状态 日期 鲍勃活跃 2011 03 07 鲍勃活跃 2011 03 11 鲍勃已残疾
  • Vimscript:函数定义中的“中止”有什么意义?

    在 vim 脚本中 function定义可以采取abort争论 引用文档 When the abort argument is added the function will abort as soon as an error is det
  • 色调在 DataBinding 中不起作用 <21 版本

    我在用数据绑定 https developer android com topic libraries data binding to tint向量可绘制的ImageView基于布尔标志 此代码适用于 gt 21 版本 但在
  • C 中的堆损坏

    int main int b b int malloc 1 b 110000 free b return 0 为什么堆损坏发生在free b IMO 堆损坏已经发生在 b 110000 malloc 的参数是要分配的字节数 您需要使用 b
  • Django-Channels 2 不保留“connect”中的会话数据集

    channels 2 1 2 channels redis 2 2 1 daphne 2 2 0 Django 1 11 6 我已升级到频道 2 专门为了能够访问和修改从消费者内部进行会话 并在视图中访问它 但这似乎不起作用 基本上 我想确
  • 当有 9GB 可用内存时,oom-killer 杀死了我的应用程序

    One of our production server experienced an oom killer problem in 2020 12 26 20 05 30 but I can not figure out the cause
  • CreateMutex——“访问被拒绝”

    以下代码有时可以正常工作 但有时会抛出 访问被拒绝 错误 行为并不一致 hMutex CreateMutex NULL FALSE MutexName if hMutex NULL throw MY ERROR GetLastError L
  • Linq to Xml,保持 XDocument 加载吗?

    假设我正在制作一个 WinForms 程序 它将在幕后使用 XML 文档作为持久机制 以下两种方法的优缺点是什么 在每个方法调用中加载 XDocument public class XmlFoosRepository string xmlF
  • 尝试用VBA做一些奇怪的事情(奇怪的情况)

    我在 excel 中有 2 个选项卡 我对 VBA 有点陌生 运营 Details Excel 视图 看看这个 操作 选项卡中的 描述 字段将包含不同的 操作代码 可能包含 1 个操作代码 2 个操作代码或更多 它是一个11 位数字 问题是
  • Admob 安全异常:权限被拒绝

    我点击 AdView 并打开阿里巴巴应用程序 https play google com store apps details id com alibaba intl android apps poseidonPlay商店页面 然后安装它