diff options
| author | Greg Wallace <greg@gregtwallace.com> | 2017-03-08 19:09:57 -0500 |
|---|---|---|
| committer | Drgravy <drg113001@gmail.com> | 2017-03-15 17:53:24 -0500 |
| commit | 7f5010e8b86478733f4300a1fefe127126c54dcb (patch) | |
| tree | 9b458805d12ddbeb7a6c9d782a17e5b69d4152c9 | |
| parent | b9ea67860c3e9adc227ea753e64234e03f4cb003 (diff) | |
* Leverage BOOTLOADER OFFSET to avoid the bootloader's wipe command
that is written when entering recovery via the key combo.
Using key-combo to enter recovery causes the bootloader to write in
"recovery.--wipe_data" which starts at offset 64 and ends at offset 83.
Rather than start at a "strange" offset like 84, round up to 128.
NOTE: ROM and recovery BOTH need to have the same offset, or you'll
probably get stuck if you try to do an OTA.
Change-Id: I5b5c5b07eada187fca0f5e77e59d33ccb62c4c6b
| -rw-r--r-- | BoardConfigCommon.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 8af62d5..078e354 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -107,6 +107,7 @@ BOARD_USES_QCOM_HARDWARE := true BOARD_USES_QC_TIME_SERVICES := true # Recovery +BOARD_GLOBAL_CFLAGS := -DBOARD_RECOVERY_BLDRMSG_OFFSET=128 BOARD_NO_SECURE_DISCARD := true TARGET_RECOVERY_DENSITY := xhdpi TARGET_RECOVERY_FSTAB := device/lge/g2-common/rootdir/etc/fstab.g2 |
