Directly stream APK into install session

This commit is contained in:
topjohnwu
2022-02-03 03:22:55 -08:00
parent 79620c97d1
commit 10f991b8d0
6 changed files with 67 additions and 44 deletions

View File

@ -119,7 +119,7 @@ public class DownloadActivity extends Activity {
runOnUiThread(onSuccess);
} else {
var receiver = APKInstall.register(this, BuildConfig.APPLICATION_ID, onSuccess);
APKInstall.installapk(this, file);
APKInstall.install(this, file);
Intent intent = receiver.waitIntent();
if (intent != null) startActivity(intent);
}