Add devinputjack overlay

This commit is contained in:
Pierre-Hugues Husson 2018-05-26 13:33:04 +02:00
parent 19f71681a4
commit 302a3f2afd
4 changed files with 22 additions and 0 deletions

7
DevInputJack/Android.mk Normal file
View File

@ -0,0 +1,7 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-devinputjack
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
include $(BUILD_PACKAGE)

View File

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.devinputjack"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="persist.sys.overlay.devinputjack"
android:requiredSystemPropertyValue="true"
android:priority="6"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
</resources>

View File

@ -4,6 +4,7 @@ PRODUCT_PACKAGES += \
treble-overlay-NightMode \
treble-overlay-Telephony-LTE \
treble-overlay-SystemUI-FalseLocks \
treble-overlay-devinputjack \
HardwareOverlayPicker \
QtiAudio \
Touchscreen