Commit Graph

160 Commits

Author SHA1 Message Date
Dees Troy 7d4cedc1d8 Revert "add 1440x2560 theme to TWRP"
This reverts commit c45181db09.

Change-Id: I9dfb2733d9eb30c32bc1e307e382ee8e4e47a0b6
2014-07-29 02:27:14 +02:00
bigbiff bigbiff c45181db09 add 1440x2560 theme to TWRP
Change-Id: I9e54d2bcfe89e1e0e3205ce2f4156cfd22dca5b5
2014-07-28 09:00:36 -05:00
Ethan Yonker 780cd39e42 Allow ui.xml to include additional xml files to read
Use common portrait and landscape xml files based on resolution
defined by the device.

Change-Id: Iec528f9d846d49857ff98de1ac201e25dbb60339
2014-07-28 08:50:59 -05:00
Vojtech Bocek 03fd6c56fe Implement "take a screenshot" feature
* 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-09 17:35:36 +02:00
Ethan Yonker 1b7a31bd65 Track backup and restore progress
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-09 08:52:18 -05:00
Ethan Yonker bf2cb1c4d8 Color in the console
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-09 15:46:35 +02:00
jrior001 aad03116ed Refresh after partition changes
Change-Id: Id16c84f815b1c4b8e95da142648a5a759116ee6e
2014-07-07 20:59:07 +02:00
Motorhead1991 c7f2e1243b GUI: Add -fno-strict-aliasing to GUI for Vanir
Change-Id: Id772737d2856698861686671152f14bad800cd5c
2014-06-30 18:32:20 +02:00
Matt Mower fb1c4ffaaf Whitespace and minor code cleanup
This is by no means comprehensive, but is quite a bit better already.

Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
2014-06-04 09:13:37 -05:00
Ethan Yonker 87c7bac9c9 Add options to repair or change file system
Change-Id: I9043e98e1e1ed4722f05c13a60b43d2d0bf739f6
2014-06-04 15:46:32 +02:00
Ethan Yonker fc966505e5 Make blank timer read brightness path from data manager
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-16 13:30:57 -05:00
Vojtech Bocek 0b7fe504dc Add support for actions triggered by key combination
Change-Id: I9dfa7de40229f00412d63fc9c1eb3a809a6eb2e6
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-04-16 17:51:17 +02:00
Matt Mower bf4efa39e4 Support alternative .android_secure location
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-16 17:30:26 +02:00
Ethan Yonker 1ecaca7d0b Allow device files to specify a custom theme
Change-Id: I360f93e70c6a48eed502a5aacd6d8d654ca7b570
2014-04-15 15:27:53 +02:00
Ethan Yonker 0c9d049b6e Improve handling of shell symlink in recovery ramdisk
Change-Id: I06351f8ecdfe5b119bbae0d6800258adef844c66
2014-04-15 15:27:19 +02:00
Dees Troy 1eba56f577 Fix touch on Sprint HTC One m8
Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001
2014-04-15 15:26:14 +02:00
Ethan Yonker 5c9336924f Add option to build TWRP with toolbox instead of busybox
Makes a smaller TWRP
Uses mksh for shell

Change-Id: If78d7745dda8919fcb2e9c9b60c6696063c14114
2014-04-04 11:28:14 -05:00
Ethan Yonker 83e82578af Allow building of an OEM friendly TWRP
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-04 10:59:52 -05:00
Matt Mower cd8169c164 Refresh page after updating partition sizes
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-02 04:33:20 -05:00
Matt Mower 05aa1352b8 Convert 1600x2560 ui.xml to unix line endings
Change-Id: I98dd6b25cbb1616f6032e9dcb4174461add53498
2014-04-02 04:33:20 -05:00
bigbiff bigbiff 1131cffb36 add 1600x2560 to TWRP. Thanks to nrage123 and Gunthermic for creating
the theme.

