diff --git a/post-fs-data.sh b/post-fs-data.sh index 453eeef..9fdeb7d 100644 --- a/post-fs-data.sh +++ b/post-fs-data.sh @@ -8,4 +8,17 @@ MODDIR=${0%/*} # This script will be executed in post-fs-data mode #resetprop ro.boot.hwc GLOBAL -#resetprop ro.boot.hwcountry GLOBAL \ No newline at end of file +#resetprop ro.boot.hwcountry GLOBAL + +maybe_set_prop() { + local prop="$1" + local contains="$2" + local value="$3" + + if [[ "$(getprop "$prop")" == *"$contains"* ]]; then + resetprop "$prop" "$value" + fi +} + +maybe_set_prop gsm.sim.operator.numeric "," "44011,44011" +maybe_set_prop gsm.sim.operator.iso-country "," "jp,jp" diff --git a/system/etc2/permissions/google-hiddenapi-package-whitelist.xml b/system/etc2/permissions/google-hiddenapi-package-whitelist.xml deleted file mode 100644 index 4e1c8d2..0000000 --- a/system/etc2/permissions/google-hiddenapi-package-whitelist.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/system/etc2/permissions/google.xml b/system/etc2/permissions/google.xml deleted file mode 100644 index 78c3352..0000000 --- a/system/etc2/permissions/google.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/system/etc2/permissions/privapp-permissions-platform.xml b/system/etc2/permissions/privapp-permissions-platform.xml deleted file mode 100644 index e13e390..0000000 --- a/system/etc2/permissions/privapp-permissions-platform.xml +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -