Commit Graph

1054 Commits

Author SHA1 Message Date
Dees Troy a8aac9038f Merge "Restore contexts when doing mkdierhier in libtar Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped." into android-4.4 2014-02-07 19:44:16 +01:00
Dees Troy e492e27d77 Merge "Implement mouse cursor" into android-4.4 2014-02-07 19:39:53 +01:00
Ethan Yonker 75de542490 Merge "Expansion of vibrate options" into android-4.4 2014-02-07 19:39:13 +01:00
Dees Troy 50b24dd57c Merge "Add haptic feedback" into android-4.4 2014-02-07 19:38:55 +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
bigbiff bigbiff 6b600f9644 Restore contexts when doing mkdierhier in libtar
Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped.

Change-Id: Ie49bbfa48d2f3ee4f08376d9c1877b92c051017c
2014-02-06 19:56:25 -05:00
Vojtech Bocek 6c694b6f0b Disable alpha blending for non-transparent bitmaps
* The difference isn't as big as there are not many big non-transparent
  bitmaps in TWRP, on install screen on flo it is about 5-10ms better.
  Only place where the difference is noticable is keyboard, which is
  pretty big non-transparent bitmap, where it speeds up the render
  by ~40ms on flo.

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I4c51ef957ae2a1829ada4eb566e9964f708efcf0
2014-02-06 20:38:33 +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
Dees Troy 4011c71f98 Merge "Load RTC offset on Qualcomm Krait chips, fixes the broken time & date" into android-4.4 2014-02-06 20:14:14 +01:00
Dees Troy 5760002161 Merge "minui: adapt backlight blanking commit to TWRP" into android-4.4 2014-02-06 20:09:42 +01:00
Dees Troy 5f1c7e3dce Merge "Don't switch between fast and normal scroll during drag in listviews" into android-4.4 2014-02-06 20:08:17 +01:00
Ethan Yonker a21b052589 Merge "Improve android secure handling" into android-4.4 2014-02-06 20:05:30 +01:00
Vojtech Bocek 1a4744a493 Disable alpha blending for fully opaque rectangles
* This makes the rendering several times faster, because the giant
  rectangle used as background no longer uses expensive blending
  calculations, and there are also many other big rectangles which
  don't need it (fileselector, ...).

* Results on hammerhead:
  - WITHOUT the patch - scrolling in fileselector on install page:

      I:render 67 ms, flip 6 ms, total 73 ms
      I:render 82 ms, flip 6 ms, total 88 ms
      I:render 81 ms, flip 6 ms, total 87 ms
      I:render 80 ms, flip 5 ms, total 85 ms

  - WITH the patch - scrolling in fileselector on install page:

      I:render 32 ms, flip 6 ms, total 38 ms
      I:render 16 ms, flip 6 ms, total 22 ms
      I:render 16 ms, flip 7 ms, total 23 ms
      I:render 18 ms, flip 3 ms, total 21 ms
      I:render 18 ms, flip 2 ms, total 20 ms

* On flo, the results are even more noticable - 160ms -> 40ms

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I5685763ba21745d7cd93133adf5f0bcb4c9a581f
2014-02-06 19:57:03 +01:00
Matt Mower 4a5db2d8b4 minui: adapt backlight blanking commit to TWRP
Change-Id: I79417d218c84fcdaf2ce5ecdf314031831d89575
2014-02-05 20:20:46 -05:00
Ethan Yonker a1aad1bd8c Fix error message on split backups
Change-Id: I9effd57c2b4d28c3bd9ca1045a0bb0ac8c958245
2014-02-04 21:58:14 -06:00
Vojtech Bocek d0e38bc2f4 Load RTC offset on Qualcomm Krait chips, fixes the broken time & date
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I04ad07f3e6be961003e063be8c648e191e2f9431
2014-02-04 18:27:05 +01:00
Ethan Yonker d4d107388c Improve android secure handling
Change-Id: I9e1c7f4a8353b7be51e1a54bf5d506c9dce70da2
2014-02-03 15:27:52 -06:00
Dees Troy e0a433a94d Refactor twrpTar to use TarList
Eliminate the use of tarDirs and Generate_MultipleArcives in
favor of Generate_TarList so that we have one method for backup
creation instead of three.

Change-Id: I267937b6e40b32d43fbac8b4cca82f7468d4f94c
2014-02-03 19:13:26 +01:00
Ethan Chen 0940e414e2 minui: Allow devices to blank/unblank using LCD backlight
* Some devices rely on the LCD backlight to blank/unblank the display,
  support them by allowing a custom LCD backlight path to be used.

Change-Id: I8406b4b55cd7a2afc4f8f8ba65de2c53b949489d
2014-02-03 19:12:14 +01:00
bigbiff bigbiff c7360dd263 Clear the relative directory before passing on to twrpTar with the static du object. Otherwise we will not backup /system/media etc
Change-Id: Ib62af6ad8596aa18bf48cb750e2ecf442dadc627
2014-02-03 19:00:58 +01:00
Ethan Yonker 06c3f93d69 Add option to set flag for storage=0
Change-Id: I46b94d55fc649a2abf27569ccf99aabb2822d663
2014-02-03 16:09:33 +01:00
Dees Troy 1f4825ba8e Merge "ifdef some file system options that are not available in older trees" into android-4.4 2014-02-03 16:09:19 +01:00
Dees Troy a7b8de514d Fix SELinux function compatibility in older trees
Change-Id: I3d8c23b51b3331d062099c1edb1833551cc6af91
2014-02-03 15:08:06 +00:00
Dees Troy c4bc30ec43 ifdef some file system options that are not available in older trees
Change-Id: I11a7e441f7fe4e556a5349822150493de90095f1
2014-02-03 15:04:19 +00: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
Ethan Yonker 3d2baacdaf Fix make file flag name for minzip
Change-Id: I53380ee203c1fe75d37f24f99e36f5c5a62e5b39
2014-01-27 22:03:00 -06:00
Dees Troy 6f6441da58 Fix include of cutils
Change-Id: I9868298908ce501d3043326862057e8a637544af
2014-01-23 02:07:03 +00:00
Dees Troy b49b652c6e Merge "Force GUI render after setting brightness" into android-4.4 2014-01-21 15:59:20 +01:00
Dees Troy a6a26429f6 Merge changes I4c369222,I8a8ad4b3 into android-4.4
* changes:
  Enable UMS mounting of storage drives
  Set listener properties for UMS mount/unmount
