Bug #8029

trigger apps/framework handle SecurityException when sending to apps that don't grant permission

Added by Anonymous about 1 year ago.

Status:NewStart date:09/28/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Component:

Description

If an Activity/Service does not grant permission to other apps to sent it Intents, then a SecurityException will be thrown. The trigger app needs to handle this and not crash.

                        E  java.lang.SecurityException: Not allowed to start service Intent { act=info.guardianproject.panic.action.TRIGGER pkg=org.awesomeapp.messenger.debug (has extras) } without permission not exported from uid 10136
                        E      at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1511)
                        E      at android.app.ContextImpl.startService(ContextImpl.java:1488)
                        E      at android.content.ContextWrapper.startService(ContextWrapper.java:494)
                        E      at info.guardianproject.fakepanicbutton.MainActivity$4.onClick(MainActivity.java:194)
                        E      at android.view.View.performClick(View.java:4445)
                        E      at android.view.View$PerformClick.run(View.java:18429)
                        E      at android.os.Handler.handleCallback(Handler.java:733)
                        E      at android.os.Handler.dispatchMessage(Handler.java:95)
                        E      at android.os.Looper.loop(Looper.java:136)
                        E      at android.app.ActivityThread.main(ActivityThread.java:5001)
                        E      at java.lang.reflect.Method.invokeNative(Native Method)
                        E      at java.lang.reflect.Method.invoke(Method.java:515)
                        E      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
                        E      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
                        E      at dalvik.system.NativeStart.main(Native Method)

Related issues

Copied from Panic - Bug #8010: trigger apps/framework handle SecurityException when send... New 09/28/2015

Also available in: Atom PDF