summaryrefslogtreecommitdiffstats
path: root/gui/devices/portrait/res (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gui: theme changes for terminalz31s1g2016-01-131-9/+32
| | | | | | | | | | | | | 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
* gui: PatternPassword: allow any N*N gridAleksa Sarai2016-01-021-2/+8
| | | | | | | | | | 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>
* Fix screen timeout text placementEthan Yonker2015-10-271-2/+2
| | | | Change-Id: I7b020c7048f9bbb550e9f5100c604c01809e4fbd
* Allow text to scale to fitEthan Yonker2015-10-161-2/+2
| | | | Change-Id: Iacd4bb78f551b51d092ecde09521b5541e7dadcd
* Make system read only show no matter what on first TWRP bootEthan Yonker2015-07-141-1/+1
| | | | | | | | | | | | | | Initial value for tw_mount_system_ro is now 2. If the value of tw_mount_system_ro is 2 during boot, then we will show the system read only prompt and ignore the value from the lifetime writes check. Note: Changed the value of FILE_VERSION which will trigger the data manager to throw out previous settings and start with default values so that existing TWRP users will get the prompt at least once. Change-Id: I447767b64617f855156a19a5dc15c4ece6dff7b8
* Fix unable to uncheck the mount read only check boxEthan Yonker2015-05-301-12/+9
| | | | Change-Id: I1bbc25df6f35f79549f1eb06feb4db9ec0475aa5
* Add resize2fs and ability to run resize2fs via GUIEthan Yonker2015-05-281-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | Note: Only works on ext2/3/4 partitions. Only tested on ext4. We can use this in some cases to resize the data partition if an incorrect fstab caused recovery to not reserve the 16KB for a crypto footer. Sometimes the BoardConfig for a custom ROM does not have the correct size for the system partition and if the ROM flashes a raw system image, that image will not take up the full block device. Running resize2fs can fix the size and may allow more room in the system partition for customizations like busybox or a larger gapps package. Sometimes flashing a factory image may flash userdata with an image with a file system that does not take up the full size of the block device (e.g. factory images for the Nexus 6 will flash userdata with a ~24GB userdata image, wasting ~30GB of space). Using resize2fs we can easily fix this issue without having to do a full format data. Change-Id: I631f5c6f567bbc6a9241e5dd95f1e435820a1b13
* Mount system as read-only by defaultEthan Yonker2015-05-271-0/+113
| | | | | | | | | | | | | | Mounting system as rw can prevent future OTA updates. The purpose of this patch set is to prevent TWRP from mounting sytem as rw on the first boot. Device maintainers should update their twrp.fstab files on these devices to include an additional line: /system_image emmc /dev/block/../system This line will allow TWRP to create a raw system image backup to ensure that the user can return to an original state for future OTA updates. Change-Id: I8929d85bc3a5b96cc564bc7f734b58d5612ec833
* gui: add DST rules to time zones for USA and Europethat2015-03-251-7/+7
| | | | | | | This should fix daylight saving time display for most users. For fully correct time zones we need the tzdata database. Change-Id: I7b7693ab0abaf20be217bd06d525f03fb89b7217
* Fix non-working "Do Not Install" button on "installsu" page.codelover2015-03-191-1/+1
| | | | | | | * Applicable to non-rooted devices running portrait mode only. * Touching the button has no effect, supposed to reboot/poweroff. Change-Id: If67649c4c83ddf549c833f94c66829e0877969c5
* Add UI for entering pattern for device decryptionVojtech Bocek2015-03-131-0/+40
| | | | | Change-Id: Ia2d3268a96423e9ca3846500c57e674c4f8fa60b Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Reduce themes to 5 and rely on scalingEthan Yonker2015-03-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will significantly reduce theme maintainence and should be a lot more sustainable over time. Eliminate most themes leaving only 5 remaining in 3 categores: * watch_mdpi: 320x320 * portrait_mdpi: 480x800 * portrait_hdpi: 1080x1920 * landscape_mdpi: 800x480 * landscape_hdpi: 1920x1200 Add handling to map the old DEVICE RESOLUTION to the new TW_THEME build flag. New devices should specify a theme using the new TW_THEME build flag using one of the 5 values from the list above. Long term we will eliminate the use of the DEVICE_RESOLUTION flag in favor of the new flag. Change the way sliders render so that they completely follow the placement="5". This will probably break some custom themes but is necessary so that we can retain the aspect ratio on slider images and still have them rendered at the center of the screen. Add code to the console slideout button so that it can be centered. Centering the slideout button allows us to keep the button at the center of the screen when retaining aspect ratios on the image. Add more retain aspect ratios for home, back, slideout, folder, file, and lock screen images. Change the way we build the top bar in TWRP. It is now mostly drawn using fill objects and the TWRP logo is a separate image so that we can retain its aspect ratio during scaling. Thanks to Mark Norelus for providing the TWRP logo. Change-Id: I801a7b3163cad9ef353461f4c327690a9ccbb3aa
* gui: kinetic scrolling for consolethat2015-03-051-0/+1
| | | | | | | | | - Rebase console on ScrollList - Add fastscroll bar to console - ScrollList now has a mode that ignores selections - Increase kinetic scrolling speed for lists showing many items Change-Id: I6298d717d2e403f3e85e2c633d53c4284a066012
* GUI: Terminal command: minor improvementsMatt Mower2015-03-051-0/+1
| | | | | | | * Use mono font for terminal command input * Recognize 'exit' command (go to main page) Change-Id: I5f383cd8d19959a49d2ae0b18f839b86e4145693
* GUI: Use valid XML syntaxMatt Mower2015-03-051-15/+15
| | | | | | | | | | | | | Safer handling: & --> &amp; > --> &gt; < --> &lt; Broken tags: </function> --> </action> <folders="1"...> --> <filter folders="1"...> Change-Id: Iaddaf9db163e08250cb4deefdfdb814c589ccb47
* GUI: Restore text input field for restore decryptMatt Mower2015-02-251-0/+1
| | | | | | | The portrait placement was mistakenly removed in commit I6e314efb4bb454d496555ff7e003d743063a1308 Change-Id: Ida5f908e61df0f99e0f5327c298e6a1a915d0f66
* Theme: Add ability to disable size checking before backupbigbiff2015-02-231-0/+8
| | | | | | | | | | (for compressed backup users with low space). Clean up backup folder and copy only recovery.log for debugging. Conflicts: gui/devices/watch/res/watch.xml Change-Id: If8aa3580dbc082d0fe4882d4af8dc3cdb362a8b5
* GUI: Support styles in xml to reduce xml file sizeEthan Yonker2015-02-211-919/+280
| | | | | | | Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308
* Add cancel backup capability.bigbiff2015-01-271-0/+23
| | | | | | | | | | | This will stop the iteration of the partition objects, kill the current twrpTar thread and remove the backup directory. Implement TWAtomicInt class to give us a wrapper that automatically uses mutexes before the read and write to help ensure that the reads and writes will be atomic based on documentation. Change-Id: I645b22bc980a292e9c7202acb24ffd22ebe68c63
* Allow for X and Y offsets in GUIEthan Yonker2015-01-091-2/+2
| | | | | | | | | | | | | | These can be used to center a lower resolution theme onto a higher resolution screen. May be useful for Nexus 9 unless or until we decide to do a 1536x2048 theme or on devices like the Moto 360 and LG G Watch R. The build flags will only affect the stock theme. If a custom theme wishes to apply an offset, it can be done by setting tw_x_offset and / or tw_y_offset in the variables section of the XML. Change-Id: I2390769ed861b96a4a3bb8a0f06d9021ec91b6b9
* Allow flashing of images via the GUIEthan Yonker2015-01-091-0/+161
| | | | | | | | | | | - Use the Images... button in the lower right of the zip install page - Unify image flashing functions between restore and image flash - boot and recovery partitions are flashable by default - use fstab flag flashimg=1 or 0 to override defaults - file system partitions are currently not flashable Change-Id: I822dc446030543c55d2153e219d67a1292374ffc
* fixPermissions: simplify code, fix bugsthat2014-12-221-10/+69
| | | | | | | | | | | | | | | | | | | | | | | - avoid parsing permission strings - fix memory leaks, a fix new/free mismatch and a compiler warning - fix that only first updated-package was processed - fix a potential stack overflow if packages.xml is huge - minor refactoring for reducing duplicated code - don't process packages without codePath - fix path for deleting app data (currently unused anyway) - fix file ownership on libs - try not to mess up Android 5.0 app permissions Patch set 4 - make fixing SELinux contexts an option with a check box - add some notes / text to the themes Patch set 6 - decouple "fix permissions" from "fix contexts" Change-Id: Icc77ecc581befc5ce6e419b1f3b8ca189208c234
* Allow non datamedia devices to wipe encryptionEthan Yonker2014-12-211-4/+25
| | | | | | | | | | | | | With 5.0 L, we decrypt automatically if the default_password is used. Non datamedia devices do not get the format data button so they cannot wipe encryption off the device. This patch add a wipe encryption button where the format data button would normally be located on the Wipe page. This patch also attempts to remove / delete the dm-crypt block device before formatting. Change-Id: I100d5d154d6c49254fd48e23279df973db5f23ae
* Fix placement of Android Secure and SD-EXT on wipe pageCaptain Throwback2014-10-201-11/+11
| | | | Change-Id: Iac1c13b38df2ac66106abcda7c9d171a1549b65f
* Update reference to 24-hour clockCaptain Throwback2014-10-141-1/+1
| | | | Change-Id: Ic864fae4fda9707fc84d6d8b33587863b7664e1e
* Refresh partition details after changing file systemDees Troy2014-09-031-6/+26
| | | | Change-Id: I24f3c8587f778c4f0ef43737243c8378a3fd0e00
* add mtp responder to TWRP.bigbiff bigbiff2014-09-031-0/+28
| | | | | | Big thanks to Dees_Troy for helping with the implementation. Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
* Support reading since_epoch and secondary brightness filesxNUTx2014-08-101-1/+1
| | | | | | | | | | | | | | | TWFunc::Fixup_Time_On_Boot: Will now try to read /sys/class/rtc/rtc0/since_epoch to correct time, if that fails it will try to use the ats files to correct time. TWFunc::Set_Brightness: One single function to set brightness from both the automated functions and the gui actions. It is able to set a second brightness path if present, it will set them both the same value. Many Sony devices have 2 brightness files in the sysfs that must be set to properly set the brightness. Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca
* add 1440x2560 theme to TWRPbig biff2014-07-291-1/+1
| | | | | | | | | | | Based on work by Chris Phelps <cphelps76@droidconcepts.com> https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/58963336b81ea8bcc03b8d7e4dfe4598f5afc972 https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/4ec10303cb76592044c3aa449dc68a33356a6e09 https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/c48bd2412332916eafd0db727d923c8c16cd35ed https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/f0944ded30e98917ca85db0185add1207ea5f4b6 But with other original changes too. Change-Id: I809a37a3983187e62568a1e2403b6637a692220d
* Revert "add 1440x2560 theme to TWRP"Dees Troy2014-07-291-1/+1
| | | | | | This reverts commit c45181db0902762fb670b56a173db7c331e564cb. Change-Id: I9dfb2733d9eb30c32bc1e307e382ee8e4e47a0b6
* add 1440x2560 theme to TWRPbigbiff bigbiff2014-07-281-1/+1
| | | | Change-Id: I9e54d2bcfe89e1e0e3205ce2f4156cfd22dca5b5
* Allow ui.xml to include additional xml files to readEthan Yonker2014-07-281-0/+3887
Use common portrait and landscape xml files based on resolution defined by the device. Change-Id: Iec528f9d846d49857ff98de1ac201e25dbb60339