MA-13696 Android-auto: erase misc when change lock status

When change lock status, misc partition, which stores data generated
by users, is erased.

Before, we take different actions on misc partition for Android and
Android Things. The situation of Android Auto is not handled.

Change-Id: Ia290b8e351b7a688d7a3a562cd30fca858e5a30c
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
This commit is contained in:
faqiang.zhu 2018-12-05 21:56:20 +08:00
parent 643cb9468b
commit d8243596bc
1 changed files with 1 additions and 1 deletions

View File

@ -3580,7 +3580,7 @@ static void wipe_all_userdata(void)
/* Erase /data partition */ /* Erase /data partition */
fastboot_wipe_data_partition(); fastboot_wipe_data_partition();
#ifdef CONFIG_ANDROID_SUPPORT #if defined (CONFIG_ANDROID_SUPPORT) || defined (CONFIG_ANDROID_AUTO_SUPPORT)
/* Erase the misc partition. */ /* Erase the misc partition. */
process_erase_mmc(FASTBOOT_PARTITION_MISC, response); process_erase_mmc(FASTBOOT_PARTITION_MISC, response);
#endif #endif