Set ro.sf.lcd_density
BUG: 77581055
Test: Local build & getprop
Change-Id: Id7cb74022fd6f81ae0d4954712719608aac772da
diff --git a/host/commands/launch/main.cc b/host/commands/launch/main.cc
index eb172b5..19bc897 100644
--- a/host/commands/launch/main.cc
+++ b/host/commands/launch/main.cc
@@ -65,6 +65,7 @@
"The size of the blank data image to generate, MB.");
DEFINE_string(blank_data_image_fmt, "ext4",
"The fs format for the blank data image. Used with mkfs.");
+DECLARE_int32(dpi);
DEFINE_bool(disable_app_armor_security, false,
"Disable AppArmor security in libvirt. For debug only.");
DEFINE_bool(disable_dac_security, false,
@@ -406,6 +407,7 @@
cmdline << t.rdbuf();
t.close();
cmdline << " androidboot.serialno=" << FLAGS_serial_number;
+ cmdline << " androidboot.lcd_density=" << FLAGS_dpi;
if (FLAGS_extra_kernel_command_line.size()) {
cmdline << " " << FLAGS_extra_kernel_command_line;
}