Make bluejay screen density and orientation configbleable

Bug: 249173167
Test: lunch aosp_bluejay_car-userdebug && make
Change-Id: I25c6e5f0e8136303fc65e9e3c626b0de76ad783f
diff --git a/bluejay_car/BoardConfig.mk b/bluejay_car/BoardConfig.mk
index 123fca7..8a09d9a 100644
--- a/bluejay_car/BoardConfig.mk
+++ b/bluejay_car/BoardConfig.mk
@@ -19,4 +19,4 @@
 #
 # * TARGET_SCREEN_DENSITY is scaled down by 1.75x
 
-TARGET_SCREEN_DENSITY := 240
+TARGET_SCREEN_DENSITY ?= 240
diff --git a/common/pre_google_car.mk b/common/pre_google_car.mk
index 7cb6379..6d5c59f 100644
--- a/common/pre_google_car.mk
+++ b/common/pre_google_car.mk
@@ -64,9 +64,11 @@
 
 PRODUCT_PACKAGE_OVERLAYS += device/google_car/common/overlay
 
-# Enable landscape
-PRODUCT_COPY_FILES += \
+ifneq ($(PORTRAIT_UI), true)
+        # Enable landscape
+        PRODUCT_COPY_FILES += \
             frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
+endif
 
 
 TARGET_USES_CAR_FUTURE_FEATURES := true