Commit Graph

9577 Commits

Author SHA1 Message Date
Ethan Yonker ec0b4320d4 HACK: fix input focus on terminal
This makes the terminal grab focus no matter what on SetPageFocus
which isn't ideal but it's unlikely that any other visible input
elements will be on the page with a terminal anyway.

Credit _that for pointing me in the right direction for this fix.

Change-Id: I2b0e6fc1169521f58e863c58f7ef3578413dfb21
2016-03-31 14:07:59 -05:00
bigbiff a869fc79bc TWRP Install Reboot Option
This is a simple patch to allow users to reboot
after installation of zip queue. Current timeout
is 5 seconds before reboot.

Change-Id: I1a18cbf7025086e35031ab7241b330babebb8343
2016-03-31 13:34:49 -05:00
Matt Mower 14f8ac1cf8 progress: Initialize display percentage variable
progress_percent can be set to an uninitilized display_percent if
total_backup_size == 0.

Change-Id: I704bf9a1250e95df65ef8790036f94c0a77da8d8
2016-03-31 12:29:52 -05:00
Bill Yi a1e7866b6a Import translations. DO NOT MERGE am: f1b2785 -s ours
am: 6a54ca4  -s ours

* commit '6a54ca4f9181774fe6cb58940d73f86aee506423':
  Import translations. DO NOT MERGE

Change-Id: Id0e7d247df98ac9fbfa7579b39b72e1fa0e00f20
2016-03-31 15:48:58 +00:00
Bill Yi 6a54ca4f91 Import translations. DO NOT MERGE
am: f1b2785  -s ours

* commit 'f1b2785129b64a140764483901530f40716e53f5':
  Import translations. DO NOT MERGE

Change-Id: I36787400a12a3a9258a9d9c569da69b79cb2738f
2016-03-31 15:45:44 +00:00
Ethan Yonker 472f506817 Improve progress bar handling for backup / restore / image flash
The progress bar will now be updated during image backups, restores
and during image flashing (except for sparse images which will require
significant changes to libsparse, and except for mtd nand using
flash_utils).

The progress bar will now be updated mid-file for file systems (tar) so
the user will see changes even during large file backup / restore.

Add a new progress tracking class to simplify handling of progress bar
updates. The class will only update the progress bar 5 times a second to
reduce the CPU load from updating the GUI frequently which does affect
backup times.

Change-Id: Iff382faef3df1f86604af336c1a8ce8993cd12c5
2016-03-31 15:44:24 +01:00
Ethan Yonker fe91611cb1 DataManager Updates
The goal of this change is to make DataManager use InfoManager to reduce
code duplication.

Change-Id: Ia4f4c4324453a192995e0f442db0a03628c13e46
2016-03-31 15:43:53 +01:00
Andreas Blaesius d4f30822a0 languages: fix and improve german translation
Change-Id: I7c5a0fbb1853836cfb5a7d1dfbbeb5f5613572b7
2016-03-31 15:37:27 +01:00
dadi11 67940a2a28 languages: add Polish translation
translated by @dadi11 & @linar10

Change-Id: I09a550c3ee99d44c4ada0bb7d71eb763471c7fda
2016-03-31 15:36:41 +01:00
Andreas Blaesius 0d2a82209b twrp: update Dutch translations
Change-Id: Ibcad999a1276b4519fc2b104b458ee77c984dc8b
2016-03-31 15:25:09 +01:00
Dees Troy f78cc2c4eb Merge "recovery: czech translation" into android-6.0 2016-03-31 16:23:51 +02:00
SevenMaxs d905c8d5f4 Update & Fix ru.xml
Updating and minor fix of the translation for Russian localization.

Change-Id: Ic68e0580a12521e71a8da926901a30a31489a079
2016-03-31 15:19:49 +01:00
Andreas Blaesius 6e64e8ee0f recovery: update italian translation
Translated by: Death Mask Salesman

Change-Id: I87f1f4417689b62c171264bfc05bf58e2ddfea03
2016-03-31 15:16:36 +01:00
Diegool c17f5f3577 gui: add italian translation
Change-Id: Ia0bf0a3e1831016a0a418095356e236d55b07fe6
2016-03-31 15:03:18 +01:00
Wechy77 e9d3fc280f TWRP: hungarian translation
add more strings
and fixes my mistakes in crowdin

ps2 remove whitespace

Change-Id: If79e61fba5c1b2e54be29286b23a1b418095b07c
2016-03-31 15:01:33 +01:00
Ethan Yonker d946aa470f Add language_helper.py
This script is intended to make managing the language files a
little easier.

This script reads the English and supplied other language files and
compares the 2 and reorders and rewrites the other language to a new
XML file such that all the strings are placed in the same order as
the English file. It will place commented out string lines for items
that are not present in the new file and will not include any strings
in the new file that are no longer present in the English source.
There is also a version tag that may be compared if present between
the English and other language in case a translation string changes.

