TARGET_BOARD_PLATFORM := exynos5
TARGET_BOARD_PLATFORM_GPU := mali-g72
+PRODUCT_SOONG_NAMESPACES += device/motorola/troika
+TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0-impl.exynos
+
# Partitions
BOARD_FLASH_BLOCK_SIZE := 262144
defaults: ["hidl_defaults"],\r
relative_install_path: "hw",\r
vendor: true,\r
- recovery_available: true,\r
srcs: ["BootControl.cpp"],\r
\r
shared_libs: [\r
in.read(reinterpret_cast<char*>(&data), sizeof(bctl_metadata_t));\r
\r
if (!validateMetadata(data))\r
- return -1;\r
+ return false;\r
\r
return !in.eof() && !in.fail();\r
}\r
\r
bool BootControl::writeMetadata(bctl_metadata_t& data) {\r
if (!validateMetadata(data))\r
- return -1;\r
+ return false;\r
\r
// We use std::ios::in | std::ios::out even though we only write so that\r
// we don't truncate or append to the file, but rather overwrite the file\r
if (readMetadata(data)) {\r
active_slot = !data.slot_info[0].is_active;\r
\r
- data.slot_info[active_slot].boot_successful = 0;\r
+ data.slot_info[active_slot].boot_successful = 1;\r
data.slot_info[active_slot].tries_remaining = 0;\r
\r
if (success)\r
update_engine \
update_verifier
-PRODUCT_PACKAGES += \
- bootctrl.exynos9610
-
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
# Enable update engine sideloading by including the static version of the
# boot_control HAL and its dependencies.
PRODUCT_STATIC_BOOT_CONTROL_HAL := \
- bootctrl.exynos9610 \
libgptutils \
libz \
libcutils