首页  编辑  

MTK开启和关闭双卡双待SIM卡

Tags: /Android/   Date Created:
网上找到的MTK切换双卡双待的代码,不过似乎不起作用:
Settings.System.putInt(getContentResolver(), "dual_sim_mode_setting", 1);
// 0 to deactivate both sim cards
//1 to activate sim card 1 and deactivate sim card 2
//2 to activate sim card 2 and deactivate sim card 1
//3 to activate both sim cards
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", false);
sendBroadcast(intent);