Change-Id: If49d7efbf99c033d9736af971a78ed8455ac5c6f
2016-03-31 08:57:32 -05:00
James Christopher Adduono 0de3b7ed61 Flashutils: detect /dev/block/sd* as emmc
Change-Id: I067a58e5053748b9613ea6b4ac76a1c5285abc7d
2016-03-31 14:17:41 +01:00
Ethan Yonker 4f74d14f8c Stop loading languages for the splash screen
We don't translate anything for the splash screen currently so
this will slightly reduce startup times and prevent the code from
running when it's not needed.

Change-Id: I8a8e8be5247d8e8b148db578c12bce5d370123a8
2016-03-31 08:10:40 -05:00
Ethan Yonker 86404bda2c Stop trying to load /script/ui.xml
I think this feature was used way back in the very early days of
TWRP 2.0 on the Kindle Fire and has not been used since. I see no
reason to keep it around for now and we can always reinstate it
later if for some reason we need this feature again.

Change-Id: Ie9f3e5db7190732f813ae1e152aab2d85a4ca98c
2016-03-31 08:01:12 -05:00
Bill Yi f1b2785129 Import translations. DO NOT MERGE
Change-Id: Id992a2cff5d431b5862f7c27f3823dbffe52f5c7
Auto-generated-cl: translation import
2016-03-30 22:15:27 -07:00
Bill Yi 452aec0c5b Import translations. DO NOT MERGE
Change-Id: I96a3ebec0ab7b7400bcf8ffd2a899d291d8a4579
Auto-generated-cl: translation import
2016-03-30 20:41:15 -07:00
The Android Automerger bcd87be5cf merge in nyc-release history after reset to nyc-dev 2016-03-30 00:02:41 -07:00
Yabin Cui af337d8dde Merge "uncrypt: remove --read-bcb option." am: ebd22be am: ecc068c -s ours
am: f41c35d

* commit 'f41c35d774de88bc668c94ee5cfa43b60eb6eea1':
  uncrypt: remove --read-bcb option.

Change-Id: I05dfeef0be5d80d717c37a9fc03b1c61cb3e5e6b
2016-03-30 02:02:50 +00:00
Yabin Cui f41c35d774 Merge "uncrypt: remove --read-bcb option." am: ebd22be
am: ecc068c  -s ours

* commit 'ecc068c2f83b4db891f9d479170c06cf06bb409a':
  uncrypt: remove --read-bcb option.

Change-Id: I53dc530930eb95d00ea2efd51a07e34502ab63c6
2016-03-30 01:59:07 +00:00
Yabin Cui ecc068c2f8 Merge "uncrypt: remove --read-bcb option."
am: ebd22be

* commit 'ebd22be4f742f5eeb32b2eeaf212b34e7605da50':
  uncrypt: remove --read-bcb option.

Change-Id: I06ed6c0a36246041d03c57bc03f532de414c926f
2016-03-30 01:29:42 +00:00
Yabin Cui ebd22be4f7 Merge "uncrypt: remove --read-bcb option." 2016-03-30 01:19:25 +00:00
Yabin Cui 6507265906 uncrypt: remove --read-bcb option.
Bug: 27897241
Change-Id: I4f52ada58e8f204dba8c974ea0ae03876411ecf0
(cherry picked from commit 61799baba3)
2016-03-29 18:14:44 -07:00
Yabin Cui 08875b220d Merge "uncrypt: fix call to close()." into nyc-dev am: 912e87e -s ours
am: 31d0872

* commit '31d08721194392bb8dd19fa2aee5d9720e960843':
  uncrypt: fix call to close().

Change-Id: Ida59e364ac117786d996eb841d5acb89ebb7dfa7
2016-03-30 00:21:43 +00:00
Yabin Cui 31d0872119 Merge "uncrypt: fix call to close()." into nyc-dev
am: 912e87e  -s ours

* commit '912e87e91d15c35c18ce6710bf6a0b34f50b3672':
  uncrypt: fix call to close().

Change-Id: Ib9d13b4b39d64a9b7ff95429152eb9f3383ee4b3
2016-03-30 00:18:38 +00:00
Tianjie Xu d0678147cd Merge "Add string for Installing_security_update" am: 3568004 am: 2e21897
am: 0d66126

* commit '0d661262e99ae6ba6baeae6cdce05791923fe445':
  Add string for Installing_security_update

Change-Id: I5a1817ff5ef8494c53441892612070274432c92a
2016-03-30 00:11:58 +00:00
Tianjie Xu 0d661262e9 Merge "Add string for Installing_security_update" am: 3568004
am: 2e21897

* commit '2e2189728b3172327e93825ed803768c72fe7f28':
  Add string for Installing_security_update

Change-Id: I5b00f7c996c2a0653f1769790498c0a6578f6ac5
2016-03-30 00:08:55 +00:00
Tianjie Xu 2e2189728b Merge "Add string for Installing_security_update"
am: 3568004

* commit '3568004cba740a466bd9731a4bb5c8a1475e6d2d':
  Add string for Installing_security_update

Change-Id: I11a147726cd535e574690e01df35ec961888c5c6
2016-03-30 00:05:54 +00:00
Tianjie Xu 3568004cba Merge "Add string for Installing_security_update" 2016-03-29 23:58:31 +00:00
Yabin Cui 2286b23373 resolve merge conflicts of 61799ba to nyc-dev-plus-aosp
am: 0c39203

