summaryrefslogtreecommitdiffstats
path: root/bootloader.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge up to AOSP marshmallow-releaseEthan Yonker2015-10-091-0/+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
* | bootloader: align with AOSP codethat2015-05-181-152/+54
| | | | | | | | | | | | | | | | - Define a minimal Volume structure so that AOSP code for handling /misc works in TWRP without major changes. - Remove set/get_bootloader_message_*_name Change-Id: Ifcee59568141a184adebb94b8ef8beca072a7942
* | bootloader: fix crash with empty lines in /cache/recovery/commandthat2015-03-271-3/+9
| | | | | | | | | | | | | | | | | | original fix from commit 93ffa7579cd75d1bdb2d124aa5cc5f8b6025e3d8 copied to our code. Also fixed a whitespace issue in the same code block. Change-Id: I6396803659c6880cde4f2b2ef08efab5721c215d
* | Allow custom bootloader msg offset in block miscMatt Mower2014-07-161-0/+12
| | | | | | | | | | | | | | | | Use board define BOARD_RECOVERY_BLDRMSG_OFFSET with a decimal integer to define a custom offset where the bootloader message should be read/written. Change-Id: Id13a23dd41bb7d907b96d657b8e21eb839dfeaa9
* | Do not wipe block misc on bootloader msg updateMatt Mower2014-07-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | When set_bootloader_message_block() is called, it fopens /misc in write binary mode, wiping all contents other than what is being written. The bootloader msg structure is only 1024+32+32 bytes, so some manufacturers store more than just a bootloader msg on /misc. fopen in read+append mode so that only the bootloader msg is written and the rest of the partition is left untouched. Change-Id: I2d2fbdf067282744864a19d404ca7dc12f688a98
* | Update to latest AOSP masterDees_Troy2013-09-041-38/+106
|\| | | | | | | Merge in latest commits from AOSP master and fix merge conflicts
| * Move to using the new unified fstab in recovery.Ken Sumrall2013-02-201-21/+22
| | | | | | | | | | | | | | Instead of reading it's own fstab, have recovery invoke fs_mgr to read the unified fstab. Change-Id: I80c75d2c53b809ac60a4a69f0ef7ebfa707c39e9
* | Fix handling of AOSP recovery commandsDees_Troy2013-04-081-0/+72
| |
* | Move all AOSP code out of recovery binaryDees_Troy2013-04-041-2/+65
| | | | | | | | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* | TWRP-ify AOSP codeDees_Troy2012-09-051-0/+2
|/ | | | | | | 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
* turn recovery into a C++ binaryDoug Zongker2011-10-311-0/+202
Change-Id: I423a23581048d451d53eef46e5f5eac485b77555