Commit Graph

11043 Commits

Author SHA1 Message Date
Fernando Oliveira 063d211c62 gui: permanence of custom theme after changing TWRP folder
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)
2023-01-14 00:10:59 +00:00
kacskrz 11b4b78847 Update Czech translation (by VMach3)
Change-Id: Ia9585f4f2f196fda3aaabf748737482867739611
2022-10-25 22:28:11 +02:00
bigbiff d1b9a233e0 release: twrp 3.7.0 a11
Change-Id: Ia1f37b6cfb4eea02b513b7b158f32f55dc5216ac
2022-10-01 12:54:28 -04:00
Tommaso Fonda b0ef519320 minuitwrp: Fix typo in compiler flags
* This obviously causes a build error if TARGET_RECOVERY_OVERSCAN_PERCENT
      is set to some value in the BoardConfig.

Change-Id: I9d34ba158a1249e58304369918408fb388be8c5c
(cherry picked from commit 3b494b7a7f6efd3b8f9016540b74815ea6e9df64)
2022-10-01 16:42:20 +00:00
Darth9 d976629141 Unblock partitions before reflashing current TWRP
Change-Id: Idf54f302824cfbddb5d5be50b676dbc58435ef51
(cherry picked from commit 5c4a0aa453927a51e6ac740243ca0786893c7c5e)
2022-09-23 22:56:12 +00:00
me-cafebabe bdb5d2ada5 Make "Unmap Super Devices" option available to A-only devices
Change-Id: Ib3aed724b2e98f66387bdca240b0b4f719054594
(cherry picked from commit 2136fc5b91963fc21e782614ce6cfd55ca065eb9)
2022-09-10 19:53:47 +00:00
me-cafebabe 5a0a3aeed5 partition: Mount partition as RO when updating size
So that read-only partitions can also get mounted.
For example, Super volumes are RO when setting up.

Change-Id: I736a738963ba208cfdeaadc05c47d45b1bb7bf3e
(cherry picked from commit b52a4815d5c3a5be1fe56968f4480c788d2eaab2)
2022-09-10 19:15:46 +00:00
bigbiff 77f38b5d37 flashing: unlock block partitions before installing a zip
Change-Id: I48b3db34116a9097a9206162468bc009993ef7d1
(cherry picked from commit d56818f5af1807d388657ba60b0900c79bcbc05b)
2022-08-25 22:59:04 +00:00
me-cafebabe 061bcf1021 Enable reboot to fastbootd if TW_INCLUDE_FASTBOOTD is set
Change-Id: I599841d7dab28c51700e9c5f445654263edf3336
(cherry picked from commit 97be4321d42d1efa01a981e25c686c19f037fb5a)
2022-08-25 22:12:36 +00:00
kacskrz 22ad8ac54d Update Polish translation
Change-Id: Id38f86ff7be92d5ca61a5f2e7bdf2a299e53d305
2022-08-24 22:42:25 +00:00
Darth9 8c5088d5fc backup: support exclusion of user-defined directories from backups
Example: TW_BACKUP_EXCLUSIONS := /data/fonts,/data/blah,/data/geewhiz

Change-Id: I99e690eb0879281b1149e60ff430b6b3e7dd93c2
(cherry picked from commit cc683e7a3deefb96ece49b07bf88648087a7ccaf)
2022-08-23 18:22:49 +00:00
Yillié fcbaf814f3 gui : Allow changing vertical alignment of status bar icons
- 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>
2022-08-23 18:12:21 +00:00
Yillié 09badaed48 gui : Add an option to specify a custom x-axis value for status bar items
- 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>
2022-08-23 17:30:42 +00:00
me-cafebabe 808344f4ed partitionmanager: Only create logical partition symlink when it doesn't exist
Legacy devices might have symlinks to real partitions in this folder.


Change-Id: I4d3360ff1022eabbd4f6ae7688d8bb7306ae9777
(cherry picked from commit 928234b2b704555073ab03eb6a051fa9c9fd2a86)
2022-08-23 14:12:20 +00:00
Captain Throwback 1f79000a71 python: do not include by default
Native solution for ABX xml conversion will be used,
so python isn't necessary

Use TW_INCLUDE_PYTHON := true to add to build
if desired to use in TWRP

Change-Id: Ibe5cbabb6c7260966d933218f08d24e96e0b8a63
(cherry picked from commit 73ab9725661bcaafed88b70f16da200cd599e7d3)
2022-08-05 21:40:07 +00:00
me-cafebabe 322eb029ac gui: rapidxml: Bail out if detecting ABX header
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)
2022-08-03 23:17:53 +00:00
me-cafebabe 1e9626e798 partition: Don't force system partitions to read-only
Let's follow fstab flags.

