Reputation: 111
Android Instant Apps documentation states in the restricted features section that it can not:
I don't fully understand the above statement but it sounds to me like it may not accept any third party software or any native libraries other than libraries given in SDK/NDK
.
Could someone help to elaborate?
Upvotes: 7
Views: 327
Reputation: 591
This statement:
Prepare your app > Restricted features
Run unverified software, run arbitrary native code, or load code dynamically other than the code provided by the Instant Apps runtime.
Refers to APKs, libraries, or code that is sideloaded, not packaged within the original apk.
unverified software
arbitrary native code
load code dynamically
Upvotes: 6
Reputation: 57163
An unofficial answer from an official Google representative was that with Instant Apps, unlike normal apps, there is no technical way to run downloaded code, or load classes dynamically. For normal apps, the restriction is written in Play Store Developer Policy, and is enforced only on Play Store via standard security monitoring procedures.
Upvotes: 0
Reputation: 3690
You can use third-party libraries. What you can't do, for example, is download a binary from your server at runtime and run that.
Upvotes: 4