clover: init: Build libinit for clover
This commit is contained in:
parent
5a514bfcf3
commit
1f15020db5
2 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue