RM6785: init: Don't override props in recovery

Change-Id: I60f01c4b39809810adcfc8c358f15031dd4df7fa
diff --git a/BoardConfig.mk b/BoardConfig.mk
index b408f01..cdefa0b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -19,7 +19,7 @@
 # Platform
 TARGET_BOARD_PLATFORM := mt6785
 
-TARGET_OTA_ASSERT_DEVICE := RMX2001,RMX2151,RMX2001L1,RMX2003L1,RMX2005L1,RMX2002L1,RMX2151L1,RMX2153L1,RMX2155L1,RMX2156L1,RMX2161L1,RMX2163L1
+TARGET_OTA_ASSERT_DEVICE := RMX2001,RMX2151,RMX2001L1,RMX2003L1,RMX2005L1,RMX2002L1,RMX2151L1,RMX2153L1,RMX2155L1,RMX2156L1,RMX2161L1,RMX2163L1,RM6785
 
 # Architecture
 TARGET_ARCH := arm64
diff --git a/init/init_RM6785.cpp b/init/init_RM6785.cpp
index 610fe12..cb48b5d 100644
--- a/init/init_RM6785.cpp
+++ b/init/init_RM6785.cpp
@@ -131,6 +131,7 @@
 }
 
 void vendor_load_properties() {
+#ifndef __ANDROID_RECOVERY__
     auto [device, model] = get_device();
 
     set_ro_build_prop("device", device);
@@ -150,4 +151,5 @@
     if (nfc_variant()) {
         property_override("ro.boot.product.hardware.sku", "nfc");
     }
+#endif
 }