blob: ff4526fab20a849938805fd1c8ed49ce25fe5529 [file] [log] [blame]
nailyk74f80d82016-09-25 15:08:22 +02001---
2layout: post
3title: "TWRP Commandline Guide"
4---
5<style>
6.command {
7}
8.desc {
9 font-size: smaller;
10}
11</style>
12<div class="home">
13<ul class="page-heading">CLIENT SIDE/SCRIPT</ul>
14<pre class="command"><b>install</b> FILENAME :
15<div class="desc"> install <b>FILENAME</b> zip file.</div>
16
17<b>wipe</b> PARTITION :
18<div class="desc"> format <b>PARTITON</b>, one by line:
19 cache,
20 system,
21 dalvik,
22 data.</div>
23
24<b>backup</b> PARTITIONS-TO-BACKUP [BACKUP-NAME] :
25<div class="desc"> backup partition <b>PARTITIONS-TO-BACKUP</b> to [<b>BACKUP-NAME</b>]
26 <b>PARTITIONS-TO-BACKUP</b>, multiples selection allowed:
27 S: system,
28 D: data,
29 C: cache,
30 R: recovery,
31 B: boot,
32 A: and-sec,
33 E: sd-ext,
34 M: skip md5 creation.
35 [<b>BACKUP-NAME</b>] If not provided, current date/time is used.</div>
36
37<b>restore</b> PARTITION-TO-RESTORE BACKUP-NAME :
38<div class="desc"> restore <b>PARTITION-TO-RESTORE</b> from existant <b>BACKUP-NAME</b>:
39 <b>PARTITION-TO-RESTORE</b>, multiples selection allowed:
40 S: system,
41 D: data,
42 C: cache,
43 R: recovery,
44 B: boot,
45 A: and-sec,
46 E: sd-ext,
47 M: skip md5 check.
48 <b>BACKUP-NAME</b>: could be full path or name of twrp backup in current twrp backup folder.
49 Backup can't be encrypted.</div>
50
51<b>remountrw</b> :
52<div class="desc"> revert <i>/system</i> mount type (read-only/read-write).</div>
53
54<b>mount</b> PATH.
55
56<b>set</b> VARIABLE [VALUE] :
57<div class="desc"> set <b>VARIABLE</b> to <b>VALUE</b>. If <b>VALUE</b> is empty, empty <b>VARIABLE</b>.</div>
58
59<b>mkdir</b> DIRECTORY.
60
61<b>reboot</b> [recovery|poweroff|bootloader|download] :
62<div class="desc"> reboot into system (no argument), recovery, bootloader, download mode or turn off device.</div>
63
64<b>sideload</b> :
65<div class="desc"> sideload zip from host adb.</div>
66
67<b>fixperms</b> :
68<div class="desc"> launch fix permissions script.</div>
69
70<b>decrypt</b> password :
71<div class="desc"> decrypt /data with provided <b>password</b>.</div></pre>
72
73<ul class="page-heading">HOST SIDE</ul>
74<pre class="command"><b>adbbackup</b> :
75<div class="desc"> Use the <i>adb backup</i> command of the host computer to backup the device:
76 adb backup --twrp [compress] [PARTITION-LIST]
77 PARTITION-LIST: partition(s) name(s) without leading '/'. Only partition present into fstab can be backuped.</div>
78
79<b>adbrestore</b> FILENAME :
80<div class="desc"> Use the <i>adb restore</i> command of the host computer to restore <b>FILENAME</b> where <b>FILENAME</b> is a previously backup taken with <i>adbbackup</i>.</div></pre>