Merge "Fix VerificationActivity Intent"

This commit is contained in:
Treehugger Robot
2020-02-21 05:51:24 +00:00
committed by Gerrit Code Review

View File

@@ -84,7 +84,6 @@ public class VerificationActivity extends Activity {
// retrieve data from calling intent // retrieve data from calling intent
Intent callingIntent = getIntent(); Intent callingIntent = getIntent();
Uri url = callingIntent.getData(); Uri url = callingIntent.getData();
Bundle extras = callingIntent.getExtras();
if (url != null) { if (url != null) {
sVerifiedUrl = url.toString(); sVerifiedUrl = url.toString();
@@ -96,7 +95,7 @@ public class VerificationActivity extends Activity {
intent.setData(url); intent.setData(url);
} }
intent.setAction(DynamicSystemClient.ACTION_START_INSTALL); intent.setAction(DynamicSystemClient.ACTION_START_INSTALL);
intent.putExtras(extras); intent.putExtras(callingIntent);
Log.d(TAG, "Starting Installation Service"); Log.d(TAG, "Starting Installation Service");
startServiceAsUser(intent, UserHandle.SYSTEM); startServiceAsUser(intent, UserHandle.SYSTEM);