Skip to content

Commit

Permalink
修改广播类型
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 authored and qwe7002 committed Aug 28, 2021
1 parent 4acb985 commit b04aaa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private static void set_airplane_mode(boolean enable) {
}

public static void set_data_sim(int sub_id) {
shell.run_shell_command("settings put global multi_sim_data_call " + sub_id + " \nam broadcast -a android.intent.action.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED");
shell.run_shell_command("settings put global multi_sim_data_call " + sub_id + " \nam broadcast -a android.intent.action.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED\nam broadcast -a android.intent.action.SUB_DEFAULT_CHANGED");
//shell.run_shell_command("settings put global user_preferred_data_sub " + sub_id + "\nam broadcast -a android.intent.action.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED\nam broadcast -a android.intent.action.SUB_DEFAULT_CHANGED");
try {
Thread.sleep(1000);
Expand Down

0 comments on commit b04aaa6

Please sign in to comment.