From 9db71fc14133d6289896a3d0b66a04965a22f424 Mon Sep 17 00:00:00 2001 From: vincenttew Date: Mon, 3 Jan 2022 17:52:24 +0800 Subject: [PATCH 1/2] audio: add mfg_audio record for usb recording currently mfg audio tool using audio-recordC usb-headset-mic in mixer_paths.xml, add a new path for mfg usb recording to switching the usb mic source Bug: 213027646 Test: verify pass with mfg tool usb-record Signed-off-by: vincenttew Change-Id: Ief5183b6d496c3ffe8234b59954cf9aa213eebe4 --- audio/bluejay/config/mixer_paths_factory.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/audio/bluejay/config/mixer_paths_factory.xml b/audio/bluejay/config/mixer_paths_factory.xml index 14b87bc..e68aa88 100644 --- a/audio/bluejay/config/mixer_paths_factory.xml +++ b/audio/bluejay/config/mixer_paths_factory.xml @@ -34,6 +34,14 @@ + + + + + + + + From 833f32f87c163ec4c3578e7e47d60cf01f518b74 Mon Sep 17 00:00:00 2001 From: Jack Wu Date: Mon, 10 Jan 2022 12:03:43 +0800 Subject: [PATCH 2/2] Set retaildemo settings move the settings from init.gs101.rc Bug: 204926279 Test: check demo mode functionality Signed-off-by: Jack Wu Change-Id: I2d9838fb0760021cf5e181a2df6a940142f22580 --- conf/init.bluejay.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/init.bluejay.rc b/conf/init.bluejay.rc index cbaefeb..fbe19c6 100644 --- a/conf/init.bluejay.rc +++ b/conf/init.bluejay.rc @@ -21,3 +21,9 @@ on post-fs-data # Ensure Camera sound is enforced audible for JP SKU on property:ro.boot.hardware.sku=GB17L setprop audio.camerasound.force true + +# charger driver exposes now finer grain control, map demo mode to those properties +# NOTE: demo mode can only be exit wiping data (which reset the persist properties) +on property:sys.retaildemo.enabled=1 + setprop persist.vendor.charge.stop.level 35 + setprop persist.vendor.charge.start.level 30