app: aboot: Call delete keys when wiping userdata
Call delete keys api when wiping userdata
Change-Id: I81fe028a8e5e9618ef561279e6a14cac9f471a7e
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 0607cdd..28cb7fd 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -87,6 +87,7 @@
#include "board.h"
#include "scm.h"
#include "mdtp.h"
+#include "secapp_loader.h"
extern bool target_use_signed_kernel(void);
extern void platform_uninit(void);
@@ -2191,6 +2192,11 @@
return;
}
}
+#if VERIFIED_BOOT
+ if(!(strncmp(arg, "userdata", 8)))
+ if(send_delete_keys_to_tz())
+ ASSERT(0);
+#endif
fastboot_okay("");
}