Commit Graph

2611 Commits

Author SHA1 Message Date
AndroPlus f09a4fbc37 Languages: Add font for Japanese
Japanese font is NotoSans which is licensed under SIL OFL.

Change-Id: I6f50edbca72c7e58ce0e96aee98a0303bd1a4254
2016-04-28 17:15:27 +01:00
AndroPlus a9a4b50fa6 Languages: Update Japanese translation
Change-Id: I4ec685a9d70173c1e008beb61cdead6af5c2aae0
2016-04-28 17:14:56 +01:00
¨Paul 80bd165150 Restore TW_SCREEN_BLANK_ON_BOOT functionality.
This is required for a number of devices, particularly now that custom
graphics support is deprecated.

This change is required to officially support TWRP on the Huawei Plank
(aka the Honor 7).

Change-Id: Ie16ec557c75654c9c9e7a2877aee3339fc214d05
2016-04-28 17:02:53 +01:00
Ethan Yonker 9f1f2f744b Fix decrypt of odd number length PIN on hardware crypto
I am not sure if we are really fixing anything other than we are
allowing the decrypt process to continue. On hardware crypto the
password never seems to match what is expected from the data in
the footer, probably because the data is not stored in the footer
and TZ does all the work. Still, if it works, it is hard to fault
the patch.

Change-Id: Ibbb286382e82523bec2064f51fa07194f84820c2
2016-04-28 16:46:46 +01:00
Gordon Freeman 5da130284e Partition: Fix parsing of several twrp fstab flags
fix parsing when using storagename=, backupname= and userdataencryptbackup= in twrp.fstab
also split encryptable= and forceencrypt= into seperate blocks
and make storage=Y working

Change-Id: I674f7ffe7f9e4ff121c4dccf79096360e044535c
2016-04-28 16:45:58 +01:00
magdeoz b146a62093 Update spanish translation
Change-Id: I4591a5fae396e7a993d4f70d80a1d1f3b2a83654
2016-04-09 22:46:25 +02:00
Wechy77 b894cd2a89 Update hungarian translation
Change-Id: Iabd66596c0d1b83935c4adc4ac048f3881284269
2016-04-06 03:46:52 +01:00
thecrazyskull 30f0c228db translate install reboot option to dutch
Change-Id: I23b2c44afca5c903becd201503f81766828c9304
2016-04-05 11:17:05 -04:00
Alex Kalles 2e21597212 Greek Translation from the updated en.xml
Change-Id: I5cd1b9c394c2777503e5567aaaa01210cfdb4caa
2016-04-04 20:30:08 +01:00
Ethan Yonker 4b131f70ac 3.0.2-0
Change-Id: I28fa04cb90dd4255db9dc5d771416ab8d456de46
2016-04-04 09:25:59 -05:00
Sultan Qasim Khan 14138d9f74 gui: don't mix up display value with actual value
In the case of password entry, the two differ. Password entry was broken
by the earlier commit entitled "Improve input box text handling" because
it started using the displayValue as the actual value, even in cases where
they differ because of a mask value.

Change-Id: Iaf5a67e1d928f34595962a1f1b80eebb64e8b493
2016-04-04 08:26:33 -05:00
SlimShadys b85189658a language: add 2 new strings in it.xml
Change-Id: I45a6a75d2b9332e523a7f61f19594c4029665ed7
2016-04-04 14:02:41 +01:00
SevenMaxs f7b048c0c4 languages: add 2 new strings for RU
Added translation Reboot Option and minor fix for Russian localization.

Change-Id: Ibeade0ce85ac65daf68dfd6b085a32148f66d1cb
2016-04-04 14:02:14 +01:00
thecrazyskull c53323af21 fix typo
Change-Id: I65f16530565c4b510274c72227a5f1483519a677
2016-04-03 10:02:00 -04:00
Ethan Yonker 308b1cadc4 Really remove all old SP* flags and code
Change-Id: I5ece02a8721e1b7541fb5182366a55fd0f037a7a
2016-04-01 22:39:22 -05:00
Ethan Yonker f177066df7 3.0.1-0
Change-Id: Iecf5c3f70559ef90e18f4807f80707fa5a3c78f0
2016-03-31 14:38:42 -05:00
Dees Troy eac1412e82 Merge "language: add 2 new strings to DE" into android-6.0 2016-03-31 21:31:42 +02:00
z31s1g ca859576b3 language: add 2 new strings to DE
Change-Id: Ic9d51ddb7a8e47c62399d2e3101e788994276104
2016-03-31 21:28:33 +02:00
Dees Troy 325e4dfa24 Merge "languages: add Reboot Option translation" into android-6.0 2016-03-31 21:28:11 +02:00
Daniel Sikorski f4d1686a5f languages: add Reboot Option translation
Change-Id: I33acec5b4d0a371978bf2a6ab3beb26d0d18400f
2016-03-31 20:08:38 +01:00
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
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
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
sndnvaps a915ec4215 Fix RELINK of toybox for twrp
Change-Id: Ia609eec928278fc63e699d42799f74b4ada82221
Signed-off-by: sndnvaps <sndnvaps@gmail.com>
2016-03-18 00:31:51 +01:00
Ethan Yonker 1e1fe4a7c6 Fix year in NOTICE
Change-Id: Iaade6424f23855b000bd282d3d00fba5d061c535
2016-03-17 16:00:20 -05:00
that b240f4a6a3 gui: fix font scaling for zip themes
All fonts were extracted to /tmp/extract.bin which was deleted after
the initial load, so reloading for scaling failed.

