summaryrefslogtreecommitdiffstats
path: root/twrp.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that MTP is enabled by defaultEthan Yonker2014-09-031-0/+7
| | | | Change-Id: Ibd644509935cde1e52b3d368060fdcb6e16f4a99
* add mtp responder to TWRP.bigbiff bigbiff2014-09-031-0/+19
| | | | | | Big thanks to Dees_Troy for helping with the implementation. Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
* Add command line capabilitiesEthan Yonker2014-08-091-2/+0
| | | | | | | | | | | | | | | 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
* Only disable recovery flash if it is truly "stock" recoverydhacker292014-07-251-1/+1
| | | | | | | | Some roms need the recovery-from-boot.p for auto update of recovery. Typically the use install-[romname]-recovery.sh. So only disable if install-recovery.sh is present. Change-Id: I01f89afc87b9d375d67b44b8b5e9228868a47d69
* Check the crash counter instead of date in TWFunc::Fixup_Time_On_Boot()Vojtech Bocek2014-07-091-1/+2
| | | | | | | * Some devices (Sony) have RTC counting up from year 2009, Change-Id: I2cf1928e1b05c7e8b184963f8130582e0319ddc4 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Change ro.twrp.boot boolean to twrp.crash_counterVojtech Bocek2014-07-091-4/+11
| | | | | Change-Id: If1ef25fee5a138a90ccb4f0a70b20b55698e0d0d Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Color in the consoleEthan Yonker2014-07-091-2/+2
| | | | | | | | Allow each gui_print command to specify a color Change LOGERR to use the error color Theme should specify colors for error, warning, and highlight Change-Id: Ie8ece34111f604e25fcb79e5b731cd4e61038ff9
* Run TWFunc::Fixup_Time_On_Boot() before OpenRecoveryScriptVojtech Bocek2014-03-111-2/+4
| | | | | | | * Fixes possible issues with names of backups made with ORS Change-Id: If8da1b3abb0960e527bb0eb3dd8a04d184aaea4d Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Load RTC offset on Qualcomm Krait chips, fixes the broken time & dateVojtech Bocek2014-02-041-0/+3
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I04ad07f3e6be961003e063be8c648e191e2f9431
* Improve SELinux support checkDees Troy2013-12-191-1/+11
| | | | | | | | | | If the kernel does not use SELinux security then the ramdisk contents will not have contexts set on the files, however we may still have everything we need in recovery if the kernel supports EXT4 security labels, so we try to check /cache/recovery if it exists first. Change-Id: I96a4ae16418e07b0a2e83cd56e19893898d0b394
* Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.bigbiff bigbiff2013-12-191-13/+14
| | | | | | Moved Get_Folder_Size to this new class. Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
* Add check during boot for SELinux supportDees Troy2013-11-261-0/+12
| | | | Change-Id: Ib02867c403d1baa665dfb1d4f3137204e64a813c
* Skip the = or \n before grabbing Zip_File.Kevin Steck2013-10-221-0/+3
| | | | Change-Id: I0454f8fc3cbe037fac63ef5861f8f373e4654d49
* fix getting and setting contexts in selinuxbigbiff bigbiff2013-10-171-1/+9
| | | | | | recreate lost+found with selinux contexts Change-Id: I19e8696d47319dfb641520956c8a27c2a796a0c3
* Add TWFunc::Exec_Cmd() with no 'result' agrumentVojtech Bocek2013-09-121-3/+2
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9
* Make fixing su perms automaticDees Troy2013-09-121-5/+3
| | | | | | | | In 4.3+ with SELinux, su perms will be lost on every reboot so users will get the prompt to fix su perms in TWRP every time. Make fixing the su perms automatic instead of nagging the user. Change-Id: Ia8a2652018db5e1f6ffc5fec2a4ac0db3a8f32bb
* Pull ROM info from build.prop for backup namesDees Troy2013-09-121-1/+1
| | | | Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
* Update to latest AOSP masterDees_Troy2013-09-041-0/+12
| | | | Merge in latest commits from AOSP master and fix merge conflicts
* Use twrp.fstab if presentDees_Troy2013-08-291-0/+8
|
* Unify indentation and little clean-up in TWRP filesVojtech Bocek2013-08-241-6/+6
| | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Add SELinux supportDees_Troy2013-08-241-0/+16
| | | | Change-Id: I11e1a3d018d921d96ba08915925b14bf633be6ed
* Fix handling of AOSP recovery commandsDees_Troy2013-04-081-241/+252
|
* Fix handling of subpartitionsDees_Troy2013-04-051-1/+1
|
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-0/+241
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0