获得root 访问权限是真正定制您的(root access)Android 设备(Android device)的第一步。但是,仅 root 只会让您安装仅限 root 的应用程序和自定义恢复(apps and custom recoveries),但不会提供任何(offer anything)自己的东西来帮助您自定义手机上的项目。
要实际安装一些自定义手机的东西,你需要一个叫做自定义恢复(custom recovery)的东西。TWRP 恢复(TWRP recovery)是Android的这些自定义恢复之一,可让您在基于Android的设备上安装大量自定义开发。
您将在以下指南中了解如何安装和使用它。
什么是 TWRP 恢复?(What Is TWRP Recovery?)
使用TWRP(TWRP)进行自定义恢复是为Android设备开发的。当您将它安装在您的设备上时,它会取代库存恢复并为您(stock recovery)提供(t present)库存一(stock one)中没有的附加功能。
这是一个开源项目,可用于许多基于 Android 的手机和平板电脑。您可以为您的特定手机型号(phone model)获取它的副本,然后将其闪现以在您的设备上享受它的许多功能。
如何在 Android 上使用 TWRP 安装自定义恢复?(How To Install a Custom Recovery With TWRP On Android?)
要在您的Android 设备上使用(Android device)TWRP安装自定义恢复,您有两种方法可以做到。您使用什么方法来安装它取决于您的特定型号的根要求。
某些(Certain)手机首先要求您在它们上安装自定义恢复,然后获得 root 权限,而其他一些手机必须先获得 root 权限,然后才能在它们上安装恢复。以下部分应指导您使用哪种方法在手机上安装TWRP。
使用 TWRP 应用程序安装恢复(Use TWRP App To Install The Recovery)
在大多数情况下,您的手机已经植根,您可以使用TWRP 应用程序(TWRP app)在您的设备上安装自定义恢复。(custom recovery)这是一种在手机上启动和运行自定义恢复(custom recovery)的更简单快捷的方法,因为它会自行完成所有闪烁过程。
- 在您的设备上启动Google Play 商店(Google Play Store),搜索Official TWRP App,然后将其安装在您的设备上。
- 启动应用程序并点击显示(app and tap)TWRP Flash的选项。
- 从以下屏幕(screen and tap)的下拉菜单中选择您的设备型号(device model),然后点击Flash to Recovery。
- 它将下载TWRP 自定义(TWRP custom) 恢复映像(recovery image)并将其刷新到手机的恢复插槽(recovery slot)。
使用 Fastboot 安装 TWRP 恢复(Use Fastboot To Install TWRP Recovery)
如果您的设备首先需要您安装恢复,然后您可以对其进行 root,或者如果应用方法(app method doesn)由于某种原因对您不起作用,您可以使用Fastboot在您的设备上手动刷新恢复映像(recovery image)。
Fastboot可帮助您将设备上的库存恢复替换为(stock recovery)自定义(custom one)恢复,您只需运行命令即可。
- 在您的 Android 设备上,前往Settings > Developer options并启用USB 调试(USB debugging )选项。
- 使用USB 电缆(USB cable)将您的设备连接到计算机。
- 下载Fastboot包并将其解压缩到您的计算机。
- 为您的设备下载 IMG 版本的TWRP 恢复(TWRP recovery)并将其保存在Fastboot文件夹中。
- 打开Fastboot文件夹,按住键盘上的Shift键,右键单击空白处,然后选择Open command window here。
- 输入以下命令,它会将您的设备重新启动到引导加载程序模式(bootloader mode)。
adb 重启引导加载程序(adb reboot bootloader)
- 输入(Enter)以下命令,将twrp.img替换为您下载的恢复的实际名称,然后按 Enter(Enter)。
fastboot flash recovery twrp.img
- 当恢复闪烁时,输入以下命令以重新启动您的设备。
快速启动重启(fastboot reboot)
TWRP恢复(TWRP recovery)应该安装在您的Android 设备(Android device)上。
如何在 Android 上进入 TWRP 恢复模式?(How To Enter The TWRP Recovery Mode On Android?)
由于自定义恢复不是(custom recovery isn)常规应用程序,因此它不会在您的应用程序抽屉(app drawer)中供您启动它。您需要按组合键进入TWRP 恢复(TWRP recovery)模式,或运行命令重新启动设备进入恢复模式。
两种方法都应该做同样的工作,这取决于你喜欢做什么。当您运行命令时,您可能不想使用组合键,同样,当您不使用命令实用程序(command utility)时,您也不想使用命令。
使用组合键进入 TWRP 恢复模式(Using Key Combination To Enter The TWRP Recovery Mode)
进入恢复模式(recovery mode)的组合键因您拥有的设备而异。适用于三星设备(Samsung device)的东西可能不适用于Pixel 手机(Pixel phone),等等。
但是,在大多数手机上,您可以同时按下降低音量(Volume Down )和电源(Power)按钮以重新启动到引导加载程序。然后您可以选择恢复(Recovery)选项并在您的设备上进入TWRP 恢复(TWRP recovery)模式。
在其他一些手机上,您可以通过同时按下音量调高(Volume Up)和电源(Power)按钮立即重新启动进入恢复状态。
使用 ADB 重启进入 TWRP 恢复模式(Using ADB To Reboot Into The TWRP Recovery Mode)
此方法适用于所有支持ADB 和 Fastboot(ADB and Fastboot)的设备。你基本上需要运行一个命令,它会重新引导你进入恢复。
- 从Fastboot(Fastboot)文件夹运行以下命令,您的手机将重新启动进入TWRP 恢复(TWRP recovery)模式。
adb 重启恢复(adb reboot recovery)
当您的手机重新启动进入恢复状态时,您会看到各种选项。
如何在 Android 上使用 TWRP 自定义恢复?(How To Use The TWRP Custom Recovery On Android?)
在大多数情况下,您只会在您的Android 设备上使用(Android device)TWRP 自定义(TWRP custom)恢复的以下功能。
安装(Install)
它可以让您刷新各种自定义文件,包括自定义恢复、根文件、自定义内核、自定义ROM(ROMs)等等。您将最常使用此选项。
擦拭(Wipe)
这将让您擦除设备上的数据并将其恢复出厂设置(device and factory reset)。如果默认设置应用程序(Settings app)中的选项不起作用,您可以使用它。
备份(Backup)
这使您可以创建Android 设备(Android device)的完整备份。它可以包括您手机的所有内容。
恢复(Restore)
这使您可以恢复之前在设备上创建的备份。您只需轻按一下,所有数据都会在手机上恢复。
How a Custom Recovery With TWRP Works On Android
Gaining root access is the first step towards truly customizing your Android device. However, root alone will only let you install root-only apps and custom recoveries, but won’t offer anything of its own to help you customize items on your phone.
To actually install something that customizes your phone, you’re going to need something called a custom recovery. TWRP recovery is one of these custom recoveries for Android that lets you install a ton of custom developments on your Android based devices.
You’ll see how to install and use it in the following guide.
What Is TWRP Recovery?
Custom recovery with TWRP was developed for Android devices. When you install it on your device, it replaces the stock recovery and gives you additional features that weren’t present in the stock one.
It’s an open-source project and is available for a number of Android-based phones and tablets. You can grab yourself a copy of it for your specific phone model and flash it away to enjoy many of its features on your device.
How To Install a Custom Recovery With TWRP On Android?
To install a custom recovery with TWRP on your Android device, you have two ways to do it. What method you use to install it depends on your specific model’s root requirements.
Certain phones first require you to install a custom recovery on them and then gain root whereas some other phones must first be rooted before you can install a recovery on them. The following sections should guide you what method you should be using to install TWRP on your phone.
Use TWRP App To Install The Recovery
In most cases where your phone is already rooted, you can use the TWRP app to install the custom recovery on your device. This is an easier and quicker way to get a custom recovery up and running on your phone as it does all the flashing procedures by itself.
- Launch the Google Play Store on your device, search for Official TWRP App, and install it on your device.
- Launch the app and tap on the option that says TWRP Flash.
- Choose your device model from the dropdown menu on the following screen and tap on Flash to Recovery.
- It’ll download and flash the TWRP custom recovery image to your phone’s recovery slot.
Use Fastboot To Install TWRP Recovery
If your device first requires you to install a recovery and then you can root it or if the app method doesn’t work for you for some reason, you can manually flash the recovery image on your device using Fastboot.
Fastboot helps you replace the stock recovery on your device with a custom one and you only need to run a command to do it.
- On your Android device, head to Settings > Developer options and enable the USB debugging option.
- Connect your device to your computer using a USB cable.
- Download and extract the Fastboot package to your computer.
- Download the IMG version of TWRP recovery for your device and save it in the Fastboot folder.
- Open the Fastboot folder, hold down Shift on your keyboard, right-click anywhere blank, and select Open command window here.
- Type in the following command and it’ll reboot your device into the bootloader mode.
adb reboot bootloader
- Enter the following command replacing twrp.img with the actual name of the recovery you’ve downloaded and hit Enter.
fastboot flash recovery twrp.img
- When the recovery is flashed, enter the following command to reboot your device.
fastboot reboot
The TWRP recovery should be installed on your Android device.
How To Enter The TWRP Recovery Mode On Android?
Since a custom recovery isn’t a regular app, it won’t be available in your app drawer for you to launch it. You’ll need to either press a key combination to get into the TWRP recovery mode or run a command to reboot your device into the recovery.
Both methods should do the same job and it depends on what you’re comfortable doing. You’ll probably not want to use the key combination when you’re running commands and similarly you won’t want to use a command when you aren’t using a command utility.
Using Key Combination To Enter The TWRP Recovery Mode
The key combination to enter the recovery mode varies by the device you have. Something that works for a Samsung device may not work for a Pixel phone, and so on.
On most phones, though, you can press the Volume Down and Power buttons at the same time to reboot into the bootloader. Then you can select the Recovery option and enter the TWRP recovery mode on your device.
On some other phones, you can immediately reboot into the recovery by pressing the Volume Up and Power buttons at the same time.
Using ADB To Reboot Into The TWRP Recovery Mode
This method should work for all the devices that support ADB and Fastboot. You basically need to run a command and it’ll reboot you into the recovery.
- Run the following command from the Fastboot folder and your phone will reboot into the TWRP recovery mode.
adb reboot recovery
You’ll see various options when your phone reboots into the recovery.
How To Use The TWRP Custom Recovery On Android?
In most cases, you’ll only be using the following features of the TWRP custom recovery on your Android device.
Install
It’ll let you flash various custom files including custom recoveries, root files, custom kernels, custom ROMs, and so on. You’ll be using this option the most.
Wipe
This will let you wipe off the data on your device and factory reset it. You can use it in case the option in the default Settings app doesn’t work.
Backup
This lets you create a full backup of your Android device. It can include all the contents of your phone.
Restore
This allows you to restore the backups you’ve created before on your device. You need a single-tap and all of your data is restored on your phone.