Only modify network settings on system user

Captive portal, wi-fi and mobile data should not be modified for secondary users without user intervention

Issue: calyxos#1025
Change-Id: Ic24d18268d05b5a1535b3993bdd0a614055847f6
This commit is contained in:
Oliver Scott
2022-06-01 12:11:32 +02:00
committed by Michael Bestas
parent 8e8329a05c
commit 0002daed48
4 changed files with 13 additions and 5 deletions

View File

@@ -37,7 +37,9 @@ public class NetworkSetupActivity extends WrapperSubBaseActivity {
@Override
protected void onStartSubactivity() {
tryEnablingWifi();
if (SetupWizardUtils.isOwner()) {
tryEnablingWifi();
}
Intent intent = new Intent(ACTION_SETUP_NETWORK);
if (SetupWizardUtils.hasLeanback(this)) {
intent.setComponent(SetupWizardUtils.sTvWifiSetupSettingsActivity);