Commit Graph

6531 Commits

Author SHA1 Message Date
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
Ethan Yonker 3eb70edb4a Use libdrm_platform for minuitwrp in 8.x trees
Change-Id: I58d7aa61cdb5c954e0726644fdc25c58eed8e544
2018-01-04 16:00:15 +01:00
Ethan Yonker e131bec179 Add spblob decrypt for secdis method (Pixel 1 non-weaver)
Support decrypting Pixel 1 devices using secdis method with the
gatekeeper instead of weaver.

Add a bit of a dirty workaround to a permissions issue that the
keystore presents because the keystore checks the uid of the
calling process and refuses to let the root user add authorization
tokens. We write the auth token to a file and start a separate
service that runs under the system user. The service reads the
token from the file and adds it to the keystore. You must define
this service in your init.recovery.{hardware}.rc file:

service keystore_auth /sbin/keystore_auth
    disabled
    oneshot
    user system
    group root
    seclabel u:r:recovery:s0

TWRP will run this service when needed.

Change-Id: I0ff48d3355f03dc0be8e75cddb8b484bdef98772
2018-01-04 07:40:22 -06:00
Pierre Roth 3a52d5f2a4 Typo and bug fixing in Dutch(NL) translation, for example where a translated string is too long to fit in button.
Change-Id: I68d71b516fc47c72a19f4b8fb7167086814cf148
2017-12-21 17:47:18 +01:00
Pierre Roth 3df3653112 Added missing translation in Turkish translation
Change-Id: I3790f1c02daca2fcbd3afb37e0e3d1b4529aed67
2017-12-21 17:45:46 +01:00
Pierre Roth 9a1ac4af26 Fix minor inconsistency in Czech translation
Change-Id: Ifc1ac9416177c0b211506174ce23ec7c3569777f
2017-12-21 08:51:03 +01:00
Pierre Roth 5099056859 Added 2 translations in Italian language file
Change-Id: Ia49a9329fa6f9c0ed26aa60a3175bc7944e8f3ac
2017-12-21 08:20:42 +01:00
Pierre Roth 88638fffe1 Added missing translations in Swedish language file
Change-Id: I3141cc4b1b2c5070d30485f0523e4e606f7707aa
2017-12-21 08:12:39 +01:00
Pierre Roth 7f768a1b26 Added missing translation(s) in Portuguese(BR)
Change-Id: I5bb3297a9bfd01d242023bbf1fb1f72e9c80404e
2017-12-21 07:45:39 +01:00
Pierre Roth 4e3a69530b Typo / Uppercase-Lowercase in German translation compared to all other translations
Change-Id: Ib8c67017dbf3a217332109b954d6123cb1a94f84
2017-12-21 07:08:43 +01:00
Pierre Roth c822e4ff02 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).
Change-Id: I2f02fa1b004c09914c618fe327490b1bb59f534d
2017-12-21 06:35:48 +01:00
nkk71 35764fdce6 Relink adbd needed in android 8.1
* adbd no longer goes to root/sbin instead it's
  going to system/bin reference:
  https://github.com/omnirom/android_system_core/commit/93defc17f376041437e5157a7c4d9e0344441811

Change-Id: Ib2bc5e0bb3ac868741fa3feacac5ef68aa1daa4b
2017-12-19 12:39:08 +02:00
Pierre Roth f00835e30e There's a missing translaton in the Greek language file.
Change-Id: Ibba47a1361c892159b704182b5d06aca8418aaac
2017-12-19 07:45:38 +01:00
Ethan Yonker ecbd3e8ba9 Merge up to android-8.1.0_r1 and fix conflicts
Change-Id: I2dc060134d15ec9f015a606cb24ef8276f6af1fc
2017-12-15 12:48:49 -06:00
Ethan Yonker ea4efc6d20 Fix build error in AOSP 8.1.0 r1 tree
Change-Id: If6f230105f5661a4544116d44c8fd48d4dc96f99
2017-12-12 16:24:28 -06:00
Ethan Yonker aac05c2f07 Fix android.hidle.base@1.0 rule for various 8.0 trees
Change-Id: I57a1a807841b20860c9a1c9523be385b12b6b933
2017-12-12 07:04:05 -06:00
bigbiff bigbiff 2af13795b9 TWRP Bugfix release
This release fixes restore by forcing regular TWRP Backup by default.
Thanks to jlask for fixing this issue.

