Config config_useFixedVolume to be true in Car emulator.
By setting config_useFixedVolume to be true, the
AudioManager.setStreamVolume or similar calls based on stream_type would
be a no-op.
Bug: 65751827
Test: m -j && launch car emulator
Change-Id: I70821dfe65fbca5a7122379049357bec07a5a30b
diff --git a/common/car.mk b/common/car.mk
index 0663773..d55c177 100644
--- a/common/car.mk
+++ b/common/car.mk
@@ -17,6 +17,8 @@
# TODO Remove this when AAE is fully treble ready
PRODUCT_FULL_TREBLE_OVERRIDE := false
+DEVICE_PACKAGE_OVERLAYS =: device/generic/car/overlay
+
# Auto modules
PRODUCT_PACKAGES += \
android.hardware.automotive.vehicle@2.0-service
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..76fcd52
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,4 @@
+<resources>
+ <!-- Car uses hardware amplifier for volume. -->
+ <bool name="config_useFixedVolume">true</bool>
+</resources>