Commit Graph

525 Commits

Author SHA1 Message Date
Ethan Yonker 64e0a6525f Use listbox for device-specific advanced menu items
This patch allows items to have more than one action surrounded
by the <actions> tags like other GUI elements. The patch also
adds new twrp command line options that let you reload the theme
and switch to a specific page from the command line:

adb shell twrp reloadtheme
adb shell twrp changepage=advanced

Change-Id: I838ea380a508be07b9fa617034d1954e116febd6
2019-03-20 15:42:49 -05:00
mauronofrio e9a49efe75 Adding Edl button in reboot menu
Edl mode is available only on qualcomm devices and it used to fully
restore the bricked devices. I made the button available only if
TW_HAS_EDL_MODE := true like the download button. I set the edl
button to the right of the download button, so devices can support
edl button and download button. I also added the translation for
all languages.

Change-Id: I69d1058b8c050b722395c7b3da6dce1ccfbe7a91
2019-03-20 10:57:07 -05:00
bigbiff bigbiff 3157f121ad Full screen action: simplify by just hiding navbar
Change-Id: Iab770ee47420deae08cc3c20127f36f53036fbec
2019-03-18 21:54:20 +01:00
bigbiff bigbiff 19874f1469 AB/Non AB Devices: updates for moving cache
This patchset updates all the places we touch cache on AB devices
and non AB devices so that we can write to the appropriate
location. AB devices removed the cache partition and moved it to
/data/cache.

Change-Id: I485ec205a604f1f07ceb7700ae9c4e720fd55c3e
2019-03-18 04:49:38 +01:00
bigbiff bigbiff 3ed778ad63 Vibration: allow BoardConfig to disable vibration for a device.
Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
2019-03-17 22:39:00 -05:00
nijel8 a833939109 Hide navbar while running operations
-switch to full screen when user is not suppose to do
 anything but wait for current operation to finish

Change-Id: Ib54afc380a5cfe70e011e782cf3d7fe4c80958a4
2019-02-01 00:43:02 -05:00
Captain Throwback 9d6feb5311 twrp: use ANDROID_ROOT environment variable
instead of hard-coded /system path

I updated most of the references I found,
but there might be more

For devices that have to mount system at /system_root,
this allows system to be bind mounted to /system
and detected properly by TWRP

Change-Id: I9f142fd8cec392f5b88e95476258dab9c21a9aac
2018-08-24 12:47:45 -04:00
Ethan Yonker 58f2132bc3 Merge AOSP android-9.0.0_r3
Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0

Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
2018-08-24 11:17:39 -05:00
Sean hoyt 32aef7a2cf Remove remaining pieces of supersu
Change-Id: I8f92c19f9e947da29dc25f3b88f69413a13af64d
2018-07-30 10:29:46 +02:00
Humberto Borba 66ae80be89 language: italian: Fix SELinux support label
Thanks to David Viteri for this one.

Signed-off-by: Humberto Borba <humberos@omnirom.org>
Change-Id: I566179921ba1cdb3b79836eff2b78cd6289eff94
2018-07-25 08:15:41 -03:00
Ethan Yonker fa67cbf18b Remove SuperSU
Change-Id: I2ca7580bbde5a8903b9ba5c1513ddba887e8d49e
2018-07-20 13:45:16 -05: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
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
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
Pierre Roth 263ce7c9d7 Fix typo in Micro SD to have a consistency
Change-Id: I91b7e674cd74d9069ee0ae3e70dbfd4a6a051756
2017-12-21 17:58:34 +01: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
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
DevUt 04156c3f5a Fix the inconsistencies in the spelling of SD card
Change-Id: I30d7a3d38654292d38e3f69a196bc03928b7d22e
2017-12-05 16:35:14 +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 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
nkk71 b4c3591306 Auto detect possible use of legacy props
* Revert: Make legacy props an option disabled by default
  (reverted from commit 75aa615767)

* Instead check for ANDROID_PROPERTY_WORKSPACE in the updater-
  binary to determine whether legacy property service can be
  used

Change-Id: If68d5cca9a2b56edcb1c73db0474668cf46d8c91
2017-11-17 23:49:11 +01:00
Ethan Yonker 477da64554 Merge branch 'android-7.1' of github.com:omnirom/android_bootable_recovery 2017-09-25 21:11:49 -05:00
Ethan Yonker 75aa615767 Make legacy props an option disabled by default
Change-Id: Id0bb17ebd11e120b4676c41d6553e6a830ac7ee9
2017-09-08 12:17:53 -05:00
Ethan Yonker 8373cfe28c Update to AOSP 8.0 base
Change-Id: I29fe722b4eb9718765327902779046840a01433e
2017-09-08 07:14:59 -05:00
kaneawk c75c8a2eb4 Remove duplicate entries & Improve Chinese translation
Change-Id: I3ed9b5731d63f69748fbbf99c626669db39a1eb4
2017-08-18 19:36:03 +08:00
big biff c0c5c3a1a4 Merge "Fix typos / inconsistencies in German language" into android-7.1 2017-08-15 02:49:40 +02:00
big biff 5302ec42b7 Merge "SHA2: Enable in landscape and watch xml" into android-7.1 2017-08-13 01:51:57 +02:00
nkk71 1a230e461c Show scrollbar on TWRP Settings
* The scrollbar is not shown when more options
  are actually available.

Change-Id: I78b223c5fe12f0cbd73357ca6615f83ff04201e1
2017-08-08 13:23:49 +03:00
bigbiff bigbiff 1c01fabf87 SHA2: Enable in landscape and watch xml
Change-Id: I8bdb4b8a24cbdd0f68d45676f2858eb63f74677b
2017-08-07 18:44:04 -04:00
bigbiff bigbiff 56cf564658 twrpDigest refactor
This patch is to refactor twrpDigest using polymorphism
and inheritance to use the same call patterns for creating and
reading a digest. Now a library.
Use SHA2 from libcrypto. SHA2 is default if device has libcrypto.

Change string MD5 everywhere to use digest or Digest instead. Updated
string tags to digest. Translation will be required.

Switch out digest code into a driver class from partitionmanager.

SHA2 is better for digest creation due to decreased collision space
compared to MD5 and SHA1.

See https://en.wikipedia.org/wiki/SHA-2

Change-Id: I74b5546789990b12aa4ce2e389d25f80a3fe213f
2017-06-17 07:05:45 -05:00