On Fri, Jan 17, 2014 at 9:19 AM, Absinthe <[email protected]> wrote:
> - If app B is not pre-installed but must be downloaded from Google Play,
> then when A tries to launch B, it receives a SecurityException:
> java.lang.SecurityException: Permission Denial: starting Intent {
> cmp=com.B/.MainShadowActivity (has extras) } from ProcessRecord{} (pid=1987,
> uid=10211) requires com.B.permission.START_ACTIVITY
Not clear which app is declaring the custom permission. In any case it needs to
be installed first, the system cannot grant you a permission it
doesn't know about,
hence the exception. If it's pre-installed, the permission is added to
the database
(packages.xml) at first boot. If not, it's added when it's installed.
Pull packages.xml
to confirm.
Protection-level and signing certificate do not matter here.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.