app: aboot: Do not write protect devinfo for OTA

Devinfo partition is updated during OTA with version numbers of
bootloader and radio images. Do not write protect devinfo during when
entering recovery mode.

Change-Id: Ia08ddcb393b9acf98272aaba3578b8459d3c5890
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 77d0730..f393bef 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -645,7 +645,7 @@
 
 #if VERIFIED_BOOT
 	/* Write protect the device info */
-	if (target_build_variant_user() && devinfo_present && mmc_write_protect("devinfo", 1))
+	if (!boot_into_recovery && target_build_variant_user() && devinfo_present && mmc_write_protect("devinfo", 1))
 	{
 		dprintf(INFO, "Failed to write protect dev info\n");
 		ASSERT(0);