From 7ea24c2f634706de9f5d776162af160163ed2061 Mon Sep 17 00:00:00 2001 From: AndroPlus-org Date: Sat, 14 Jan 2023 21:52:14 +0900 Subject: [PATCH] =?UTF-8?q?MIUI=2014=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customize.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/customize.sh b/customize.sh index 8dfd648..695cce1 100644 --- a/customize.sh +++ b/customize.sh @@ -4,18 +4,21 @@ REPLACE=" remove_limitation() { mkdir -p "$1" -cat >"$1/services.cn.google.xml" <"$1/$2" < EOF } -if [ -f "/system/product/etc/permissions/services.cn.google.xml" ]; then +if [ -f "/system/product/etc/permissions/cn.google.services.xml" ]; then PERMISSION_PATH="${MODPATH}/system/product/etc/permissions" - remove_limitation "${PERMISSION_PATH}" + remove_limitation "${PERMISSION_PATH}" "cn.google.services.xml" +elif [ -f "/system/product/etc/permissions/services.cn.google.xml" ]; then + PERMISSION_PATH="${MODPATH}/system/product/etc/permissions" + remove_limitation "${PERMISSION_PATH}" "services.cn.google.xml" elif [ -f "/system/etc/permissions/services.cn.google.xml" ]; then PERMISSION_PATH="${MODPATH}/system/etc/permissions" - remove_limitation "${PERMISSION_PATH}" + remove_limitation "${PERMISSION_PATH}" "services.cn.google.xml" else ui_print "services.cn.google.xm not found, skipped" fi