stone: libinit: properly detect SoC

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
This commit is contained in:
Vedraj Gawas
2024-05-06 14:25:27 +05:30
committed by Arijit78
parent 422c71f91d
commit 11d81098a3
3 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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");

View File

@@ -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);
}