From b9b1727d51f9d412e1ef608b1bb298fe0967b900 Mon Sep 17 00:00:00 2001 From: jabashque Date: Mon, 5 Feb 2024 21:36:03 +0000 Subject: [PATCH] pantah: 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 --- cheetah/extract-files.sh | 4 ++++ panther/extract-files.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cheetah/extract-files.sh b/cheetah/extract-files.sh index 537ad10..bdb6942 100755 --- a/cheetah/extract-files.sh +++ b/cheetah/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/panther/extract-files.sh b/panther/extract-files.sh index 10b546d..4c8739d 100755 --- a/panther/extract-files.sh +++ b/panther/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}"