Commit Graph

6572 Commits

Author SHA1 Message Date
bigbiff bigbiff 38b83c1da4 ADB Backup: fix md5 check on restore.
Add debug capability.
Fix backup of images after tarred partitions with too much padding
Add more md5 logging.
Skip digest check if selected.
Change ADB Backup version to 3 for new fixes to image padding.
Change-Id: I0f76c0733c523717e4797d1a14c3ae47d046fc8c
2018-05-25 18:42:16 +02:00
oshmoun a82a754bbe partitionmanager: signal when Mount_To_Decrypt partitions are mounted
Enable a property when mounting partitions required for decryption, and disable when they are unmounted.
This helps init scripts to react to such an event appropriately, for example by starting services critical for decryption that reside on said partitions.

Change-Id: Ib6fa1e5c903d9c800fb145d582ced6cc7e0ab5b9
2018-05-25 18:31:44 +02:00
nailyk-fr ca3fd0c0fa TWRP: vold_crypto: Allow custom strace path
* Allow custom definition of strace path with TW_ flags.
 * `TW_CRYPTO_SYSTEM_VOLD_DEBUG := true`
    will use default path: /sbin/strace.
 * `TW_CRYPTO_SYSTEM_VOLD_DEBUG := /system/xbin/strace`
    will use the provided `/system/xbin/strace` path.

Change-Id: I5e12a10176d17a4f26487de0976a776d48c4142e
Signed-off-by: nailyk-fr <nailyk_git@nailyk.fr>
2018-05-25 18:24:09 +02:00
nkk71 37625a4488 vold_decrypt: Code cleanup
* Separate stdout and stderr buffers:
  vdc's return codes get sent to stdout, but the possible presence of
  other error messages in the output buffer will cause a valid return
  from vdc not to be parsed properly, and subsequent decryption to fail
  due to "misunderstood" return code.
  eg on the U11+ (htc_ocm) libc will generate an error to stderr due to
  a missing property area resulting a proper connection to vold being
  incorrectly parsed, and breaking decryption.

* Improve logging.

Change-Id: I57987ebe4ee6754a78e79ca177506098f8301f8f
2018-05-25 18:19:17 +02:00
Phoenix591 e444d11552 TWRP: Added TW_CLOCK_OFFSET flag to further adjust the clock.
For devices with the Qualcomm RTC fix whose clocks need further tuning
such as the LG V20 whose ats files produces the correct time except 
46 years in the future.

Takes adjustment in seconds and adjusts after reading the the ats file.

Boardconfig.mk
TW_CLOCK_OFFSET := -1451606400

Change-Id: I0b2d35dd0026ed18a7bbebf683517f7c0eaa53ff
2018-05-25 11:15:29 -05:00
Phoenix591 46b05f223a TWRP: Move the valid current time up to trigger fix on more devices.
For example on my device, the LG V20 (US996), the default time
comes back as 2016 which doesn't trigger the fixup code. 
The actual time I picked was pretty arbitrary, but close to
the current date, since we're checking if said date/time is reasonably
accurate without the fixup code.

Change-Id: I01db64777d7d0c5ce0710445cf88858d89656ac0
2018-05-25 18:14:32 +02:00
Gabriele M 72638b6437 Skip decryption when installing mapped zips
Decrypting userdata is not needed when installing zips if we have
a map of blocks to read, so skip the decryption. This allows to
install zips with no user interaction and, more importantly, it
allows to install zips on devices where TWRP can't properly decrypt
userdata.

Remove also the unneeded Mount_All_Storage() call, Install_Command()
already mounts the needed partition.

Change-Id: I91c69f84ecc2fe41c9567c40649e501af1cfb64a
2018-05-25 18:13:47 +02:00
Simon Shields 34ad728823 minuitwrp: drm: wait for last page flip to complete
if we try and flip pages too quickly, the kernel returns -EBUSY.
Use drmHandleEvent to wait for any previous flip to complete
before attempting a new one.

Change-Id: If3def889c0c89d7cfb8b7f13c4dae6d4b12760f9
2018-05-25 15:12:29 +02:00
Simon Shields 16d831bee5 minuitwrp: use a separate draw buffer for DRM as well
draw performance is significantly slower when drawing directly to the
mmaped buffer. Instead, draw to a userspace buffer and memcpy()
to the mmaped buffer on page flip.

Change-Id: Ibf2cd4be4f5437b445e68c572ff76ad72d506b15
2018-05-25 15:12:09 +02:00
Simon Shields 1021c5ae50 minuitwrp: drm: fix RECOVERY_BGRA pixel format
GGL_PIXEL_FORMAT_RGBA8888 seems to work in this instance.

