SetupWizard: Set package name for com.android.wizard.LOAD intent
https://developer.android.com/about/versions/14/behavior-changes-14#safer-intents Fixes: java.lang.RuntimeException: Unable to start activity ComponentInfo{ org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.wizard.LOAD flg=0x10000001 (has extras) } Change-Id: Ia15bc000011acb05b2db06299d142cabdf4e30c8
This commit is contained in:
@@ -68,6 +68,7 @@ public class SetupWizardActivity extends BaseSetupWizardActivity {
|
||||
getString(R.string.lineage_wizard_script_user_uri));
|
||||
}
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | FLAG_GRANT_READ_URI_PERMISSION);
|
||||
intent.setPackage(getPackageName());
|
||||
startActivity(intent);
|
||||
finish();
|
||||
}
|
||||
|
Reference in New Issue
Block a user