Add a runtime overlay for config_enableDefaultNotes
This will allow developers to force enabling the Notes role to test note-taking integrations when the notes role is not enabled by default. Bug: 276432652 Test: manual, enable overlay using adb shell and see if it works Change-Id: Ie4fc684526512d599590646af23f130c2f4df92a
This commit is contained in:
@@ -56,6 +56,9 @@
|
||||
<install-in-user-type package="com.android.internal.systemui.navbar.transparent">
|
||||
<install-in user-type="FULL" />
|
||||
</install-in-user-type>
|
||||
<install-in-user-type package="com.android.role.notes.enabled">
|
||||
<install-in user-type="FULL" />
|
||||
</install-in-user-type>
|
||||
<install-in-user-type package="com.android.theme.color.amethyst">
|
||||
<install-in user-type="FULL" />
|
||||
<install-in user-type="PROFILE" />
|
||||
|
||||
@@ -32,6 +32,7 @@ LOCAL_REQUIRED_MODULES := \
|
||||
NavigationBarModeGesturalOverlayWideBack \
|
||||
NavigationBarModeGesturalOverlayExtraWideBack \
|
||||
TransparentNavigationBarOverlay \
|
||||
NotesRoleEnabledOverlay \
|
||||
preinstalled-packages-platform-overlays.xml
|
||||
|
||||
include $(BUILD_PHONY_PACKAGE)
|
||||
|
||||
30
packages/overlays/NotesRoleEnabledOverlay/Android.bp
Normal file
30
packages/overlays/NotesRoleEnabledOverlay/Android.bp
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// Copyright 2023, 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.
|
||||
//
|
||||
|
||||
package {
|
||||
// See: http://go/android-license-faq
|
||||
// A large-scale-change added 'default_applicable_licenses' to import
|
||||
// all of the 'license_kinds' from "frameworks_base_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["frameworks_base_license"],
|
||||
}
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "NotesRoleEnabledOverlay",
|
||||
theme: "NotesRoleEnabled",
|
||||
product_specific: true,
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2023, 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.
|
||||
*/
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.role.notes.enabled"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:priority="1"/>
|
||||
|
||||
<application android:label="@string/notes_role_enabled_overlay_title" android:hasCode="false"/>
|
||||
</manifest>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2023, 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>
|
||||
<!-- Whether the default notes role should be enabled. In builds without
|
||||
device-specific overlays, this can be controlled in developer options. -->
|
||||
<bool name="config_enableDefaultNotes">true</bool>
|
||||
|
||||
<!-- Whether the default notes role for work profile should be enabled.
|
||||
In builds without device-specific overlays, this can be controlled in
|
||||
developer options. -->
|
||||
<bool name="config_enableDefaultNotesForWorkProfile">true</bool>
|
||||
</resources>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2019, 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">
|
||||
<!-- Name of overlay [CHAR LIMIT=64] -->
|
||||
<string name="notes_role_enabled_overlay_title" translatable="false">Notes Role enabled</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user