0

I got this error when I try to launch the details screen.

IActivityManagerProxy : Instant app: com.foo.bar crashed: java.lang.SecurityException: Not allowed to start activity Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.foo.bar }

Is there any work around to launch details on instant app?

  • `java.lang.SecurityException: Not allowed to start activity` is one of the messages that says that the instant app is not allowed to do this / restricted feature – TWL Sep 07 '18 at 23:01
  • @TWL Is there a way to navigate to instant app info? Just to allow the permission? – King James Castro Sep 08 '18 at 04:30
  • Probably not, since getting to the details screen is different on pre-O vs O+, one through the Google settings, the other the normal way like installed-apps. – TWL Sep 08 '18 at 04:37

1 Answers1

0

You're trying to access settings. This is intentionally not available to instant apps for security reasons.

A workaround would be to ask the user to manually go to the settings in case your app is running in the instant app context.

Ben Weiss
  • 17,182
  • 6
  • 67
  • 87