Commit Graph

605 Commits

Author SHA1 Message Date
bigbiff
b2cce1055e screen blank: maintainer should specify in Board whether to disable
Change-Id: Id7dfea1ed9391d5a5f617b72a25fdb74dc235537
2021-09-25 15:33:19 +00:00
Captain Throwback
bc2cfa36ec Add exclusion criteria for "Fix Recovery Bootloop"
Should only be included on devices that use initramfs,
i.e. legacy SAR, recovery-in-boot

Change-Id: I2408fcd993e1e381f49b3d5ae860694b2fade4d2
2021-09-16 10:42:06 -04:00
Captain Throwback
529789380b copy log: add option to include logcat
Change-Id: I9689df4560d5209f385fbbc3e233859754b3ebbd
2021-09-07 03:03:16 +00:00
nebrassy
ac29e691d8 Add an option to one click flash current booted TWRP ramdisk
Change-Id: I12303696698a5feaa43401bcac9e30d5b3b99a0c
2021-08-09 23:05:14 +00:00
bigbiff
cfa875c4d4 vab support: merges and unmapping super devices
- check for merges before formatting data
- add advanced option for unmapping super devices

Change-Id: I38d4d3bbdfa071969016c3e000c86a4d03c71e45
2021-08-09 23:04:33 +00:00
Ctapchuk
5c10257865 Update Russian language, sync with en.xml
Change-Id: I8af2239735a800a7c883931ac3531440cc7f7758
2021-07-17 14:51:32 +00:00
bigbiff
2d54867daa fbe formatting: add warning for fbe devices and remove unused string
Change-Id: Id7af18a4c39932d8685e3265bfa158494ffd10f0
2021-07-17 00:14:21 +00:00
bigbiff
70cf814036 gui makefile: this file is redundant and handled by Android.bp
Change-Id: Ia51a0300709b88636125b7131b769000254a40db
2021-07-07 20:20:14 +00:00
HemanthJabalpuri
c6512446af gui: Fix TW_SCREEN_BLANK_ON_BOOT var in 6e0ca7dbed
Change-Id: I51ba03e13cd805f8aba6978e05fb3404b5ac0d7d
2021-07-05 11:32:29 +00:00
bigbiff
ab036619a4 apex: unmount flattened apex directory before installing zips
Change-Id: Idd1cadedcab94e81e30a487bd09f9173e5fe577e
2021-06-26 19:00:30 +00:00
epicX
9597b840bc Normalized digest check before installing zip
Change-Id: I5a3e82f103e7a80800be7790f1c8dc33c76413da
(cherry picked from commit 646f4f0c66a918f12e12784b22e7dc9a89837c37)
2021-06-06 13:54:41 +00:00
bigbiff
6e0ca7dbed themes: convert theme copying to a golang module
Change-Id: I0a1e4b79109cf9db93acb0575200f4ec8f72d3a2
2021-04-24 19:16:53 -04:00
bigbiff
d81833a5e5 libtwrpgui: convert gui to use new ziparchive library
Change-Id: Iea94855257c6d02c2f663c25d390cb1cfb91a727
2021-04-24 18:56:46 -04:00
Xdisk
28653c98b0 languages: add indonesian language
Change-Id: I49732e59711cdc2ff0900cd8d3d7b1a0ea1d2011
(cherry picked from commit 1a7bc78a32c65f99fb8d40eb0fe8695f83c7e7b0)
(cherry picked from commit a5a124141f9af569d32cd5ef1c5b5a3b8c3cddce)
2021-04-24 22:26:58 +00:00
Mohd Faraz
16c32046ec gui: Fix mis merge
* Fix up not loading directly

Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Change-Id: I5a39c5a93aaa8f32855799f84a748ef5554b2481
2021-04-24 18:18:05 -04:00
Mohd Faraz
648ab676c0 gui: Reland TW_SCREEN_BLANK_ON_BOOT
* After bad merge c387622389
   libguitwrp module get reloaded into the makefile, to fix this merge this patch added and TW_SCREEN_BLANK_ON_BOOT is
   set in golang module

Change-Id: I68d2b9b93959a9b7a35251ed2118b8d5d2b84c90
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
2021-04-23 15:48:35 +00:00
bigbiff
7d7d0855d4 gui: fix bad merge
Change-Id: I67dc921a35e6dbc419bd9cfebcca66296b65d8e6
2021-03-27 17:03:43 -04:00
megafon929
9754a0771c Updated Russian language
Change-Id: I0951175abdef591fe6b2089660ac822c2fbc9cce
(cherry picked from commit 050a22a861e0e35a1bea49a3db713848a7b62b8d)
2021-03-22 19:04:16 -04:00
Sean hoyt
c387622389 bootable: Change how blank screen works
This is required on some devices where previous to 8.1/8.0 the blank
screen flag worked but don't now.

Test: Tested on begonia, screen is now no longer black

