Commit Graph

1177 Commits

Author SHA1 Message Date
Flemmard 4e2ec811ba libdl should also be linked to binary
Change-Id: I98f9c90b0a7af591bdbcf646f59068f9915d49c7
2014-06-30 18:50:21 +02:00
Flemmard f4674619a2 minuitwrp: use a whitelist for the input device instead of a hardcoded ignore list
* use a whitelist for the input device to listen on, every other will be ignored

Change-Id: I1296a45ec3d5ca0bca2a9e2601b0710e2c030fde
2014-06-30 11:45:40 -05:00
Motorhead1991 75b6f66ed8 Add "include $(CLEAR_VARS)" for 4.4 ROMS (clears LOCAL_BUILT/LOCAL_INSTALLED error)
Change-Id: Ibbba0ce9c7ebadee40e42b740c83214fd1cd56ac
2014-06-30 18:37:00 +02:00
Motorhead1991 c7f2e1243b GUI: Add -fno-strict-aliasing to GUI for Vanir
Change-Id: Id772737d2856698861686671152f14bad800cd5c
2014-06-30 18:32:20 +02:00
Motorhead1991 1c39bc65b9 Fuse: add -fno-strict-aliasing to fuse for Vanir.
Change-Id: I9619c421341efa3085e80021f7e8e259a0f1f263
2014-06-30 11:27:25 -05:00
Andrew Dodd bb687f4b13 minui: Do not return true from target_has_overlay() if MSM_BSP is not set
Since target_has_overlay() was not ifdefed with MSM_BSP,
it would return true on some devices even if MSM_BSP was unset,
breaking LPM and some other minui functions.

Change-Id: Ic6b524fa0b5e36fc9ffe67d53e2bf33e9d4fd2d3
2014-06-29 21:14:06 -04:00
Ethan Yonker 5eac222cfe Do not restore file system on data/media devices
Change-Id: I600e7e9ce89621400531bceb472387aafc0d6ed8
2014-06-13 08:57:48 -05:00
Vojtech Bocek 0ea3be665a libtar: don't set parent dir's context when extracting a file
Change-Id: I83e11b0119c47cb691d4e05ac1e5515aeafbdc87
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-06-06 16:16:37 +02:00
Dees Troy 25ede0547e 2.7.1.0
Change-Id: I5584df4e6db8b611d1975edeba39415ee2387529
2014-06-04 20:18:27 +00: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
Vojtech Bocek 93cb1ef2eb Fix crash while loading config due to incorrect tw_storage_path
Change-Id: Ia5957efe616defa4272501cd8f31d26d394077bb
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-05-31 14:26:12 +02:00
Matt Mower ee71706ad1 Fix multiple lun file USB mounting
Both the incorrect mount point and the incorrect lun file were being
passed as the second storage volume.

Change-Id: If9c7d92d1992ec022a2c89a82b2ea05c9150d635
2014-05-31 14:23:51 +02:00
Vojtech Bocek cbe764c42b Fix missing closedir() in Find_File::Find_Internal()
Change-Id: Ie74570d3203be347390ca74bd00429bde87d6741
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-05-31 14:22:07 +02:00
Vojtech Bocek 277f742514 Add script to convert TrueTypeFonts to TWRP's .dat format
Change-Id: I3d6cc65a83b7da9428adf37804cf9cbd0df99492
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-05-31 14:21:19 +02:00
bigbiff bigbiff a886ea6e27 Add /system/priv-app to fix permissions code. New in jellybean.
Change-Id: Id1df17cf06d1158642aa77bef5fd49b596c7906e
2014-05-31 14:20:51 +02:00
Dees Troy 62b75ab66a Update minui to support overlay graphics
Fix path in minuitwrp for includes

Change-Id: I9e9e5f67e8574cdcbc6f8873ceeb56eab71143ed
2014-05-02 16:51:52 +00:00
Steve Kondik 626009f1b0 recovery: Compatibility with upstream minui change
* minui is changing a lot upstream. We won't merge it here, but
   it's being used in another branch. Add compatibility in CWM
   so that we can move forward.

Change-Id: I6866ec2e4dbbb3e7682595aef91645b6de547435
2014-04-30 13:25:41 -07:00
Matt Mower ed71fa3e82 Only setup settings,andsec partitions if available
Change-Id: Iafedcec9e6ba368e29e32ab7a92d774cdd3f64e1
2014-04-16 21:58:07 +02:00
Matt Mower d5c1a9220d More MD5 verification error handling
Distinguish between skipped md5 verification cases:
 - .md5/.md5sum file not found
 - .md5/.md5sum file unreadable

Move MD5 error messages to twrpDigest

Change-Id: I912e3d9ebe64e78bed76eab8aa468d619b45972f
2014-04-16 21:46:53 +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
Ethan Yonker eeed3c55d8 Fix handling of storage with data/media vs data/media/0
Sometimes loading the values from the settings file may set the
storage path to /data/media when the proper path is /data/media/0
This commit will grab the storage path from the partition manager
to ensure that we are using the proper path.

