From 7326e1f3b386da4edd8e13434e480a7a1564a94a Mon Sep 17 00:00:00 2001 From: Nehemiah Date: Wed, 15 Nov 2023 19:09:30 -0500 Subject: [PATCH] We've got to try --- cat/cat_s22.mk | 3 ++- cat/files/wephone-boot.sh | 3 +++ cat/files/wephone.rc | 8 ++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 cat/files/wephone-boot.sh diff --git a/cat/cat_s22.mk b/cat/cat_s22.mk index 8f6769d..ef50b45 100644 --- a/cat/cat_s22.mk +++ b/cat/cat_s22.mk @@ -38,7 +38,8 @@ PRODUCT_COPY_FILES += \ device/wephone/cat/files/qpnp_pon.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/qpnp_pon.kl \ device/wephone/cat/files/soc_matrix_keypad.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/soc_matrix_keypad.kl \ device/wephone/cat/files/soc_matrix_keypad.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/soc_matrix_keypad.kcm \ - device/wephone/cat/files/wephone.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/wephone.rc + device/wephone/cat/files/wephone.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/wephone.rc \ + device/wephone/cat/files/wephone-boot.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/wephone-boot.sh PRODUCT_PACKAGES += \ BromiteSystemWebView \ diff --git a/cat/files/wephone-boot.sh b/cat/files/wephone-boot.sh new file mode 100755 index 0000000..01f2bca --- /dev/null +++ b/cat/files/wephone-boot.sh @@ -0,0 +1,3 @@ +#!/system/bin/sh + +mount /vendor/etc/audio/audio_policy_configuration.xml /vendor/etc/audio_policy_configuration.xml \ No newline at end of file diff --git a/cat/files/wephone.rc b/cat/files/wephone.rc index 365997d..a4934de 100644 --- a/cat/files/wephone.rc +++ b/cat/files/wephone.rc @@ -1,2 +1,6 @@ -on post-fs - touch /mnt/banana \ No newline at end of file +service wephone_boot /system/bin/wephone-boot.sh + oneshot + disabled + +on property:sys.boot_completed=1 + start wephone_boot \ No newline at end of file