TeamWin Recovery Project: Unterschied zwischen den Versionen

Aus Android Wiki
Keine Bearbeitungszusammenfassung
(Erstellt durch Übersetzen der Seite „TeamWin Recovery Project“)
Markierung: contenttranslation
Zeile 1: Zeile 1:
{{Infobox Software}}{{DISPLAYTITLE:{{PAGENAME}} (TWRP)}}
The '''TeamWin Recovery Project''' (short '''TWRP''') is an alternative, manufacturer-independant [[Recovery]] systems<ref>http://teamw.in/project/twrp2</ref> 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.


Das '''TeamWin Recovery Project''' (kurz '''TWRP''') entwickelt alternative, d.h. herstellerunabhängige [[Recovery]]-Systeme<ref>http://teamw.in/project/twrp2</ref> für diverse [[Android]]-Geräte. Es basiert auf dem [[Android Open Source Project|AOSP]]-Android-Recovery, erweitert durch eigene Funktionen sowie eine eigene Benutzeroberfläche. Es wird vollständig über Berührungen bedient und lässt sich nicht mit den Lautstärketasten oder der Einschalttaste bedienen.
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.
 
Im Gegensatz zum [[ClockWorkMod]] bietet das TWRP einen eingebauten [[Dateimanager]], verschiedene Themen und erweiterte Optionen für die Funktionen Datensicherung ("Backup"), Löschen ("Wipe") und Wiederherstellen ("Restore") (bspw. nur bestimmte Partitionen sichern oder wiederherstellen, eigene Namen für den gesicherten Datensatz vergeben oder das Überspringen der MD5-Prüfsummen-Erstellung). Bei der Installation von ZIP-Dateien können gleich mehrere (bis zu 10 Stück) in einem ''Batch-Job'' abgearbeitet werden.


== Installation ==
== Installation ==
{{Hauptartikel|Recoveryinstallation}}
To use the TeamWin-Recovery, it has to be installed on the device. This is done with the [[fastboot]] command "flash". It's required, that the [[USB driver]] for the device is installed correctly and that the fastboot.exe is present, which is, e.g., shipped with the [[Android SDK]], but can also be installed standalone. The recovery itself can be retrieved/downaloded as an image file (*.img). This file needs to be copied in the same directory where the fastboot.exe is saved in (for simplicity) and renamed to ''recovery.img''.
Um das TeamWin-Recovery zu verwenden, muss es auf dem Gerät installiert werden. Dafür verwendet man den Fastboot-Befehl "flash". Es ist nötig, dass die [[USB-Treiber]] installiert sind, sowie die [[Fastboot (Tool)|fastboot.exe]] vorhanden ist, welche u.a. mittels dem [[Android SDK|Android SDK]] installiert werden kann. Die Installationsdatei des TeamWin-Recovery liegt in einer Image-Datei (*.img) vor. Diese Datei kopiert man ebenfalls in den Ordner, in dem die fastboot.exe gespeichert ist, und benennt diese in ''recovery.img'' um.


Im Anschluss öffnet man ein Kommandozeilenfenster (<nowiki>[WINDOWS] + [R] -> "cmd" -> [ENTER]</nowiki>) und navigiert darin zu dem Ordner, in dem die fastboot.exe gespeichert ist (Windowsbefehl zum navigieren gefolgt vom Ordnerpfad, Beispiel: ''cd C:\android\fastboot'').
Afterwards, a command line window is opened <nowiki>[WINDOWS] + [R] -> "cmd" -> [RETURN]</nowiki>) 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'').


Nun verbindet man das Telefon mit dem PC (per USB-Kabel) und führt folgenden Befehl aus:
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::<pre>
<pre>
fastboot flash recovery recovery.img
fastboot flash recovery recovery.img
</pre>
</pre>After the successful flash of the recovery (which is noted with a success message in the command line window), the device can be started into the recovery-system out of the [[bootloader]]. The TeamWin Recovery is now installed successfully.
Im Anschluss kann man im [[Bootloader]] das Recovery-System starten. Das TeamWin-Recovery ist nun installiert.


