nanohub HAL: define magic value for nanoapp
Bug: 28265099
Change-Id: Ifd8082aa7a72af9a02e9ad6bc66100e465f46ec0
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
diff --git a/include/hardware/context_hub.h b/include/hardware/context_hub.h
index 4b47b64..e4d50ef 100644
--- a/include/hardware/context_hub.h
+++ b/include/hardware/context_hub.h
@@ -121,6 +121,7 @@
#define NANOAPP_SIGNED_FLAG 0x1
#define NANOAPP_ENCRYPTED_FLAG 0x2
+#define NANOAPP_MAGIC (((uint32_t)'N' << 0) | ((uint32_t)'A' << 8) | ((uint32_t)'N' << 16) | ((uint32_t)'O' << 24))
// The binary format below is in little endian format
struct nano_app_binary_t {