Add SPenPointerOverlay

Toggle this overlay with property "persist.sys.overlay.spen_pointer"
This commit is contained in:
Andy CrossGate Yan 2022-01-13 14:22:24 +00:00 committed by Alberto Ponces
parent 218189adb5
commit 20c16c04f6
5 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-misc-spen-pointer
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := 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.misc.spen_pointer"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="persist.sys.overlay.spen_pointer"
android:requiredSystemPropertyValue="true"
android:priority="8004"
android:isStatic="true" />
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
android:bitmap="@drawable/sem_pointer_spot_hovering_spen"
android:hotSpotX="5dp"
android:hotSpotY="5dp" />

View file

@ -83,6 +83,7 @@ PRODUCT_PACKAGES += \
treble-overlay-misc-aod-systemui \
treble-overlay-misc-dt2w \
treble-overlay-misc-minimal-brightness \
treble-overlay-misc-spen-pointer \
treble-overlay-moto-e5 \
treble-overlay-moto-e5plus \
treble-overlay-moto-e6plus \