From 37e4ef9eb2462d89c06855be5c91ec0af89b9ec5 Mon Sep 17 00:00:00 2001 From: AndroPlus-org Date: Sun, 10 Apr 2022 19:56:24 +0900 Subject: [PATCH] =?UTF-8?q?Google=E9=9B=BB=E8=A9=B1=E3=82=A2=E3=83=97?= =?UTF-8?q?=E3=83=AA=E3=82=92=E5=85=A5=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA?= =?UTF-8?q?=E3=81=84=E6=99=82=E3=81=AE=E5=8F=97=E8=A9=B1=E5=AF=BE=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GmsConfigOverlayComms.apk | Bin customize.sh | 14 +++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) rename {system/product/overlay => cn2g-optional}/GmsConfigOverlayComms.apk (100%) diff --git a/system/product/overlay/GmsConfigOverlayComms.apk b/cn2g-optional/GmsConfigOverlayComms.apk similarity index 100% rename from system/product/overlay/GmsConfigOverlayComms.apk rename to cn2g-optional/GmsConfigOverlayComms.apk diff --git a/customize.sh b/customize.sh index e497e53..29313d5 100644 --- a/customize.sh +++ b/customize.sh @@ -17,6 +17,18 @@ elif [ -f "/system/etc/permissions/services.cn.google.xml" ]; then PERMISSION_PATH="${MODPATH}/system/etc/permissions" remove_limitation "${PERMISSION_PATH}" else - ui_print "services.cn.google.xml Not found!" + ui_print "services.cn.google.xml はありませんでした" fi +DEF_DIALER=`pm list packages|grep com.google.android.dialer` +if [ -n "$DEF_DIALER" ]; then + cp -a ${MODPATH}/cn2g-optional/GmsConfigOverlayComms.apk ${MODPATH}/system/product/overlay + ui_print "" + ui_print "******⚠注意⚠******" + ui_print "Google 電話アプリを必ずデフォルトの電話アプリに設定してください。" + ui_print "設定していないと受話できなくなります。" + ui_print "******⚠注意⚠******" + ui_print "" +fi + +rm -rf ${MODPATH}/cn2g-optional \ No newline at end of file