Skip to content

Commit

Permalink
Root tips.
Browse files Browse the repository at this point in the history
Change-Id: Ic1b4229e81e84211e679b8232bcd14b8a8946653
  • Loading branch information
xiaolu committed Oct 1, 2014
1 parent e6fdf63 commit dca117a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion extendedcommands.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,8 +1901,11 @@ int verify_root_and_recovery() {
if (!exists) {
ui_show_text(1);
ret = 1;
if (confirm_selection("Root access is missing. Root device?", "Yes - Root device (/system/xbin/su)")) {
if (confirm_selection("Root access is missing. Root device?", "Yes - Root device.")) {
__system("/sbin/install-su.sh");
ui_print("\n\nRoot is complete, please install Supersu.apk after reboot.\n\n");
ui_print("Press any key to reboot...\n");
ui_wait_key();
}
}

Expand Down
5 changes: 4 additions & 1 deletion extendedcommands_cn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1900,8 +1900,11 @@ int verify_root_and_recovery() {
if (!exists) {
ui_show_text(1);
ret = 1;
if (confirm_selection("是否root设备?", "是,root设备(/system/xbin/su)")) {
if (confirm_selection("是否root设备?", "是,root设备")) {
__system("/sbin/install-su.sh");
ui_print("\n\nroot完毕,请在重启后安装Supersu权限管理软件。\n\n");
ui_print("按任意键重启...\n");
ui_wait_key();
}
}

Expand Down

0 comments on commit dca117a

Please sign in to comment.