mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 16:47:35 +00:00
stone: libinit: properly detect SoC
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
This commit is contained in:
@@ -26,4 +26,6 @@ void search_variant(const std::vector<variant_info_t> variants);
|
||||
|
||||
void set_variant_props(const variant_info_t variant);
|
||||
|
||||
void set_soc_props();
|
||||
|
||||
#endif // LIBINIT_VARIANT_H
|
||||
|
||||
@@ -96,6 +96,7 @@ static const std::vector<variant_info_t> variants = {
|
||||
void vendor_load_properties() {
|
||||
set_dalvik_heap();
|
||||
search_variant(variants);
|
||||
set_soc_props();
|
||||
|
||||
// SafetyNet workaround
|
||||
property_override("ro.boot.verifiedbootstate", "green");
|
||||
|
||||
@@ -41,3 +41,8 @@ void set_variant_props(const variant_info_t variant) {
|
||||
property_override("ro.build.description", fingerprint_to_description(variant.build_fingerprint));
|
||||
}
|
||||
}
|
||||
|
||||
void set_soc_props() {
|
||||
std::string soc_name = GetProperty("ro.vendor.qti.soc_model", "");
|
||||
property_override("ro.soc.model", soc_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user