summaryrefslogtreecommitdiffstats
path: root/gui (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-10Scale the GUI to fit the screenEthan Yonker32-149/+322
With this patch set, if needed, we scale the images during early boot. TTF support is needed to properly scale the font. No font scaling is done on the old style fixed width font used in the console. Special thanks to _that for figuring out the scaling and blending function calls to make this possible. Change-Id: If2f79bef16d6db2e1298bfc3d00c9bcca2bee37a
2015-02-10Remove deletes for images from scroll list GUI ElementsEthan Yonker6-12/+0
Resources are deleted by ~PageSet and do not need to be deleted by the the scrollable list elements. This fixes a crash when reloading the theme. Also remove some deletes for items that should not be deleted in button and input GUI elements. Change-Id: Ie1c1b85c81c10f648d085746a5fdba6220468a5f
2015-02-09gui: avoid high CPU usage while waiting for inputthat2-12/+25
- add a timeout to ev_get - set timeout to 1 second when idle - delay timeout for 15 frames to keep animation objects working - stop kinetic scrolling immediately at end of list Change-Id: I77138055c464b65b71e296f9c7ef63ea06809bc1
2015-02-09Reset data manager variables before running runPagesEthan Yonker1-1/+3
Fixes a problem where, if you decrypt the device, the promtp for installing SuperSU appears briefly before it automatically reboots without letting you confirm or deny. Change-Id: I6f7b1c7096e788ccabd8f5aac9eb01d38bfbc0f7
2015-02-06gui: fix console lockup when scrollingthat2-17/+17
Apparently fixing all the signed/unsigned warnings was good. :) Change-Id: I62faa23179e8b2436fe0d24d2152af341cd42fe9
2015-02-06gui: make kinetic scrolling more naturalthat1-2/+2
Speeding up scrolling after releasing is distracting, get rid of it. Instead reduce friction to its previous value. Change-Id: I5c99cc71b631747697e967bd75669aa3d908c637
2015-02-05Unify scrollable list codeEthan Yonker6-2434/+1173
The goal of this patch set is to eliminate the code duplication caused by copy/paste of the code in the file selector, listbox, and partition list GUI elements. Those classes will now utilize a single GUIScrollList class that will handle rendering and scrolling. Change-Id: I0cb98ab36cf47178296034293435225658c779cd
2015-02-02Disable stock recovery replacing TWRP during ORSEthan Yonker1-0/+2
-Create a separate function to disable stock recovery flashing -Add a call to that function to the reboot section of the ORS action so that an OTA update will not inadvertantly replace TWRP Change-Id: I43eae81e0e76971b6e8d34c38785dc73772242d2
2015-02-01gui: simplify code in GUIKeyboardthat2-131/+73
- merge duplicated code into new ParseKey method - convert some unsigned int to int to avoid warnings - add local variable for current key in NotifyTouch to reduce clutter Change-Id: I98ddbaca50d487c97ab6e98938df91ef03b9aed5
2015-02-01gui: fix potential invalid memory accessthat1-5/+1
A single char should never be treated as a string. Change-Id: I5f8459495f7d0f907ac7c0ae6dd73a3428d92d23
2015-02-01gui: fix hardware keyboardthat3-73/+64
- Power+voldown works again for taking screenshots - Right shift key isn't stuck until users presses "s" - Don't use DataManager for local variables - Simplify handling of Shift keys - Clean up #includes a bit Change-Id: Iff0453107beaa336a9c04422b43e92225fdbe069
2015-02-01gui: fix lag (and event logging)that1-18/+18
- Process multiple input events per frame even if rendering takes longer than 33 ms. Limit minimum frames per second to 2 instead, allowing us to catch up with the input events. The lag was especially visible when using the mouse. - Move blankTimer calls to the main input function so that moving the mouse also unblanks. - Fix a compile error with event logging. Change-Id: If9e0360f5cc0562c4356611afc61b6d583fb1ec4
2015-01-30gui: run cancel action in another threadthat2-52/+79
Some actions did not have an operation_end where needed especially when dealing with cancel actions. Cancel actions now do not run operation_start or operation_end and let the original action handle the operation_end so that the GUI waits until the original action acutally cancels. Change-Id: I28e6260abb058acb982cecd108c09fc89e0ffeed
2015-01-30gui: move input handling into a classthat2-221/+244
Change-Id: I97e08a23369af0112875af84b3fb529cf42e929e
2015-01-30Move input handling into the main threadEthan Yonker2-181/+552
This also makes the hardwarekeyboard.cpp file that I created for the Asus Transformer tablets with a keyboard dock the default hardware keyboard handler. USB keyboards should work properly now if present for keyboard input. Change-Id: I724606e91ffe2a55265a9d1cb1ec714de244d38b
2015-01-29gui: fix IsInRegionthat2-5/+5
(0,0) was inside the region of "locationless" action objects, leading to all kinds of strange behavior when clicking in the upper left corner. Change-Id: I222db4ff499f3c30605b05267f005accb2e0dc99
2015-01-29Use macro to add actions to the action mapVojtech Bocek1-56/+58
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I283b33087817eb87dae916a3183a9024dd35effd
2015-01-27Use TWAtomicInt in gui.cpp to make it thread safeEthan Yonker1-35/+23
Change-Id: If05202355d3773e73541288c922fa6c69b1a9ad7
2015-01-27Add cancel backup capability.bigbiff6-10/+119
This will stop the iteration of the partition objects, kill the current twrpTar thread and remove the backup directory. Implement TWAtomicInt class to give us a wrapper that automatically uses mutexes before the read and write to help ensure that the reads and writes will be atomic based on documentation. Change-Id: I645b22bc980a292e9c7202acb24ffd22ebe68c63
2015-01-22Use /twres instead of /res for theme resourcesDees Troy5-19/+23
AOSP and other ROM trees now do a rm -rf of the res folder during the ramdisk creation process that removes the TWRP resources. Using /twres instead of /res works around this issue making TWRP more compatible with AOSP and other build trees. Change-Id: I0d4c7e06ca381ac5aa0069b6f2b8c47f7dec49e7
2015-01-22Hide some non critical error messagesEthan Yonker1-1/+1
Change-Id: I6e43242e44ce63cea9472c75a9f7fedf1b34fbbe
2015-01-22Move ORS command line into main threadEthan Yonker2-140/+111
Also eliminate the mostly similar runPage function in favor of using a single runPages function to avoid code duplication. Change-Id: I46ef414beb4009fee16d4de13d8a5ab2b9678409
2015-01-18gui: clean up error handling in resource managerthat1-61/+24
Change-Id: Ib94e661ab0c608deb2d119168709c85a9a44b2fa
2015-01-13Fix handling of custom themes after decryptEthan Yonker3-34/+41
Loading a custom theme from the decrypt action was preventing the runPage function from exiting. This moves the loading of a custom theme out of the action. Change-Id: I86904b63a67a25ded56e3e1e569fe906264dc055
2015-01-12Fix some crashes during theme (re)loadingVojtech Bocek3-15/+29
Change-Id: I01405fbe86a48ae79f2cbe633b89f2dcfb1ef266 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2015-01-12Fix some actions being incorrectly threadedVojtech Bocek1-1/+1
Change-Id: Ic8406344994ef2a9972207f9281b52e64e22826b Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2015-01-11gui: simplify blanktimerthat7-142/+76
- get rid of separate thread, check timer in rendering thread instead - use an enum for the blanking state instead of magic integers - move #ifdefs for TW_NO_SCREEN_TIMEOUT inside blanktimer class - move some #includes and enum TOUCH_STATE to pages.hpp Change-Id: Id4b104e3680dc5db41d8ba85e32d722cf4086299
2015-01-09Allow for X and Y offsets in GUIEthan Yonker6-5/+37
These can be used to center a lower resolution theme onto a higher resolution screen. May be useful for Nexus 9 unless or until we decide to do a 1536x2048 theme or on devices like the Moto 360 and LG G Watch R. The build flags will only affect the stock theme. If a custom theme wishes to apply an offset, it can be done by setting tw_x_offset and / or tw_y_offset in the variables section of the XML. Change-Id: I2390769ed861b96a4a3bb8a0f06d9021ec91b6b9
2015-01-09Use power button to go back in watch themesVojtech Bocek3-3/+3
Change-Id: I1463a0ba62a23c68c15f05e79a99fa8509314373 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2015-01-09Improve GUI handling of zip flashingEthan Yonker2-12/+10
- change the page sooner so that users cannot activate the slider twice - improve GUI messaging if a zip requests a cache wipe - move update of the file count to the end so it is less visible to the user (e.g. during a cache wipe the counter should not read 0) Change-Id: I5d478f07effe61ca37f3521a77c9e9243a9cb692
2015-01-09Allow flashing of images via the GUIEthan Yonker25-11/+565
- Use the Images... button in the lower right of the zip install page - Unify image flashing functions between restore and image flash - boot and recovery partitions are flashable by default - use fstab flag flashimg=1 or 0 to override defaults - file system partitions are currently not flashable Change-Id: I822dc446030543c55d2153e219d67a1292374ffc
2015-01-09gui: fix action threading if background thread is busythat2-11/+16
When the background thread is already running and we have at least one threaded action in the list, we should not run any non-threaded actions before ignoring the threaded action and following ones - it might cause invalid state variables to be set. Run or ignore the whole list in the background thread instead. Change-Id: Ie634105b80f038893898a21539886bd757eb47ce
2015-01-09Run some actions in a separate threadthat2-158/+217
Some actions need to be threaded so we will run those in a separate thread and deny requests to thread more actions if new requests come in while a thread is already running. Change-Id: I966c538e67860a6d8fe556e5a2eb7f7d1a987e74 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2015-01-05Thread openrecoveryscript action to properly display action pageEthan Yonker2-22/+39
The action page fails to display properly during ORS processing unless we thread the ORS action. Based upon the work done in this patch set by _that: https://gerrit.omnirom.org/#/c/11226 Change-Id: I6dac790ac26d9b3a02df778516fea011d67aea70
2015-01-04fix adb sideloadthat2-82/+89
- "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
2015-01-03Fix GUIAction::operation_startEthan Yonker1-1/+1
We need to set the value of tw_operation_state a little sooner to make the decrypt page work correctly. Without this change, decrypt would incorrectly display the main page during the first decrypt cycle. This fix may also fix ORS and possibly other things that use the runPage function. Change-Id: I85ad6e4add6726a2746eeb7116f3eab3f7ff5d84
2015-01-01gui: remove dead build flag TWRP_SIMULATE_ACTIONSthat1-6/+0
isn't used by the code, can be set via datamanager instead. Change-Id: I3d98c85c91ce41f32de90345715f2f456f628419
2014-12-30gui: Move action functions to function pointer map.that2-1060/+1149
This allows the functions to be more readable and make doActions readable. Patch set 5: gui: remove threading in GUIAction Multiple actions were started in another thread that was joined immediately after starting it, so the input thread was blocked anyway. Selected single actions were started in their own thread, but this caused bugs like being able to install the same package twice in parallel by quickly swiping the slider twice. Change-Id: I28adadaedd032efc7bff3aaa48e659627aa3a3b3
2014-12-29gui: fix DEVICE_RESOLUTION warnings in Android.mkthat1-12/+12
Indenting the warnings with tab resulted in a make error "*** commands commence before first target. Stop." instead of the intended message. Using spaces instead. Also fixed the web link to point to the current build guide on XDA instead of the outdated one on rootzwiki. Change-Id: I8b25d39edae16dbc479c0e36bd11e12b49b4fbb0
2014-12-22fixPermissions: simplify code, fix bugsthat3-30/+201
- avoid parsing permission strings - fix memory leaks, a fix new/free mismatch and a compiler warning - fix that only first updated-package was processed - fix a potential stack overflow if packages.xml is huge - minor refactoring for reducing duplicated code - don't process packages without codePath - fix path for deleting app data (currently unused anyway) - fix file ownership on libs - try not to mess up Android 5.0 app permissions Patch set 4 - make fixing SELinux contexts an option with a check box - add some notes / text to the themes Patch set 6 - decouple "fix permissions" from "fix contexts" Change-Id: Icc77ecc581befc5ce6e419b1f3b8ca189208c234
2014-12-21Allow non datamedia devices to wipe encryptionEthan Yonker3-12/+75
With 5.0 L, we decrypt automatically if the default_password is used. Non datamedia devices do not get the format data button so they cannot wipe encryption off the device. This patch add a wipe encryption button where the format data button would normally be located on the Wipe page. This patch also attempts to remove / delete the dm-crypt block device before formatting. Change-Id: I100d5d154d6c49254fd48e23279df973db5f23ae
2014-12-19MTP add/remove storage instead of disabling MTPEthan Yonker2-0/+2
Implement a pipe between TWRP and MTP to allow TWRP to tell MTP to remove storage partitions as they become unavailable (e.g. during a wipe, unmount, etc) instead of disabling MTP completely. This includes some fixes and improvements in destructors to properly remove / delete various items. This also means that we will not be toggling adb off and on quite as often. I do not like that we had to add another thread, but we were unable to use select() on the mtp_usb character device because this device does not support polling. Select always returned indicating that the mtp file descriptor was ready to be read and the resulting read would block. The read block prevented us from being able to include reading of the pipe between TWRP and MTP in the main MTP thread. We might want to add a return pipe letting TWRP know if the removal of the storage device was successful, but I am not sure how we want to implement this. It would invovle timeouts in both TWRP and MTP to ensure that we returned a failure indicator in a timely manner to TWRP and prevent deleting the storage device in the case of a failure. Right now we make no attempt to ensure that an MTP operation is underway like a large file transfer, but we were not doing anything like this in the past. In some respects we have limited control over what happens. If the user installs a zip that unmounts a storage partition, we will not know about the change in storage status anyway. Regular Android does not have these troubles because partitions rarely get unmounted like in recovery. At some point, we have to hold the user accountable for performing actions that may remove a storage partition while they are using MTP anyway. Ideally we do not want to toggle the USB IDs and thus toggle adb off and on during early boot, but I am not sure what the best way to handle that at this time. Change-Id: I9343e5396bf6023d3b994de1bf01ed91d129bc14
2014-12-18Toggle MTP during ADB sideloadEthan Yonker1-0/+2
Windows does not do very well if you try to sideload while MTP is enabled due to drivers. This will toggle MTP off and back on if MTP is currently enabled before and after a sideload operation. Change-Id: I022dbedecc97565b50b6ae1fda8922b822f63440
2014-12-18Fix adb sideload page on 1440x2560 layoutEthan Yonker1-2/+2
Change-Id: If79086b0128e57087fd87f07d56984eb2a15d8b2
2014-12-12Improve resource error loggingEthan Yonker1-10/+21
Actually display the name of the item or the filename of the item that we were unable to load in the log to make it easier to determine what went wrong. Change-Id: I027b35aab286e4d0f1957bcfb28ed40d81f9bbb2
2014-12-12Attempt to set the proper uid/gid/contexts on new files and dirsEthan Yonker2-1/+9
Files and folders that we create during backups, copy log, or MTP operations often do not have the proper uid/gid/contexts assigned. We will attempt to read the proper contexts from the settings storage path and assign those same contexts to any files or dirs that we create. Change-Id: I769f9479854122b49b499de2175e6e2d026f8afd
2014-12-10make header layout more readable for 1440x2560bigbiff1-2/+2
Change-Id: I109c7ae5963b5b4d9d1a8190e364a7685c41dbdd
2014-12-10Use one mizip for allEthan Yonker7-49/+0
The new minzip did not compile in older trees due to needing mmap64. For older trees we will just use mmap instead. Remove all files and code pertaining to minzipold. Updater should now build properly in older trees as well. Eliminate use of PLATFORM_VERSION in favor of PLATFORM_SDK_VERSION which should be more consistent and reliable. Change-Id: I38d2b604a73d1b17a2072c7d60e990b81ece0c10
2014-12-09Fix slidervalue not showing up in some casesEthan Yonker1-1/+1
The button vibration slider was not showing up on portrat layouts. This commit fixes that issue and maybe some other issues. Change-Id: Ia0c0ed319358db3b99887b3b37aa7737c7caf0cc
2014-12-03bootable recovery: we upgraded to 5.0.1erikcas1-1/+1
Change-Id: I9e2f359dd7274e1ae885f6a3b392d5ab5ca99ac9
2014-12-02 Make the android-5.0 branch compile in 4.4 to 4.1Ethan Yonker2-0/+23
Migrate previous minzip to minzipold replacing the existing minzipold. This will break compatibility with trees that do not support selinux (ICS and older). Migrate former verifier files to verifierold. Add fuse.h to recovery source because older trees do not have it. Add LOCAL_MODULE_TAGS where needed for 4.1 tree. Change-Id: Iade57cb2b0115af7fce9f56aa98636b1744a1ef4
2014-11-16Thanks to _that, return null if vector is emptybigbiff2-3/+2
Change-Id: Idc44455dd0c971c876ae283528c4367a82e145bd
2014-11-12Make TWRP compile for arm64Ethan Yonker1-0/+2
-Remove dosfstools for arm64 until we can make it compile -Fix TW_USE_TOOLBOX flag to work again -Fix symlinking and handling of sh when using mksh -Fix legacy properties to find futex_wake function -Fix libcrecovery to not use bsd_signal anymore -Fix rules for building with regards to libcrecovery -Update toolbox_recovery rules to compile tools in lollipop -Fix a few compile errors specific to arm64 Testers report that TWRP does not boot on Nexus 9 and we fail to get a shell for adb shell. At least it compiles without errors. Change-Id: I286be8628defb60cc527b8a548c0bdfcb0ebb574
2014-11-12update theme thanks to Alexey71 on xda.bigbiff1-30/+30
Change-Id: Id5a0d40d05b0d7e56fb3e8f0578c201957508b70
2014-11-08Make custom themes work againEthan Yonker2-4/+25
Change-Id: Ib9ad011428603979f7dd8a2708989feb9b13e075
2014-11-08Update adb sideload featureEthan Yonker1-22/+36
Change-Id: Ib503d0e87434e1a28430779302d6565211c26592
2014-11-07Fix zip installEthan Yonker1-26/+1
We never used the feature for running a custom theme during zip install. We can re-implement this later if we like. For now, we will remove this feature until we are ready to make it work. Change-Id: Ice71b0b863c7ef17376e3f973d48b810be567c33
2014-11-07Disable custom theme and fix png loadingEthan Yonker1-1/+1
We will have to update the zip handling later. Now at least TWRP boots up to the GUI. Change-Id: I4182896eb095cab52fb0f1c9c20b6605e35677b9
2014-10-22Fix crash when rapid firing command line commandsEthan Yonker1-0/+4
Change-Id: I0caaa51720fe3608b8c4cb02f046afb3cbaa54f9
2014-10-20gui: Disable unnecessary checks if TW_CUSTOM_THEME is definedHandyMenny1-6/+8
if TW_CUSTOM_THEME is defined there's no need to check if $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION) exist. Change-Id: I234374eb1db187758102ca64884a94a81c938b54
2014-10-20Fix placement of Android Secure and SD-EXT on wipe pageCaptain Throwback3-31/+31
Change-Id: Iac1c13b38df2ac66106abcda7c9d171a1549b65f
2014-10-14Update reference to 24-hour clockCaptain Throwback3-3/+3
Change-Id: Ic864fae4fda9707fc84d6d8b33587863b7664e1e
2014-10-14display cpu temperature in twrpJenkins19-21/+192
use TW_NO_CPU_TEMP := true to disable display use TW_CPU_CUSTOM_PATH := path to set custom path Change-Id: Id260ecbb4ec36a78442387329944f67003d0f6a0
2014-10-14Add support for TrueType fontsVojtech Bocek30-58/+133
* Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-10-08performance profile supportTom Hite1-0/+4
Many device trees support the recovery.perf.mode property to set various core frequencies and online/offline mode. TWRP is highly threaded, and support for multiple cores on many operations dramatically recudes the time, e.g., backups, zip flashes, etc. p2: removed user notifications Change-Id: I957b8ca40b241c0af0471327eeb329cce1816017
2014-09-20Attempt to automatically identify data/media devicesEthan Yonker1-6/+0
Change-Id: Ia3007fbced9ce3bc94efdb3dacc582a5e68a49a4
2014-09-03Build block TWRP with RECOVERY_VARIANTMatt Mower1-2/+2
Enable TWRP to reside alongside other recoveries with the naming convention: bootable/recovery(-flag). If TWRP resides at bootable/recovery and a device does not specify RECOVERY_VARIANT, then it will build like normal. If TWRP resides at bootable/recovery-twrp, then its makefiles will only be parsed if a device specifies 'RECOVERY_VARIANT := twrp'. This prevents TWRP specific makefile warnings/errors (notably, missing DEVICE_RESOLUTION) when another recovery is being built. Change-Id: I8f02fffcd79c309c7123b9428eedc69af02e126e
2014-09-03Refresh partition details after changing file systemDees Troy3-18/+78
Change-Id: I24f3c8587f778c4f0ef43737243c8378a3fd0e00
2014-09-03add mtp responder to TWRP.bigbiff bigbiff5-2/+120
Big thanks to Dees_Troy for helping with the implementation. Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
2014-08-10Support reading since_epoch and secondary brightness filesxNUTx6-34/+21
TWFunc::Fixup_Time_On_Boot: Will now try to read /sys/class/rtc/rtc0/since_epoch to correct time, if that fails it will try to use the ats files to correct time. TWFunc::Set_Brightness: One single function to set brightness from both the automated functions and the gui actions. It is able to set a second brightness path if present, it will set them both the same value. Many Sony devices have 2 brightness files in the sysfs that must be set to properly set the brightness. Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca
2014-08-09Add command line capabilitiesEthan Yonker5-2/+123
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-08-07Add possibility to use images as background or handle of slidevalueVojtech Bocek2-21/+67
* Add tag <resource background="x" handle="y" handlehover="z" /> to the slidervalue object. * All images are optional, e.g. you can use just handle or just background image or no images whatsoever Change-Id: Ie0fee92965c6e883c4e532732756008dcc9e385e Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-08-07update 1440x2560 keyboard mappingbigbiff bigbiff1-16/+16
Change-Id: I9777e92ca26967d41625e726383ae6aa5406161d
2014-08-07Allow using variables and addition/subtraction in variablesEthan Yonker2-18/+44
Change-Id: I1acba95302e414e1a471d27474508a7c48df0328
2014-08-04Add 280x280 themeEthan Yonker35-1/+407
Change-Id: Iea2fac2f1b300c312819ea2d83e1762669d357b6
2014-07-30Minor tweaks to watch ui.xml filesEthan Yonker2-8/+5
Change-Id: I9448eed41e43c4fce575b7ed12b5270a1d75f99b
2014-07-30Add 320x320 theme and split out watch.xml for square watch layoutEthan Yonker37-3836/+4252
Change-Id: I7fe38b20913a981942105637a527a2d26ed035a5
2014-07-29Update 240x240 themeEthan Yonker2-243/+647
Change-Id: I1a50fa0bb750b229220c217d24253b65f24d2920
2014-07-29add 1440x2560 theme to TWRPbig biff37-3/+422
Based on work by Chris Phelps <cphelps76@droidconcepts.com> https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/58963336b81ea8bcc03b8d7e4dfe4598f5afc972 https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/4ec10303cb76592044c3aa449dc68a33356a6e09 https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/c48bd2412332916eafd0db727d923c8c16cd35ed https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/f0944ded30e98917ca85db0185add1207ea5f4b6 But with other original changes too. Change-Id: I809a37a3983187e62568a1e2403b6637a692220d
2014-07-29Revert "add 1440x2560 theme to TWRP"Dees Troy38-422/+3
This reverts commit c45181db0902762fb670b56a173db7c331e564cb. Change-Id: I9dfb2733d9eb30c32bc1e307e382ee8e4e47a0b6
2014-07-28add 1440x2560 theme to TWRPbigbiff bigbiff38-3/+422
Change-Id: I9e54d2bcfe89e1e0e3205ce2f4156cfd22dca5b5
2014-07-28Allow ui.xml to include additional xml files to readEthan Yonker22-58184/+7988
Use common portrait and landscape xml files based on resolution defined by the device. Change-Id: Iec528f9d846d49857ff98de1ac201e25dbb60339
2014-07-09Implement "take a screenshot" featureVojtech Bocek16-0/+154
* Like in android - press power+volume down, screenshots are saved in /sdcard/Pictures/Screenshots (if /sdcard is mounted) or /tmp Change-Id: Iaefa15b11a1d5fdfac57d77388db1621f378a8d4 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-07-09Track backup and restore progressEthan Yonker15-2/+272
Track backup and restore progress based on the sizes of the files as they are being added to the tar backup file. Update the progress bar based on the sizes of the files. Change-Id: Idf649efa1db3e91830b4b2add86203a3f30042ff
2014-07-09Color in the consoleEthan Yonker19-15/+99
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-07-07Refresh after partition changesjrior0011-2/+2
Change-Id: Id16c84f815b1c4b8e95da142648a5a759116ee6e
2014-06-30GUI: Add -fno-strict-aliasing to GUI for VanirMotorhead19911-0/+2
Change-Id: Id772737d2856698861686671152f14bad800cd5c
2014-06-04Whitespace and minor code cleanupMatt Mower52-2096/+144
This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
2014-06-04Add options to repair or change file systemEthan Yonker16-41/+5213
Change-Id: I9043e98e1e1ed4722f05c13a60b43d2d0bf739f6
2014-04-16Make blank timer read brightness path from data managerEthan Yonker2-10/+4
After implementing the find_file class, the blank timer code needed to be updated to pull the brightness path from the data manager instead of using the build flag to ensure that we use the proper path for brightness. Change-Id: I084983ac0bd68b2fcdd69b93c2d18e2862ba0c77
2014-04-16Add support for actions triggered by key combinationVojtech Bocek6-47/+116
Change-Id: I9dfa7de40229f00412d63fc9c1eb3a809a6eb2e6 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-04-16Support alternative .android_secure locationMatt Mower17-17/+68
Some devices (jewel, m8) have .android_secure at a non-standard location. Allow a different partition to be specified as the home of .android_secure using the fstab flag 'andsec'. Using the /data/media variant of jewel as an example, recovery.fstab or twrp.fstab could be edited like follows: /external_sd vfat /dev/block/mmcblk1p1 flags=display="MicroSD";andsec Note, this is NOT a method to move .android_secure in your ROM. Your ROM must already write to this alternative location. Change-Id: I3a6e4e63aaddb35870b79e80938b0f9c2c902443
2014-04-15Allow device files to specify a custom themeEthan Yonker1-3/+8
Change-Id: I360f93e70c6a48eed502a5aacd6d8d654ca7b570
2014-04-15Improve handling of shell symlink in recovery ramdiskEthan Yonker1-11/+6
Change-Id: I06351f8ecdfe5b119bbae0d6800258adef844c66
2014-04-15Fix touch on Sprint HTC One m8Dees Troy1-8/+10
Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001
2014-04-04Add option to build TWRP with toolbox instead of busyboxEthan Yonker1-0/+11
Makes a smaller TWRP Uses mksh for shell Change-Id: If78d7745dda8919fcb2e9c9b60c6696063c14114
2014-04-04Allow building of an OEM friendly TWRPEthan Yonker3-4/+10
Disable theming Disable creating the TWRP folder for the settings file Change factory reset on data/media devices to a full wipe Change-Id: I3104282b5dd3f55dfff7c8cf39c72750af08563d
2014-04-02Refresh page after updating partition sizesMatt Mower16-16/+64
Some (all?) devices do not update the partition size displayed on the backup screen when selecting "Refresh Sizes". Refresh the page after recalculating sizes. Change-Id: Id34da6c738f86501f73cbd7874f6921d1cda32c4
2014-04-02Convert 1600x2560 ui.xml to unix line endingsMatt Mower1-3928/+3929
Change-Id: I98dd6b25cbb1616f6032e9dcb4174461add53498
2014-03-24add 1600x2560 to TWRP. Thanks to nrage123 and Gunthermic for creatingbigbiff bigbiff35-0/+3928
the theme. Change-Id: If633af291689b2ac686c41331bb9adac34c425ad
2014-03-10Fix incorrect alignment of Restore Defaults button in some themesKra1o58-64/+64
Change-Id: I11bd9fea2a900a92794c5c297846eb87265eeee7
2014-03-07Remove size parameter from substr callEthan Yonker1-1/+1
Change-Id: I2745bcf8f242fe4a1992aa547efaccf33db0fb5b
2014-03-06Fix "\n\n" string in gui_print(), remove unused gui_print_overwrite()Vojtech Bocek2-47/+8
Change-Id: Ib23354a706013c8cee6665c720fa3b890f3fb3de Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-03-06Tweak 240x240 themeDees Troy1-4/+6
Change-Id: I0801d29aeb66678157123e3630b09a2b527ad4df
2014-03-04Fix wordwrap in console eating last char if str.size() == max_line_lenVojtech Bocek1-1/+1
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I4a23cd78bd63d63f4d6ec8f34dcc6eced824123b
2014-02-26Allow sideloading from /tmpEthan Yonker1-4/+5
Change-Id: I7ba9a8a496536ed55241e45e18297bd824d7e28c
2014-02-26Add word wrap to console output and fix scrolling in consoleDees Troy2-42/+52
Change-Id: Ibcf89952ee1391350c715f1ec82cf0cdb9b0ca7d
2014-02-17Add capslock support to keyboardEthan Yonker16-17/+112
Change-Id: I4be3849ff0485536575395d798aa5edbe12651a7
2014-02-16Remove some unneeded codeEthan Yonker2-83/+8
Change-Id: I52b34a316950e92a3aa4c1675475fca8dc08d2c8
2014-02-12Cache results of GUIObject::isConditionTrue()Vojtech Bocek11-44/+65
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ia50f7c365b2dc0a65ee046bb42972e3594264878
2014-02-12Properly delete all GUIObjects and pages on theme reloadVojtech Bocek4-7/+31
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34
2014-02-12Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek19-42/+119
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
2014-02-08Add vibrations to Checkbox, Fileselect, Listbox and PartitionlistVojtech Bocek4-0/+10
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I7b0e27930857add1ac88671a71310bea56fc4e74
2014-02-07Implement mouse cursorVojtech Bocek34-4/+384
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
2014-02-07Expansion of vibrate optionsEthan Yonker18-51/+783
Improve location / timing of vibration Split out vibrate settings for buttons, keyboard, and long actions Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
2014-02-06Add option to print render time of each frame to log fileVojtech Bocek1-0/+27
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Id158a6375fbadf4cdf0a8c7d143759e602419e7f
2014-02-06Add haptic feedbackSamer Diab (S.a.M.e.R_d)6-1/+55
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
2014-01-29Don't switch between fast and normal scroll during drag in listviewsVojtech Bocek2-4/+12
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I925adda7f417c6e578f501babc8ef2bec638f66b
2014-01-21Force GUI render after setting brightnessMatt Mower1-0/+1
Change-Id: I4470a3a090d10f400575d45338a8349fbee8a027
2014-01-15Initial 240x240 thememasteroftime34-0/+3821
Change-Id: I478f172e1a549b50ebe29cf9a8b8618a84b3cb17
2014-01-14Fix white point on top-bar images in some themesKra1o53-0/+0
Change-Id: Ic6a0b4b3e41818ff510ca652d5f14bdecd531826
2013-12-07Add support for persistent variables in theme's <variables> sectionVojtech Bocek1-5/+10
* Add support for variables with persist="1", which will cause them saved into settings file and reloaded on next boot. * This is handy for theme makers, who can use this to implement "theme settings". Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I6415979011b38cbb15dec9909c445b02da6eadc0
2013-11-29Fix render issue when button has conditionalDees Troy1-5/+9
If the button has a conditional, the image render function will return a 0 which indicated that an image was present even if it was not if the condition was not being met during boot. When the condition is met, mButtonImg was not set to NULL causing a render request failure. Change-Id: I32be0ddcdc1bf7ad22440d66018ef09484280afa
2013-11-26Update partition sizes after sideloadDees Troy1-0/+1
Change-Id: I4dbb4677f1c3bcfa0b0a9248ae0b411c155f927e
2013-11-16Add check for making sure theme exists for devicebigbiff bigbiff1-1/+9
Change-Id: I9b178cebbb2834cd0c86088c8e78678f55d14e62
2013-11-16Add warning if DEVICE_RESOLUTION is not set in BoardConfig.mkbigbiff bigbiff1-0/+8
Change-Id: Ifc71c2e2078dbcd4b4893205bea9988e1e129f83
2013-10-24Update licenses to all matchDees Troy6-49/+85
Change-Id: I3be70a897e563658736b2dec3a9ea2697b69b225
2013-10-22Update licenses to all matchDees Troy6-49/+85
2013-10-11Add conditions support to GUIImageVojtech Bocek2-2/+5
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-09-12Add 1200x1920 themeVojtech Bocek34-0/+3862
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I558c988c94f750607f58aa3dd22736447c78a214
2013-09-12Add TWFunc::Exec_Cmd() with no 'result' agrumentVojtech Bocek1-14/+10
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9
2013-09-12Make fixing su perms automaticDees Troy14-704/+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 Troy16-101/+237
Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
2013-09-10Kang in older minzip for building in CM9 & CM7Dees Troy6-1/+29
CM7 and CM9 do not have libselinux needed in the newer minzip.
2013-08-30Fix backup list height on 1080x1920Dees_Troy1-1/+1
2013-08-25Add a TW_NO_TIMEOUT optionRicardo Gomez17-2/+84
Change-Id: Ifb3a5bd9f1e6c2e9810c90b0aec198e91d5956fc
2013-08-24Unify indentation and little clean-up in TWRP filesVojtech Bocek23-3294/+3327
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-24Add ability to run scripts after screen timeout/wakeDees_Troy1-0/+2
2013-08-24Revert "Fix touch not working due to gr_fb_width returning 0 in some cases"Dees_Troy1-3/+1
This reverts commit 70e1129612765b14e5aace0155d4683c91cde951. No longer needed after http://review.teamw.in/#/c/655/
2013-08-22Remove graphics.c from libguitwrpDees_Troy1-2/+2
2013-08-11Fix touch not working due to gr_fb_width returning 0 in some casesDees_Troy1-1/+3
Change-Id: Id5ce607a181110118ebc647fc07d387a7a3dc660
2013-07-06Fix background image for 1920x1200Dees_Troy1-0/+0
2013-07-05Update themesDees_Troy44-162/+180
Change-Id: Iedb50aca0132259bfe4297e187dbc2d40a38a34b
2013-07-01Fix some issues with wipe partition listDees_Troy1-0/+7
Change-Id: Ie7d5878faf86b8fa824b72211be7fd3596b471d7
2013-06-22Support encrypted backup filesDees_Troy14-162/+4083
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
2013-06-08Do not render the GUI when the blanktimer turns off the display.gordon13373-0/+14
Normally, when the display has been turned off by blanktimer, the GUI actually still renders the GUI elements (eg. progressbar while doing backup/restore/etc.) This patch will check whenever the display is turned off, and if it is turned off simply dont render. This avoids heating up the device and will save battery.
2013-06-08Console Render Bug caused by touch drag eventgordon13371-0/+1
With starting the console the touch drag event is active without even touching the display. This causes to render the console at any time it is displayed, which consumes alot of battery and heats up the device. What the patch does is resetting the touch drag state to ensure it is only re-rendering the console when it it really needed.
2013-04-05Improve handling of XML errors for fix permissionsDees_Troy2-10/+29
2013-04-04Add new SliderValue GUI widgetVojtech Bocek18-1008/+992
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic5d44314f501341140dd7059d1cb753341f5844c
2013-04-04Move all AOSP code out of recovery binaryDees_Troy22-183/+165
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-03-30Add partition list GUI elementDees_Troy69-8239/+8596
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
2013-03-11add no fb blankingbigbiff bigbiff2-0/+7
Change-Id: Iaf771257d8f904807ca6f6c1a6c3d7993abadb85
2013-03-11Remove unused fonts from 320x480Dees_Troy3-0/+0
2013-03-11Remove mutex from file seselectorDees_Troy2-13/+4
mutex would, in some rare cases fail to lock and cause a freeze of the GUI. Also restored some code that was removed before and should not have been removed to fix a bug with folder selection where you select the same file or folder twice (e.g. select a backup on the restore page, press back, then select that backup again.)
2013-03-04More file selector fixesDees_Troy2-12/+31
Fix a freeze that occurs when you move or delete a file in the file manager Make file sort buttons work again Change-Id: Ifcb68edf3c29c475946d538748729485d0840842
2013-03-01Add 2 second pre-dim and bugfix blank timerDees_Troy2-27/+33
2 second predim code courtesy of bigbiff Change-Id: I052ac422f78dc82c05f58c188587534b800b935a
2013-02-28Fix file selector crashDees_Troy2-13/+19
Sometimes a var change event came in while the file selector was being rendered. Changes to the mFolderList or mFileList vectors sometimes resulted in a crash. This patch set moves the GetFileList call to the Render function to prevent the vectors from changing while the render is taking place.
2013-02-28Load user saved setting for blank timer on recovery startupbigbiff bigbiff2-1/+4
Fix persistence of military time
2013-02-27Copy fast scroll feature to listboxDees_Troy2-2/+101
2013-02-27Add fast scroll bar to fileselectorVojtech Bocek14-2/+256
Also fix build problems with libblkid in CM7 Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I1cd4573e25b247171e4bd8cc05b70543f897a454
2013-02-21Remove ignore image size settingDees_Troy12-122/+175
Move military time setting up and remove the now unused ignore image size setting from XML layouts.
2013-02-21Check for root and root perms and offer to install/fixDees_Troy14-31/+1665
Also fix sort order for file selector by date and file sizes Change-Id: Idff9fe4232c19d4ed1082e78fabe6f921aa0a114
2013-02-21add military time optionbigbiff bigbiff12-1/+98
2013-02-20Configurable timeout and brightness settingsDees_Troy14-314/+1663
Change-Id: I924297ab0dcf920cd4b4b617949c3b16cbc68e43
2013-02-19Minor fix for listbox codeDees_Troy1-1/+1
2013-02-15Fix keyboard layout on 800x1280Dees_Troy1-6/+6
2013-02-15Update listbox codeDees_Troy14-297/+656
2013-02-15Add highlight to file selectorDees_Troy14-80/+236
2013-02-15Add button highlightDees_Troy14-13/+1040
2013-02-13This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future.bigbiff bigbiff6-480/+751
Will also set overlay to lockscreen so we don't have inadvetent screen selections. Touching the screen will bring the display back up. add back check script for poweroff move diff time function to twrp-functions.cpp make sure we chmod after copy_file add read_file and write_file functions to twrp-functions.cpp make single thread try to force update screen add forceRender drop caches after tar processing Change-Id: I3c5c509dd39dbb05451bbfe5d8b56d53c90d8d1b
2013-01-28file manager updates for exFATDees_Troy1-2/+9
Change-Id: I06fa6120a975cbc3d4eef9bc2ca034ec716740ee
2013-01-28Remove thread logging from actions.cppDees_Troy1-3/+0
Change-Id: I2d2af963f4d6990191d91a336f682516af61d734
2013-01-25Fix file manager displays empty list when folder is deletedDees_Troy1-14/+14
2013-01-25adding sideload page with wipe cache and dalvikbigbiff bigbiff13-135/+741
fix variable Change-Id: I72eed7b4d709a184e53cc94165a1817a7dcf041e
2013-01-25Use GUI for ORS instead of console onlyDees_Troy14-207/+93
2013-01-24Convert AOSP commands to ORS for encrypted devicesDees_Troy1-0/+12
Change-Id: I6a76a51cd9efd7db67d7abeeb26f9bdd0eebf5a9
2013-01-24change tar create to pthreadbigbiff bigbiff1-1/+2
Change-Id: I5a33d207ec6683de20da37e6f4f174c67785fc52
2013-01-18Improve ORS sideload to display GUI with cancel buttonDees_Troy3-5/+82
2013-01-16Fix problems with thread creation on some devicesDees_Troy1-1/+35
This fixes a problem with not reaching the backup completed page after a backup is complete on certain devices (GNex, Note2). Changing the stack size to 512KB seems to be the actual fix but leaving the other changes in place as they may be helpful or are better practices.
2013-01-10Increase char array sizes to allow for null char for strcpyDees_Troy1-1/+1
2013-01-09Add libtar to TWRP instead of using busybox tarbigbiff bigbiff2-29/+32
Add proper mkdosfs tool Add fuse to TWRP Add experimental exfat-fuse to TWRP Convert all system() functions to use new Exec_Cmd function
2012-12-18Fix keyboard layout on 800x1280 layoutDees_Troy1-1/+1
2012-12-18Fix defines on pages.hpp to not collide with pages.hDees_Troy1-4/+3
2012-11-22add Decrypt Data buttonGary Peck12-0/+144
Allow to decrypt /data even if decryption was skipped during the initial loading of recovery Change-Id: If2251757a276dd069578e93e5a038b25a825bff6
2012-11-19Fix renaming of backups with spaces, 2.3.2.3Dees_Troy11-11/+11
2012-11-19Finish 2560x1600 themeDees_Troy41-120/+120
2012-11-15Fixes for multi-user in 4.2Dees_Troy51-11/+3634
Also fixed inability to delete backups with a space in the name. Change-Id: I2f6639d33caa3c4542960f76adbd59b25ab64f5d
2012-10-20Add keyboard key highlightDees_Troy14-15/+117
2012-10-19Add ability for buttons to have highlights on touchDees_Troy4-4/+66
2012-10-16Update injecttwrp for Epic 4G TouchDees_Troy1-1/+23
2012-10-15Fix weird keyboard problemDees_Troy1-3/+3
2012-10-10Remove text about fix perms taking a few minsDees_Troy11-22/+0
2012-10-10Finalize 2.3.0.0Dees_Troy1-14/+4
Fix permission setting for other Add new fix permissions to GUI actions Update version number
2012-10-08Add reboot system button after sideload, backup, and restoreDees_Troy11-341/+385
A few other minor xml tweaks
2012-10-08Fix exclamation point on 720x1280 themeDees_Troy1-2/+4
2012-10-01Fix output of version numberDees_Troy1-1/+0
2012-09-28Fix some derpsDees_Troy2-0/+1
2012-09-28Revert busybox for CM7 compatibility, add exclamation point to format dataDees_Troy21-17/+169
2012-09-27Save version number to storageDees_Troy1-0/+1
2012-09-27Create symlinks at compile time for busyboxDees_Troy1-1/+2
2012-09-27Update sdcard partitioning to C++Dees_Troy1-68/+4
2012-09-27Port backup name checking to Partition ManagerDees_Troy1-3/+2
2012-09-27Port reboot functions to C++Dees_Troy1-12/+11
2012-09-27Display symlinks and block devices in file managerDees_Troy1-1/+1
2012-09-26Add option to wipe android secureDees_Troy12-0/+200
2012-09-26Fix permissions updatesDees_Troy1-8/+17
Also redirect stderr output on terminal commands for display in GUI console
2012-09-26Fix SDCard partitioningDees_Troy12-14/+22
2012-09-26Fix a problem with scrolling in the consoleDees_Troy1-1/+1
2012-09-26Allow spaces in backup namesDees_Troy11-22/+22
2012-09-26Unify portrait layouts againDees_Troy6-409/+404
2012-09-24Change curtain to file and remove curtain raiseDees_Troy23-31899/+6
2012-09-24Update tablet layouts with ADB sideloadDees_Troy5-2/+187
2012-09-22Fix 320x480 themeDees_Troy1-37/+37
2012-09-20Update portrait themes with ADB sideloadDees_Troy3-27/+141
2012-09-20Various fixesDees_Troy1-0/+38
Modify AOSP mount and wipe functions to use Partition Manager. Update wipe code to reset the log file index when wiping cache. Add ADB sideload to 540x960 theme.
2012-09-20Add and improve OpenRecoveryScript supportDees_Troy1-3/+3
Improve zip finding in ORS engine Add support for restoring with just a backup name
2012-09-19Fix ext storage and zip pathsDees_Troy2-0/+29
Fix a bug with handling external storage during boot. Check zip root path when switching storage and ensure that the path is in the new storage path to prevent user confusion.
2012-09-19Improve adb sideload - use storage vs tmpDees_Troy1-11/+8
2012-09-19Improve adb sideload -- add cancelDees_Troy2-7/+97
Also copy zip from /tmp to storage and remove from /tmp to prevent running out of RAM.
2012-09-18Cleanup extra-functionsDees_Troy1-27/+13
2012-09-17Update backup and restore code, adb sideloadDees_Troy2-5/+53
Fixed a problem with using make_ext4fs by making its lib a dynamic lib. Added ADB sideload zip install feature - no way to cancel it yet. Improve backup and restore code.
2012-09-14Add wipe functions, compiles in CM7, text shows in UI, zips installDees_Troy1-39/+34
Zip install works, had to move mincrypt code into TWRP to prevent a crash when checking the zip signature. Added wipe functions Made it compile in CM7 Made text show up in console and logging
2012-09-12Make text appear in GUI console, Zip install works.Dees_Troy3-0/+9
Move TW zip install code to C++ so that it can use the ui->functions. Bring in mincrypt code to fix a crash during signature checking.
2012-09-11Zip install works againDees_Troy2-10/+15
2012-09-10Improve storage size code, mount, unmountDees_Troy1-15/+7
Add flag parsing from recovery.fstab
2012-09-07Add processing of fstab, mounting, and decryptDees_Troy5-935/+31
2012-09-06Hax to make it bootDees_Troy6-5/+919
2012-09-05TWRP-ify AOSP codeDees_Troy497-0/+83509
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