summaryrefslogtreecommitdiffstats
path: root/gui/Android.mk (follow)
Commit message (Collapse)AuthorAgeFilesLines
* do not include stlport headers unless link to itXing2015-12-231-1/+5
| | | | Change-Id: I8344d270ddb601694b5fef0fa7b22ea437030728
* Multiple Language SupportEthan Yonker2015-12-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | 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
* gui: stock theme reworkz31s1g2015-12-191-1/+1
| | | | | | | | | 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
* GUI TextBoxEthan Yonker2015-10-261-1/+2
| | | | | | | | | | | | Allows the GUI to create a scrollable text box for long text that may not all fit on the screen. Also includes code to allow the console to wrap on spaces and other such characters instead of wrapping in the middle of a word. To see an example of how to add a text box to the XML, see: https://gerrit.omnirom.org/#/c/14183/ Change-Id: Ifd139172ede290046b58ea3fe526e2e06da1d4ef
* Remove support for non-TTF fontsEthan Yonker2015-10-151-12/+1
| | | | | | | | | | | This patch set removes support in TWRP for the old .dat file format as well as support for the AOSP style fonts in header files. We need TTF for scaling. Note that the old AOSP style header font is still supported in minui which is not used by TWRP. Change-Id: I6124a3333d479f1fc668138f7e32c4be9b519552
* Merge up to AOSP marshmallow-releaseEthan Yonker2015-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to maintain compatibility with older trees, we now have minadbd.old and minui.old. I had to use a TARGET_GLOBAL_CFLAG to handle ifdef issues in minui/minui.d because healthd includes minui/minui.h and there was no other alternative to make minui.h compatible with older trees without having to modify healthd rules which is outside of TWRP. Note that the new minui does not currently have support for qcom overlay graphics. Support for this graphics mode will likely be added in a later patch set. If you are building in a 6.0 tree and have a device that needs qcom overlay graphics, be warned, as off mode charging may not work properly. A dead battery in this case could potentially brick your device if it is unable to charge as healthd handles charging duties. Update rules for building toolbox and add rules for making toybox Use permissive.sh in init.rc which will follow symlinks so we do not have to worry about what binary is supplying the setenforce functionality (toolbox, toybox, or busybox). Fix a few warnings in the main recovery binary source code. Fix a few includes that were missing that prevented compiling in 6.0 Change-Id: Ia67aa2107d260883da5e365475a19bea538e8b97
* gui: support new theme directory structurethat2015-07-271-10/+26
| | | | Change-Id: I8622da5ae321ba69a55b38e2f0b878b7ec149d02
* Add UI for entering pattern for device decryptionVojtech Bocek2015-03-131-1/+2
| | | | | Change-Id: Ia2d3268a96423e9ca3846500c57e674c4f8fa60b Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Allow touch to use a key code to sync touch eventsEthan Yonker2015-03-131-2/+5
| | | | | | | | This is needed to make touch work on the x86-64 emulator target though I have seen the key code used on other devices as a way to synchronize touch events. Change-Id: I31a3cc56e6470f2c707641b537140e44f5e686aa
* Reduce themes to 5 and rely on scalingEthan Yonker2015-03-131-41/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Scale the GUI to fit the screenEthan Yonker2015-02-101-0/+3
| | | | | | | | | | | | With this patch set, if needed, we scale the images during early boot. TTF support is needed to properly scale the font. No font scaling is done on the old style fixed width font used in the console. Special thanks to _that for figuring out the scaling and blending function calls to make this possible. Change-Id: If2f79bef16d6db2e1298bfc3d00c9bcca2bee37a
* Unify scrollable list codeEthan Yonker2015-02-051-1/+2
| | | | | | | | | | The goal of this patch set is to eliminate the code duplication caused by copy/paste of the code in the file selector, listbox, and partition list GUI elements. Those classes will now utilize a single GUIScrollList class that will handle rendering and scrolling. Change-Id: I0cb98ab36cf47178296034293435225658c779cd
* Use /twres instead of /res for theme resourcesDees Troy2015-01-221-9/+10
| | | | | | | | | AOSP and other ROM trees now do a rm -rf of the res folder during the ramdisk creation process that removes the TWRP resources. Using /twres instead of /res works around this issue making TWRP more compatible with AOSP and other build trees. Change-Id: I0d4c7e06ca381ac5aa0069b6f2b8c47f7dec49e7
* Allow for X and Y offsets in GUIEthan Yonker2015-01-091-0/+6
| | | | | | | | | | | | | | 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
* gui: remove dead build flag TWRP_SIMULATE_ACTIONSthat2015-01-011-6/+0
| | | | | | isn't used by the code, can be set via datamanager instead. Change-Id: I3d98c85c91ce41f32de90345715f2f456f628419
* gui: fix DEVICE_RESOLUTION warnings in Android.mkthat2014-12-291-12/+12
| | | | | | | | | | | Indenting the warnings with tab resulted in a make error "*** commands commence before first target. Stop." instead of the intended message. Using spaces instead. Also fixed the web link to point to the current build guide on XDA instead of the outdated one on rootzwiki. Change-Id: I8b25d39edae16dbc479c0e36bd11e12b49b4fbb0
* Attempt to set the proper uid/gid/contexts on new files and dirsEthan Yonker2014-12-121-1/+1
| | | | | | | | | | Files and folders that we create during backups, copy log, or MTP operations often do not have the proper uid/gid/contexts assigned. We will attempt to read the proper contexts from the settings storage path and assign those same contexts to any files or dirs that we create. Change-Id: I769f9479854122b49b499de2175e6e2d026f8afd
* Use one mizip for allEthan Yonker2014-12-101-5/+0
| | | | | | | | | | | | The new minzip did not compile in older trees due to needing mmap64. For older trees we will just use mmap instead. Remove all files and code pertaining to minzipold. Updater should now build properly in older trees as well. Eliminate use of PLATFORM_VERSION in favor of PLATFORM_SDK_VERSION which should be more consistent and reliable. Change-Id: I38d2b604a73d1b17a2072c7d60e990b81ece0c10
* bootable recovery: we upgraded to 5.0.1erikcas2014-12-031-1/+1
| | | | Change-Id: I9e2f359dd7274e1ae885f6a3b392d5ab5ca99ac9
* Make the android-5.0 branch compile in 4.4 to 4.1Ethan Yonker2014-12-021-0/+5
| | | | | | | | | | | | | Migrate previous minzip to minzipold replacing the existing minzipold. This will break compatibility with trees that do not support selinux (ICS and older). Migrate former verifier files to verifierold. Add fuse.h to recovery source because older trees do not have it. Add LOCAL_MODULE_TAGS where needed for 4.1 tree. Change-Id: Iade57cb2b0115af7fce9f56aa98636b1744a1ef4
* Make TWRP compile for arm64Ethan Yonker2014-11-121-0/+2
| | | | | | | | | | | | | | | | -Remove dosfstools for arm64 until we can make it compile -Fix TW_USE_TOOLBOX flag to work again -Fix symlinking and handling of sh when using mksh -Fix legacy properties to find futex_wake function -Fix libcrecovery to not use bsd_signal anymore -Fix rules for building with regards to libcrecovery -Update toolbox_recovery rules to compile tools in lollipop -Fix a few compile errors specific to arm64 Testers report that TWRP does not boot on Nexus 9 and we fail to get a shell for adb shell. At least it compiles without errors. Change-Id: I286be8628defb60cc527b8a548c0bdfcb0ebb574
* Make custom themes work againEthan Yonker2014-11-081-1/+1
| | | | Change-Id: Ib9ad011428603979f7dd8a2708989feb9b13e075
* gui: Disable unnecessary checks if TW_CUSTOM_THEME is definedHandyMenny2014-10-201-6/+8
| | | | | | if TW_CUSTOM_THEME is defined there's no need to check if $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION) exist. Change-Id: I234374eb1db187758102ca64884a94a81c938b54
* Add support for TrueType fontsVojtech Bocek2014-10-141-0/+11
| | | | | | | | | | | | | * Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Attempt to automatically identify data/media devicesEthan Yonker2014-09-201-6/+0
| | | | Change-Id: Ia3007fbced9ce3bc94efdb3dacc582a5e68a49a4
* Build block TWRP with RECOVERY_VARIANTMatt Mower2014-09-031-2/+2
| | | | | | | | | | | | | Enable TWRP to reside alongside other recoveries with the naming convention: bootable/recovery(-flag). If TWRP resides at bootable/recovery and a device does not specify RECOVERY_VARIANT, then it will build like normal. If TWRP resides at bootable/recovery-twrp, then its makefiles will only be parsed if a device specifies 'RECOVERY_VARIANT := twrp'. This prevents TWRP specific makefile warnings/errors (notably, missing DEVICE_RESOLUTION) when another recovery is being built. Change-Id: I8f02fffcd79c309c7123b9428eedc69af02e126e
* add mtp responder to TWRP.bigbiff bigbiff2014-09-031-1/+1
| | | | | | Big thanks to Dees_Troy for helping with the implementation. Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
* Add 320x320 theme and split out watch.xml for square watch layoutEthan Yonker2014-07-301-0/+3
| | | | Change-Id: I7fe38b20913a981942105637a527a2d26ed035a5
* add 1440x2560 theme to TWRPbig biff2014-07-291-2/+4
| | | | | | | | | | | 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-4/+2
| | | | | | This reverts commit c45181db0902762fb670b56a173db7c331e564cb. Change-Id: I9dfb2733d9eb30c32bc1e307e382ee8e4e47a0b6
* add 1440x2560 theme to TWRPbigbiff bigbiff2014-07-281-2/+4
| | | | Change-Id: I9e54d2bcfe89e1e0e3205ce2f4156cfd22dca5b5
* Allow ui.xml to include additional xml files to readEthan Yonker2014-07-281-0/+7
| | | | | | | Use common portrait and landscape xml files based on resolution defined by the device. Change-Id: Iec528f9d846d49857ff98de1ac201e25dbb60339
* GUI: Add -fno-strict-aliasing to GUI for VanirMotorhead19912014-06-301-0/+2
| | | | Change-Id: Id772737d2856698861686671152f14bad800cd5c
* Make blank timer read brightness path from data managerEthan Yonker2014-04-161-8/+0
| | | | | | | | | After implementing the find_file class, the blank timer code needed to be updated to pull the brightness path from the data manager instead of using the build flag to ensure that we use the proper path for brightness. Change-Id: I084983ac0bd68b2fcdd69b93c2d18e2862ba0c77
* Allow device files to specify a custom themeEthan Yonker2014-04-151-3/+8
| | | | Change-Id: I360f93e70c6a48eed502a5aacd6d8d654ca7b570
* Improve handling of shell symlink in recovery ramdiskEthan Yonker2014-04-151-11/+6
| | | | Change-Id: I06351f8ecdfe5b119bbae0d6800258adef844c66
* Add option to build TWRP with toolbox instead of busyboxEthan Yonker2014-04-041-0/+11
| | | | | | | Makes a smaller TWRP Uses mksh for shell Change-Id: If78d7745dda8919fcb2e9c9b60c6696063c14114
* Allow building of an OEM friendly TWRPEthan Yonker2014-04-041-0/+3
| | | | | | | | Disable theming Disable creating the TWRP folder for the settings file Change factory reset on data/media devices to a full wipe Change-Id: I3104282b5dd3f55dfff7c8cf39c72750af08563d
* Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek2014-02-121-1/+1
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
* Implement mouse cursorVojtech Bocek2014-02-071-1/+2
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
* Add check for making sure theme exists for devicebigbiff bigbiff2013-11-161-1/+9
| | | | Change-Id: I9b178cebbb2834cd0c86088c8e78678f55d14e62
* Add warning if DEVICE_RESOLUTION is not set in BoardConfig.mkbigbiff bigbiff2013-11-161-0/+8
| | | | Change-Id: Ifc71c2e2078dbcd4b4893205bea9988e1e129f83
* Kang in older minzip for building in CM9 & CM7Dees Troy2013-09-101-0/+3
| | | | CM7 and CM9 do not have libselinux needed in the newer minzip.
* Add a TW_NO_TIMEOUT optionRicardo Gomez2013-08-251-0/+3
| | | | Change-Id: Ifb3a5bd9f1e6c2e9810c90b0aec198e91d5956fc
* Remove graphics.c from libguitwrpDees_Troy2013-08-221-2/+2
|
* Add new SliderValue GUI widgetVojtech Bocek2013-04-041-0/+6
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic5d44314f501341140dd7059d1cb753341f5844c
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-1/+1
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Add partition list GUI elementDees_Troy2013-03-301-0/+1
| | | | | | | | | | | | Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
* add no fb blankingbigbiff bigbiff2013-03-111-0/+3
| | | | Change-Id: Iaf771257d8f904807ca6f6c1a6c3d7993abadb85
* This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future.bigbiff bigbiff2013-02-131-1/+6
| | | | | | | | | | | | | | | Will also set overlay to lockscreen so we don't have inadvetent screen selections. Touching the screen will bring the display back up. add back check script for poweroff move diff time function to twrp-functions.cpp make sure we chmod after copy_file add read_file and write_file functions to twrp-functions.cpp make single thread try to force update screen add forceRender drop caches after tar processing Change-Id: I3c5c509dd39dbb05451bbfe5d8b56d53c90d8d1b
* Fix some derpsDees_Troy2012-09-281-0/+1
|
* Create symlinks at compile time for busyboxDees_Troy2012-09-271-1/+2
|
* Fix ext storage and zip pathsDees_Troy2012-09-191-0/+3
| | | | | | Fix a bug with handling external storage during boot. Check zip root path when switching storage and ensure that the path is in the new storage path to prevent user confusion.
* Add processing of fstab, mounting, and decryptDees_Troy2012-09-071-2/+1
|
* Hax to make it bootDees_Troy2012-09-061-1/+2
|
* TWRP-ify AOSP codeDees_Troy2012-09-051-0/+70
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere