mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 18:07:31 +00:00
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2021 The LineageOS Project
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <libinit_dalvik_heap.h>
|
|
#include <libinit_variant.h>
|
|
|
|
#include "vendor_init.h"
|
|
|
|
static const variant_info_t maltose_info = {
|
|
.hwc_value = "",
|
|
.sku_value = "",
|
|
.vendor_sku_value = "maltose",
|
|
|
|
.brand = "Redmi",
|
|
.device = "maltose",
|
|
.marketname = "Redmi Note 10S",
|
|
.model = "M2101K7BL",
|
|
.build_fingerprint = "Redmi/maltose_global/maltose:12/SP1A.210812.016/V13.0.6.0.SKLMIXM:user/release-keys",
|
|
|
|
.nfc = false,
|
|
};
|
|
|
|
static const variant_info_t rosemary_info = {
|
|
.hwc_value = "",
|
|
.sku_value = "",
|
|
.vendor_sku_value = "rosemary",
|
|
|
|
.brand = "Redmi",
|
|
.device = "rosemary",
|
|
.marketname = "Redmi Note 10S",
|
|
.model = "M2101K7BNY",
|
|
.build_fingerprint = "Redmi/rosemary_global/rosemary:12/SP1A.210812.016/V13.0.6.0.SKLMIXM:user/release-keys",
|
|
|
|
.nfc = true,
|
|
};
|
|
|
|
static const variant_info_t secret_info = {
|
|
.hwc_value = "",
|
|
.sku_value = "",
|
|
.vendor_sku_value = "secret",
|
|
|
|
.brand = "Redmi",
|
|
.device = "secret",
|
|
.marketname = "Redmi Note 10S",
|
|
.model = "M2101K7BG",
|
|
.build_fingerprint = "Redmi/secret_global/secret:12/SP1A.210812.016/V13.0.6.0.SKLMIXM:user/release-keys",
|
|
|
|
.nfc = false,
|
|
};
|
|
|
|
static const std::vector<variant_info_t> variants = {
|
|
maltose_info,
|
|
rosemary_info,
|
|
secret_info,
|
|
};
|
|
|
|
void vendor_load_properties() {
|
|
search_variant(variants);
|
|
set_dalvik_heap();
|
|
}
|