clover: init: Build libinit for clover

This commit is contained in:
Max Weffers 2018-10-18 15:30:15 +02:00
parent 5a514bfcf3
commit 1f15020db5
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE
2 changed files with 6 additions and 7 deletions

View file

@ -25,6 +25,10 @@ BOARD_VENDOR_PLATFORM := xiaomi-sdm660
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Vendor init
TARGET_INIT_VENDOR_LIB := libinit_clover
TARGET_RECOVERY_DEVICE_MODULES := libinit_clover
# Manifest
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml

View file

@ -88,18 +88,13 @@ static void init_alarm_boot_properties()
void vendor_load_properties()
{
std::string platform;
std::string hw_device;
platform = GetProperty("ro.board.platform", "");
if (platform != ANDROID_TARGET)
return;
hw_device = GetProperty("ro.board.variant", "");
if (hw_device.compare("d9")) {
property_override_dual("ro.product.model", "ro.vendor.product.model", "MI PAD 4");
property_set ( "ro.vendor.product.model", "MI PAD 4");
} else if (hw_device.compare("d9p")) {
property_override_dual("ro.product.model", "ro.vendor.product.model", "MI PAD 4 PLUS");
property_set ( "ro.vendor.product.model", "MI PAD 4 PLUS");
}
init_alarm_boot_properties();