Change-Id: I88fb3e53332f47952036ef6e617b3ea7d0b639a9
2018-05-25 15:08:59 +02:00
big biff 553966cbad Merge "external/scrypt: use proper nativehelper headers" into android-8.1 2018-05-13 17:02:02 +02:00
big biff e4bdc28049 Merge "scrypt doesn't need <machine/cpu-features.h>." into android-8.1 2018-05-13 16:57:33 +02:00
big biff 87bad59f0b Merge "scrypt: Don't hardcode gtest path." into android-8.1 2018-05-13 16:54:21 +02:00
big biff a2c4fc29f3 Merge "otafault/tests: Replace pathmap with commands_recovery_local_path" into android-8.1 2018-05-13 16:51:56 +02:00
big biff 2d5ef131d7 Merge "applypatch: Fix bad AOSP merge" into android-8.1 2018-05-13 16:42:13 +02:00
big biff 76da39ffa3 Merge "applypatch: Remove obsolete pathmap changes" into android-8.1 2018-05-13 16:33:08 +02:00
Tom Marshall 2c1a579cbb Revert "Remove the obsolete package_extract_dir() test"
This reverts commit bb7e005a79.

Change-Id: Ifcc2234ac9afd50384a6de93e828148bbd1fe077
2018-05-04 00:58:24 +02:00
bigbiff bigbiff 26503b8a0b toybox: microcom is not present in the lineage 14.1 source.
Change-Id: Ic5983498caf9a082d23fdfbc3683e77697fcaf64
2018-05-04 00:45:36 +02:00
Steven Moreland cc825781e7 external/scrypt: use proper nativehelper headers
libnativeheader exports headers under nativeheader. These were
available before incorrectly as global headers in order to give
access to jni.h.

Test: modules using external/scrypt find headers
Bug: 63762847
Change-Id: I9baf896015a1920f8a26daa2a0c549169628890f
2018-04-22 21:57:35 +03:00
Elliott Hughes 87b59b88f7 scrypt doesn't need <machine/cpu-features.h>.
Bug: http://b/18556103
Change-Id: Ibccef334b4d1a2e68e327fc8b73e62e62d13df32
2018-04-22 21:57:35 +03:00
Dan Albert 01396f1b13 scrypt: Don't hardcode gtest path.
Bug: http://b/16574165
Change-Id: Ieb63fb6a73f0fb2ab3260bc5eabca7d86d892fbd
2018-04-22 21:57:35 +03:00
Michael Bestas 43ee7e7354 otafault/tests: Replace pathmap with commands_recovery_local_path
* This is used everywhere else now in TWRP

Change-Id: I4dd0bab1980ea34fabfd2949474bd62ed07d1d3c
2018-04-22 21:57:35 +03:00
Michael Bestas 608d566fd3 applypatch: Fix bad AOSP merge
Change-Id: I5922c63af41268bfb3c17f1dcb4157785e46911f
2018-04-22 21:57:35 +03:00
Michael Bestas 9f4c65be7e applypatch: Remove obsolete pathmap changes
* They are replaced by:
  LOCAL_C_INCLUDES := $(commands_recovery_local_path)
* They didn't work anyway because they were overwritten with :=

Change-Id: I066d724df51a8c3f883f77da9da4d3bc6701d848
2018-04-22 21:57:35 +03:00
Humberto Borba 84e16158ca toybox: Fix build for android 8.1
Fix toybox build at android 8.1.

PS: xzcat support removed

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I185231bacf24db073f66eb57a146d7d1b64ffc2a
2018-04-19 02:26:21 +02:00
big biff e45a003655 Merge "GitHub: Add issue and pull request templates" into android-8.1 2018-03-24 14:23:53 +01:00
big biff a185c6ced7 Merge "ext4crypt: keymaster: fix missing include" into android-8.1 2018-03-24 14:14:47 +01:00
bigbiff bigbiff 10533f74a6 Language: Add version info to copying_log in turkish lang.
Change-Id: If07b7655265c94ad6b7ffa06629252749b5616e9
2018-03-21 09:12:50 -04:00
Fatih Fırıncı fe2f14235e Update Turkish translations.
Change-Id: Ib15052832c2b25465b8a1d5c30d4659653b99f09
2018-03-20 18:30:48 -04:00
big biff 6d9746b0e5 Merge "libotautil: Add missed header" into android-8.1 2018-03-16 00:02:47 +01:00
Ethan Yonker 53273ecce9 Don't rename twrp.fstab to recovery.fstab
update_engine_sideload reads /etc/recovery.fstab during its install
process and the twrp.fstab format may not be appropriate for what
fs_mgr expects.