Change-Id: Ib4ff607d220bcb1aa5166fea23cc7ecb0e012fdd
(cherry picked from commit 28d8dec40d60a31309fcf6259dad38cd328f0717)
2021-03-22 18:59:18 -04:00
epicX
9d80efa884 Allow all extension while checking for digest verification
Change-Id: Ie17582f144e0a5b5a68e2c6d88c26cb9f5a29ee6
(cherry picked from commit 57366118181ad8f78251dc034f55835e6947cc0a)
2021-03-12 23:47:05 +00:00
Ian Macdonald
a5d4b27e78 Fix ungrammatical sentence.
Change-Id: Id76269c81618adc966f63d80cb6a2da318a8d25c
2021-03-07 18:34:03 -05:00
Ian Macdonald
96106137d3 New, missing and improved strings for Dutch translation.
Change-Id: I216889667c959bb2a0fb1cb59bb6216946974b89
2021-03-07 18:34:03 -05:00
epicX
8f52c0a73d Added support for flash image in both slots
Change-Id: Iafda62a5f77f7c1f564f1a2ec0a59aefaf5e1266
2021-03-07 18:34:03 -05:00
Ian Macdonald
ef7768e7fc Fix unlocalised string.
Change-Id: I583df33125092bef205f0f8710225b9dbfbe7602
2021-03-03 20:05:32 -05:00
epicX
11e90832d3 Fixes for Add support to change TWRP Folder
Change-Id: I66a66cc6b952c1aae45c50a8f40c00febce69462
2021-03-03 20:05:05 -05:00
epicX
a721f955f7 Add support to change TWRP Folder
Change-Id: Id3b3b46d492bf83d1d9d3f535c880ea9d15b4107
2021-03-03 20:04:57 -05:00
Captain Throwback
89b56a1c97 Remove duplicate Update_System_Details() function calls
Only run Update_System_Details on boot after decryption is
complete, if device is unencrypted, or if decryption prompt
is cancelled.

This significantly decreases the delay in reaching the
decryption prompt on devices with large used storage
capacity

Use refreshsizes action to update system details when
Cancel button is pressed at decryption prompt

Change-Id: I9e436b1c57664a5269f42dc1cda4f6097f7e3062
2021-03-03 20:04:48 -05:00
Captain Throwback
16dd81b500 nano: Add File Manager option to edit selected file
Change-Id: Ie7d940545569e6de976d2a51666b692f3fc23798
2021-03-03 20:00:51 -05:00
Mohd Faraz
77bbeb0080 Added Support for terminal from filemanager
* Now We can open terminal from current directory in filemanager

Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Change-Id: I6df9ee1222c1fa24105da1002abe3c180be2ded1
Signed-off-by: AndroiableDroid <mohd.faraz.abc@gmail.com>
2021-03-03 19:39:35 -05:00
bigbiff
4a60bee82e android root: restore context for android system root
In this patchset we will store and reset the android system
root context after a wipe and restore to prevent issues
with no context labels in the file_contexts being applied.
This will prevent no boot issues in android with selinux
denials on the system root partition.

Change-Id: I87fd3a6060fbaa3e7bdfd7a4b1d09feeb4fa3f27
(cherry picked from commit 35d2bfda3c89ebd212a9bd2328bffd7464f95d47)
2021-02-15 12:29:48 -05:00
Ian Macdonald
e7c34e5715 Include common names for Magisk app in list of flashable zip files.
We introduce a new XML element prfxfilter for file name prefix
filtering, e.g. Magisk- .

The file is first matched against the list of extensions and, if there's
no match, then matched against the list of prefixes. An extension or
prefix may be equal to the whole filename.

Change-Id: I46a985c7298799793911948bc74296bebb306d9e
2021-02-15 12:29:38 -05:00
epicX
271bb3a17c reduced the checkforapp function call to reduce unwanted log info
Change-Id: I79ef116989f68333292d3518dcb3ea08be98b8ef
2021-02-15 12:27:11 -05:00
Captain Throwback
6321bc35a2 gui: fix listbox on reboot page in landscape theme
Change-Id: I65b7b3476235d49ec0cfa289b23be9bc65f7dfb5
2021-02-15 12:26:25 -05:00
f2065
7b127b876b Updated Russian localization
Change-Id: I803c6b90f5e011ab2c3ebf906736b9914f488a55
(cherry picked from commit e931e74a9dd6e24c5c243d545d2fcf3731c6d6f5)
2021-02-15 12:26:17 -05:00
Ethan Yonker
8581ab3df8 Remove TWRP app prompt from reboot flow
Add option to install TWRP app as a list menu item on the
advanced page and as a button on the reboot page (except for
watch theme). Now when a user reboots the device, they no longer
will be prompted to install the TWRP app, which interrupts the
flow of rebooting the device.

Change-Id: I00559d0be6e7d0b00d469a5960e4b14e32a3fc5f
2021-02-15 12:25:56 -05:00
bigbiff
91bd7a7ff1 adb: get adb working and cleanup pixelflinger
- update recovery init.rc
- add libdl bootstrap
- cleanup libpixelflinger import
- logd and adbd permissive for now
2021-01-03 17:36:52 -05:00
bigbiff
673c7ae01e Merge tag 'android-11.0.0_r16' into android-10.0
Android 11.0.0 release 16 - twrp bringup patch
2020-12-16 19:06:18 -05:00
bigbiff
1f9e4847ce twrpinstall: create library for twrpinstall
This library will need to mirror AOSP for any changes to installing
packages. The library has been separated out in order to make importing
updates from AOSP into the TWRP project.