Change-Id: I0b2d507d7a2a3e6bfdd00174af89efbe511e90e0
2017-12-08 17:50:41 -05:00
jason972000 adae336c1c Default to device backup/restore vs. adb backup/restore
Change-Id: I81bfea1e9978dd003e96a48f399d259a878ddc44
2017-12-08 09:12:11 -06:00
big biff e17b78ad60 Merge "Fix stuck on 'black' screen entering recovery" into android-8.0 2017-12-06 00:34:29 +01:00
DevUt 04156c3f5a Fix the inconsistencies in the spelling of SD card
Change-Id: I30d7a3d38654292d38e3f69a196bc03928b7d22e
2017-12-05 16:35:14 +01:00
nkk71 a2341b0caa Fix stuck on 'black' screen entering recovery
* In omni-8.0 'android.hidl.base@1.0.so', although properly built
  does not get copied to the /sbin/ directory for TWRP, resulting
  in TWRP constantly *trying* to restart with the missing lib:
    CANNOT LINK EXECUTABLE "/sbin/recovery":
    library "android.hidl.base@1.0.so" not found
  Leading to a stuck on "black" screen (or some splash screen, but
  never even reaching TWRP splash screen).

Change-Id: I10a3c3d72c0f141687dbbf552e59fb31c015b278
2017-12-04 01:52:08 +02:00
Ethan Yonker 606cc915f1 Fix compile error with IGNORE_MISC_WIPE_DATA in some trees
Change-Id: I4a57e4e90158d50a9e9c9aef8ed1da9ee9179554
2017-11-30 10:24:33 -06:00
Ethan Yonker 7c997913e2 Fix more compile errors in bootloader_message_twrp
Change-Id: I3b1b540f404efcd153d0b75d29e5b6ee8b0caa85
2017-11-30 07:24:06 -06:00
Ethan Yonker 31344a3b2f Better compatibility across 8.0.0 trees
Change-Id: Ic8200da4e99826736e002a1ab5f9e5f967e84193
2017-11-29 13:23:50 -06:00
Andreas Schneider 06c621908a minui: Fix building graphics_overlay.cpp
Change-Id: I65aad9253ebad598acd9468694d0e1bf6c4abc6a
2017-11-29 20:01:26 +01:00
Andreas Schneider 9c820955c8 minui: Move graphics_overlay.h down that we have all structs defined
Change-Id: Id971c900aec5931a11065e7e466db33acb0390eb
2017-11-29 18:04:00 +01:00
Andreas Schneider 6de59412eb minui: Add missing <linux/ion.h> for 'struct ion_handle_data'
Change-Id: I87133cc8409ab988bbffa40d790e138c25b01309
2017-11-29 18:03:28 +01:00
Andreas Schneider 58d68e5a0a minui: Only include graphics_adf.h if we do not build with MSM_BSP
Change-Id: Id32a394d23ea5df986615855119912f765ebee99
2017-11-29 18:02:58 +01:00
Andreas Schneider 75847daf15 minui: Do not overwrite previously set CFLAGS
Change-Id: Ifa5bcffa12c045cb629974684882f1e0f56dcce6
2017-11-29 18:01:16 +01:00
Ethan Yonker 41a5f72b02 3.2.0
Change-Id: I526aaf59a903baccea77e2f731c3166c3d3c05eb
2017-11-28 22:39:21 -06:00
Ethan Yonker 917331b968 Fix build error in old 5.0 tree
Change-Id: I3faa0b6cc964a148dcc1bae7fdeba877fd795cf7
2017-11-28 22:28:27 -06:00
bigbiff bigbiff 5b7cb88818 ADB Backup: fix compilation error for remove
Change-Id: Ia1b6e7a216bf3fd60bbfac9cbc11038636e3560f
2017-11-28 19:26:27 -05:00
nkk71 7d1222a5fe vold_decrypt: FDE Keymaster 3.0 support
* HTC U11 Oreo is using keymaster3 FDE encryption which requires
  the new services:
    1- /system/bin/hwservicemanager
    2- /vendor/bin/hw/android.hardware.keymaster@3.0-service
    3- /vendor/bin/qseecomd (instead of /system/bin/qseecomd)
  So in addition to /vendor/lib and /vendor/lib64 also
  symlink /system/vendor/bin to /vendor/bin.

* vold_decrypt services now have separate prefixes:
    1- 'sys_' referring to /system/bin
    2- 'ven_' referring to /vendor/bin

* The additional (hwservicemanager, keymaster-3-0) and modified
  (qseecomd) .rc files have been updated in the vold_decrypt
  directory.
  Comments were added directly in the .rc files, please check
  them.

