After changing the TWRP folder the custom theme was not being found because it was set in the code to the folder "TWRP/theme..."
This patch aims to fix that.
Signed-off-by: Fernando Oliveira <fernandoaju78@gmail.com>
Change-Id: I41e6e1378c74c9ee579b7b23beb37e0c2cd8761a
(cherry picked from commit ddaccbe7d411e707307ce0a9c95a36571be38ad7)
- If the var TW_STATUS_ICONS_ALIGN can be set to:
1) 'center' or '2' to center-align the icons/text (vertically)
2) 'bottom' or '3' to bottom-align the icons/text (vertically)
( Value calculated by utilizing statusbar height & size of font_m ).
- If set to anything else or not set at all, it falls back to twrp's
old behaviour of top-aligning the status bar icons.
Change-Id: I1b292221f3c34bbac20233595fbc0958d4aa4cc1
Signed-off-by: Yillié <yilliee@protonmail.com>
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
- The var TW_CUSTOM_CLOCK_POS, TW_CUSTOM_CPU_POS and
TW_CUSTOM_BATTERY_POS can be used to specify a custom position
for the clock, cpu temperature and battery percentage on the x-axis.
- The value can either be a whole number refering to the starting
position of that specific item on the x-axis or it can be 'left',
'right' or 'center' which will try to automatically calculate such
a value that items appear to be left , right or center aligned
respectively.
- Incase of TW_NO_CPU_TEMP being set to true, the CPU_POS var can be
used for the TWRP version text that takes the place of the cpu temp.
One of the use-cases of this var is when the status bar items overlap
with the camera cutout. In that case, instead of specifiying an offset
for the whole gui on y-axis, the status bar items can be offset along
the x-axis only.
Signed-off-by: Yillié <yilliee@protonmail.com>
Change-Id: Ic01d301731822a598b0ca8adb2280c4d01a3622f
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
The parser is supposed to parse plain XMLs, ABX format is not yet supported.
Continuing to parse ABX XMLs would be spamming /tmp/recovery.log until triggering OOM.
Change-Id: I5c01045d6efef0b2ac497b40d78410c2b75d30d0
(cherry picked from commit 0a352091b39cb62f919af0fbed1097194d3188bf)
The word usage of the translation strings in the past are in the style of China rather than Taiwan.
I'm Taiwanese, who works on Android and Translation projects.
Signed-off-by: Edward Wu <bluehome.wu@gmail.com>
Change-Id: I48fc712e6dce16a56e8cfcff58554bfe5123779c
(cherry picked from commit 2715033a420e5394b3ab36c311da0d849ad34d4a)
Since the TWRP app button is gone from the reboot menu,
it would make sense to switch back to the larger buttons
for the slots and move down the active slot information
to fit the screen better
Change-Id: Iabf891da8799b063bb4902d583b67f0594b4fc19
* Since commit 168bc4caaedfdf655a71ba24a1c5a7f2b905a122 the vendor partition gets unmounted prior to switching the slots. However, devices without a vendor partition (e.g. tissot's stock partition table) will have errors since the partition doesn't actually exist
* Therefore, it should be only mounted if that partition exists in the partition table
Change-Id: Id16ab55e25d05964ca0de1bf218914d66c2b0205
Starting in Android 10, zygote relies on stored inodes in order
to find packages in the user's CE directories. Since TWRP cannot
force inode creation on restore, we warn the user to remove their
pin before restoring their backup. Otherwise zygote may not load
properly in Android. This will force the system to update the
inode cache.
The user can then re-add their security settings to android.
Change-Id: I8f07962d07304dee54c08318efc500dca424b6c0
Since we don't re-create data/media on FBE devices,
don't create an MTP storage device for it.
This fixes the bug when, after formatting data on
and FBE device, an empty Internal Storage appears
on the PC.
This also prevents an empty storage device from
being created if recovery is rebooted after formatting
data before booting to Android. A warning will appear
in the console that MTP is disabled in that case.
Currently the path is hardcoded to data/media; this
should probably be adjusted for cases where adoptable
storage is being used.
Change-Id: Iaafc5e3cde54c3ef6ffaf33f76d14c626b6e590d