Change-Id: I9c8d8c9a998df242256e820065716558dc56b908
(cherry picked from commit c49e34af4721f637edb850acbe1e94fc1ac9edd5)
2022-08-03 23:10:38 +00:00
me-cafebabe f29cf9e84e partitionmanager: Unlock every block partitions during setup
For example, Super volumes are read-only by default.

Change-Id: I0fc144842e42177d715c968bd1ee79e1406dae59
(cherry picked from commit d63fcaa879adc8f4be6ca2de3967e767c7542877)
2022-08-03 22:39:14 +00:00
me-cafebabe bd2268aa01 partitionmanager: Don't force super volumes to read-only
Note: This won't make super volumes default to read-write. It depends on fstab flags.

Change-Id: I7b08e090e45d1ff58f571f5b4ea55dd24ac9249d
(cherry picked from commit 47075559a7c878fa150abe7a48159d20e475f148)
2022-08-03 22:20:46 +00:00
me-cafebabe a021ac28c7 partition: Set default values for system_ext partition
Change-Id: Iae69e2887926fc808f6e4b1110a7f562b99119f2
(cherry picked from commit 701e9abe26353f143287897942e367f8245c6f54)
2022-08-02 23:25:00 +00:00
bigbiff 948f396cc5 prebuilt: allow user to move binaries to /vendor/bin/hw in ramdisk
Change-Id: Id6c17f2efcb1490d473311f3aa61ba3d652c6607
2022-08-02 23:22:57 +00:00
sekaiacg 98ce0f179c mtp: Allow transfer of files larger than 4G
Change-Id: I1af0d1ad0f73f1d6adffcd9cbb2f0a526ea3b9d7
(cherry picked from commit 6ab807043fb6ea49b61d1257c514429948f10eb4)
2022-08-02 23:18:52 +00:00
sekaiacg f4af5f1a3f backup_exclusions: exclude /data/extm folder from backup
exclude this dir to prevent "error 255" on MIUI

Change-Id: I7e31006617775d575cc1f37a0234369a345c372d
(cherry picked from commit 05ca8766bff3e0cb22e1d69be56fa8d9f1d9ef19)
2022-07-19 15:00:37 +00:00
Edward Wu 6d15864148 extra-languages: zh_TW.xml: Update Chinese(Tranditional) Translations
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)
2022-07-10 00:14:40 +08:00
Captain Throwback 608493c07c Add python prebuilts to build
Change-Id: I159b2b07962b89582f99af74e53585dc0bddcb63
(cherry picked from commit 1ef40fc330e88059ac6b53199ab0033c9ad380a8)
2022-07-03 15:00:00 +00:00
Mohd Faraz 83e0b3327b gui: Handle theme versioning in the specified package
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Change-Id: I40d727cd42c778a2c09a72043ce75c7c8b9cfacb
2022-06-24 12:00:26 +05:00
Aaron Kling 03989a88a6 Fix copying sepolicy on devices without a vendor partition
Current flow creates a vendor folder in the recovery ramdisk, then
the build fails when the ramdisk rule tries to create a symlink there.

Change-Id: I8bfb77d829c5dc6fcb2701cbfe44ce104058f37f
2022-05-28 17:51:31 +00:00
Captain Throwback ace1121c64 openaes: fully remove from build with encrypted backups disabled
Change-Id: I7941d90deb6c07bd354bfd5594b76a25ceccef1e
2022-05-28 17:50:14 +00:00
Captain Throwback 25cee82e98 selinux: add missing contexts files to LOCAL_REQUIRED_MODULES
Change-Id: I16d26bf9f6a41a5b459602a613f5ebc238b10fa9
2022-05-28 17:49:13 +00:00
Captain Throwback e963088f0f twrp-depmod: only run when TW_LOAD_VENDOR_MODULES is set (1/2)
Change-Id: Iaa2b16adf3eeb9696ba2d217f1003abf4a6f0f44
2022-05-28 17:46:40 +00:00
nijel8 bb7f0ba2a7 MtpServer: create new ffs handle if current one fails
- fixes MTP not working after USB unplugged and plugged

