From 56cf56465857e79e814b1e2d50f13e176170fcb3 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Fri, 19 Aug 2016 17:43:45 -0400 Subject: 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 --- gui/theme/common/landscape.xml | 16 +- gui/theme/common/languages/cz.xml | 36 +- gui/theme/common/languages/de.xml | 38 +- gui/theme/common/languages/el.xml | 38 +- gui/theme/common/languages/en.xml | 40 +- gui/theme/common/languages/es.xml | 36 +- gui/theme/common/languages/fr.xml | 38 +- gui/theme/common/languages/hu.xml | 38 +- gui/theme/common/languages/it.xml | 38 +- gui/theme/common/languages/nl.xml | 38 +- gui/theme/common/languages/pl.xml | 40 +- gui/theme/common/languages/pt_BR.xml | 36 +- gui/theme/common/languages/ru.xml | 38 +- gui/theme/common/languages/sk.xml | 1280 +++++++++++------------ gui/theme/common/languages/sl.xml | 36 +- gui/theme/common/languages/sv.xml | 10 +- gui/theme/common/languages/tr.xml | 20 +- gui/theme/common/languages/uk.xml | 1351 ++++++++++++------------- gui/theme/common/portrait.xml | 20 +- gui/theme/common/watch.xml | 24 +- gui/theme/extra-languages/languages/ja.xml | 38 +- gui/theme/extra-languages/languages/zh_CN.xml | 38 +- gui/theme/extra-languages/languages/zh_TW.xml | 38 +- gui/theme/landscape_hdpi/splash.xml | 2 +- gui/theme/landscape_hdpi/ui.xml | 2 +- gui/theme/landscape_mdpi/splash.xml | 2 +- gui/theme/landscape_mdpi/ui.xml | 2 +- gui/theme/portrait_hdpi/splash.xml | 2 +- gui/theme/portrait_hdpi/ui.xml | 2 +- gui/theme/portrait_mdpi/splash.xml | 2 +- gui/theme/portrait_mdpi/ui.xml | 2 +- gui/theme/watch_mdpi/splash.xml | 2 +- gui/theme/watch_mdpi/ui.xml | 2 +- 33 files changed, 1670 insertions(+), 1675 deletions(-) (limited to 'gui/theme') diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index 3039252b2..0b8860e25 100644 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -1676,8 +1676,8 @@ - {@skip_md5_backup_chk=Skip MD5 generation during backup} - + {@skip_digest_backup_chk=Skip Digest generation during backup} + @@ -2272,8 +2272,8 @@ - {@restore_enable_md5_chk=Enable MD5 Verification of Backup Files} - + {@restore_enable_digest_chk=Enable Digest Verification of Backup Files} +