Commit Graph

66 Commits

Author SHA1 Message Date
Matt Mower a8a89d1961 Whitespace cleanup
Change-Id: I93c65973679894bb8587da4b38b410d38036b8bd
2017-01-18 17:41:17 +01:00
Ethan Yonker abd08746c7 Update Ukraine language translation (via jemmini)
Change-Id: Ice2bb6c66d47ca2da968f223dd47207159cc0b66
2016-12-16 10:09:11 -06:00
Ethan Yonker b4bff5e9d1 Add TWRP app install via TWRP recovery
Note: I will have to add a build flag for excluding the app later for
watches and maybe Android TV. I will also have to add support in the
tablet and watch layouts later. I will merge this for the initial roll out
to select devices and finish up later.

Change-Id: Ia4ce5522fae542afa1539b10c0691315392a19ab
2016-12-16 17:02:16 +01:00
Miroslav Brzychcy 9b1b818eb8 TWRP Language Update
Update slovak language on behalf of translator.

Change-Id: I90f289dd082aef1780d63b4880092f57c48ad9ac
2016-12-14 19:41:18 -05:00
Ethan Yonker bd7492de28 Support File Based Encryption
Change-Id: Ib688ddd0c32d3999590cacd86b6d9b18eac336e9
2016-12-13 21:16:42 +01:00
Ethan Yonker 1b190166eb Add boot slot support
Change-Id: I7eaf80e327985f53791f90fbdebad022a9650d31
2016-12-13 14:04:48 -06:00
Ethan Yonker 941a899695 Support new AB OTA zips
Change-Id: I1ff883375a0a769bf27a834c9bf04c6cdbb42117
2016-12-05 14:54:32 -06:00
bigbiff bigbiff bad332a3d1 Copy Kernel Logs
Give user option to copy kernel logs to current storage

Change-Id: I0c61122fb34826ddb08977e6cbf98e3adf477acd
2016-12-01 19:00:02 -05:00
James Christopher Adduono 79ae093c82 MD5 verification sanity
We can use switches and enums to make things more understandable
and work with results in a more sensible manner.

PS2: Move file MD5 verification and error handling into
     a separate function to reduce code.

PS3: Default to false in Check_Restore_File_MD5 function

Change-Id: Id3ee0bb444cf13be67bb5dec2c43f7c26a86b954
(cherry picked from commit 5c3950716e5c7c6279efd5f3f338d6d22e5215e2)
2016-11-30 16:30:22 +01:00
Matt Mower 908dd25139 GUI: Use standard routine for auto-reboot
If 'reboot after install' is enabled, follow the standard reboot
routine to process 'No OS' and 'Install SuperSU' checks.

Since the system reboot routine is repeated several times, it has been
separated into its own routine.

Change-Id: I4c1882ecb8dc2d153ec2378b2e0973ab1a2a8278
2016-08-19 11:28:27 -05:00
Matt Mower 8dc25b7984 Fixup reboot after install variables
* Create correctly named data manager variable 'tw_install_reboot'
* Make configurable through Settings
* Remove closing tag space in theme files (not personal preference,
  but should match surrounding code style)
* Fix the "two presses needed to enable" issue for the checkbox on the
  install screen

Change-Id: I0ceb60b4888a672e2f0ecb5672b03cc86615621a
2016-08-19 11:09:01 -05:00
Matt Mower 9a2a20503c GUI: Add countdown & cancel to install auto-reboot
Provide a countdown from 5 sec for the automated reboot after install.
Include a cancel button to interrupt the process.

Change-Id: Ib5e1447918adfde45eba361c088800812b690890
2016-08-19 11:06:34 -05:00
Matt Mower bfccfb8822 Finish creating disable_free_space_check variable
* Create data manager variable for 'tw_disable_free_space'
* Make configurable through Settings
* Fix the "two presses needed to enable" issue for the checkbox on the
  backup screen
* No need to capitalize every word, but do specify precedes backup