Change-Id: If633af291689b2ac686c41331bb9adac34c425ad
2014-03-23 20:03:54 -04:00
Kra1o5 781e689f37 Fix incorrect alignment of Restore Defaults button in some themes
Change-Id: I11bd9fea2a900a92794c5c297846eb87265eeee7
2014-03-10 00:37:26 +01:00
Ethan Yonker 6b4276f760 Remove size parameter from substr call
Change-Id: I2745bcf8f242fe4a1992aa547efaccf33db0fb5b
2014-03-07 06:48:45 -06:00
Vojtech Bocek d5b26d61e7 Fix "\n\n" string in gui_print(), remove unused gui_print_overwrite()
Change-Id: Ib23354a706013c8cee6665c720fa3b890f3fb3de
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-03-06 22:59:22 +01:00
Dees Troy eacfc37083 Merge "Tweak 240x240 theme" into android-4.4 2014-03-06 17:11:22 +01:00
Dees Troy 54a69f4d59 Tweak 240x240 theme
Change-Id: I0801d29aeb66678157123e3630b09a2b527ad4df
2014-03-06 14:22:28 +00:00
Vojtech Bocek c58846b200 Fix wordwrap in console eating last char if str.size() == max_line_len
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
Change-Id: I4a23cd78bd63d63f4d6ec8f34dcc6eced824123b
2014-03-04 19:58:01 +01:00
Ethan Yonker 04a5b0e0e2 Merge "Allow sideloading from /tmp" into android-4.4 2014-02-26 20:58:51 +01:00
Ethan Yonker 45312e551f Allow sideloading from /tmp
Change-Id: I7ba9a8a496536ed55241e45e18297bd824d7e28c
2014-02-26 09:23:53 -06:00
Dees Troy 31218ec952 Add word wrap to console output and fix scrolling in console
Change-Id: Ibcf89952ee1391350c715f1ec82cf0cdb9b0ca7d
2014-02-26 08:52:05 -06:00
Ethan Yonker 30e41c784e Merge "Remove some unneeded code" into android-4.4 2014-02-25 18:05:45 +01:00
Ethan Yonker c3120d41b8 Add capslock support to keyboard
Change-Id: I4be3849ff0485536575395d798aa5edbe12651a7
2014-02-17 08:11:14 -06:00
Ethan Yonker 8214f0ae64 Remove some unneeded code
Change-Id: I52b34a316950e92a3aa4c1675475fca8dc08d2c8
2014-02-16 15:15:34 -06:00
Vojtech Bocek 072205626c Cache results of GUIObject::isConditionTrue()
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Ia50f7c365b2dc0a65ee046bb42972e3594264878
2014-02-12 19:19:32 +01:00
Vojtech Bocek bfb6334ca8 Properly delete all GUIObjects and pages on theme reload
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34
2014-02-12 19:19:15 +01:00
Vojtech Bocek ede51c528e Conditional -> GUIObject and make all gui objects children of GUIObject
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
2014-02-12 18:30:41 +01:00
Vojtech Bocek 5af8f3faca Add vibrations to Checkbox, Fileselect, Listbox and Partitionlist
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I7b0e27930857add1ac88671a71310bea56fc4e74
2014-02-08 02:22:23 +01:00
Dees Troy 3b2be98ca4 Merge "Add option to print render time of each frame to log file" into android-4.4 2014-02-07 19:46:59 +01:00
Vojtech Bocek 1fc30fc77b Implement mouse cursor
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
2014-02-07 12:37:13 -06:00
Ethan Yonker 03db326c64 Expansion of vibrate options
Improve location / timing of vibration
Split out vibrate settings for buttons, keyboard, and long actions

Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
2014-02-07 09:53:41 -06:00
Vojtech Bocek e5ffcd1af2 Add option to print render time of each frame to log file
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Id158a6375fbadf4cdf0a8c7d143759e602419e7f
2014-02-06 21:18:08 +01:00
Samer Diab (S.a.M.e.R_d) 71e9b049c2 Add haptic feedback
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
2014-02-06 20:27:28 +01:00
Vojtech Bocek 59e51a4349 Don't switch between fast and normal scroll during drag in listviews
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I925adda7f417c6e578f501babc8ef2bec638f66b
2014-01-29 19:15:56 +01:00
Matt Mower b53907e594 Force GUI render after setting brightness
Change-Id: I4470a3a090d10f400575d45338a8349fbee8a027
2014-01-20 22:16:39 -05:00
masteroftime b58e6d253a Initial 240x240 theme
Change-Id: I478f172e1a549b50ebe29cf9a8b8618a84b3cb17
2014-01-15 20:36:29 +00:00
Kra1o5 b99d8f2c2e Fix white point on top-bar images in some themes
Change-Id: Ic6a0b4b3e41818ff510ca652d5f14bdecd531826
2014-01-14 18:12:01 +01:00
Vojtech Bocek 81c29dc7c4 Add support for persistent variables in theme's <variables> section
* 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-12-07 23:05:10 +01:00
Dees Troy 4168a07310 Fix render issue when button has conditional
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-29 05:02:40 +00:00
Dees Troy 8c0f06b0d3 Update partition sizes after sideload
Change-Id: I4dbb4677f1c3bcfa0b0a9248ae0b411c155f927e
2013-11-26 21:21:29 +00:00
bigbiff bigbiff 163d474803 Add check for making sure theme exists for device
Change-Id: I9b178cebbb2834cd0c86088c8e78678f55d14e62
2013-11-16 13:47:30 -05:00