tablet: Enable desktop windowing mode
* This replaces the old freeform window management Change-Id: I8711af4d90662252a37bc717590d35651460ad25
This commit is contained in:
@@ -6,7 +6,3 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
|||||||
|
|
||||||
# Tablet-specific overlay
|
# Tablet-specific overlay
|
||||||
PRODUCT_PACKAGE_OVERLAYS += vendor/lineage/overlay/tablet
|
PRODUCT_PACKAGE_OVERLAYS += vendor/lineage/overlay/tablet
|
||||||
|
|
||||||
# Freeform window management
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
frameworks/native/data/etc/android.software.freeform_window_management.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.software.freeform_window_management.xml
|
|
||||||
|
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
** Copyright 2009, The Android Open Source Project
|
||||||
|
**
|
||||||
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
** you may not use this file except in compliance with the License.
|
||||||
|
** You may obtain a copy of the License at
|
||||||
|
**
|
||||||
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
**
|
||||||
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
** See the License for the specific language governing permissions and
|
||||||
|
** limitations under the License.
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
|
<!-- Whether desktop mode is supported on the current device -->
|
||||||
|
<bool name="config_isDesktopModeSupported">true</bool>
|
||||||
|
</resources>
|
@@ -17,5 +17,6 @@ aconfig_value_set {
|
|||||||
name: "aconfig_value_set-lineage-ap4a",
|
name: "aconfig_value_set-lineage-ap4a",
|
||||||
values: [
|
values: [
|
||||||
"aconfig-values-ap4a-com.android.server.notification-all",
|
"aconfig-values-ap4a-com.android.server.notification-all",
|
||||||
|
"aconfig-values-ap4a-com.android.window.flags-all",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
21
release/aconfig/ap4a/com.android.window.flags/Android.bp
Normal file
21
release/aconfig/ap4a/com.android.window.flags/Android.bp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// Copyright 2024 Google Inc. All rights reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
aconfig_values {
|
||||||
|
name: "aconfig-values-ap4a-com.android.window.flags-all",
|
||||||
|
package: "com.android.window.flags",
|
||||||
|
srcs: [
|
||||||
|
"*_flag_values.textproto",
|
||||||
|
]
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
flag_value {
|
||||||
|
package: "com.android.window.flags"
|
||||||
|
name: "enable_desktop_windowing_mode"
|
||||||
|
state: ENABLED
|
||||||
|
permission: READ_WRITE
|
||||||
|
}
|
Reference in New Issue
Block a user