From 552671d36514dc5efa9818edeb7ffb6b9de93d76 Mon Sep 17 00:00:00 2001 From: Alcatraz323 Date: Fri, 14 Apr 2023 23:15:06 +0800 Subject: [PATCH] sdm660-common: vendor_init: make ro.setupwizard.rotation_locked always false * as rom with vendor_gms repo will set this as true and locks the orientation for setup * that is not so good for tablet type device * override this prop in vendor_init to make it always landscape available Signed-off-by: pix106 --- init/init_sdm660.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/init/init_sdm660.cpp b/init/init_sdm660.cpp index 288690ed..5e7de2f3 100644 --- a/init/init_sdm660.cpp +++ b/init/init_sdm660.cpp @@ -113,6 +113,7 @@ void vendor_load_persist_properties() { std::string hw_device; char const* hw_id_file = "/sys/devices/virtual/graphics/fb0/msm_fb_panel_info"; + property_override("ro.setupwizard.rotation_locked", "false"); property_override_triple("ro.product.name", "ro.product.system.name", "ro.product.vendor.name", "clover"); ReadFileToString(hw_id_file, &hw_device);