Commit Graph

924 Commits

Author SHA1 Message Date
Vojtech Bocek a2e7016ee1 Never generate empty backup name
* Backup would then go to /sdcard/TWRP/*serial_num*/
  (without any subfolder) and restore would not be able to find it.

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-09-17 17:06:09 +02:00
Dees Troy bb20778f7e 2.6.3.0 2013-09-12 15:49:25 +00:00
Vojtech Bocek 1239ee8b34 Add 1200x1920 theme
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I558c988c94f750607f58aa3dd22736447c78a214
2013-09-12 15:40:22 +00:00
Dees Troy 4bf3b0d804 Make SELinux automatic if present 2013-09-12 10:38:15 -05:00
Vojtech Bocek 05534209f1 Add TWFunc::Exec_Cmd() with no 'result' agrument
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9
2013-09-12 15:36:40 +00:00
Dees Troy f193f88e6d Make fixing su perms automatic
In 4.3+ with SELinux, su perms will be lost on every reboot so
users will get the prompt to fix su perms in TWRP every time. Make
fixing the su perms automatic instead of nagging the user.

Change-Id: Ia8a2652018db5e1f6ffc5fec2a4ac0db3a8f32bb
2013-09-12 09:11:32 -05:00
Dees Troy b21cc64ca8 Pull ROM info from build.prop for backup names
Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
2013-09-12 09:11:13 -05:00
Dees Troy 893136dc45 Merge "Kang in older minzip for building in CM9 & CM7" into twrp2.7 2013-09-12 09:10:49 -05:00
Dees Troy 237b83b54c Merge "print out md5s to recovery.log" into twrp2.7 2013-09-12 09:10:01 -05:00
Dees Troy b7ae098e21 Kang in older minzip for building in CM9 & CM7
CM7 and CM9 do not have libselinux needed in the newer minzip.
2013-09-10 20:47:46 +00:00
bigbiff bigbiff 6b059548df print out md5s to recovery.log 2013-09-10 10:28:26 -04:00
Dees Troy abaa9ca8f3 Merge "Hack-fix build with different system/core/charger versions" into twrp2.7 2013-09-10 08:46:29 -05:00
Dees Troy bc365b5e44 Merge "another fix to ignore space then = sign" into twrp2.7 2013-09-10 08:45:23 -05:00
Dees Troy c2e9bc74a1 Fix zip folder selection when storage path is similar
If internal is /sdcard and external is /sdcard-ext then the zip
path used to stay on /sdcard-ext when trying to switch to internal
storage. Using Get_Root_Path instead of resizing will ensure that
the path changes properly.
2013-09-10 00:16:31 +00:00
bigbiff bigbiff c03121d2ac another fix to ignore space then = sign 2013-09-09 19:14:35 -04:00
Vojtech Bocek 65fdcddec6 Hack-fix build with different system/core/charger versions
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-09-06 21:32:22 +02:00
Dees_Troy 84f683a322 Merge "Add more args to make_ext4fs command" into twrp2.7 2013-09-06 11:41:05 -05:00
Dees_Troy 5295d581a5 Add more args to make_ext4fs command 2013-09-06 15:51:08 +00:00
Dees_Troy 399f480dc7 Fix libselinx flags in libtar 2013-09-06 15:16:00 +00:00
Dees Troy 8807a1ead6 Merge "libtar: store SELinux file context in tar archives" into twrp2.7 2013-09-05 14:53:36 -05:00
Vojtech Bocek 25fd68d098 libtar: store SELinux file context in tar archives
* Using RedHat's "RHT.security.selinux=" tag in extended
  tar header (type 'x')

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

Change-Id: I102e492e4fa5b8a08fae4d34eb36386862509b4d
2013-09-05 21:43:52 +02:00
Dees_Troy 512376ccc7 Extract file_contexts from zips if it exists
Update binary will now extract file_contexts if it exists in the
root of the zip to /tmp

Recovery will replace the existing /file_contexts in the ramdisk
if file_contexts exists in the root of the zip.

This ensure that the proper contexts are used during zip installs.

