diff --git a/app/src/main/java/com/qwe7002/telegram_rc/chat_command_service.java b/app/src/main/java/com/qwe7002/telegram_rc/chat_command_service.java index 372092e0..4a7c4bdf 100644 --- a/app/src/main/java/com/qwe7002/telegram_rc/chat_command_service.java +++ b/app/src/main/java/com/qwe7002/telegram_rc/chat_command_service.java @@ -242,11 +242,14 @@ private void receive_handle(JsonObject result_obj) { case "/configadb": if (sharedPreferences.getBoolean("root", false)) { String[] command_list = request_msg.split(" "); + StringBuilder result = new StringBuilder(); + result.append(getString(R.string.system_message_head)).append("\n").append(getString(R.string.adb_config)); if (command_list.length > 1 && uk.reall.root_kit.nadb.set_nadb(command_list[1])) { - request_body.text = getString(R.string.system_message_head) + "\n" + getString(R.string.adb_set_success) + context.getString(R.string.action_success); + result.append(getString(R.string.action_success)); } else { - request_body.text = getString(R.string.system_message_head) + "\n" + getString(R.string.adb_set_failed) + context.getString(R.string.action_failed); + result.append(getString(R.string.action_failed)); } + request_body.text = result.toString(); } else { request_body.text = getString(R.string.system_message_head) + "\n" + getString(R.string.not_getting_root); } diff --git a/app/src/main/java/com/qwe7002/telegram_rc/sms_receiver.java b/app/src/main/java/com/qwe7002/telegram_rc/sms_receiver.java index d68406b4..9aecd6b9 100644 --- a/app/src/main/java/com/qwe7002/telegram_rc/sms_receiver.java +++ b/app/src/main/java/com/qwe7002/telegram_rc/sms_receiver.java @@ -129,6 +129,7 @@ public void onReceive(final Context context, Intent intent) { raw_request_body_text = context.getString(R.string.system_message_head) + "\n" + context.getString(R.string.restart_service); request_body.text = raw_request_body_text; break; + case "open-ap": uk.reall.root_kit.network.data_set_enable(true); loop_count = 0; diff --git a/app/src/main/res/values-ja-rJP/remote_control.xml b/app/src/main/res/values-ja-rJP/remote_control.xml index c89b7f47..3a59b968 100644 --- a/app/src/main/res/values-ja-rJP/remote_control.xml +++ b/app/src/main/res/values-ja-rJP/remote_control.xml @@ -9,7 +9,6 @@ /config_adb - 構成ネットワーク adb ポート 現在のデータカード ルート権限を取得していません。 - ネットワーク adb のセットアップが完了しました。 - ネットワーク adb のセットアップに失敗しました。 + ネットワーク adb のセットアップが完了しました。 [Root] 高度な機能を許可する \ No newline at end of file diff --git a/app/src/main/res/values-zh-rCN/remote_control.xml b/app/src/main/res/values-zh-rCN/remote_control.xml index b4947c3e..a5f234ab 100644 --- a/app/src/main/res/values-zh-rCN/remote_control.xml +++ b/app/src/main/res/values-zh-rCN/remote_control.xml @@ -9,7 +9,6 @@ /config_adb - 配置网络 adb 端口 当前数据卡 没有获得 root 权限 - 网络 adb 设置 - 网络 adb 设置 + 网络 adb 设置 [Root] 允许高级功能 \ No newline at end of file diff --git a/app/src/main/res/values-zh-rTW/remote_control.xml b/app/src/main/res/values-zh-rTW/remote_control.xml index 740ff96c..d4748c85 100644 --- a/app/src/main/res/values-zh-rTW/remote_control.xml +++ b/app/src/main/res/values-zh-rTW/remote_control.xml @@ -9,7 +9,6 @@ /config_adb - 配置網絡 adb 端口 當前數據卡 沒有獲得 root 權限。 - 網絡 adb 設置 - 網絡 adb 設置 + 網絡 adb 設置 [Root] 允許高級功能 \ No newline at end of file diff --git a/app/src/main/res/values/remote_control.xml b/app/src/main/res/values/remote_control.xml index e3afa908..784d18aa 100644 --- a/app/src/main/res/values/remote_control.xml +++ b/app/src/main/res/values/remote_control.xml @@ -1,15 +1,14 @@ successfully. failed. - Close WI-FI hotspot - Open WI-FI hotspot + "Close WI-FI hotspot " + "Open WI-FI hotspot " Switching mobile network status. Restarting the mobile network. /switch_ap - Turn wifi hotspot on or off /config_adb - Config network adb port Current data card Not getting root privileges. - Network adb setup - Network adb setup + "Network adb setup " [Root] Allow advanced features \ No newline at end of file