Commit Graph

1193 Commits

Author SHA1 Message Date
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
dhacker29
30f100e3bc Only disable recovery flash if it is truly "stock" recovery
Some roms need the recovery-from-boot.p for auto update
 of recovery. Typically the use install-[romname]-recovery.sh.
 So only disable if install-recovery.sh is present.

Change-Id: I01f89afc87b9d375d67b44b8b5e9228868a47d69
2014-07-25 23:54:10 +02:00
Matt Mower
fb60a94f0a Allow custom bootloader msg offset in block misc
Use board define BOARD_RECOVERY_BLDRMSG_OFFSET with a decimal integer
to define a custom offset where the bootloader message should be
read/written.

Change-Id: Id13a23dd41bb7d907b96d657b8e21eb839dfeaa9
2014-07-16 16:09:51 +02:00
Matt Mower
2fec60a5dc Do not wipe block misc on bootloader msg update
When set_bootloader_message_block() is called, it fopens /misc in write
binary mode, wiping all contents other than what is being written. The
bootloader msg structure is only 1024+32+32 bytes, so some manufacturers
store more than just a bootloader msg on /misc. fopen in read+append
mode so that only the bootloader msg is written and the rest of the
partition is left untouched.

Change-Id: I2d2fbdf067282744864a19d404ca7dc12f688a98
2014-07-16 16:09:42 +02:00
Matt Mower
62ba6526b7 Remove unused twbootloader.cpp
Change-Id: I5a1d52d69662a97049fad18dc760e205c193f381
2014-07-16 15:19:27 +02: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
Vojtech Bocek
67351dca66 Check the crash counter instead of date in TWFunc::Fixup_Time_On_Boot()
* Some devices (Sony) have RTC counting up from year 2009,

Change-Id: I2cf1928e1b05c7e8b184963f8130582e0319ddc4
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-07-09 15:57:59 +02:00
Vojtech Bocek
0fc1573730 Change ro.twrp.boot boolean to twrp.crash_counter
Change-Id: If1ef25fee5a138a90ccb4f0a70b20b55698e0d0d
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-07-09 15:57:09 +02:00
Ethan Yonker
a18f108e84 Fix setting of brightness during startup
Change-Id: I1bd01df971857a2dd5e75ed87c488d075d765527
2014-07-09 15:55:56 +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
Humberto Borba
f58d0ec0f1 mtdutils: fix rk3xhack filter
Just fix filter for correct platform

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I1f0978a6b215a1967dad4a2c495777d917865b88
2014-07-05 17:24:00 +02:00
Kra1o5
3167936cf0 Changes in rk30hack
This works on rk3188 based devices too so rename it to rk3xhack.
Change-Id: Ia3d9d52d99205057f8bece735a938986491b7522
2014-06-30 19:02:47 +02:00
Flemmard
60bf94ec27 on stock android, pthread_cancel and phtread_setcancelstate doesn't exist
Change-Id: Icbe281a301004ae2bcda4821a50fb4a41088e85d
2014-06-30 19:01:33 +02:00
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