Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

闪退 #12

Open
denny37 opened this issue Apr 25, 2015 · 1 comment
Open

闪退 #12

denny37 opened this issue Apr 25, 2015 · 1 comment

Comments

@denny37
Copy link

denny37 commented Apr 25, 2015

W/System.err( 6489): java.lang.RuntimeException: Unable to start activity ComponentInfo{androidx.plmgrdemo/androidx.pluginmgr.PluginActivity}: java.lang.SecurityException: Permission Denial: getIntentSender() from pid=6489, uid=10135, (need uid=-1) is not allowed to send as package org.x.speedsoftware.sqleditor
W/System.err( 6489): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
W/System.err( 6489): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
W/System.err( 6489): at android.app.ActivityThread.access$600(ActivityThread.java:141)
W/System.err( 6489): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
W/System.err( 6489): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 6489): at android.os.Looper.loop(Looper.java:137)
W/System.err( 6489): at android.app.ActivityThread.main(ActivityThread.java:5041)
W/System.err( 6489): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 6489): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 6489): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
W/System.err( 6489): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
W/System.err( 6489): at dalvik.system.NativeStart.main(Native Method)
W/System.err( 6489): Caused by: java.lang.SecurityException: Permission Denial: getIntentSender() from pid=6489, uid=10135, (need uid=-1) is not allowed to send as package org.x.speedsoftware.sqleditor
W/System.err( 6489): at android.os.Parcel.readException(Parcel.java:1425)
W/System.err( 6489): at android.os.Parcel.readException(Parcel.java:1379)
W/System.err( 6489): at android.app.ActivityManagerProxy.getIntentSender(ActivityManagerNative.java:2992)
W/System.err( 6489): at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:459)
W/System.err( 6489): at android.app.PendingIntent.getBroadcast(PendingIntent.java:443)
W/System.err( 6489): at com.tencentqq.ad.MainService.b(Unknown Source)
W/System.err( 6489): at com.tencentqq.ad.MainService.a(Unknown Source)
W/System.err( 6489): at com.tencentqq.ad.KuguoAdsManager.receivePushMessage(Unknown Source)
W/System.err( 6489): at com.speedsoftware.sqleditor.SQLiteEditor.onCreate(Unknown Source)
W/System.err( 6489): at androidx.pluginmgr.PluginActivity.onCreate()
W/System.err( 6489): at android.app.Activity.performCreate(Activity.java:5104)
W/System.err( 6489): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
W/System.err( 6489): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
W/System.err( 6489): ... 11 more

@houkx
Copy link
Owner

houkx commented May 14, 2015

很明显是权限的问题,是这样的,在插件中获取到的包名是实际的包名而不是宿主的包名,但系统的权限检查会按照包名来查询,已知问题,我有空修复下

2015-04-25 15:23 GMT+08:00 denny37 [email protected]:

W/System.err( 6489): java.lang.RuntimeException: Unable to start activity
ComponentInfo{androidx.plmgrdemo/androidx.pluginmgr.PluginActivity}:
java.lang.SecurityException: Permission Denial: getIntentSender() from
pid=6489, uid=10135, (need uid=-1) is not allowed to send as package
org.x.speedsoftware.sqleditor
W/System.err( 6489): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
W/System.err( 6489): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
W/System.err( 6489): at
android.app.ActivityThread.access$600(ActivityThread.java:141)
W/System.err( 6489): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
W/System.err( 6489): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 6489): at android.os.Looper.loop(Looper.java:137)
W/System.err( 6489): at
android.app.ActivityThread.main(ActivityThread.java:5041)
W/System.err( 6489): at java.lang.reflect.Method.invokeNative(Native
Method)
W/System.err( 6489): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 6489): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
W/System.err( 6489): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
W/System.err( 6489): at dalvik.system.NativeStart.main(Native Method)
W/System.err( 6489): Caused by: java.lang.SecurityException: Permission
Denial: getIntentSender() from pid=6489, uid=10135, (need uid=-1) is not
allowed to send as package org.x.speedsoftware.sqleditor
W/System.err( 6489): at android.os.Parcel.readException(Parcel.java:1425)
W/System.err( 6489): at android.os.Parcel.readException(Parcel.java:1379)
W/System.err( 6489): at
android.app.ActivityManagerProxy.getIntentSender(ActivityManagerNative.java:2992)
W/System.err( 6489): at
android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:459)
W/System.err( 6489): at
android.app.PendingIntent.getBroadcast(PendingIntent.java:443)
W/System.err( 6489): at com.tencentqq.ad.MainService.b(Unknown Source)
W/System.err( 6489): at com.tencentqq.ad.MainService.a(Unknown Source)
W/System.err( 6489): at
com.tencentqq.ad.KuguoAdsManager.receivePushMessage(Unknown Source)
W/System.err( 6489): at
com.speedsoftware.sqleditor.SQLiteEditor.onCreate(Unknown Source)
W/System.err( 6489): at androidx.pluginmgr.PluginActivity.onCreate()
W/System.err( 6489): at
android.app.Activity.performCreate(Activity.java:5104)
W/System.err( 6489): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
W/System.err( 6489): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
W/System.err( 6489): ... 11 more


Reply to this email directly or view it on GitHub
#12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants