Commit 1d19996259592176d21e2c393180027d571fb658

Authored by faqiang.zhu
1 parent 4ce19a3896

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/usb/gadget/f_fastboot.c
... ... @@ -3580,7 +3580,7 @@
3580 3580 /* Erase /data partition */
3581 3581 fastboot_wipe_data_partition();
3582 3582  
3583   -#ifdef CONFIG_ANDROID_SUPPORT
  3583 +#if defined (CONFIG_ANDROID_SUPPORT) || defined (CONFIG_ANDROID_AUTO_SUPPORT)
3584 3584 /* Erase the misc partition. */
3585 3585 process_erase_mmc(FASTBOOT_PARTITION_MISC, response);
3586 3586 #endif