init: override more SafetyNet-related props

This commit is contained in:
Peter Cai 2021-10-20 15:54:16 -04:00
parent 904988875f
commit c74448755d

View file

@ -40,6 +40,7 @@ void handle_device_model_props() {
string brand = base::GetProperty("ro.product.vendor.brand", "");
string manufacturer = base::GetProperty("ro.product.vendor.manufacturer", "");
string fingerprint = base::GetProperty("ro.vendor.build.fingerprint", "");
string spl = base::GetProperty("ro.vendor.build.security_patch", "");
for (const auto& source : RO_PROP_SOURCES) {
override_ro_prop("ro.product", source, "device", device);
@ -50,6 +51,9 @@ void handle_device_model_props() {
}
override_ro_prop("ro", "", "build.stock_fingerprint", fingerprint);
override_ro_prop("ro", "", "build.flavor", name + "-user");
override_ro_prop("ro", "", "build.tags", "release-keys");
override_ro_prop("ro", "", "build.version.security_patch", spl);
}
int main() {