Change-Id: Iea684107d7de20ff92828543881f6fbec1848b77
2022-05-28 16:00:29 +00:00
bigbiff fbf1fdd07f release: twrp 3.6.2 a11
Change-Id: I89f3d24f336718e9ba5296a5286d7ca52ffe8c1a
2022-05-26 19:47:58 -04:00
Captain Throwback d0fcdaf492 flash_image: use Override_Active_Slot instead of bootctrl
Change-Id: I985d644ccb1e3bc8f9f9da77798d7bbcb7b84419
2022-05-26 18:44:25 +00:00
Captain Throwback d5e2c5247e sload_f2fs: update code for correct binary name
Change-Id: I7c14ec0b76d82d2b0951fd57fbc7184acc09d25a
(cherry picked from commit 8833868a48b054c708650c136c9b27b48c901ce0)
2022-05-21 16:39:16 +00:00
bigbiff 4e406a053a A11: 3.6.1 release
Change-Id: Iab1e839452af2507904796d094f8aed2d70bbc01
2022-02-26 18:45:55 -05:00
Darth9 ffb034ec78 fscrypt_destroy_user_storage: continue when EnsurePolicy returns false
Change-Id: I8a7d4343a12a7be346b96d27226f83d890a8597a
2022-02-26 15:14:43 +00:00
Captain Throwback 36deede620 soong: create phony package to fix dirty builds (2/2)
Add twrp_soong as a required module to ensure twres
folder is included in dirty builds where device out folder
is removed

Change-Id: I5b3f57664cd2aa97ff74ff594c72e6f29c6c927f
2022-02-24 23:01:37 +00:00
bigbiff 2c53845cbe sdcard: remove mount check
Change-Id: I278d7f71e79a82a34f95dba197555d08960f2723
2022-02-20 17:42:27 +00:00
Captain Throwback fcb99a2cb5 twres: fix folder copy on dirty builds
Add MkdirAll before trying to copy to twres folder

Change-Id: I66f150828f804fd36bbcfd2bc9ee17c54761d672
2022-02-18 12:55:42 -05:00
bigbiff bee26852ce datamedia: setup datamedia with key_directory set
Change-Id: I92cc83caf7e4ff3b43a69d214d176acb230abdef
2022-02-09 20:49:54 -05:00
Captain Throwback e848afcea6 fstab: add quota to handled flags
Change-Id: Iffce38ff43b1337803a5fcf067483f61533ee423
2022-02-08 23:05:46 +00:00
Captain Throwback 32bcdcd32e fstab: add support for metadata_encryption flag
Change-Id: Ic1f12f280e9e99cfe3587e35b88a1f2e9d97a1b2
2022-02-08 12:45:01 -05:00
bigbiff cda1588bc5 sdcard: only bind mount sdcard after successful preparation of data
Change-Id: I589f48a019f90a60ad48f93c5f5555aae4b8a5c9
2022-02-08 00:52:07 +00:00
sekaiacg 2a8dc0dd8e language: Update Chinese Simplified translation
Change-Id: I86e6a61b29e5d4b70356daa6ae2ce528fef0cb1f
2022-02-05 15:11:36 +00:00
Darth9 7ce944d50f twrpRepacker: avoid code duplication
Change-Id: I75712f32ef8804774418bb425040dc2b8f2d4e00
2022-02-03 18:53:20 -05:00
Captain Throwback aafc82e8e2 Partition_Property_Get: Get props from additional partitions
Use the TW_OVERRIDE_PROPS_ADDITIONAL_PARTITIONS flag to
specify a space-separated list of additional partitions
that should be parsed when trying to locate props
for overriding.

Example:
TW_OVERRIDE_PROPS_ADDITIONAL_PARTITIONS := vendor odm

Requires TW_OVERRIDE_SYSTEM_PROPS to be defined.

Change-Id: I7baf4c15628789fe525976d9de0251bba6882395
2022-01-30 21:44:35 +00:00
Captain Throwback 7460b59230 theme: clean up TW_THEME_VERSION shell command
Change-Id: I6be1f15d05e6ad53bf239674cf41173879eef37a
2022-01-29 15:59:42 -05:00
Captain Throwback a1317fc7bb theme: move TW_THEME_VERSION to variables.h
Automatically add the current theme version to the
splash and ui xmls during the build

Change-Id: I52f8cb41fabe34a8849ecc54ece3c0fb645dcd74
2022-01-29 14:12:02 -05:00
DarthJabba9 45a8d148b5 Adding TARGET_OTA_ASSERT_DEVICE flag for custom device asserts
Should be handled via device tree's BoardConfig
Sample will be TARGET_OTA_ASSERT_DEVICE := le_zl1,zl1,lepro3,lex720,lex727,LEX720,LEX727 in BoardConfig
Only applicable for AB or VAB devices

Change-Id: I1fbe6155d3f79eee089a31dbe62ee9d04c33d65c
2022-01-23 23:35:25 +00:00
MD Raza 74ea1a7d66 fastbootd: Check for and run startup script if script exists
Signed-off-by: MD Raza <raza231198@gmail.com>
Change-Id: Id2eeb59ca9161a997b239e8b58619d197dcd2093
2022-01-23 12:46:34 -05:00