tablet: Enable desktop windowing mode

* This replaces the old freeform window management

Change-Id: I8711af4d90662252a37bc717590d35651460ad25
This commit is contained in:
Yumi Yukimura
2025-02-25 13:51:15 +08:00
parent b9ada12531
commit fac22bf279
5 changed files with 51 additions and 4 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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",
], ],
} }

View 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",
]
}

View File

@@ -0,0 +1,6 @@
flag_value {
package: "com.android.window.flags"
name: "enable_desktop_windowing_mode"
state: ENABLED
permission: READ_WRITE
}