Add exclusion criteria for "Fix Recovery Bootloop"
Should only be included on devices that use initramfs,
i.e. legacy SAR, recovery-in-boot
Change-Id: I2408fcd993e1e381f49b3d5ae860694b2fade4d2
diff --git a/data.cpp b/data.cpp
index 1fc7f35..cdade08 100755
--- a/data.cpp
+++ b/data.cpp
@@ -793,7 +793,11 @@
#else
mPersist.SetValue(TW_UNMOUNT_SYSTEM, "1");
#endif
-
+#if defined BOARD_USES_RECOVERY_AS_BOOT && defined BOARD_BUILD_SYSTEM_ROOT_IMAGE
+ mConst.SetValue("tw_uses_initramfs", "1");
+#else
+ mConst.SetValue("tw_uses_initramfs", "0");
+#endif
#ifdef TW_NO_SCREEN_TIMEOUT
mConst.SetValue("tw_screen_timeout_secs", "0");
mConst.SetValue("tw_no_screen_timeout", "1");