2014-01-21 15:58:42 +01:00
Dees Troy 98fb46c6e2 Fix handling of storage after decryption
Change-Id: I0c2614f841a225699be9d4a52c60e9456241659b
2014-01-21 15:39:45 +01:00
Jason Riordan 26ff4c02af Enable UMS mounting of storage drives
Change-Id: I4c369222cf16cb5bd87f007c3b172cd787d20fb1
2014-01-20 22:22:33 -05:00
Matt Mower b53907e594 Force GUI render after setting brightness
Change-Id: I4470a3a090d10f400575d45338a8349fbee8a027
2014-01-20 22:16:39 -05:00
Matt Mower d9cb90660a Set listener properties for UMS mount/unmount
Some kernels require the usb functions be defined before UMS mounting
of storage partitions will work. This sets the sys.storage.ums_enabled
property upon mount/unmount which can be listened for in init.rc.

Example routines to include in init.rc:

on property:sys.storage.ums_enabled=1
    write /sys/class/android_usb/android0/enable 0
    write /sys/class/android_usb/android0/functions adb,mass_storage
    write /sys/class/android_usb/android0/enable 1

on property:sys.storage.ums_enabled=0
    write /sys/class/android_usb/android0/enable 0
    write /sys/class/android_usb/android0/functions adb
    write /sys/class/android_usb/android0/enable ${service.adb.root}

Change-Id: I8a8ad4b392abbaa173d402714bcb4049ba84ccca
2014-01-20 20:13:48 -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
Ibrahim Awwal 2e9cb01bda Don't interpret ABS_MT_TOUCH_MAJOR == 0 as touch release
On n8013 at least, this event is sometimes/often sent on touch start which
causes touches to be randomly rejected and throws you back to the start screen.

Touch releases still work fine for me, since it sends ABS_MT_TRACKING_ID == -1
for that purpose.

Adds a flag TW_IGNORE_MAJOR_AXIS_0 to configure this behavior.

Change-Id: I14bb036a2c2d4ee676b642c3ab297c55bb6c2084
2014-01-04 12:38:26 -08:00
bigbiff bigbiff 84a3f1ac24 add errno.h to fix compile errors on other devices
Change-Id: I84196fb1358264b216b8505b990ae5a0406aa957
2014-01-03 18:13:20 +01:00
Dees Troy 42f40f5c1e declare dir for non data/media devices
Change-Id: I60e2e2a880c3bd5fff3f485f7c8e4ac9ab6fd3bd
2013-12-20 05:08:36 +00:00
Dees Troy 8d0eb1361e Improve SELinux support check
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-19 19:06:06 +01:00
bigbiff bigbiff 34684ff313 Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.
Moved Get_Folder_Size to this new class.

Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
2013-12-19 18:02:44 +00:00
Dees Troy 4d132cabf4 Merge "Add support for persistent variables in theme's <variables> section" into android-4.4 2013-12-19 18:27:16 +01:00
Dees Troy 504022bd8e Merge "add fix /data/data contexts to fixPermissions only compile symbols if selinux is defined Change-Id: I7c8596360cdf2f715c8e1379fc55ea27d9370393" into android-4.4 2013-12-19 18:20:11 +01:00
OliverG96 06b91e7965 crypto: Fix crypto dependencies for ICS/Samsung methods
- libmincrypt renamed to libmincrypttwrp that is an static library
- libjpegtwrp does not exist
- libfs_mgrtwrp is for JB decryption methods

This fixes making full builds when TW_INCLUDE_CRYPTO_SAMSUNG := true and TW_INCLUDE_CRYPTO := true are set.
Somehow typing make recoveryimage doesnt push the mentioned issue.

Change-Id: I7cad5db4f51152a1a8209e619b188ca88d7c74d1
2013-12-19 17:08:31 +00:00
Hashcode 62bd9e04c7 add support for fsflags= option in twrp.fstab file
example userdata line (as needed by MotoX):
/data         f2fs      /dev/block/platform/msm_sdcc.1/by-name/userdata       flags=fsflags="inline_xattr"

Code for parsing flags/options originally based on AOSP fs_mgr sources.

Change-Id: I5fb2b5d5cdd08137e6bf71f0085a3f8aebd889a8
2013-12-19 17:04:02 +00:00
Koushik Dutta aac4854b45 Support custom graphics.c.
TWRP does not use this, but is needed for other things that depend
on it like charger.

Change-Id: Ic7d10e8230151bcc4be6cfa222a1e07231e7139f
2013-12-12 20:16:50 +00: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
bigbiff bigbiff 872a3b923f add fix /data/data contexts to fixPermissions
only compile symbols if selinux is defined
Change-Id: I7c8596360cdf2f715c8e1379fc55ea27d9370393
2013-12-06 19:40:14 -05: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 995e88cfbe Add check during boot for SELinux support
Change-Id: Ib02867c403d1baa665dfb1d4f3137204e64a813c
2013-11-26 21:39:14 +00:00