Change-Id: Ibfd63125a2b9705319eb55b09c7e65391757bbc2
2014-04-16 12:07:45 -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
Ethan Yonker 9c102b536d Add additional search path for brightness
Change-Id: Ib1f032d87aafd7732d460caeca1e3ae6745a563d
2014-04-16 17:35:37 +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
Matt Mower 0251abc485 Support .md5sum extension for package verification
Change-Id: Idb6df99251726e5415b415ea6ae55337b96b2dbb
2014-04-15 18:09:30 +02:00
Matt Mower 50248ab86b Simplify twrpTar skip dir checks, DU code cleanup
* Remove unused parent variable from twruDU constructor

* Replace manual checks for /data/media with DU's check_skip_dirs()
  function

* Remove check_skip_dirs(A,B) function which duplicates the
  functionality of check_skip_dirs(A)

* Remove redundant trailing slash removal from
  check_absolute_skip_dirs(); this function is only accessed through
  check_skip_dirs()

Change-Id: Icfe8d71de36e33db6749fc5896dd3eafbcf7c9a4
2014-04-15 15:28:45 +02:00
J. Carlos Romero 85ceaf1b31 Enable rk30xx hack
Fix problem with erase/restore mtd partitions on Rockchip SoC

Change-Id: I3320f711446441cf79e38e9ffb5dfdb6b1717a55
2014-04-15 15:28: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
Ethan Yonker d5801c5fe2 Force zip verification in OEM builds
Change-Id: Ie894b5f5cda64f83b1bb58bb977024230b0337f2
2014-04-15 15:27:00 +02:00
Ethan Yonker 00028b4adb Add find file class to search for files
Scan a folder for a file based on file name. First scan the files
in the current path, then search real directories and finally
search symlinks in that order. Goal is to locate important sysfs
files for things like brightness, battery capacity, lun files, etc

This implementation just scans for the brightness file for the LCD

Change-Id: I8ed3e74a2e2851d58b443718b6e92b50a5491f08
2014-04-15 15:26:44 +02:00
Dees Troy 1eba56f577 Fix touch on Sprint HTC One m8
Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001
2014-04-15 15:26:14 +02:00
Dees Troy b1c6e05217 Only split archives when split_archives is set
In some cases, statfs used on partitions like /system does not
report a size that would trigger a split archive, but using stat
on the individual files shows a larger size that statfs that
would trigger a split. This patch prevents us from trying to split
an archive unless we explicitly decided to split in advance.

Change-Id: I67f5cd343f12333e1189100cf0ec1c20c15b7cc2
2014-04-07 18:03:34 +00:00
Dees Troy 9d72327cfc Rearrange opening of output and input files for error handling
If the file could not be opened, the process would log an error
to the log file but the GUI would report success. Rearrange the
process so that the GUI shows an error.

Change-Id: I96af0b934c8f6f463d56656647b16accd1d40654
2014-04-07 17:16:10 +00:00
Ethan Yonker 7af51ce521 Tweak OEM mode
Change-Id: Ic440e33fa22aa7b082097366f10b333cc945362a
2014-04-04 13:33:30 -05: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
bigbiff bigbiff 26774a02f9 Stop printing Unable to mount to console if storage is removable. We will still print to
recovery.log

Change-Id: I19e3df2e977e09e222733f13324051334982b05d
2014-04-02 20:22:31 -04:00
Dees Troy b0425385b1 Fix overlay graphics detection
Change-Id: Ic1ef3f6a4e9c74efb07d8a0103543d124567f0d4
2014-04-03 00:10:03 +00:00
Ethan Yonker 924a80b7b3 Fix backup and restore of encrypted backups
After removing the DataManager code to support twrpTar separate
binary we were failing to pass / set the password for the various
separate threads used for openaes.

Change-Id: Ifff634777fe122e0195d84f67932177ca8879c2f
2014-04-02 10:54:18 -05:00
Dees Troy a54f876261 Merge "Refresh page after updating partition sizes" into android-4.4 2014-04-02 16:06:06 +02:00
Dees Troy 7ad80ecd0c Merge "Convert 1600x2560 ui.xml to unix line endings" into android-4.4 2014-04-02 16:05:21 +02:00
Dees Troy e65e35cc37 Merge "Fix display of .android_secure size in Backup" into android-4.4 2014-04-02 16:05:02 +02:00
Ethan Yonker 74a149bfcb Merge changes Ia75c34ab,I5743d9b9 into android-4.4
* changes:
  Support Qualcomm overlay graphics in recovery
  Improve USB Storage handling
2014-04-02 16:04:02 +02: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
Matt Mower ed426904e6 Fix display of .android_secure size in Backup
Setup_Settings_Storage_Partition() needs to be called before
Update_System_Details() in order for the /and-sec mount point to be
setup and size read correctly.

Change-Id: Id5394c90b6d095027c1b852764676dc6080a871d
2014-04-02 00:28:30 -05:00
Dees Troy 3a746d607e Merge "Remove deprecated tar exclude functionality" into android-4.4 2014-04-01 20:55:40 +02:00
Dees Troy 5a05f47b20 Merge "if md5 check is not selected for subpartitions, don't check it." into android-4.4 2014-04-01 20:47:07 +02:00