From bedf39fb8970195efbf5c0abbbbae4151f2124f7 Mon Sep 17 00:00:00 2001 From: Robert Lee Date: Fri, 20 Aug 2021 04:02:41 +0000 Subject: [PATCH] init.raviole.rc: chmod for speaker.cal The speaker calibration step is changed in factory and the speaker calibration file's permission is incorrect. Then audio hal cannot read speaker.cal file to apply it and only apply default cal value. Correct the file mode when init. Bug: 197039088 Test: push the script into device and check file mode after rebooting device Signed-off-by: Robert Lee Change-Id: I1339f006f4477288cb41d07cb32caba0921b6e09 --- conf/init.raviole.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.raviole.rc b/conf/init.raviole.rc index a14423d..45cc750 100644 --- a/conf/init.raviole.rc +++ b/conf/init.raviole.rc @@ -39,6 +39,9 @@ on post-fs-data chown system system /dev/goodix_fp exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app + # Speaker amp permission + chmod 666 /mnt/vendor/persist/audio/speaker.cal + # Start the twoshay touch service start twoshay