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 <lerobert@google.com>
Change-Id: I1339f006f4477288cb41d07cb32caba0921b6e09
This commit is contained in:
Robert Lee 2021-08-20 04:02:41 +00:00
parent 0e8a67f822
commit bedf39fb89

View file

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