summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Multiple Language SupportEthan Yonker2015-12-191-62/+61
| | | | | | | | | | | | | | | | | | | | | | | This is similar to https://gerrit.omnirom.org/#/c/14014 A lot of the features built in the older patch set have been split out into separate patches, most of which have already been merged. The remaining functionality here should all be directly related to language selection and loading. We always load English as a base before loading other languages over the top of the base. The idea is that if another language is missing a translation, then we will still display the English. Maybe still to do: read the /cache/recovery/last_locale file and load a language based on that. For me, this file contains just: en_US We probably won't bother with region specific translations so we would have to look at either trimming off the _US or using some other method like perhaps a symlink or a combination of the two. Thanks to _that for twmsg.cpp class Change-Id: I9647a22e47883a3ddd2de1da51f64aab7c328f74
* Fix up some TW_OEM_BUILD thingsEthan Yonker2015-08-261-1/+6
| | | | | | | | | Fix factory reset now properly formats data as expected Change text for ORS processing Disable system read only check, SuperSU, and patch system Stop copying fstab and version to cache Change-Id: I20f5cae390afbb8d2d88e01b8d9b9bf4ff0fdea1
* Allow ORS set command to work with spaces in the valueEthan Yonker2015-06-171-4/+9
| | | | Change-Id: I1a61ba7ad5479f8aa31a0c9c18bf228cf32104e9
* Make sure that adbd restarts after sideloadDees Troy2015-06-171-0/+1
| | | | Change-Id: I7d82b95cd8749c6f8569739162708705faa6f1f7
* Fix handling of mapped zip files for OTA updatesEthan Yonker2015-02-111-24/+33
| | | | | | | | AOSP started using the @ special character to pass to sysMapFile to indicate that the zip file is actually mapped to unused blocks on the data partition. Allow TWRP to do the same. Change-Id: I5bf1355a5462588086401b02de1b17ab88ed3bcd
* Move ORS command line into main threadEthan Yonker2015-01-221-1/+1
| | | | | | | Also eliminate the mostly similar runPage function in favor of using a single runPages function to avoid code duplication. Change-Id: I46ef414beb4009fee16d4de13d8a5ab2b9678409
* Fix adb sideload during ORSEthan Yonker2015-01-051-22/+28
| | | | | Change-Id: I13735c7bba72f3887c4a7618843478be5ada3370 p
* fix adb sideloadthat2015-01-041-1/+2
| | | | | | | | | | - "Cancel" button handling requires another thread - simplify handling of child pid - merge duplicated code for reinjecting TWRP after installation - fix error that showed on host PC after sideload finished - fix problem where adbd sometimes does not stop correctly Change-Id: I536877f024b606756c6a3289c6ddfdba423a60d6
* Remove extra slashes from zip path in openrecoveryMatt Mower2014-10-071-3/+3
| | | | | | | | | | TWFunc::Get_Path() returns a path with a trailing slash and the substr method is returning a string with a leading slash, so we don't need to specify additional slashes for wholePath in Locate_Zip_File(). Also, put 'value' readout to log on its own line if it exists. Change-Id: I2a4db6dbde5552f5a803eabb0599fd983d683fca
* Add command line capabilitiesEthan Yonker2014-08-091-1/+33
| | | | | | | | | | | | | | | 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
* Improve ORS scanning of storage locationsEthan Yonker2014-02-151-46/+29
| | | | | | | Grab a vector of storage locations and iterate through them for searching for zips and restore folders. Change-Id: Ia045b1e15ac3701132d61fe9f5847da5785a9b4e
* Add fix permissions to OpenRecoveryScriptEthan Yonker2014-02-121-0/+4
| | | | Change-Id: I2419cba26fcf046833b5a02fd1b95d6d6e542b8a
* Update licenses to all matchDees Troy2013-10-221-21/+17
|
* check for space after = toobigbiff bigbiff2013-09-181-0/+2
|
* Add TWFunc::Exec_Cmd() with no 'result' agrumentVojtech Bocek2013-09-121-5/+3
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9
* another fix to ignore space then = signbigbiff bigbiff2013-09-101-0/+2
|
* ignore extra = on install cmdbigbiff bigbiff2013-08-301-0/+2
| | | | Change-Id: If9a0e6d4c00f6dd79f76c68ed0370a3101211801
* Support encrypted backup filesDees_Troy2013-06-221-1/+6
| | | | | | | | | | | | | | | Also includes features merged from: Update twrpTar by kokotas Revised function entryExists(). Added function to get archive's uncompressed size. Added option to exclude item(s) from the archive. Revised forks() http://review.teamw.in/#/c/590/ Change-Id: I01fa2c81643161984eff2625247af75990684bd9
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-78/+81
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Add partition list GUI elementDees_Troy2013-03-301-77/+39
| | | | | | | | | | | | Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
* Reset progress bar in ORSDees_Troy2013-01-281-1/+2
| | | | Change-Id: Ia7df2fa80712dc9ff7fda97261fefa33ce823ae0
* Use GUI for ORS instead of console onlyDees_Troy2013-01-251-98/+129
|
* Convert AOSP commands to ORS for encrypted devicesDees_Troy2013-01-241-6/+20
| | | | Change-Id: I6a76a51cd9efd7db67d7abeeb26f9bdd0eebf5a9
* Improve ORS sideload to display GUI with cancel buttonDees_Troy2013-01-181-28/+24
|
* Add sideload command for ORSDees_Troy2013-01-171-0/+31
|
* ORS engine fixesDees_Troy2013-01-171-11/+8
| | | | | | | | Fix backup to not error when a non-existant partition is given. Fix restore to run when no partition parameters are given. Ensure that ORS runs after decryption and that zips install. Fix a problem with the fake internal sdcard not mounting to /sdcard on data media devices.
* Add libtar to TWRP instead of using busybox tarbigbiff bigbiff2013-01-091-13/+7
| | | | | | | Add proper mkdosfs tool Add fuse to TWRP Add experimental exfat-fuse to TWRP Convert all system() functions to use new Exec_Cmd function
* Update injecttwrp for Epic 4G TouchDees_Troy2012-10-161-1/+13
|
* Ensure that actions are not simulated in ORSDees_Troy2012-10-021-0/+1
|
* Update ORS and recovery commandsDees_Troy2012-10-011-114/+133
|
* Port backup name checking to Partition ManagerDees_Troy2012-09-271-0/+4
|
* Add and improve OpenRecoveryScript supportDees_Troy2012-09-201-0/+476
Improve zip finding in ORS engine Add support for restoring with just a backup name