Change-Id: Id436cef13e4ca9349618420aac03862ec4e3c35e
2016-08-19 10:35:10 -05:00
James Christopher Adduono c81de8c6c0 Optimize and reduce size of PNG files
Done using:
find -type f -name *.png -exec optipng -o7 -nc -fix {} +
(-nc is required as TWRP png lib can't handle color type changes)
find -type f -name *.png -exec advdef -4 -z {} +
(use Zopfli compressor on insane prefix to reduce size even more)

Total amount of bytes saved: 317,491

Change-Id: I545c678f71942e6ceb95acb631841ea7ef82a049
2016-08-04 17:40:42 +02:00
bigbiff ce8f83c48d ADB: Add adb backup for TWRP.
Functionality for client side to backup
tar and image streams over adbd to the client under backup.ab.

Using adb backup on the client side you can backup the partitions
TWRP knows about.

On the client side you can do the following:
adb backup -f <filename> --twrp <options> where options are
--compress: compress data
system: backup system
cache: backup cache
data: backup data
boot: backup boot
etc for each partition.

You can string multiple options,
i.e. adb backup -f <filename> --twrp --compress cache system data

adb backup in TWRP will take any option corresponding
to TWRP fstab partitions, e.g. efs boot as well.

If you do not specify the filename with the -f option,
adb will backup your data to a filename backup.ab on the client.
You can then rename the file and encrypt it with desktop tools.

If you don't want to use command line arguments:
adb backup --twrp

will bring up the gui and allow you to choose partitions
from the backup page.

To restore the backup use the following convention:
adb restore <filename>

Structures are used to store metadata in binary inside
of the file itself. If the metadata structure is modified,
update the adb version so that it will invalidate older
backups and not cause issues on restore. When restoring,
we currently do not support picking specific partitions.
It's all or nothing.

Change-Id: Idb92c37fc9801dc8d89ed2a4570e9d12e76facf8
2016-07-31 22:20:18 -05:00
Alex Kalles c62332beeb Improve greek translation
Some words are too big for the boxes

Change-Id: I48c2361dd9c7937361c3fb63b9bd8834c57fe0e0
2016-04-28 17:32:45 +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
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
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
Daniel Sikorski f4d1686a5f languages: add Reboot Option translation
Change-Id: I33acec5b4d0a371978bf2a6ab3beb26d0d18400f
2016-03-31 20:08:38 +01: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
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
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
Matt Mower 64ffe730a6 Unix file endings and remove execute permission
Change-Id: Iceaae3f7f20c3c6f23da807786b4cf4739c887c9
2016-02-29 17:14:17 +01:00
Andreas Blaesius 455a0ede03 twrp: translations: formatting and fix Turkish language file
Change-Id: I3159a2a0c37589f9472aba83b699840356da33a7
2016-02-05 20:55:56 +01:00
Ethan Yonker 6168f0c9c3 More languages, some partial, from Omni crowdin
Change-Id: I05d0e8516686ba2610ea4b437c83323e84eb4595
2016-02-05 11:05:23 -06:00
Ethan Yonker 28c857d24f Add font settings to some language files
Change-Id: I949fe4bd99d2a4471fef3e3967980a6163943e71
2016-02-05 10:51:35 -06:00
Andreas Blaesius 20a01f998f Import approved translations from crowdin
- PS2: generic xml instead android xml
- PS3: formatting

Change-Id: I4c552e172d670278ab2bad1897ceb89b7ee7fec2
2016-02-05 10:44:59 -06:00
Alexander Agura 1008ecf957 gui: imrove Russian translation
Seems that previous translator is overmind
Anyway, thanx him for initial translation

Change-Id: Ia98e344c24671cb60a0765e7c6dcb8aace6428fb
2016-02-04 21:00:53 -06:00
z31s1g 2053fe0bc9 gui: add german translation
also correct typo in all language files
also remove dummy language files for ES and FI

german translation was done on omni crowdin by multiple translators:
https://crowdin.com/project/OmniROM/de#

result was updated in line with latest changes (as of 02032016) to en.xml


Change-Id: Iddd8dbee7e050833a4dc61174288514d408267f7
Signed-off-by: z31s1g <z31s1g@googlemail.com>
2016-02-05 03:58:31 +01:00
Max Matviychuk 16d4a1feb7 Add ru.xml to translation engine on behalf on jemmini
Change-Id: I5d2d92f0d24228de9c63640d866e087542499d9d
2016-02-03 05:16:46 +01:00
z31s1g 782e1c90b4 gui: tweak storage selection
minor changes to the storage selection that was intrduced with commit 16373 (improve sdcard partitioning)


Change-Id: I50437111f45d0b7e2b78a655424daa63aea374cc
Signed-off-by: z31s1g <z31s1g@googlemail.com>
2016-02-02 21:02:44 +01:00
that da31ac481a Remove execute permissions from source files
Change-Id: I5deef665ab374491c0f498b498971abd525d1111
2016-01-29 22:11:48 +01:00
Ethan Yonker b5fab76bea Replace fix permissions with fix contexts for emulated storage
Fix permissions rarely fixed anything on more recent versions of
Android and usually made things worse. Instead we will replace it
with a more dumbed down option that should fix contexts on
/data/media with a few improvements to ensure that contexts get
fixed for multiple users and on adopted storage.

Change-Id: If5523781936a0b04196e2ad871cae767ebae2583
2016-01-29 21:58:33 +01:00
sndnvaps 793ec588a8 Fix translation spellings
Change-Id: I16f71797901ed21763b52a5cf750f383a460ce4d
Signed-off-by: sndnvaps <sndnvaps@gmail.com>
2016-01-29 18:05:02 +01:00
that c12a7f0f62 gui: move "(Up A Level)" in file selector to resource string
Doing it at display time is easier.

Change-Id: Ic0f2ca1f425f6267452157524a05b51d9324be16
2016-01-29 18:03:56 +01:00
Ethan Yonker 66a1949df9 Adopted Storage support
-Detects, decrypts, and mounts an adopted SD card if a
  secondary block device is defined (usually mmcblk1)
 -Handles unified storage
 -Displays the adopted storage in MTP along with internal
 -Factory Reset - wiped just like a data media device, we
  retain the keys folder and the storage.xml during a
  factory reset
 -Backup / Restore
 -Disable mass storage when adopted storage is present
 -Read storage nickname from storage.xml and apply it to
  display names in the GUI
 -Read storage.xml and determine what storage location is in
  use for /sdcard and remap accordingly

libgpt_twrp is source code mostly kanged from an efimanager
project. It is GPL v2 or higher, so we will opt for GPL v3.

Change-Id: Ieda0030bec5155ba8d2b9167dc0016cebbf39d55
2016-01-25 23:59:17 +01:00