From e91f18369571df6952ec343e512037b5fe8a79ab Mon Sep 17 00:00:00 2001 From: songlongdaiduong Date: Thu, 5 Sep 2024 12:18:15 +0800 Subject: [PATCH] fs_mgr: Allow adbd disable verity on non-debuggable --- fs_mgr/Android.bp | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/fs_mgr/Android.bp b/fs_mgr/Android.bp index f4410112f..e82b06885 100644 --- a/fs_mgr/Android.bp +++ b/fs_mgr/Android.bp @@ -109,16 +109,9 @@ cc_defaults { "libfstab", ], cppflags: [ - "-DALLOW_ADBD_DISABLE_VERITY=0", + "-UALLOW_ADBD_DISABLE_VERITY", + "-DALLOW_ADBD_DISABLE_VERITY=1", ], - product_variables: { - debuggable: { - cppflags: [ - "-UALLOW_ADBD_DISABLE_VERITY", - "-DALLOW_ADBD_DISABLE_VERITY=1", - ], - }, - }, header_libs: [ "libfiemap_headers", "libstorage_literals_headers", @@ -241,19 +234,12 @@ cc_binary { "fs_mgr_remount.cpp", ], cppflags: [ - "-DALLOW_ADBD_DISABLE_VERITY=0", + "-UALLOW_ADBD_DISABLE_VERITY", + "-DALLOW_ADBD_DISABLE_VERITY=1", + ], + init_rc: [ + "clean_scratch_files.rc", ], - product_variables: { - debuggable: { - cppflags: [ - "-UALLOW_ADBD_DISABLE_VERITY", - "-DALLOW_ADBD_DISABLE_VERITY=1", - ], - init_rc: [ - "clean_scratch_files.rc", - ], - }, - }, symlinks: [ "clean_scratch_files", "disable-verity",