fs_mgr: Allow adbd disable verity on non-debuggable

This commit is contained in:
songlongdaiduong 2024-09-05 12:18:15 +08:00 committed by Fazil Sheik
parent e9a28d75c0
commit e91f183695
1 changed files with 7 additions and 21 deletions

View File

@ -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",