Change-Id: If22c41101868643b67e6dba6177677c078fcd877
2013-09-05 13:06:16 +00:00
Dees_Troy 1669f89dd2 Update to latest AOSP master
Merge in latest commits from AOSP master and fix merge conflicts
2013-09-04 19:00:58 +00:00
Vojtech Bocek 1dc3098a5c Initialize TWPartition::User_Rm_Rf to false in constructor
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-30 21:49:30 +02:00
Hashcode dabfd49bd4 implement "usermrf" fstab flag to force rm -rf * deletion on specific partitions
Change-Id: I58f4a8cedf31e6b6efd88f96a43ed525603ae311
2013-08-30 10:28:15 -07:00
Dees_Troy b3265ab358 Better compatibility by fixing up ext4 & selinux flags 2013-08-30 02:59:14 +00:00
Vojtech Bocek 37aeb8d678 Really fix TWFunc::tw_chmod() for 3-character mode string
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I8f03d46235e1c71e8ee510309c9418cde802f50b
2013-08-29 21:35:02 -05:00
bigbiff bigbiff 72e9554261 ignore extra = on install cmd
Change-Id: If9a0e6d4c00f6dd79f76c68ed0370a3101211801
2013-08-30 02:27:25 +00:00
Dees_Troy 7abb7a5813 Fix backup list height on 1080x1920 2013-08-30 02:07:19 +00:00
Dees_Troy a7939bbdc8 Update SuperSU for 4.3 SELinux, 2.6.1.0
Change-Id: Ib7f882db8a8c61d1156c03468208205124132b6c
2013-08-30 01:53:54 +00:00
Dees_Troy e3850a3fa6 Change to use HAVE_SELINUX build flag 2013-08-29 18:33:47 +00:00
Dees_Troy e5017045b5 Initial f2fs support
Need to add this to your source tree:
https://github.com/razrqcom-dev-team/android_external_f2fs-tools

Change-Id: I3ee9ebbb617259655518f8ea356ce7b8c246cd4d
2013-08-29 16:58:38 +00:00
Dees_Troy 329383e593 Use twrp.fstab if present 2013-08-29 14:16:06 +00:00
bigbiff bigbiff 86e77bcbb2 skip checking size on links
skip google music cache

Change-Id: I75d6fd0e17140d12cb2c6d335e8ff73a6f871aa2
2013-08-28 16:10:36 +00:00
Dees Troy de307148cf Merge "update exfat to latest commits for io issues" into twrp2.5 2013-08-28 11:00:58 -05:00
bigbiff bigbiff 616afed985 ignore lost+found in all the places 2013-08-28 15:06:18 +00:00
John Reck 5c4e1dac0b Merge "Update libpng API usage" 2013-08-27 16:49:39 +00:00
John Reck 94fd07ba6d Update libpng API usage
Remove usage of deprecated methods

Change-Id: I747568a2c8c0c65ecbc9a3da4bac7b9cac7708ab
2013-08-26 16:45:33 -07:00
Ricardo Gomez c9ecd4473c Add a TW_NO_TIMEOUT option
Change-Id: Ifb3a5bd9f1e6c2e9810c90b0aec198e91d5956fc
2013-08-25 21:10:08 +00:00
Vojtech Bocek fafb0c541b Unify indentation and little clean-up in TWRP files
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-24 07:56:48 -05:00
Vojtech Bocek 8b44bbda25 Clean-up in partitions.hpp
* Remove useless 'virtual' keyword
* Set proper members visibility

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-24 07:56:19 -05:00
Vojtech Bocek 00b260587c Fix TWFunc::tw_chmod() for 3-character mode string 2013-08-24 07:52:45 -05:00
Dees_Troy 1c8d4fb0ea Add ability to run scripts after screen timeout/wake 2013-08-24 07:45:46 -05:00
Dees_Troy b7ecc09d93 Revert "Fix touch not working due to gr_fb_width returning 0 in some cases"
This reverts commit 70e1129612.
No longer needed after http://review.teamw.in/#/c/655/
2013-08-24 07:43:14 -05:00
Dees_Troy 29a0635b93 Revert "Rewrite TWFunc::Exec_Cmd() to use pipe() instead of popen()"
This reverts commit c5754cf935.
popen already uses fork and pipe and __popen works on more devices.
2013-08-24 07:42:48 -05:00
Dees_Troy a95f55c3ef Add SELinux support
Change-Id: I11e1a3d018d921d96ba08915925b14bf633be6ed
2013-08-24 07:42:30 -05:00
Dees_Troy 728630d9e4 Merge "Fix AOSP decrypt when TouchWiz code is present" into twrp2.5 2013-08-24 07:42:03 -05:00
Dees Troy 5111611121 Merge "graphics: update BOARD_HAS_FLIPPED_SCREEN function to work with 16bpp or 32bpp" into twrp2.5 2013-08-24 07:41:42 -05:00
Dees_Troy 066eb30abf Fix AOSP decrypt when TouchWiz code is present 2013-08-23 17:22:37 +00:00
Dees_Troy 94e2a46402 Remove graphics.c from libguitwrp 2013-08-22 12:25:14 +00:00