LA.UM.7.6.2/LINUX/android/frameworks/opt/telephony/src/java/com/android/internal/telephony/MccTable.java? index 79823a1..b513714 100644 @@ -42,4 +42,6 @@ import java.util.List; ?import java.util.Locale; ?import java.util.Map; +import android.content.ComponentName; +import android.content.pm.PackageManager; ? ?/** @@ -167,4 +169,18 @@ public final class MccTable { ? ? ? ? ?Slog.d(LOG_TAG, "updateMccMncConfiguration mccmnc='" + mccmnc + "' fromServiceState=" + fromServiceState); ? + ? ? ? ? ? ?//20190704 xiexijun modify ,Google Pay is not allowed to be visible in Netherlands. Hide Google Pay application if the network MCC is 204 + ? ? ? ? ? ?PackageManager pm = context.getPackageManager(); + ? ? ? ? ? ?ComponentName googlepay=new ComponentName("com.google.android.apps.walletnfcrel","com.google.commerce.tapandpay.android.cardlist.CardListActivity"); + ? ? ? ? ? ?if(!TextUtils.isEmpty(mccmnc)){ + ? ? ? ? ? ? ? ?int mcc = Integer.parseInt(mccmnc.substring(0,3)); + ? ? ? ? ? ? ? ?if(mcc == 204){ + ? ? ? ??? ? ? ? ? ? ?pm.setComponentEnabledSetting(googlepay, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); + ? ? ? ? ? ??? ??? ?}else{ + ? ? ? ? ? ??? ? ??? ??? ?pm.setComponentEnabledSetting(googlepay, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP); + ? ? ? ? ? ??? ??? ?} + ? ? ? ? ? ?}else{ + ? ? ? ? ??? ? ? ?pm.setComponentEnabledSetting(googlepay, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP); + ? ? ? ? ??? ?} + ? ? ? ? ?if (Build.IS_DEBUGGABLE) { ? ? ? ? ? ? ?String overrideMcc = SystemProperties.get("persist.sys.override_mcc");
|