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
52 lines
1.3 KiB
XML
52 lines
1.3 KiB
XML
<?xml version="1.0"?>
|
|
<recovery>
|
|
<details>
|
|
<resolution width="320" height="320"/>
|
|
<author>TeamWin</author>
|
|
<title>TWRP</title>
|
|
<description>splash screen</description>
|
|
<themeversion>3</themeversion>
|
|
</details>
|
|
|
|
<resources>
|
|
<font name="font_l" filename="RobotoCondensed-Regular.ttf" size="24"/>
|
|
<image name="splashlogo" filename="splashlogo" retainaspect="1"/>
|
|
<image name="splashteamwin" filename="splashteamwin" retainaspect="1"/>
|
|
</resources>
|
|
|
|
<variables>
|
|
<variable name="screen_width" value="320"/>
|
|
<variable name="screen_height" value="320"/>
|
|
<variable name="background_color" value="#222222"/>
|
|
<variable name="header_color" value="#555555"/>
|
|
<variable name="accent_color" value="#0090CA"/>
|
|
</variables>
|
|
|
|
<pages>
|
|
<page name="splash">
|
|
<background color="%background_color%"/>
|
|
|
|
<fill color="%header_color%">
|
|
<placement x="0" y="0" w="%screen_width%" h="120"/>
|
|
</fill>
|
|
|
|
<image>
|
|
<image resource="splashlogo"/>
|
|
<placement x="160" y="120" placement="4"/>
|
|
</image>
|
|
|
|
<image>
|
|
<image resource="splashteamwin"/>
|
|
<placement x="160" y="270" placement="4"/>
|
|
</image>
|
|
|
|
<text color="%header_color%">
|
|
<font resource="font_l"/>
|
|
<placement x="160" y="290" placement="5"/>
|
|
<text>Recovery Project %tw_version%</text>
|
|
</text>
|
|
</page>
|
|
</pages>
|
|
</recovery>
|
|
|