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

Commit eaf2afa9 authored by Adnan's avatar Adnan
Browse files

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

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

Change-Id: Ibf27f3e5f9194dd4380d8c59dce9b36c3408e0e6
parent 2ca28721
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1406,9 +1406,8 @@ public final class Settings {
                int userHandle) {
            if (MOVED_TO_SECURE.contains(name)) {
                Log.w(TAG, "Setting " + name + " has moved from android.provider.Settings.System"
                        + " to android.provider.Settings.Secure.");

                return Secure.putStringForUser(resolver, name, value, userHandle);
                        + " to android.provider.Settings.Secure, value is unchanged.");
                return false;
            }
            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"