Skip to content

Commit

Permalink
修复指令
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 committed Oct 27, 2019
1 parent d949b8e commit 0b21e04
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values-ja-rJP/remote_control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<string name="config_adb_message">/config_adb - 構成ネットワーク adb ポート</string>
<string name="current_data_card">現在のデータカード</string>
<string name="not_getting_root">ルート権限を取得していません。</string>
<string name="adb_set_success">ネットワーク adb のセットアップが完了しました。</string>
<string name="adb_set_failed">ネットワーク adb のセットアップに失敗しました。</string>
<string name="adb_config">ネットワーク adb のセットアップが完了しました。</string>
<string name="root_switch">[Root] 高度な機能を許可する</string>
</resources>
3 changes: 1 addition & 2 deletions app/src/main/res/values-zh-rCN/remote_control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<string name="config_adb_message">/config_adb - 配置网络 adb 端口</string>
<string name="current_data_card">当前数据卡</string>
<string name="not_getting_root">没有获得 root 权限</string>
<string name="adb_set_success">网络 adb 设置</string>
<string name="adb_set_failed">网络 adb 设置</string>
<string name="adb_config">网络 adb 设置</string>
<string name="root_switch">[Root] 允许高级功能</string>
</resources>
3 changes: 1 addition & 2 deletions app/src/main/res/values-zh-rTW/remote_control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<string name="config_adb_message">/config_adb - 配置網絡 adb 端口</string>
<string name="current_data_card">當前數據卡</string>
<string name="not_getting_root">沒有獲得 root 權限。</string>
<string name="adb_set_success">網絡 adb 設置</string>
<string name="adb_set_failed">網絡 adb 設置</string>
<string name="adb_config">網絡 adb 設置</string>
<string name="root_switch">[Root] 允許高級功能</string>
</resources>
7 changes: 3 additions & 4 deletions app/src/main/res/values/remote_control.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<resources>
<string name="action_success">successfully.</string>
<string name="action_failed">failed.</string>
<string name="close_wifi">Close WI-FI hotspot </string>
<string name="open_wifi">Open WI-FI hotspot </string>
<string name="close_wifi">"Close WI-FI hotspot "</string>
<string name="open_wifi">"Open WI-FI hotspot "</string>
<string name="switch_data">Switching mobile network status.</string>
<string name="restart_network">Restarting the mobile network.</string>
<string name="switch_ap_message">/switch_ap - Turn wifi hotspot on or off</string>
<string name="config_adb_message">/config_adb - Config network adb port</string>
<string name="current_data_card">Current data card</string>
<string name="not_getting_root">Not getting root privileges.</string>
<string name="adb_set_success">Network adb setup </string>
<string name="adb_set_failed">Network adb setup </string>
<string name="adb_config">"Network adb setup "</string>
<string name="root_switch">[Root] Allow advanced features</string>
</resources>

0 comments on commit 0b21e04

Please sign in to comment.