AuxiliaryKeyHandler: package keyhandler overlay with app

We will already be specifying AuxiliaryKeyHandler as our keyhandler in overlay, so why don't we just do that by default?

Change-Id: Ib39f3840b3a4babb453609c1bc93d59101196274
This commit is contained in:
Anay Wadhera 2020-12-21 13:00:04 -08:00 committed by Jake Weinstein
parent a8b19ecf74
commit 7b0a436e00
4 changed files with 72 additions and 0 deletions

View File

@ -28,4 +28,7 @@ android_app {
enabled: false,
},
system_ext_specific: true,
required: [
"AuxiliaryKeyHandlerOverlay",
],
}

View File

@ -0,0 +1,19 @@
// Copyright (C) 2020 Paranoid Android
//
// 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.
runtime_resource_overlay {
name: "AuxiliaryKeyHandlerOverlay",
sdk_version: "current",
system_ext_specific: true,
}

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 Paranoid Android
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="co.aospa.device.overlay">
<overlay
android:isStatic="true"
android:priority="600"
android:targetPackage="android" />
</manifest>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 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>
<!-- Auxiliary keyhandler -->
<string-array name="config_deviceKeyHandlerLibs" translatable="false">
<item>/system/system_ext/priv-app/AuxiliaryKeyHandler/AuxiliaryKeyHandler.apk</item>
</string-array>
<string-array name="config_deviceKeyHandlerClasses" translatable="false">
<item>co.aospa.device.AuxiliaryKeyHandler</item>
</string-array>
</resources>