From dca117a7914825df7bf7962d3ecc90c5234e21f9 Mon Sep 17 00:00:00 2001 From: xiaolu Date: Wed, 1 Oct 2014 19:44:46 +0800 Subject: [PATCH] Root tips. Change-Id: Ic1b4229e81e84211e679b8232bcd14b8a8946653 --- extendedcommands.c | 5 ++++- extendedcommands_cn.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extendedcommands.c b/extendedcommands.c index 002bd0e55..d60fef5b0 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -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(); } } diff --git a/extendedcommands_cn.c b/extendedcommands_cn.c index ac40fa116..af0275174 100644 --- a/extendedcommands_cn.c +++ b/extendedcommands_cn.c @@ -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(); } }