(SHIFT) allow downgrading unless explicitly disallowed
Change-Id: I7b37c991b1cc895d088036af3717c9fd5d3c0e1e
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/aosp/hardware_android.cc b/aosp/hardware_android.cc
index 624cfc9..c28f216 100644
--- a/aosp/hardware_android.cc
+++ b/aosp/hardware_android.cc
@@ -257,8 +257,12 @@
// Returns true if the device runs an userdebug build, and explicitly allows OTA
// downgrade.
bool HardwareAndroid::AllowDowngrade() const {
+#if 0
return GetBoolProperty("ro.ota.allow_downgrade", false) &&
GetBoolProperty("ro.debuggable", false);
+#else
+ return GetBoolProperty("ro.ota.allow_downgrade", true);
+#endif
}
bool HardwareAndroid::GetFirstActiveOmahaPingSent() const {