summaryrefslogtreecommitdiffstats
path: root/gui/theme/common/portrait.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-16Add option to uninstall TWRP app from /systemEthan Yonker1-0/+12
Change-Id: Ibe372a372333c357810be2afcb3796723ca370cb
2019-04-05Change slot name positionMauronofrio Matarrese1-2/+2
This is need to avoid overlapping between the third row of buttons and the current active slot, actually if you enable edl button, the active slot will overlap the button. Change-Id: I6cfc945c2d0be0530dad7b4ce0f0e2ca29c297c4
2019-04-03Use magiskboot to repack the boot partitionEthan Yonker1-0/+169
Set TW_INCLUDE_REPACKTOOLS := true Must also have: AB_OTA_UPDATER := true Use magiskboot and provide GUI options to allow users to repack their existing boot image to install TWRP (or kernels) so we can stop having to provide installation zips for AB devices. There is also an option to try to fix a recovery bootloop if the kernel has been patched to always boot the ramdisk for root, etc. You will need to pull the below repo into external/magisk-prebuilt https://github.com/TeamWin/external_magisk-prebuilt Change-Id: I74196cc6f095a7576d61886dc96cbc18deba9b04
2019-03-20Use listbox for device-specific advanced menu itemsEthan Yonker1-47/+47
This patch allows items to have more than one action surrounded by the <actions> tags like other GUI elements. The patch also adds new twrp command line options that let you reload the theme and switch to a specific page from the command line: adb shell twrp reloadtheme adb shell twrp changepage=advanced Change-Id: I838ea380a508be07b9fa617034d1954e116febd6
2019-03-20Adding Edl button in reboot menumauronofrio1-0/+19
Edl mode is available only on qualcomm devices and it used to fully restore the bricked devices. I made the button available only if TW_HAS_EDL_MODE := true like the download button. I set the edl button to the right of the download button, so devices can support edl button and download button. I also added the translation for all languages. Change-Id: I69d1058b8c050b722395c7b3da6dce1ccfbe7a91
2019-03-18AB/Non AB Devices: updates for moving cachebigbiff bigbiff1-1/+18
This patchset updates all the places we touch cache on AB devices and non AB devices so that we can write to the appropriate location. AB devices removed the cache partition and moved it to /data/cache. Change-Id: I485ec205a604f1f07ceb7700ae9c4e720fd55c3e
2019-03-18Vibration: allow BoardConfig to disable vibration for a device.bigbiff bigbiff1-0/+9
Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
2018-07-20Remove SuperSUEthan Yonker1-46/+1
Change-Id: I2ca7580bbde5a8903b9ba5c1513ddba887e8d49e
2017-11-27ADB Backup: add ability for TWRP GUI to restorebigbiff bigbiff1-1/+2
Restore adb backup files that TWRP made to your PC. Put files in your backup directory to see them. e.g. /sdcard/TWRP/BACKUPS/<sn> Change-Id: I2c57970d77b64c39a302159041456e761c185259
2017-11-17Auto detect possible use of legacy propsnkk711-7/+1
* Revert: Make legacy props an option disabled by default (reverted from commit 75aa615767457f2b62dda65b16ded41b0e6df11f) * Instead check for ANDROID_PROPERTY_WORKSPACE in the updater- binary to determine whether legacy property service can be used Change-Id: If68d5cca9a2b56edcb1c73db0474668cf46d8c91
2017-09-08Make legacy props an option disabled by defaultEthan Yonker1-1/+7
Change-Id: Id0bb17ebd11e120b4676c41d6553e6a830ac7ee9
2017-08-08Show scrollbar on TWRP Settingsnkk711-0/+1
* The scrollbar is not shown when more options are actually available. Change-Id: I78b223c5fe12f0cbd73357ca6615f83ff04201e1
2017-06-17twrpDigest refactorbigbiff bigbiff1-8/+12
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
2017-05-12Fix reboot when no OS is presentEthan Yonker1-1/+5
Change-Id: Idc3d3c79b8a7acf0f632ed39703766005d73de29
2017-01-21Support power key on slideoutMatt Mower1-0/+5
Change-Id: Ic1cba57b6d0fbefee2391d06d140da9e4e3dbb32
2017-01-21Whitespace cleanup in ThemesMatt Mower1-3/+2
Commit 'Copy Kernel Logs' did not adhere to tab spacing. Change-Id: Ie036aa6b973e01f992199787c64b54a6ccb73a7e
2017-01-18gui: Actions: Toggle backlight on power keyMatt Mower1-0/+5
Create GUIAction to handle KEY_POWER with a screen backlight toggle. Change-Id: Iad0a7923b4a776e0336722db74d6fc46cd0107a2
2017-01-18Whitespace cleanupMatt Mower1-2/+2
Change-Id: I93c65973679894bb8587da4b38b410d38036b8bd
2016-12-16Add TWRP app install via TWRP recoveryEthan Yonker1-6/+105
Note: I will have to add a build flag for excluding the app later for watches and maybe Android TV. I will also have to add support in the tablet and watch layouts later. I will merge this for the initial roll out to select devices and finish up later. Change-Id: Ia4ce5522fae542afa1539b10c0691315392a19ab
2016-12-13Add boot slot supportEthan Yonker1-0/+76
Change-Id: I7eaf80e327985f53791f90fbdebad022a9650d31
2016-12-02Copy Kernel Logsbigbiff bigbiff1-9/+40
Give user option to copy kernel logs to current storage Change-Id: I0c61122fb34826ddb08977e6cbf98e3adf477acd
2016-08-19GUI: Use standard routine for auto-rebootMatt Mower1-35/+22
If 'reboot after install' is enabled, follow the standard reboot routine to process 'No OS' and 'Install SuperSU' checks. Since the system reboot routine is repeated several times, it has been separated into its own routine. Change-Id: I4c1882ecb8dc2d153ec2378b2e0973ab1a2a8278
2016-08-19Fixup reboot after install variablesMatt Mower1-2/+5
* Create correctly named data manager variable 'tw_install_reboot' * Make configurable through Settings * Remove closing tag space in theme files (not personal preference, but should match surrounding code style) * Fix the "two presses needed to enable" issue for the checkbox on the install screen Change-Id: I0ceb60b4888a672e2f0ecb5672b03cc86615621a
2016-08-19GUI: Add countdown & cancel to install auto-rebootMatt Mower1-0/+60
Provide a countdown from 5 sec for the automated reboot after install. Include a cancel button to interrupt the process. Change-Id: Ib5e1447918adfde45eba361c088800812b690890
2016-08-19Finish creating disable_free_space_check variableMatt Mower1-1/+4
* Create data manager variable for 'tw_disable_free_space' * Make configurable through Settings * Fix the "two presses needed to enable" issue for the checkbox on the backup screen * No need to capitalize every word, but do specify precedes backup Change-Id: Id436cef13e4ca9349618420aac03862ec4e3c35e
2016-08-01ADB: Add adb backup for TWRP.bigbiff1-0/+12
Functionality for client side to backup tar and image streams over adbd to the client under backup.ab. Using adb backup on the client side you can backup the partitions TWRP knows about. On the client side you can do the following: adb backup -f <filename> --twrp <options> where options are --compress: compress data system: backup system cache: backup cache data: backup data boot: backup boot etc for each partition. You can string multiple options, i.e. adb backup -f <filename> --twrp --compress cache system data adb backup in TWRP will take any option corresponding to TWRP fstab partitions, e.g. efs boot as well. If you do not specify the filename with the -f option, adb will backup your data to a filename backup.ab on the client. You can then rename the file and encrypt it with desktop tools. If you don't want to use command line arguments: adb backup --twrp will bring up the gui and allow you to choose partitions from the backup page. To restore the backup use the following convention: adb restore <filename> Structures are used to store metadata in binary inside of the file itself. If the metadata structure is modified, update the adb version so that it will invalidate older backups and not cause issues on restore. When restoring, we currently do not support picking specific partitions. It's all or nothing. Change-Id: Idb92c37fc9801dc8d89ed2a4570e9d12e76facf8
2016-03-31TWRP Install Reboot Optionbigbiff1-1/+7
This is a simple patch to allow users to reboot after installation of zip queue. Current timeout is 5 seconds before reboot. Change-Id: I1a18cbf7025086e35031ab7241b330babebb8343
2016-02-02gui: tweak storage selectionz31s1g1-4/+5
minor changes to the storage selection that was intrduced with commit 16373 (improve sdcard partitioning) Change-Id: I50437111f45d0b7e2b78a655424daa63aea374cc Signed-off-by: z31s1g <z31s1g@googlemail.com>
2016-01-29Remove execute permissions from source filesthat1-0/+0
Change-Id: I5deef665ab374491c0f498b498971abd525d1111
2016-01-29Replace fix permissions with fix contexts for emulated storageEthan Yonker1-17/+12
Fix permissions rarely fixed anything on more recent versions of Android and usually made things worse. Instead we will replace it with a more dumbed down option that should fix contexts on /data/media with a few improvements to ensure that contexts get fixed for multiple users and on adopted storage. Change-Id: If5523781936a0b04196e2ad871cae767ebae2583
2016-01-29Fix translation spellingssndnvaps1-2/+2
Change-Id: I16f71797901ed21763b52a5cf750f383a460ce4d Signed-off-by: sndnvaps <sndnvaps@gmail.com>
2016-01-25Adopted Storage supportEthan Yonker1-0/+6
-Detects, decrypts, and mounts an adopted SD card if a secondary block device is defined (usually mmcblk1) -Handles unified storage -Displays the adopted storage in MTP along with internal -Factory Reset - wiped just like a data media device, we retain the keys folder and the storage.xml during a factory reset -Backup / Restore -Disable mass storage when adopted storage is present -Read storage nickname from storage.xml and apply it to display names in the GUI -Read storage.xml and determine what storage location is in use for /sdcard and remap accordingly libgpt_twrp is source code mostly kanged from an efimanager project. It is GPL v2 or higher, so we will opt for GPL v3. Change-Id: Ieda0030bec5155ba8d2b9167dc0016cebbf39d55
2016-01-25gui: add icons on settings tabsz31s1g1-2/+6
use icons instead of text on settings tabs portrait themes only, landscape has no problems if a translated label needs more space Change-Id: I611ee9e34d5641c00d8894e219502a6198648339 Signed-off-by: z31s1g <z31s1g@googlemail.com>
2016-01-23gui: add language selection to several pagesz31s1g1-18/+119
Language selection for decrypt, decrypt_pattern and system_readonly pages. Done: portrait landscape watch Change-Id: I5fd595cadcdebdd06e9dbb164d0736c84426ff1b Signed-off-by: z31s1g <z31s1g@googlemail.com>
2016-01-22Fix a bunch of messagesMatt Mower1-3/+3
* Find and rename/remove duplicate string variable names * Add missing string variables to en language file * Fix display of some strings missing @ in front of variable name * Fix several %s --> {1} * Be consistent in usage of cancelled vs. canceled (both spellings acceptable) Tip for finding strings missing from language files: 1) Find all messages: egrep -hr "gui_msg.+=" > /tmp/msgs.txt 2) Regex replace to trim them down WHAT: ^\s+gui_msg(?:[^"]+)"([a-zA-Z0-9_]+)=([^"]+).+ WITH: $1 Note that $2 can be used to retain the message 3) Find missing strings: for i in $(cat /tmp/msgs.txt); do if ! grep -q $i gui/theme/common/languages/en.xml; then echo $i; fi done Change-Id: Ic193162e4b5468bf027472928a370be39840ea1d
2016-01-14Improve sdcard partitioning processEthan Yonker1-11/+79
-Improve code for partitioning sdcards -Allow user to select a device for partitioning (must be removable) -Use sgdisk to partition sdcards -Set default sizes for ext and swap to 0 -Change increments for ext to 256MB and swap to 64MB Note: sgdisk is included in 6.0. I have included a static prebuilt sgdisk for trees that do not have sgdisk, however the prebuilt sgdisk is a decent bit larger than the old parted binary. The old parted binary is quite old at this point and we only have it for armv7a. sgdisk should be maintained by AOSP and can be built from source so it should work across architectures. Change-Id: Ib80882d9b5776e5e9358b11340fba392e6f1ae09
2016-01-13gui: theme changes for terminalz31s1g1-71/+114
Done: Portrait HDPI, MDPI Landscape HDPI, MDPI Watch Also still includes ugly changes for the old portrait theme to test the terminal emulator. Change-Id: If32af1c69b85417522a8a2fb9c20be515b4d70fc
2016-01-05Fix translation spellingsEthan Yonker1-3/+3
Change-Id: I3fc40c61d78cf017c6753ddd9520aa2ef2e853fc
2016-01-02gui: PatternPassword: allow any N*N gridAleksa Sarai1-2/+35
Rather than only supporting a 3x3 grid, allow for multiple grid sizes (using the CyanogenMod method of generating passphrases for non-3x3 grids). Also fix the detection of touches, as the old code was far too sensitive for larger grids (and also didn't make much sense). Change-Id: I343ef654e6d29ce0cb790a28281be7c7c9b171d9 Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2015-12-19Multiple Language SupportEthan Yonker1-503/+547
This is similar to https://gerrit.omnirom.org/#/c/14014 A lot of the features built in the older patch set have been split out into separate patches, most of which have already been merged. The remaining functionality here should all be directly related to language selection and loading. We always load English as a base before loading other languages over the top of the base. The idea is that if another language is missing a translation, then we will still display the English. Maybe still to do: read the /cache/recovery/last_locale file and load a language based on that. For me, this file contains just: en_US We probably won't bother with region specific translations so we would have to look at either trimming off the _US or using some other method like perhaps a symlink or a combination of the two. Thanks to _that for twmsg.cpp class Change-Id: I9647a22e47883a3ddd2de1da51f64aab7c328f74
2015-12-19gui: stock theme reworkz31s1g1-0/+4357
Tries to combine the current theme with a touch of material. Page structure is untouched for the most part. Layout grid is changed to achieve a "less random" placement of objects on a page. Change-Id: Icaf796be410431b17d5be6ccc1134d40912bef0b