Files
device_xiaomi_stone/libinit/include/libinit_variant.h
Ramii Ahmed d0b913a0b4 sm6375-common: libinit: Adjust detection prop to better suite xiaomi sm6375 devices
* Xiaomi devices on SM6375 platform use ro.boot.board_id to identify different SKU's, let's mirror miui in that
* but it also hardcodes fingerprints based on region, we can recreate the same effect by using the region prop ro.boot.hwc

Change-Id: I00dd84979db6066ad18bc36b619795de751925f8
2022-09-04 13:00:13 +00:00

32 lines
609 B
C++

/*
* Copyright (C) 2021 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBINIT_VARIANT_H
#define LIBINIT_VARIANT_H
#include <string>
#include <vector>
typedef struct variant_info {
std::string hwc_value;
std::string model_value;
std::string brand;
std::string device;
std::string marketname;
std::string model;
std::string name;
std::string build_fingerprint;
bool nfc;
} variant_info_t;
void search_variant(const std::vector<variant_info_t> variants);
void set_variant_props(const variant_info_t variant);
#endif // LIBINIT_VARIANT_H