我的应用程序包含对等2对等功能,因此想知道是否会有任何限制阻止我,包括一个基本的http服务器,新设备可以连接到该服务器以进行基础应用程序的即时应用安装,而p2p功能却不可用互联网连接。
假设您的私人服务器可以提供/下载设备所需的文件,然后...
首先,需要通过用户手动安装或使用adb install <apk>
来安装普通APK。
现在,对于Instant App,您不能手动安装它,而必须运行:
../Android/Sdk/extras/google/instantapps/ia run <instant-app>
Usage: run [-s=<deviceSerial>] [-u=<url>] [<appArtifact>...]
Launches an instant app
[<appArtifact>...] Instant app ZIP, APK set, or list of APKs
-s, --serial=<deviceSerial>
Device serial number
-u, --url=<url> Instant app URL
对您的问题:您可以这样做吗?