From 559757ea7bfe6d67886f5007c97bc0a3d15210cc Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Tue, 20 Jun 2017 10:12:17 +0800 Subject: [PATCH] Enable freeform window mode --- device.mk | 1 + overlay/frameworks/base/core/res/res/values/config.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/device.mk b/device.mk index 2c74cc3..3764464 100644 --- a/device.mk +++ b/device.mk @@ -70,6 +70,7 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ + frameworks/native/data/etc/android.software.freeform_window_management.xml:system/etc/permissions/android.software.freeform_window_management.xml \ frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \ $(foreach f,$(wildcard $(LOCAL_PATH)/alsa/*),$(f):$(subst $(LOCAL_PATH),system/etc,$(f))) \ diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 3789704..a5e0aae 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -74,4 +74,19 @@ orientation. Activities that desire to run in a non-compatible orientation will be run from an emulated display within the physical display. --> true + + + true + + + 1 -- 2.11.0