From 91b3ae336780ed84eaaf572dda55c254fd866bd4 Mon Sep 17 00:00:00 2001 From: jabashque Date: Mon, 5 Feb 2024 21:36:03 +0000 Subject: [PATCH] caimito: Enable Osaifu-Keitai on non-Japanese SKUs https://github.com/kormax/osaifu-keitai-google-pixel/ Test 1 & 2 on a Global SKU Google Pixel 6a (bluejay): - Observe that Osaifu-Keitai doesn't function WITHOUT this change. - Observe that Osaifu-Keitai functions normally WITH this change. Test 3 & 4 on a Japanese SKU Google Pixel Fold (felix): - Observe that Osaifu-Keitai functions normally WITHOUT this change. - Observe that Osaifu-Keitai continues to function normally WITH this change. Change-Id: I9faac2e130714a41e6922b62d2019dae0d615a3b Signed-off-by: AnierinB --- caiman/extract-files.sh | 4 ++++ komodo/extract-files.sh | 4 ++++ tokay/extract-files.sh | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/caiman/extract-files.sh b/caiman/extract-files.sh index cb3bda18..45d5135a 100755 --- a/caiman/extract-files.sh +++ b/caiman/extract-files.sh @@ -61,6 +61,10 @@ fi function blob_fixup() { case "${1}" in + product/etc/felica/common.cfg) + [ "$2" = "" ] && return 0 + sed -i -e '$a00000018,1' -e '/^00000014/d' -e '/^00000015/d' "${2}" + ;; vendor/etc/init/init.modem_logging_control.rc) [ "$2" = "" ] && return 0 sed -i 's/ && property:ro.debuggable=0//' "${2}" diff --git a/komodo/extract-files.sh b/komodo/extract-files.sh index 4fd46ad1..5a4092b4 100755 --- a/komodo/extract-files.sh +++ b/komodo/extract-files.sh @@ -61,6 +61,10 @@ fi function blob_fixup() { case "${1}" in + product/etc/felica/common.cfg) + [ "$2" = "" ] && return 0 + sed -i -e '$a00000018,1' -e '/^00000014/d' -e '/^00000015/d' "${2}" + ;; vendor/etc/init/init.modem_logging_control.rc) [ "$2" = "" ] && return 0 sed -i 's/ && property:ro.debuggable=0//' "${2}" diff --git a/tokay/extract-files.sh b/tokay/extract-files.sh index 718e6ab7..272b4c77 100755 --- a/tokay/extract-files.sh +++ b/tokay/extract-files.sh @@ -61,6 +61,10 @@ fi function blob_fixup() { case "${1}" in + product/etc/felica/common.cfg) + [ "$2" = "" ] && return 0 + sed -i -e '$a00000018,1' -e '/^00000014/d' -e '/^00000015/d' "${2}" + ;; vendor/etc/init/init.modem_logging_control.rc) [ "$2" = "" ] && return 0 sed -i 's/ && property:ro.debuggable=0//' "${2}"