Change-Id: I059ef22c0e862e60a3bffe5259f70c714fe33ec6
2018-03-09 11:22:57 -06:00
Dan Pasanen e7b66e100f install: ignore build dates for A/B installs
* Assume a user knows what they are flashing and skip the check
  of whether or not the build they are flashing is older than the
  TWRP image they are using (which really isn't at all relevant
  to the ROM's build date anyway).

Change-Id: I74ca5a6dc604268bf38f85ec1861f3eaafd9bf06
2018-03-09 04:31:21 +01:00
Ethan Yonker c5dd579168 FBE: Decrypt spblob v2 (February security patch)
Change-Id: Iad82fa5d90ce7f3e4b1cf5cd5c6d6fef644f6762
2018-03-09 04:30:57 +01:00
Fatih Fırıncı 90765a20f5 Languages: Update Turkish translation.
Change-Id: Ib3a188f867330013069b7d443bcbad5dc3bc1e90
2018-02-26 18:51:14 -05:00
big biff 5c9889e855 Merge "Add Portuguese (Portugal) translation." into android-8.1 2018-01-25 01:14:42 +01:00
Vasco Machado 6a11843c7e Add Portuguese (Portugal) translation.
Change-Id: I3ea752697cc7f085541d961a6185194badb99015
2018-01-24 02:29:00 +01:00
Saleem Rashid 2530da84c7 GitHub: Add issue and pull request templates
Change-Id: I5b4ad0e2b1c5c6d886b8355c167ef9e137d1c349
2018-01-20 14:22:46 +01:00
big biff 4603e9d0f0 Merge "Fix typo in Micro SD to have a consistency" into android-8.1 2018-01-19 00:36:13 +01:00
big biff 306ec8853d Merge "Added missing translation in Turkish translation" into android-8.1 2018-01-19 00:34:43 +01:00
big biff ca696f0674 Merge "There are a few typos and bugs in the French translation, for example where a string is to long to be displayed in the button (overlapping / cut-offs)." into android-8.1 2018-01-19 00:33:46 +01:00
big biff a8840a1c89 Merge "Typo / Uppercase-Lowercase in German translation compared to all other translations" into android-8.1 2018-01-19 00:32:56 +01:00
big biff abe968d36d Merge "Typo and bug fixing in Dutch(NL) translation, for example where a translated string is too long to fit in button." into android-8.1 2018-01-19 00:32:25 +01:00
big biff 7e9452e242 Merge "Fix minor inconsistency in Czech translation" into android-8.1 2018-01-19 00:31:16 +01:00
big biff df10bbf26b Merge "Added missing translation(s) in Portuguese(BR)" into android-8.1 2018-01-19 00:30:35 +01:00
big biff 1592e5b0b7 Merge "Added missing translations in Swedish language file" into android-8.1 2018-01-19 00:29:59 +01:00
big biff d8646894ef Merge "Added 2 translations in Italian language file" into android-8.1 2018-01-19 00:29:15 +01:00
big biff bd09f93e59 Merge "There's a missing translaton in the Greek language file." into android-8.1 2018-01-19 00:28:13 +01:00
nkk71 98fc399c26 Use /persist as Qualcomm time fix source during early boot
* /persist can be mounted early while TWRP is parsing the fstab so
  as soon as the partition is parsed, mount and adjust the time
  accordingly.

* Store a backup settings file on /persist. Having a 2nd copy of
  the settings file in the /persist partition allows for early
  reading of the file and adjust timezone and brightness to user
  preference while still on TWRP splash.

* Add the qcom ats time offset in TWRP settings file and use it
  if no better ats file is found. This will also allow devices
  with a persist partition, but no ats files in it, to adjust
  the time offset during early boot.

* Use /persist/time/ as Qualcomm time fix source, based on
  Xuefer <xuefer@gmail.com> patch:
  https://gerrit.omnirom.org/c/27265/
  https://gerrit.omnirom.org/c/24384/

Change-Id: I6c21538eec58d87edfb639d9ce3871f33b886c1d
2018-01-17 20:42:17 +01:00
big biff baeabc5b43 Merge "Relink adbd needed in android 8.1" into android-8.1 2018-01-17 01:40:29 +01:00
Humberto Borba 3cacbfd640 libotautil: Add missed header
ZipUtil was deprecated at android-8.1 but it has been still used by
zipwrap. So this patch fixes the missed header file at new android version.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I60bf67292021f3b63fb1ee2b8774303d9300fa12
2018-01-11 17:06:03 -02:00