Commit Graph

11028 Commits

Author SHA1 Message Date
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
Captain Throwback 550a199e67 Add TW_QCOM_ATS_OFFSET flag to manually set time/date offset
Needed if no ats_ files are present on qcom device

Offset is the difference between the current time
and the time since_epoch

To calculate the offset in Android, the following expression
(from a root shell) can be used:
echo "$(( ($(date +%s) - $(cat /sys/class/rtc/rtc0/since_epoch)) ))"

Add 3 zeros to the output and use that in the TW_QCOM_ATS_OFFSET
flag in your BoardConfig.mk

For example, if the result of the calculation is 1642433544,
use 1642433544000 as the offset

Change-Id: I5d58125dffc3fdbfb76a5ffde4e27659376185f1
2022-01-20 21:45:42 +00:00
nijel8 80c92d9be2 nandroid: exclude apexdata com.android.art folder from backup
- throws tar 255 error on AOSP Android 12

Change-Id: I2bad9c83c294d7b533c637b678764fdf25bc2cf0
2022-01-15 20:38:34 +00:00
sekaiacg 2679fb8acd kernel_module_loader: Add missing gki directory
Change-Id: I63cafb2deaaaec091ee2dff9dfd01aac23e0aade
2022-01-15 20:37:03 +00:00
Adithya R 3a59df59cc kernel_module_loader: Set a prop after completing
* we can use this as a trigger in init rc, for any task
   that depend on kernel modules being loaded

Change-Id: I7623edc0b6dc799e911a087881f76e9642e005ee
2022-01-15 20:33:59 +00:00
sekaiacg 0df7c9ef27 SkipDecryption: Fix condition
Change-Id: I3330f49214f930d481e0e237b654d44d446092bd
2022-01-13 18:08:05 +00:00
sekaiacg 826ec47f60 custom theme: Fix the install custom theme
Change-Id: I639bfdac46cbe5a0d9760d1b62fd5f9875b63994
2022-01-13 18:00:44 +00:00
Captain Throwback e331b8a1b7 tw_crypto_pwtype: move default setting to data.cpp
Change-Id: Id3dda3bc2c32ad286b1ec67595f482f84b5077d7
2022-01-10 21:21:16 +00:00
Captain Throwback 2e5abc3ecc gui: fix restore_keymaster page in landscape and watch themes
Change-Id: If182e7fc7c50b063542c9a4a058a599f05c8e685
2022-01-10 21:20:35 +00:00
sekaiacg cf77cb357c keymaster restore: Do not enter the keymaster_restore page repeatedly
Change-Id: I0c7ca541d52d923067537adb561ca5a61bde7f08
2022-01-10 20:34:02 +00:00
Captain Throwback 086358633e System_Property_Get: Set default path for build.prop
Change-Id: I5f4fa7150c025033eca29bf4fe3fe3f908f18e5e
2022-01-05 18:58:19 -05:00
theincognito-inc 546ebc391d Change TWRP nano TERM env variable from pcansi to bg1.25
pcansi TERM has always had some display and/or scrolling (up, down, left or right) issues in nano on TWRP's embedded Terminal.
Most frequently seen is misaligned/displaced text on long lines and files, either initially or once scrolled through.
bg1.25 seems to be the most compatible TERM for all devices currently.

Change-Id: If00a8352ca3576085f69c12dffb5b21637c7b21c
2022-01-04 20:32:23 +00:00
Captain Throwback a185252c8e System_Property_Get: Allow specifying multiple prop file paths
Some OEMs include prop files in custom locations. Add these to
a list and parse when setting properties.

Use the flag TW_SYSTEM_BUILD_PROP_ADDITIONAL_PATHS followed
by a semi-colon-separated list of paths (relative to /system)
where the additional prop files can be found.

The standard build.prop file does not need to be specified and
will always be parsed.

Example:
TW_SYSTEM_BUILD_PROP_ADDITIONAL_PATHS := etc/buildinfo/oem_build.prop;etc/prop.default

Change-Id: Ie0e25c7d2575d928310ff1b4fc1aef44a83784ca
2022-01-02 16:02:04 -05:00
bigbiff 922b121f31 libresetprop: use the latest header
Change-Id: I24656393cc84b1a978338fa587c535797d81c2a9
2022-01-01 18:36:43 +00:00
bigbiff a84acc7fa5 fscrypt v1: support legacy ioctl
Crosshatch uses a legacy ioctl for setting and getting fscrypt
policies. If the device is legacy, we will use the legacy ioctl.

Change-Id: I5c2e068f166b89fe9f7839a6d6a9533e49fc5b07
2021-12-31 15:44:50 +00:00
Captain Throwback 740d852518 vold_decrypt: only include patch_level functions with libresetprop
The functions use the Property_Override function from libresetprop,
so don't include if libresetprop isn't included in build

Change-Id: I5eb210f17fea908ec35cb223e4a55066419f55dc
2021-12-29 16:00:54 +00:00