TeamWin Recovery Project

Aus Android Wiki
Version vom 30. Juli 2017, 23:09 Uhr von Florian (Diskussion | Beiträge) (Erstellt durch Übersetzen der Seite „TeamWin Recovery Project“)

The TeamWin Recovery Project (short TWRP) is an alternative, manufacturer-independant Recovery systems[1] for several Android devices. It is based on the AOSP-Android-Recovery, extended with several features and it's own user interface. The Recovery is fully touchscreen-based and can not be controlled using the volume keys (up and down) as well as not with the power key to select menu entries.

In difference to the ClockWorkMod, TWRP provides a built-in file manager, different themes as well as other advanced options for backup, wipe and restore (e.g only backup or restore some partitions, bypass the MD5-checksum creation or choose an own name for a data set like backups). The installation of zip files provides a way of adding multiple zip files (up to 10) in a so called Batch-Job, which are processed one after one.

Installation

Vorlage:Main article

Afterwards, a command line window is opened [WINDOWS] + [R] -> "cmd" -> [RETURN]) and, within this window, navigated to the directory, where the fastboot.exe is saved in (you can use the windows command to navigate through directories in the command line, followed by the directory path, e.g.: cd C:\android\fastboot).

To proceed, the android device needs to be connected to the computer using the USB cable, followed by executing the following command in the same command line window, which was used before::

To proceed, the android device needs to be connected to the computer using the USB cable, followed by executing the following command in the same command line window, which was used before:

fastboot flash recovery recovery.img

ADB in recovery

If the android device is started in the TeamWin recovery, you can execute ADB commands against the device. If, during the use of the adb, the command is rejected with the message device not found, you should check, if the correct USB drivers for the device are installed, and, in case of using the Windows operating system, you should check, if the device is correctly recognized in the Windows device manager.

OpenRecoveryScript

The OpenRecoveryScript is a, licensed under the GNU GPL Version 2.0[2] (and therefore open-source), Scripting-Engine, which allows the script-based execution of Recovery commands. Because the engine is open-source and licensed under a free license, it can be used by anyone for anything, which was an advantage over the extendedcommandsimplementation, which was used in the ClockWorkMod.[3]

Using a simple text file, saved in the /cache/recovery/ directory with the name openrecoveryscript, the recovery can be instructed to execute the described set of commands during the startup, e.g. the installation of a zip archive such as a ROM, or the deletion of a partition.

Tips

Creating a screenshot inside of TWRP

  • A screenshot can be created using the same shortcut as in the android system itself by pressing POWER+VOLDOWN at the same time.
  • The screenshot image is saved on
    • the internal sd card (/sdcard/Pictures/Screenshots) or
    • the external sd card (/external_sd/Pictures/Screenshots) if you installed something from there or saved a backup on it.
    • To change the location where the screenshot should be saved, simply navigate to the Install menu and select the Storage: ***** part at the top where you can change the storage, which is also used as the partition where screenshots are saved to.

References

  1. http://teamw.in/project/twrp2
  2. Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status 127.
  3. Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status 127.