Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 682c6e8d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "DevicePolicyManager: ignore invalid proxy settings" into security-aosp-25Q2-staging

parents 6ef64953 2658e2f1
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -8708,10 +8708,15 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            Slogf.e(LOG_TAG, "Invalid proxy properties, ignoring: " + proxyProperties.toString());
            return;
        }
        try {
            mInjector.settingsGlobalPutString(Global.GLOBAL_HTTP_PROXY_HOST, data[0]);
            mInjector.settingsGlobalPutInt(Global.GLOBAL_HTTP_PROXY_PORT, proxyPort);
            mInjector.settingsGlobalPutString(Global.GLOBAL_HTTP_PROXY_EXCLUSION_LIST,
                    exclusionList);
        } catch (Exception e) {
            //Ignore any potential errors from SettingsProvider, b/365975561
            Slogf.w(LOG_TAG, "Fail to save proxy", e);
        }
    }
    /**