Commit Graph

1037 Commits

Author SHA1 Message Date
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
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
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
Dees Troy
8c0f06b0d3 Update partition sizes after sideload
Change-Id: I4dbb4677f1c3bcfa0b0a9248ae0b411c155f927e
2013-11-26 21:21:29 +00:00
Dees Troy
a2e5efba0c Merge "Add getfooter tool for crypto debugging" into android-4.4 2013-11-19 17:10:06 +01:00
Dees Troy
bc183725cd Merge "Update decrypt for 4.4" into android-4.4 2013-11-19 17:09:38 +01:00
bigbiff bigbiff
163d474803 Add check for making sure theme exists for device
Change-Id: I9b178cebbb2834cd0c86088c8e78678f55d14e62
2013-11-16 13:47:30 -05:00
bigbiff bigbiff
705f16ea4b Add warning if DEVICE_RESOLUTION is not set in BoardConfig.mk
Change-Id: Ifc71c2e2078dbcd4b4893205bea9988e1e129f83
2013-11-16 10:15:46 -05:00
Dees Troy
8931007340 Add getfooter tool for crypto debugging
Change-Id: I3b9e5f72f3c1c77e41a45d3c94a44f36cc5cbc3c
2013-11-11 15:15:30 +00:00
Dees Troy
4dff2e6234 Update decrypt for 4.4
Change-Id: I8d5d7b6a49890e4707d70de8b429563de0d2ad99
2013-11-10 04:11:48 +00:00
Dees Troy
0226cd55ab Add reboot binary if it exists to recovery
Change-Id: I7efdba5cf4addf0036ea04ab76a8ecc2c3456e2a
2013-11-04 14:13:07 +00:00
Dees Troy
79ff74905b Fix merge conflicts 2013-11-04 14:01:22 +00:00
Dees Troy
d63c7643fd Fix building of other utilities
Fix building all applypatch items
Fix building verifier_test (probably will not work right as-is)
but at least it builds without errors.

Change-Id: I7ab0c04d7d3d2c2e14b57480627e594f89a68b0b
2013-11-03 13:06:10 +00:00
Dees Troy
ce8d8931ce Fix updater makefiles
Change-Id: Ie6262e3e80b1fd37f47b0f4a2ed343bd9f13b128
2013-11-03 02:49:35 +00:00
Dees Troy
bb4c0cbc4b Fix merge conflicts and update for 4.4 kitkat
Make a copy of libmincrypt in TWRP source so we do not have to
ifdef verifier.cpp for various versions of mincrypt.

Remove reboot tool from toolbox (it was removed from 4.4 and did
not compile properly on some devices in older trees)
2013-11-02 20:43:26 +00:00
Kevin Steck
23f2c39906 Skip the = or \n before grabbing Zip_File.
Change-Id: I0454f8fc3cbe037fac63ef5861f8f373e4654d49
2013-10-24 20:40:22 +01:00
Dees Troy
f4766921d4 Ensure root folders get added in split archives
Make sure that we add the root folder itself to get the perms and
SELinux contexts before splitting to a second archive.

Change-Id: Id93a9f9b4767b61bba38eb0cf7306c81a8540a3c
2013-10-24 21:33:39 +02:00
Dees Troy
d8a26e0be9 Update licenses to all match
Change-Id: I3be70a897e563658736b2dec3a9ea2697b69b225
2013-10-24 21:30:42 +02:00
Dees Troy
3c71347f5a Fix spelling error
Change-Id: Id932ce1b99dee85feb788c513acad3384af6459e
2013-10-24 21:29:47 +02:00
Dees Troy
4c07ab3c0e Add toolbox_recovery rules
Build special limited toolbox with SELinux tools for recovery

Change-Id: Ifc76a6bd0468a72081f15ede2a68adf48af8a0f2
2013-10-24 21:27:54 +02:00