twinstall.cpp has been removed from the recovery binary and added to
this library. It has been refactored for libziparchive.

Sideload has been reworked to use the newer methods from AOSP on
flashing packages through adb sideload.

We are also removing old libraries for adb and verifier.

Lastly before flashing a zip or image, we want to unlock block devices
for writing so that when an OTA is flashed to the inactive slot,
the flash will succeed.

Change-Id: I6d8702fc9031ffaf9f666b4ba375dc7d9362e473
2020-12-02 13:43:42 -05:00
Beta Soft
dff12eb230 extra-languages: update Chinese translation
To other Chinese translators:
Do not replace "…" to "...", it is incorrect in zh-CN, should be use Half-width ellipsis.
Use "槽位" instand of "分区" to translate "slot".

Change-Id: I753d9bfe9d172a64373c8809a78b667b9d75d0e3
2020-12-02 23:03:19 +08:00
whyle
f06b1658cf Enable f2fs in change filesystem
In android 10 to make f2fs, we use make_f2fs insteaf of mkfs.f2fs

Change-Id: If80ce7c122141f7e69431a8f9ca37cba27b915ed
2020-11-22 00:25:18 +01:00
whyle
33978c137b Update Chinese languages
Change-Id: I8a570f6400abcd3448a64c00b2aeaea321d2a405
2020-11-11 23:14:28 +00:00
whyle
0234cab3a1 Add missing Chinese tanslate
Change-Id: Ifca9c7a8b5a62d913002a3b1d1bb77f432d0a303
2020-11-11 19:55:44 +00:00
DarthJabba9
58d1e7a13a Try to handle Android Rescue Party triggers.
The Rescue Party trigger manifests itself when a user is trying to boot
a ROM but keeps getting dumped back to recovery.

Normally, TWRP doesn't capture this, and the user is often wondering
what is happening. This patch captures the trigger and presents a clear
message to the user about what is going on (with options of how to
resolve the situation).

Change-Id: Ia4414ce6270a7ee9e54d14381990ca4766e757bd
2020-10-25 16:46:48 +00:00
bigbiff
7138a0f1e0 fastboot page: fix theme layout for landscape
Change-Id: I65b495f217726bee6af9e5c433bda6263594f855
2020-10-24 19:52:25 -04:00
Captain Throwback
3b33954568 gui: bump theme version to 4
updates for fastbootd

Change-Id: I02331693ca9a407e0bd30c633f2b799ece7b3636
2020-10-23 21:56:24 +00:00
Noah Jacobson
81d638d235 Add support for multi-user decryption
* Add CLI support using the command "twrp decrypt <PASSWORD> [USER ID]"
* Add GUI support using the menu Advanced --> Decrypt User

multiuser: Parse users only when Decrypt_DE runs successfully

multiuser: Warn when not all users are decrypted

Change-Id: Ia5e943b13c2d5ec5c34ae97661133c19ff471e6d
2020-10-23 00:52:04 +00:00
Captain Throwback
b60a2732d5 Unmount vendor partition prior to switching slots
On some devices, having the vendor partition mounted
causes slot switching to fail ("Error getting bootctrl module")
Automatically unmount vendor partition prior to switching
slots to ensure the process completes successfully.

Use lazy unmount if Unmount_by_Path function fails.

TEST: Mount vendor partition, then switch slots.
      Vendor partition should be unmounted when
      switching completes
      
Change-Id: If6198d4693141be464749c4d423a9088753d939e
2020-10-21 18:03:24 -04:00
bigbiff
df8436b51a fastboot: implement fastbootd in twrp
fastbootd is a userspace daemon that runs in the recovery
ramdisk. It allows writing single partitions to the super
partition via fastboot CLI. When TWRP sees the fastboot option
in the misc partition during startup, it will start with
the fastbootd page and fastbootd running. Otherwise it will
run recovery normally.

Change-Id: Id7b12d29ef21dbd5950dc884dd1cd788f25357f0
2020-10-21 17:47:27 -04:00
bigbiff
ad58e1bfae repack: move sbin to /system ramdisk and update repacking
for android-10

This will support updating the ramdisk to a different
compression format and co-exist with magisk.

We are also cleaning up and removing non android-10
api makefile actions.

We are also moving twrp repacking to its own class. We
check the new ramdisk format and if it's different
we have magisk compress using the new ramdisk format.

Change-Id: I770030aae7797e75817178b2f0fccd9f39dc23af
2020-09-08 10:08:33 -04:00
4ndyZ
af1e585f3a lang: Updated German language strings
* Added all missing strings
* Translated some English strings in the German language file
* Changed ZIP notation to "ZIP" to be consistent in the translation

Change-Id: I27812c7f79c95258363772481f71253b8b505e28
(cherry picked from commit 6c70991a72820b390185b6de923a3694dce3cf44)
2020-09-05 20:26:33 +00:00