- extract fonts to /tmp with original name and don't delete them
- minor code cleanup

Change-Id: If8a0f657a7ef4c418fd5cc8550a24de44a38f303
2016-03-17 21:59:26 +01:00
Ethan Yonker c2dafbbba6 Change to dd for wiping crypto partitions
flash_image was spitting an error. We are also specifying a size
so that we do not risk writing beyond the partition.

Change-Id: Ie3a0d77db96e54357238595934c3df0e3b680823
2016-03-17 21:55:41 +01:00
Ethan Yonker 4745e89c04 Finally update NOTICE file to contain GPL v3
Individual files have contained the GPLv3 notice, but now the main
NOTICE file will indicate GPLv3 to better reflect the license of
the project.

Change-Id: I277b88e5853b7a7fc64f2305a5d4a3fff4e88e7d
2016-03-16 14:55:17 -05:00
Andreas Blaesius 9023b1c629 recovery: czech translation
Uploaded on XDA from XDA-User "kodein"
http://forum.xda-developers.com/showpost.php?p=65371227&postcount=1400

Change-Id: I6c3c4fe90b91a21400b11541f3895d92cc80ea1d
2016-03-05 13:58:23 +01:00
James Christopher Adduono fddbdfa45f Don't add subpartitions to restore list
Their parents will take care of them.
Good parents.

Fixes double restoration of subpartitions when they are
also set to backup in the recovery fstab.

Change-Id: I876c179135e0cb00754e9a8cfc8eac164c4b7fd4
2016-03-03 18:05:46 +01:00
James Christopher Adduono 6f57f7c601 Merge code from upstream libtar + bug fixes
All updates and fixes applied from upstream libtar as of
March 1, 2016.

Debug flag is disabled, however non-debug output now
provides 1 line of useful output per object extracted.

I've also merged some fixes from CyanogenMod's
fork of libtar:

From: Tom Marshall <tdm@cyngn.com>
Date: Thu, 11 Feb 2016 16:24:40 -0800
Subject: libtar: Cleanup, secure, and extend numeric fields
Commit: e18b457ea1cbf6be1adc3b75450ed1c737cd82ea

From: Tom Marshall <tdm@cyngn.com>
Date: Thu, 11 Feb 2016 12:49:30 -0800
Subject: libtar: Make file sizes 64-bit clean
Commit: e628c2025549a24018bc568351465130a05daafb

From: Tom Marshall <tdm@cyngn.com>
Date: Thu, 17 Apr 2014 09:39:25 -0700
Subject: libtar: Add methods for in-memory files
Commit: 8ec5627a8ff0a91724c6d5b344f0e887da922527

From: Tom Marshall <tdm@cyngn.com>
Date: Wed, 2 Jul 2014 09:34:40 -0700
Subject: libtar: Fix hardlink extract
Commit: 166d83a51e0c51abcea37694dbd7df92d03c1f56

From: philz-cwm6 <phytowardt@gmail.com>
Date: Sat, 26 Apr 2014 01:11:35 +0200
Subject: libtar: Various bug fixes and enhancements
Commit: a271d763e94235ccee9ecaabdb52bf4b9b2f8c06
(Some of this was not merged in, as better solutions were
available from upstream libtar)

From: Tom Marshall <tdm@cyngn.com>
Date: Wed, 9 Apr 2014 09:35:54 -0700
Subject: libtar: Add const qualifiers to reduce compile warnings
Commit: 0600afa19fe827d06d3fcf24a7aabd52dbf487b4

Change-Id: I6d008cb6fdf950f835bbed63aeb8727cc5c86083
2016-03-02 13:04:11 -06:00
Matt Mower 64ffe730a6 Unix file endings and remove execute permission
Change-Id: Iceaae3f7f20c3c6f23da807786b4cf4739c887c9
2016-02-29 17:14:17 +01:00