Skip to content

Commit

Permalink
surya: commonize ota fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rxuglr committed Sep 25, 2023
1 parent 92d186f commit e91ad46
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#
# Copyright 2018 The Android Open Source Project
# Copyright 2014-2022 The Team Win LLC
# Copyright 2014-2023 The Team Win LLC
#
# SPDX-License-Identifier: Apache-2.0
#

LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),surya)
include $(call all-subdir-makefiles,$(LOCAL_PATH))

# Hack some props to allow stock ROM flashing
BOARD_RECOVERY_IMAGE_PREPARE := \
sed -i 's/ro.product.board=.*/ro.product.board=surya/' $(TARGET_RECOVERY_ROOT_OUT)/prop.default; \
sed -i 's/ro.bootimage.build.date.utc=.*/ro.bootimage.build.date.utc=0/' $(TARGET_RECOVERY_ROOT_OUT)/prop.default; \
sed -i 's/ro.build.date.utc=.*/ro.build.date.utc=0/' $(TARGET_RECOVERY_ROOT_OUT)/prop.default;
sed -i 's/ro.product.board=.*/ro.product.board=surya/' $(TARGET_RECOVERY_ROOT_OUT)/prop.default;
endif

0 comments on commit e91ad46

Please sign in to comment.