summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.hpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-08-01ADB: Add adb backup for TWRP.bigbiff1-0/+3
Functionality for client side to backup tar and image streams over adbd to the client under backup.ab. Using adb backup on the client side you can backup the partitions TWRP knows about. On the client side you can do the following: adb backup -f <filename> --twrp <options> where options are --compress: compress data system: backup system cache: backup cache data: backup data boot: backup boot etc for each partition. You can string multiple options, i.e. adb backup -f <filename> --twrp --compress cache system data adb backup in TWRP will take any option corresponding to TWRP fstab partitions, e.g. efs boot as well. If you do not specify the filename with the -f option, adb will backup your data to a filename backup.ab on the client. You can then rename the file and encrypt it with desktop tools. If you don't want to use command line arguments: adb backup --twrp will bring up the gui and allow you to choose partitions from the backup page. To restore the backup use the following convention: adb restore <filename> Structures are used to store metadata in binary inside of the file itself. If the metadata structure is modified, update the adb version so that it will invalidate older backups and not cause issues on restore. When restoring, we currently do not support picking specific partitions. It's all or nothing. Change-Id: Idb92c37fc9801dc8d89ed2a4570e9d12e76facf8
2015-12-29get rid of console thread for OpenRecoveryScriptthat1-3/+8
- CLI commands run in a threaded action "twcmd" - Console is displayed via "singleaction_page" - move ORS execution code from GUI action to OpenRecoveryScript class - remove unused function gui_changePackage - don't change PageManager package in home action - fix that /tmp/openrecoveryscript was not deleted after execution Change-Id: Ic688c0b04647ce09e9db979b0bc5123f47cf4f70
2014-08-09Add command line capabilitiesEthan Yonker1-0/+1
Allows sending openrecoveryscript commands to TWRP via shell. This may be handy for visually impaired users, for various one click utilities to drive TWRP commands from a computer, for using TWRP when a catastrophic hardware failure like a shattered screen prevents you from being able to use touch, or even on devices like a TV stick where touch and USB mouse input is unavailable. This patch also includes a few minor changes to openrecoveryscript including proper support for rebooting via the script and for decrypting the device via the command line. Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc
2013-10-24Update licenses to all matchDees Troy1-21/+17
Change-Id: I3be70a897e563658736b2dec3a9ea2697b69b225
2013-10-22Update licenses to all matchDees Troy1-21/+17
2013-01-25Use GUI for ORS instead of console onlyDees_Troy1-1/+1
2013-01-24Convert AOSP commands to ORS for encrypted devicesDees_Troy1-0/+1
Change-Id: I6a76a51cd9efd7db67d7abeeb26f9bdd0eebf5a9
2012-10-01Update ORS and recovery commandsDees_Troy1-2/+2
2012-09-20Add and improve OpenRecoveryScript supportDees_Troy1-6/+22
Improve zip finding in ORS engine Add support for restoring with just a backup name
2012-09-05TWRP-ify AOSP codeDees_Troy1-0/+26
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere