From 24356fe059abbc9eae1b192f7af8a46f204a36f4 Mon Sep 17 00:00:00 2001 From: zhang sanshan Date: Tue, 22 Sep 2015 22:11:03 +0800 Subject: MA-7053 when I add selinux=disable in the cmdline, the board do OTA update will fail The ota update script will set selinux label with set_metadata when do nand ota update. The root cause is set_metadata will fail if disable selinux in recovery mode. This patch is a workaround which will enable selinux in recovery mode, even if have disable selinux in commandline. Signed-off-by: zhang sanshan --- include/android_image.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/android_image.h b/include/android_image.h index 094d60a..07dfd94 100644 --- a/include/android_image.h +++ b/include/android_image.h @@ -66,4 +66,7 @@ struct andr_img_hdr { * 6. if second_size != 0: jump to second_addr * else: jump to kernel_addr */ + +void del_sub_str(const char *str, const char *sub_str, char *cmdline); + #endif -- cgit v1.1