From 0ce7d0d07ac169f24b1a7db6909425111180a385 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Wed, 17 Aug 2022 13:55:16 -0400 Subject: [PATCH] init_gsi: Stop spoofing the SPL property This is the AOSP branch, and we no longer really want to do the spoofing for SN right now. We don't have the framework-side SPL spoofing anyway. --- init/init_gsi.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/init/init_gsi.cpp b/init/init_gsi.cpp index c910fb7..f566245 100644 --- a/init/init_gsi.cpp +++ b/init/init_gsi.cpp @@ -40,8 +40,6 @@ 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", ""); - string spl_orig = base::GetProperty("ro.build.version.security_patch", ""); for (const auto& source : RO_PROP_SOURCES) { override_ro_prop("ro.product", source, "device", device); @@ -54,8 +52,6 @@ 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); - override_ro_prop("ro", "", "build.version.real_security_patch", spl_orig); } int main(int argc, char **argv) {