OSDN Git Service

vold: restore -D__ANDROID_DEBUGGABLE__
authorMark Salyzyn <salyzyn@google.com>
Fri, 17 Jul 2020 15:17:50 +0000 (08:17 -0700)
committerMark Salyzyn <salyzyn@google.com>
Fri, 17 Jul 2020 15:20:00 +0000 (08:20 -0700)
Regression introduced by
commit 7ebcc2bcfde2cf6713e2975224034b06ba0943d8
("Revert "[Vold] Conditional dependency to ARC++ ObbVolume"")
errantly removed the product_variables support for
-D__ANDROID_DEBUGGABLE__ when built for userdebug builds.

Restore stanza.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 161454607
Test: adb-remount-test no longer reports a problem
Change-Id: Ia7e55d1174fa7fac2d934d4aac06d15e8be388af

Android.bp

index 2c47859..039f60e 100644 (file)
@@ -146,6 +146,11 @@ cc_library_static {
         "model/VolumeBase.cpp",
         "model/VolumeEncryption.cpp",
     ],
+    product_variables: {
+        debuggable: {
+            cppflags: ["-D__ANDROID_DEBUGGABLE__"],
+        },
+    },
     shared_libs: [
         "android.hardware.health.storage@1.0",
     ],