From 5cdbd02063942c547921c3853c7e73e87671ae1a Mon Sep 17 00:00:00 2001 From: Madhav Iyengar Date: Thu, 9 May 2024 22:45:16 +0000 Subject: [PATCH 1/2] Add BT offload AOC services for Zuma Bug: 342415506 Test: Works with other CLs in topic. Change-Id: Iadf8bc7baedf0b798de673735a6925f60b992646 --- conf/ueventd.zuma.rc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/ueventd.zuma.rc b/conf/ueventd.zuma.rc index 8564d994..e69f4672 100644 --- a/conf/ueventd.zuma.rc +++ b/conf/ueventd.zuma.rc @@ -159,6 +159,11 @@ /dev/acd-com.google.bt 0660 system system /dev/acd-com.google.bt.non_wake_up 0660 system system +# AoC Bluetooth Offload +/dev/acd-chre_bt_offload_ctl 0660 bluetooth bluetooth +/dev/acd-chre_bt_offload_data_tx 0220 bluetooth bluetooth +/dev/acd-chre_bt_offload_data_rx 0440 bluetooth bluetooth + # LWIS /dev/lwis* 0660 system system @@ -245,4 +250,4 @@ /sys/bus/aoc/devices/control udfps_get_disp_freq 0440 system system # USB Alt Modes -/sys/devices/platform/10cb0000.hsi2c/i2c-*/*-0025/typec/port0/port0-partner/port0-partner.* mode1/active 0664 system system \ No newline at end of file +/sys/devices/platform/10cb0000.hsi2c/i2c-*/*-0025/typec/port0/port0-partner/port0-partner.* mode1/active 0664 system system From 5978809ae71815193b8c0a7395f4e103ec269461 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 29 May 2024 11:05:39 -0700 Subject: [PATCH 2/2] Only copy EFS files if /data is on ext4 This reduces the amount of computation needed on critical boot path for F2FS devices. Boot time is expected to improve with this patch. Bug: 341216848 Test: boot device with ext4 and f2fs Change-Id: I7311a22a7bf9773d3909656d98cc578a43cb9477 --- conf/init.efs.16k.rc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/init.efs.16k.rc b/conf/init.efs.16k.rc index cfe1e2aa..9e891680 100644 --- a/conf/init.efs.16k.rc +++ b/conf/init.efs.16k.rc @@ -6,7 +6,7 @@ service copy_efs_files_to_data /vendor/bin/copy_efs_files_to_data oneshot disabled -on post-fs-data && property:ro.boot.flash.locked=0 +on post-fs-data && property:ro.boot.flash.locked=0 && property:ro.fstype.data=ext4 mkdir /data/vendor/copied 0775 radio system restorecon_recursive /data/vendor/copied restorecon_recursive /mnt/vendor @@ -23,6 +23,11 @@ on post-fs-data && property:ro.boot.flash.locked=0 restorecon_recursive /data/vendor/ss setprop ro.vendor.persist.status mounted +on post-fs-data && property:ro.boot.flash.locked=0 && property:ro.fstype.data=f2fs + mount_all /vendor/etc/fstab.efs + mount_all /vendor/etc/fstab.persist + setprop ro.vendor.persist.status mounted + on post-fs-data && property:ro.boot.flash.locked=1 mount_all /vendor/etc/fstab.efs mount_all /vendor/etc/fstab.persist