diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 93061ee174a9f..9d4a24936eb80 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -15429,27 +15429,9 @@ public final class Settings { */ public static int getInt(ContentResolver cr, String name, int def) { String v = getString(cr, name); - final boolean isQueryForDeviceProvision = name.equals(DEVICE_PROVISIONED); try { - // TODO(b/197879371): remove the extra logging after bug is fixed - final int result; - if (v != null) { - result = Integer.parseInt(v); - if (isQueryForDeviceProvision) { - Log.w(TAG, "Found settings value for provision. Returning " + result); - } - } else { - result = def; - if (isQueryForDeviceProvision) { - Log.w(TAG, "Missing settings value for provision. Returning " + result); - } - } - return result; + return v != null ? Integer.parseInt(v) : def; } catch (NumberFormatException e) { - if (isQueryForDeviceProvision) { - Log.w(TAG, "Wrong settings value for provision. Found: " + v - + ". Returning " + v); - } return def; } }