Loading services/core/java/com/android/server/am/ActivityStarter.java +6 −5 Original line number Original line Diff line number Diff line Loading @@ -533,11 +533,12 @@ class ActivityStarter { auxiliaryResponse, originalIntent, resolvedType, callingPackage, auxiliaryResponse, originalIntent, resolvedType, callingPackage, verificationBundle, userId); verificationBundle, userId); } } return InstantAppResolver.buildEphemeralInstallerIntent(originalIntent, return InstantAppResolver.buildEphemeralInstallerIntent( Intent.ACTION_INSTALL_INSTANT_APP_PACKAGE, originalIntent, auxiliaryResponse.failureIntent, callingPackage, verificationBundle, auxiliaryResponse.failureIntent, callingPackage, verificationBundle, resolvedType, userId, auxiliaryResponse.packageName, resolvedType, userId, auxiliaryResponse.packageName, auxiliaryResponse.splitName, auxiliaryResponse.splitName, auxiliaryResponse.versionCode, auxiliaryResponse.versionCode, auxiliaryResponse.token, auxiliaryResponse.token, auxiliaryResponse.needsPhaseTwo); auxiliaryResponse.needsPhaseTwo); } } void postStartActivityProcessing( void postStartActivityProcessing( Loading services/core/java/com/android/server/pm/InstantAppResolver.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -182,6 +182,7 @@ public abstract class InstantAppResolver { failureIntent = null; failureIntent = null; } } final Intent installerIntent = buildEphemeralInstallerIntent( final Intent installerIntent = buildEphemeralInstallerIntent( Intent.ACTION_RESOLVE_INSTANT_APP_PACKAGE, requestObj.origIntent, requestObj.origIntent, failureIntent, failureIntent, requestObj.callingPackage, requestObj.callingPackage, Loading Loading @@ -226,6 +227,7 @@ public abstract class InstantAppResolver { * Builds and returns an intent to launch the instant installer. * Builds and returns an intent to launch the instant installer. */ */ public static Intent buildEphemeralInstallerIntent( public static Intent buildEphemeralInstallerIntent( @NonNull String action, @NonNull Intent origIntent, @NonNull Intent origIntent, @NonNull Intent failureIntent, @NonNull Intent failureIntent, @NonNull String callingPackage, @NonNull String callingPackage, Loading @@ -239,7 +241,7 @@ public abstract class InstantAppResolver { boolean needsPhaseTwo) { boolean needsPhaseTwo) { // Construct the intent that launches the instant installer // Construct the intent that launches the instant installer int flags = origIntent.getFlags(); int flags = origIntent.getFlags(); final Intent intent = new Intent(); final Intent intent = new Intent(action); intent.setFlags(flags intent.setFlags(flags | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK Loading Loading
services/core/java/com/android/server/am/ActivityStarter.java +6 −5 Original line number Original line Diff line number Diff line Loading @@ -533,11 +533,12 @@ class ActivityStarter { auxiliaryResponse, originalIntent, resolvedType, callingPackage, auxiliaryResponse, originalIntent, resolvedType, callingPackage, verificationBundle, userId); verificationBundle, userId); } } return InstantAppResolver.buildEphemeralInstallerIntent(originalIntent, return InstantAppResolver.buildEphemeralInstallerIntent( Intent.ACTION_INSTALL_INSTANT_APP_PACKAGE, originalIntent, auxiliaryResponse.failureIntent, callingPackage, verificationBundle, auxiliaryResponse.failureIntent, callingPackage, verificationBundle, resolvedType, userId, auxiliaryResponse.packageName, resolvedType, userId, auxiliaryResponse.packageName, auxiliaryResponse.splitName, auxiliaryResponse.splitName, auxiliaryResponse.versionCode, auxiliaryResponse.versionCode, auxiliaryResponse.token, auxiliaryResponse.token, auxiliaryResponse.needsPhaseTwo); auxiliaryResponse.needsPhaseTwo); } } void postStartActivityProcessing( void postStartActivityProcessing( Loading
services/core/java/com/android/server/pm/InstantAppResolver.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -182,6 +182,7 @@ public abstract class InstantAppResolver { failureIntent = null; failureIntent = null; } } final Intent installerIntent = buildEphemeralInstallerIntent( final Intent installerIntent = buildEphemeralInstallerIntent( Intent.ACTION_RESOLVE_INSTANT_APP_PACKAGE, requestObj.origIntent, requestObj.origIntent, failureIntent, failureIntent, requestObj.callingPackage, requestObj.callingPackage, Loading Loading @@ -226,6 +227,7 @@ public abstract class InstantAppResolver { * Builds and returns an intent to launch the instant installer. * Builds and returns an intent to launch the instant installer. */ */ public static Intent buildEphemeralInstallerIntent( public static Intent buildEphemeralInstallerIntent( @NonNull String action, @NonNull Intent origIntent, @NonNull Intent origIntent, @NonNull Intent failureIntent, @NonNull Intent failureIntent, @NonNull String callingPackage, @NonNull String callingPackage, Loading @@ -239,7 +241,7 @@ public abstract class InstantAppResolver { boolean needsPhaseTwo) { boolean needsPhaseTwo) { // Construct the intent that launches the instant installer // Construct the intent that launches the instant installer int flags = origIntent.getFlags(); int flags = origIntent.getFlags(); final Intent intent = new Intent(); final Intent intent = new Intent(action); intent.setFlags(flags intent.setFlags(flags | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK Loading