Admob Security Exception:Permission Denial

时间:2017-01-07 21:21:34

标签: android admob adview

点按我的AdView并在Play商店中打开alibaba app页面,然后安装它。之后,当我点击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)

1 个答案:

答案 0 :(得分:9)

这不是您应用中的错误,但这是"阿里巴巴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")

看起来他们向未导出的Activity注册了http / https /文件方案(未指定主机)。因此,每个尝试使用其中一个方案启动意图的应用程序都会崩溃。

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

更多详情hereThey've been notified并且应尽快修复他们的应用。