Android Instant Apps - cannot "run untrusted software, run arbitrary native code." Instant Apps Runtime Only

Android Instant Apps documentation in the restricted functions section, which it cannot:

Run untrusted software, run arbitrary custom code, or load the code dynamically, except for the code provided by the Instant Apps runtime .

I do not fully understand the above statement, but it sounds to me as if it might not accept third-party software or any of its own libraries other than the libraries given in the SDK/NDK .

Can anyone help with the development?

+7
android android-instant-apps
source share
3 answers

This statement:

Prepare Your Application> Limited Features

Run untrusted software, run arbitrary custom code or boot code dynamically, except for the code provided by the Instant Apps runtime.

Refers to APKs, libraries, or code downloaded sideways, not packaged in the original apk.

unverified software

  • In other words, only signed apk and its contents are allowed.

custom native code

  • Everything should be launched from your apk or provided by the infrastructure.

dynamic boot code

  • For example, using DexClassLoader to extract files that are not yet packaged in apk.
+5
source share

You can use third-party libraries. For example, what you cannot do is download the binary from your server at runtime and run it.

+4
source share

An unofficial answer from a Google spokesperson was that with Instant Apps, unlike regular apps, there is no technical way to run downloaded code or dynamically load classes. For regular applications, the restriction is recorded in the Play Store Developer Policy and applies only to the Play Store through standard security monitoring procedures.

0
source share

All Articles