summaryrefslogtreecommitdiffstats
path: root/twrp.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-09-20Attempt to automatically identify data/media devicesEthan Yonker1-0/+5
Change-Id: Ia3007fbced9ce3bc94efdb3dacc582a5e68a49a4
2014-09-04Properly set mtp enable variable if disabled during bootEthan Yonker1-0/+1
Change-Id: Iedf08419a1fd46908e5b9186a769a0497ce62ca8
2014-09-04Prevent MTP enable on startup if crash detectedEthan Yonker1-8/+18
Change-Id: Ie1388a8acadf714a29721dd90c7f9a8aa38a860d
2014-09-03Ensure that MTP is enabled by defaultEthan Yonker1-0/+7
Change-Id: Ibd644509935cde1e52b3d368060fdcb6e16f4a99
2014-09-03add mtp responder to TWRP.bigbiff bigbiff1-0/+19
Big thanks to Dees_Troy for helping with the implementation. Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
2014-08-09Add command line capabilitiesEthan Yonker1-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
2014-07-25Only disable recovery flash if it is truly "stock" recoverydhacker291-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
2014-07-09Check the crash counter instead of date in TWFunc::Fixup_Time_On_Boot()Vojtech Bocek1-1/+2
* Some devices (Sony) have RTC counting up from year 2009, Change-Id: I2cf1928e1b05c7e8b184963f8130582e0319ddc4 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-07-09Change ro.twrp.boot boolean to twrp.crash_counterVojtech Bocek1-4/+11
Change-Id: If1ef25fee5a138a90ccb4f0a70b20b55698e0d0d Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-07-09Color in the consoleEthan Yonker1-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
2014-03-11Run TWFunc::Fixup_Time_On_Boot() before OpenRecoveryScriptVojtech Bocek1-2/+4
* Fixes possible issues with names of backups made with ORS Change-Id: If8da1b3abb0960e527bb0eb3dd8a04d184aaea4d Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-02-04Load RTC offset on Qualcomm Krait chips, fixes the broken time & dateVojtech Bocek1-0/+3
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I04ad07f3e6be961003e063be8c648e191e2f9431
2013-12-19Improve SELinux support checkDees Troy1-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
2013-12-19Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.bigbiff bigbiff1-13/+14
Moved Get_Folder_Size to this new class. Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
2013-11-26Add check during boot for SELinux supportDees Troy1-0/+12
Change-Id: Ib02867c403d1baa665dfb1d4f3137204e64a813c
2013-10-24Skip the = or \n before grabbing Zip_File.android-4.3Kevin Steck1-0/+3
Change-Id: I0454f8fc3cbe037fac63ef5861f8f373e4654d49
2013-10-23fix getting and setting contexts in selinuxbigbiff bigbiff1-1/+9
recreate lost+found with selinux contexts Change-Id: I19e8696d47319dfb641520956c8a27c2a796a0c3
2013-10-22Skip the = or \n before grabbing Zip_File.Kevin Steck1-0/+3
Change-Id: I0454f8fc3cbe037fac63ef5861f8f373e4654d49
2013-10-17fix getting and setting contexts in selinuxbigbiff bigbiff1-1/+9
recreate lost+found with selinux contexts Change-Id: I19e8696d47319dfb641520956c8a27c2a796a0c3
2013-09-12Add TWFunc::Exec_Cmd() with no 'result' agrumentVojtech Bocek1-3/+2
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9
2013-09-12Make fixing su perms automaticDees Troy1-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
2013-09-12Pull ROM info from build.prop for backup namesDees Troy1-1/+1
Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
2013-08-29Use twrp.fstab if presentDees_Troy1-0/+8
2013-08-24Unify indentation and little clean-up in TWRP filesVojtech Bocek1-6/+6
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-24Add SELinux supportDees_Troy1-0/+16
Change-Id: I11e1a3d018d921d96ba08915925b14bf633be6ed
2013-04-08Fix handling of AOSP recovery commandsDees_Troy1-241/+252
2013-04-05Fix handling of subpartitionsDees_Troy1-1/+1
2013-04-04Move all AOSP code out of recovery binaryDees_Troy1-0/+241
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0