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

Commit 536d7223 authored by Davis Mosenkovs's avatar Davis Mosenkovs Committed by Michael Bestas
Browse files

Settings: Don't attempt to forward writes from System -> Global.

This breaks 3rd party apps since they can't get access to WRITE_SECURE_SETTINGS.

Change-Id: I9c3b19eea046ccd2664ff92f7c0493a911c353e2
(cherry picked from commit 8fdf78cc)
parent b13a7a07
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1695,9 +1695,8 @@ public final class Settings {
            }
            if (MOVED_TO_GLOBAL.contains(name) || MOVED_TO_SECURE_THEN_GLOBAL.contains(name)) {
                Log.w(TAG, "Setting " + name + " has moved from android.provider.Settings.System"
                        + " to android.provider.Settings.Global.");

                return Global.putStringForUser(resolver, name, value, userHandle);
                        + " to android.provider.Settings.Global, value is unchanged.");
                return false;
            }
            return sNameValueCache.putStringForUser(resolver, name, value, userHandle);
        }