* commit '0c39203698b904e165237f67d6bd013debd6dc47':
  uncrypt: remove --read-bcb option.

Change-Id: Ic84b20a7736d6c0cd5f4e3ff07a02cbd64e285aa
2016-03-29 23:53:26 +00:00
Yabin Cui 0c39203698 resolve merge conflicts of 61799ba to nyc-dev-plus-aosp
Change-Id: Ib1d0afe9022ec82f05be8b56201e73505160cacc
2016-03-29 16:47:18 -07:00
Yabin Cui 912e87e91d Merge "uncrypt: fix call to close()." into nyc-dev 2016-03-29 22:48:08 +00:00
Yabin Cui ffa3a1c222 uncrypt: fix call to close().
Bug: 27897229
Change-Id: Iab5e829af1676f7fcd8a4b00a194aa679ed4e372
2016-03-29 15:35:58 -07:00
Yabin Cui 61799baba3 uncrypt: remove --read-bcb option.
Bug: 27897241
Change-Id: I4f52ada58e8f204dba8c974ea0ae03876411ecf0
2016-03-29 14:33:35 -07:00
Tianjie Xu 78bac9a66a Add string for Installing_security_update am: 1ee0ff3
am: 0f54a46

* commit '0f54a46af3d2fa5f01fd1e37ed050b3cf697008c':
  Add string for Installing_security_update

Change-Id: Ib9cc5307a030a94f7d9d6e9c52646cf1665bbe3d
2016-03-29 21:09:03 +00:00
Tianjie Xu 0f54a46af3 Add string for Installing_security_update
am: 1ee0ff3

* commit '1ee0ff3d78c5143d4e3307bc44e3c27792e72d1e':
  Add string for Installing_security_update

Change-Id: Ied2a3b07fbf8548688759727da527fc7a994d5a0
2016-03-29 21:06:05 +00:00
Tianjie Xu 1c95c97e55 Add string for Installing_security_update
Bug: 27837319
Change-Id: I037158697a294c3e03f186f3b4207ea700321a8a
(cherry picked from commit 1ee0ff3d78)
2016-03-29 13:59:22 -07:00
Elliott Hughes ee3314d335 Fix uncrypt.cpp unique_fd build breakage.
am: d6ac686

* commit 'd6ac68665dcef6c12d44ee6bcd7d938ab5028150':
  Fix uncrypt.cpp unique_fd build breakage.

Change-Id: Ibb0c2a7e7cc3668b2fe41e756a637043cfecc03f
2016-03-29 20:09:36 +00:00
Elliott Hughes d6ac68665d Fix uncrypt.cpp unique_fd build breakage.
Change-Id: I4654f59463d1f3e1f4450e937cd910508b64c157
2016-03-29 12:53:36 -07:00
Ethan Yonker a5db7121ab Improve input box text handling
Change-Id: I79cfaac1adf85d1ee5514bf5266930823c1a15ff
2016-03-29 20:05:35 +01:00
Ethan Yonker 20eb0bc2d1 Detect and install custom themes as part of zip installs
Change-Id: I7ec7133e53fca92ebe49a9a41161754a9138141e
2016-03-29 19:41:48 +01:00
that 6a89459ec1 gui: rewrite theme loading code
- Reduce code duplication for parsing of include files
- Fix crash when styles and templates from included files are referenced
- Fix bug with path concatenation if more than one file is included

Change-Id: I06cd720188df272180fb359097afd73a85952fa8
2016-03-29 19:38:30 +01:00
James Christopher Adduono d6f94acc9a Allow restoring to read-only file system
This allows the restoration of firmware or modems on read-only
mounted file systems. If the user is able to make a backup of
these partitions, it would only make sense they be allowed to
restore that backup. The current handling is dangerous in that
it happily wipes, but refuses to restore. :)

Note that it would be preferable to use the backup=emmc flag
instead in most cases, added by change:
https://gerrit.omnirom.org/#/c/17183

Change-Id: I32d47c8928dee61595c15a9db16d3c5b9a6d7183
2016-03-29 19:38:02 +01:00
Elliott Hughes 54937d0b59 resolve merge conflicts of 5cf4701 to nyc-dev-plus-aosp
am: 20ab2db

* commit '20ab2db8f1e04f4f9b4c1dc0e9377f0586bfc10a':
  Switch to <android-base/unique_fd.h>.

Change-Id: I3ad1eae327ad83c82aa684e4a2846d4313fd4486
2016-03-29 18:29:55 +00:00
Elliott Hughes 20ab2db8f1 resolve merge conflicts of 5cf4701 to nyc-dev-plus-aosp
Change-Id: Ia69f8b070c05cfe201115de510e3c12e813e38b5
2016-03-29 11:15:47 -07:00
Elliott Hughes 5cf4701d66 Merge "Switch to <android-base/unique_fd.h>."
am: 5d73735

* commit '5d73735552b3eca103830bd1433ce4b74b54b2b3':
  Switch to <android-base/unique_fd.h>.

Change-Id: I2f03ba036160376f03516eb7ede62229bb8e20ba
2016-03-29 18:00:38 +00:00