overlay: enable desktop mode

* Also add required permission for freeform windows.
This commit is contained in:
Konsta
2025-11-13 02:13:41 +02:00
parent 3020cb6a51
commit b3f65b991a
2 changed files with 10 additions and 0 deletions

View File

@@ -16,6 +16,10 @@ PRODUCT_CHARACTERISTICS := tablet,nosdcard
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call enforce-product-packages-exist,com.android.ranging)
# Freeform windows
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.freeform_window_management.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.freeform_window_management.xml
# Keylayout
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/keylayout/Generic.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl

View File

@@ -121,4 +121,10 @@
<bool name="config_cecTvSendStandbyOnSleepEnabled_default">false</bool>
<bool name="config_cecTvSendStandbyOnSleepDisabled_default">true</bool>
<!-- Whether desktop mode is supported on the current device -->
<bool name="config_isDesktopModeSupported">true</bool>
<!-- Whether the developer option for desktop mode is supported on the current device -->
<bool name="config_isDesktopModeDevOptionSupported">true</bool>
</resources>