== ADB im Recovery ==
== ADB in recovery ==
Ist das Gerät im TWRP gestartet, können [[ADB]]-Befehle verwendet werden. Wird bei der Verwendung ''device not found'' ausgegeben, sollte überprüft werden, ob die korrekten Treiber für das Gerät installiert sind und -- im Fall von Windows -- das Android-Gerät im Windows-Geräte-Manager korrekt erkannt wird.
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 ==
== OpenRecoveryScript ==
Das '''OpenRecoveryScript '''ist eine unter der GNU GPL Version 2.0 lizenzierte<ref>{{Cite web|url = https://github.com/TeamWin/Team-Win-Recovery-Project/blob/android-5.0/openrecoveryscript.cpp|title = Team-Win-Recovery-Project/openrecoveryscript.cpp at android-5.0 · TeamWin/Team-Win-Recovery-Project|accessdate = 2015-02-28}}</ref> (und somit quell-offene) Scripting-Engine, die es ermöglicht, Recovery-Befehle scriptgesteuert auszuführen. Da die Engine quelloffen und ''frei'' lizenziert ist, kann sie grundsätzlich von jedem verwendet werden, was in der Anfangszeit einen Vorteil gegenüber der im [[ClockWorkMod]] verwendeten '''[[extendedcommands]]''' Implementierung bot.<ref>{{Cite web|url = http://wiki.rootzwiki.com/OpenRecoveryScript|title = OpenRecoveryScript - RootzWiki|accessdate = 2015-02-28}}</ref>
The '''OpenRecoveryScript '''is a, licensed under the GNU GPL Version 2.0<ref>{{Cite web|url=https://github.com/TeamWin/Team-Win-Recovery-Project/blob/android-5.0/openrecoveryscript.cpp|title=Team-Win-Recovery-Project/openrecoveryscript.cpp at android-5.0 · TeamWin/Team-Win-Recovery-Project|accessdate=2015-02-28}}</ref> (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 '''[[extendedcommands]]'''implementation, which was used in the [[ClockWorkMod]].<ref>{{Cite web|url=http://wiki.rootzwiki.com/OpenRecoveryScript|title=OpenRecoveryScript - RootzWiki|accessdate=2015-02-28}}</ref>


Durch eine simple Textdatei, die im Verzeichnis ''/cache/recovery/'' mit dem Namen ''openrecoveryscript'' abgelegt wird, kann das Recovery angewiesen werden, beim Start bestimmte, festgelegte Kommandos auszuführen, bspw. das Installieren eines zip-Archivs (bspw. eines neuen [[ROM]]) oder das Löschen einer [[Partition]].
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]].


== Tipps ==
== Tips ==
=== Screenshot im TWRP ===
* Ein Screenshot kann man einfach wie unter Android mit '''POWER+VOLDOWN''' machen - das Display blitzt kurz auf.
* Das Screenshot-Bild befindet sich auf der
** internen SD-Karte '''(/sdcard/Pictures/Screenshots)''' oder auf der
** externen (echten) '''(/external_sd/Pictures/Screenshots)''' SD-Karte wenn man vorher von dieser installiert oder dorthin gesichtert hat.
** Zum Umstellen einfach auf "Install" klicken, und den oberen Balken "Storage:********* (*** MB)" anklicken und andere Speicherkarte auswählen. <br>Das ganze kann man kontrollieren mit dem TWRP-Dateimanager oder mit dem Dateimanager am PC über die ADB-Schnittstelle/MTP-Schnittstelle


== Einzelnachweise ==
=== 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 ==
<references />
<references />
[[Kategorie:Allgemein]]
[[Kategorie:Abkürzungen]]

Version vom 30. Juli 2017, 22:07 Uhr

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

To use the TeamWin-Recovery, it has to be installed on the device. This is done with the fastboot command "flash". It's required, that the USB driver for the device is installed correctly and that the fastboot.exe is present, which is, e.g., shipped with the Android SDK, but can also be installed standalone. The recovery itself can be retrieved/downaloded as an image file (*.img). This file needs to be copied in the same directory where the fastboot.exe is saved in (for simplicity) and renamed to recovery.img.

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::

fastboot flash recovery recovery.img

After the successful flash of the recovery (which is noted with a success message in the command line window), the device can be started into the recovery-system out of the bootloader. The TeamWin Recovery is now installed successfully.

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.