* /etc/recovery.fstab needs to be temporarily moved since
  vold will use it if it finds the '/sbin/recovery' file
  (refer to fs_mgr for the fstab load code https://goo.gl/8KaZyf).
  Since fs_mgr cannot parse TWRP style fstab, we 'hide' it
  and attempt to create a symlink to /fstab.{ro.hardware}.

Also remove shell dependencies, code cleanup, new error codes:
* Critical sections of vold_decrypt should not rely on the external
  shell (and the available binaries) provided by TWFunc::Exec_Cmd.
  Doing so may lead to failures resulting from different shell
  provided binaries not working properly, especially since busybox
  can be inconsistent across different trees.

  In particular the following functions have been changed:
  * run_vdc() no longer uses daisy chained commands, instead
    it now forks and executes vdc directly including a 30 second
    built in timeout.
  * Symlink_Firmware_Files() no longer relies on the shell 'find'
    command to retrieve the list of firmware/vendor files and instead
    uses a built in function, Find_Firmware_Files(), which traverses
    the system partition to retrieve the list of files.

* The code has also been cleaned up a little for better consistency,
  and vold_decrypt will now return various error codes for the
  different failures, as defined in vold_decrypt.h, which allows the
  gui_msg to be moved back to partitionmanager.cpp.

Notes regarding pre Android 8.0 builds:
* Service names in .rc files cannot exceed 16 characters (including
  the prepended 'sys_' or 'ven_') in Android 7.1 and below, so a
  service name such as 'sys_hwservicemanager' is out of the question
  for 7.1 and below.
* hwservicemanager will check ACLs on 'hwservicemanager' and 'ITokenManager'
  if they are even allowed to run, otherwise the interfaces will fail.
  The policies have only been introduced in 8.0, and although it is possible
  to manually add them to the 7.1 policies it's not recommended.
* Therefore the best course of action is to build in 8.0.

* SIDE NOTE: On the HTC U11 we are actually using omni-7.1 with some changes
  in the device tree to support both Nougat and Oreo decryption, please
  refer to:
    1- https://gerrit.twrp.me/c/2756/ for the necessary sepolicy and
       BoardConfig changes.
    2- The Android.mk file for vold_decrypt was modified to truncate
       greater than 16 character service names (as mentioned therein)

Other changes:
* TW_CRYPTO_SYSTEM_VOLD_DISABLE_TIMEOUT is now deprecated due to built-
  in fork and timeout.
* Output_dmesg_to_recovery_log() is also deprecated so upon a failed
  decryption the recovery.log will no longer append it, instead you can
  just use 'adb shell dmesg' to check it. Nonetheless if a true debug
  build is needed use the original TW_CRYPTO_SYSTEM_VOLD_DEBUG flag as
  outlined in the original commit message (see below).

Usage info:
This is an update to the initial vold_decrypt, for more info refer to
https://github.com/omnirom/android_bootable_recovery/commit/71c6c50d0da1f32dd18a749797e88de2358c5ba1

Change-Id: Id7129d125ae7f5dcba0779489825add718022ba3
2017-11-28 23:05:54 +01:00
Ethan Yonker fefe5915b0 FBE for Pixel 2
Includes various minor fixes for building in Android 8 trees with r23+ tag

Update FBE extended header in libtar to version 2 and include the entire
ext4_encryption_policy structure now after translating the policy.

See this post for more details:
https://plus.google.com/u/1/+DeesTroy/posts/i33ygUi7tiu

Change-Id: I2af981e51f459b17fcd895fb8c2d3f6c8200e24b
2017-11-28 16:03:41 -06:00
Dees Troy dc864ec8ac Merge "Support v2 fstab format" into android-8.0 2017-11-28 15:04:30 +01:00
Ethan Yonker dcd9f3f384 Fix issues building with LineageOS cryptfs_hw
Change-Id: Ie22691433aefa3b8819ec14e0349ee12bd88a1c2
2017-11-28 14:53:49 +01:00
Ethan Yonker 6e8c27a52b Support v2 fstab format
Auto detect and support both the v1 and v2 fstab formats
Support putting TWRP style flags in a separate /etc/twrp.flags file

twrp.flags format is the same as twrp.fstab (v1 with TWRP flags)

Support using a wildcard in a block device and find all partitions:
/usb-otg vfat /dev/block/sda*

Support using sysfs entries (voldmanaged) and read uevents and scan for
wildcard partitions from uevent data. (twvold?)

May not be complete for some of the newer flags found in fstabs in newer
build trees and there is a slim chance of a crash if the user removes a
removable device while TWRP is performing actions. May need to add some
kind of mutex to prevent the 2 threads from causing this crash. We need
to start somewhere though and this change is pretty innocuous when not
using a v2 fstab.

Change-Id: I617d97c7db332cbe671a9d2b8ad98b3d9c4f03cc
2017-11-28 00:20:51 +01:00
bigbiff bigbiff adcb4d8cb7 ADB Backup: Fix gzip backup and restore
Change-Id: I92821c7053089d130a5ab73fa36aec486da77bf1
2017-11-27 16:43:20 +01:00
bigbiff bigbiff 19fb79c722 ADB Backup: add ability for TWRP GUI to restore
Restore adb backup files that TWRP made to your PC.
Put files in your backup directory to see them.

e.g. /sdcard/TWRP/BACKUPS/<sn>

Change-Id: I2c57970d77b64c39a302159041456e761c185259
2017-11-27 09:32:30 -06:00
leskal 372019c8cd Improve greek translation
Change-Id: I1642a2c89e50438fdd7308dba318d52440b0809f
2017-11-20 18:37:52 +01:00