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