rework code to use patches instead of out script

This commit is contained in:
Talmid of Levi 2023-12-22 14:52:15 -05:00
parent 2c8a700980
commit cd5860c5b2
8 changed files with 64 additions and 12270 deletions

View File

@ -1,6 +1,4 @@
RELAX_USES_LIBRARY_CHECK=true
PRODUCT_NAME := cats22flip
PRODUCT_DEVICE := tdgsi_a64_ab
PRODUCT_BRAND := wePhone
@ -38,10 +36,10 @@ PRODUCT_PACKAGES += \
Linphone \
Nextcloud \
NextcloudNotes \
CatFlipScreen \
Conversations
PRODUCT_COPY_FILES += \
device/phh/cats22flip/wephone.rc:system/etc/init/wephone.rc \
device/phh/cats22flip/wephone.sh:system/bin/wephone.sh \
device/phh/cats22flip/catscreen.sh:system/bin/catscreen.sh

View File

@ -0,0 +1,35 @@
From b91f61d23de06f53ee6d2cc704a8379dd89b26ef Mon Sep 17 00:00:00 2001
From: Nehemiah of Zebulun <nehemiah-zb@mezimmah.net>
Date: Fri, 22 Dec 2023 12:09:00 -0500
Subject: [PATCH] fix external screen cats22flip
Change-Id: Iecd90b2ec0e824b4956a0896c5fbd8a7578e9116
---
phh-on-boot.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/phh-on-boot.sh b/phh-on-boot.sh
index d2d5b0a..c831788 100644
--- a/phh-on-boot.sh
+++ b/phh-on-boot.sh
@@ -52,6 +52,16 @@ if [ "$vndk" = 28 ];then
mount $minijailSrc /vendor/lib/libminijail.so
fi
+#Fix external screen on Cat S22 Flip
+if getprop ro.vendor.build.fingerprint | grep -iq -e S22FLIP; then
+ if ! getprop ro.vendor.gsi.image_running | grep -iq -F false; then
+ setprop ro.vendor.gsi.image_running false
+ setprop ctl.restart vendor.hwcomposer-2-1
+ # just to see if script was successful
+ touch /mnt/banana
+ fi
+fi
+
#Clear looping services
sleep 30
getprop | \
--
2.39.2

View File

@ -0,0 +1,27 @@
From 3aceacf62182951ef8cdcb88866aa77fad768687 Mon Sep 17 00:00:00 2001
From: Nehemiah of Zebulun <nehemiah-zb@mezimmah.net>
Date: Fri, 22 Dec 2023 14:48:20 -0500
Subject: [PATCH] disable lock screen
Change-Id: I68fd449b67d2c3fbf6dd48db87e3ea06b3a7d3ee
---
packages/SettingsProvider/res/values/defaults.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml
index 51f69a95e16..278903e0c47 100644
--- a/packages/SettingsProvider/res/values/defaults.xml
+++ b/packages/SettingsProvider/res/values/defaults.xml
@@ -82,7 +82,7 @@
<integer name="def_max_sound_trigger_detection_service_ops_per_day" translatable="false">1000</integer>
<integer name="def_sound_trigger_detection_service_op_timeout" translatable="false">15000</integer>
- <bool name="def_lockscreen_disabled">false</bool>
+ <bool name="def_lockscreen_disabled">true</bool>
<bool name="def_device_provisioned">false</bool>
<integer name="def_dock_audio_media_enabled">1</integer>
--
2.39.2

View File

@ -1,12 +0,0 @@
diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml
index a7c9e2d..81716d3 100644
--- a/prebuilt/common/etc/apns-conf.xml
+++ b/prebuilt/common/etc/apns-conf.xml
@@ -22,6 +22,7 @@
<!-- This version must agree with that in apps/common/res/apns.xml -->
<!-- Possible values for auth_type: 0 (None), 1 (PAP), 2 (CHAP), 3 (PAP or CHAP) -->
<apns version="8">
+ <apn carrier="PHH IMS" mcc="310" mnc="240" apn="ims" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" />
<apn carrier="Test Internet" mcc="001" mnc="01" apn="VZWINTERNET" type="default,dun,supl" protocol="IPV4V6" roaming_protocol="IPV4V6" />
<apn carrier="Test FOTA" mcc="001" mnc="01" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" />
<apn carrier="Test IMS" mcc="001" mnc="01" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" />

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,5 @@
on boot
exec - root -- /system/bin/wephone.sh
on property:debug.tracing.battery_stats.screen=1
exec - root -- /system/bin/catscreen.sh
on property:debug.tracing.battery_stats.screen=0
exec - root -- /system/bin/catscreen.sh
exec - root -- /system/bin/catscreen.sh

View File

@ -1,9 +0,0 @@
#!/system/bin/sh
if getprop ro.vendor.build.fingerprint | grep -iq -e S22FLIP; then
if ! getprop ro.vendor.gsi.image_running | grep -iq -F false; then
setprop ro.vendor.gsi.image_running false
setprop ctl.restart vendor.hwcomposer-2-1
touch /mnt/banana
fi
fi