Commit Graph

1694 Commits

Author SHA1 Message Date
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
Doug Zongker 9e805d6ca0 allow CheckKey to request mounting /system
Also provide a default implementation of CheckKey that's reasonable
for many devices (those that have power and volume keys).

Change-Id: Icf6c7746ebd866152d402059dbd27fd16bd51ff8
2013-09-04 15:02:29 -07: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
Doug Zongker 15ae0e7867 recovery: fix use of init reboot method
We need to set the system property to "reboot,", not an empty string.

Bug: 10605007
Change-Id: I776e0d273764cf254651ab2b25c2743395b990e0
2013-09-03 15:17:18 -07:00
Doug Zongker e428f62465 am f187a543: am 3b5a987c: recovery: fix use of init reboot method
* commit 'f187a5438d5a0651c344038f2203469e193704f9':
  recovery: fix use of init reboot method
2013-09-03 14:49:43 -07:00
Doug Zongker f187a5438d am 3b5a987c: recovery: fix use of init reboot method
* commit '3b5a987cd7fd76c038e9875b430028216d21ace3':
  recovery: fix use of init reboot method
2013-09-03 14:46:26 -07:00
Doug Zongker 3b5a987cd7 recovery: fix use of init reboot method
We need to set the system property to "reboot,", not an empty string.

Bug: 10605007
Change-Id: I776e0d273764cf254651ab2b25c2743395b990e0
2013-09-03 14:29:54 -07:00
Doug Zongker 79a188cbcf am 366f78a9: am 77ea71d6: recovery: fix rebooting
* commit '366f78a9df45d6648746de8454655224b22c31fd':
  recovery: fix rebooting
2013-08-30 14:10:21 -07:00
Doug Zongker 366f78a9df am 77ea71d6: recovery: fix rebooting
* commit '77ea71d6a85a93c9bf423466e87661b1bf67c512':
  recovery: fix rebooting
2013-08-30 14:05:20 -07: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
Doug Zongker 77ea71d6a8 recovery: fix rebooting
Change I84c0513acb549720cb0e8c9fcbda0050f5c396f5 moved reboot
functionality into init but did not update the recovery partition; so
"adb reboot" and /system/bin/reboot in recovery are both broken.

Change-Id: Ie2d14627a686ffb5064256b6c399723636dff116
2013-08-30 12:20:16 -07: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 f280bb5f76 am 19877de5: am 5c4e1dac: Merge "Update libpng API usage"
* commit '19877de513a9493dad77488144089b4f30103b74':
  Update libpng API usage
2013-08-27 10:30:41 -07:00
John Reck 19877de513 am 5c4e1dac: Merge "Update libpng API usage"
* commit '5c4e1dac0bd8f31559bd50eec4343b7a17b7a976':
  Update libpng API usage
2013-08-27 09:54:05 -07: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
Doug Zongker c31ecb72f0 am 239ac6ab: recovery: install packages in a known mount environment
* commit '239ac6abac4524be93fce710360c0512c6cc2ab3':
  recovery: install packages in a known mount environment
2013-08-22 10:03:55 -07:00
Dees_Troy 94e2a46402 Remove graphics.c from libguitwrp 2013-08-22 12:25:14 +00:00
Doug Zongker 239ac6abac recovery: install packages in a known mount environment
When installing a package, we should have /tmp and /cache mounted and
nothing else.  Ensure this is true by explicitly mounting them and
unmounting everything else as the first step of every install.

Also fix an error in the progress bar that crops up when you do
multiple package installs in one instance of recovery.

Change-Id: I4837ed707cb419ddd3d9f6188b6355ba1bcfe2b2
2013-08-21 13:44:35 -07:00
Dees_Troy 2727b99f55 Fix problem with not waiting for pigz to exit
In some cases compressed backups would not wait for pigz to finish
leading to backup files that were 0 bytes or MD5 mismatches.
2013-08-14 20:09:34 +00:00
John Reck 41329c5fd0 Fix libpng API usage
Remove usage of deprecated methods that were removed in 1.6

Change-Id: I2a669bf5201197f60adfdbe512fd729bebb74f9c
2013-08-13 13:01:29 -07:00
Dees_Troy 70e1129612 Fix touch not working due to gr_fb_width returning 0 in some cases
Change-Id: Id5ce607a181110118ebc647fc07d387a7a3dc660
2013-08-11 13:47:26 +00:00
Dees_Troy b8934dd456 Fix conflict with getline in 4.3 tree
Change-Id: I5accf8731829229d153a657c9290a7be83f87a03
2013-08-11 13:43:12 +00:00
Dees_Troy f2280ffd42 Add libselinux for CM10.2 tree
Change-Id: I94979806935546fa40a87611be5185c14b557377
2013-08-11 13:41:48 +00:00
Dees_Troy bdafe306fa Merge "Remove libjpegtwrp and use CM provided libjpeg" into twrp2.5 2013-08-11 08:32:44 -05:00
Dees_Troy 52b77182d0 Merge "Rename libfuse to prevent conflicts with newer CM trees" into twrp2.5 2013-08-11 08:32:26 -05:00
Dees_Troy d5f2b7a4d3 Merge "Fix permissions on backup files" into twrp2.5 2013-08-11 07:48:53 -05:00