Make simulate_stylus_with_touch debug property non-persistent
persist.debug.* properties persist across reboots, and require root
access or debuggable builds to set. On unrooted user builds, these
properties cannot be set.
Change the simulate_stylus_with_touch development feature to use a
non-persistent debug.* property so that it can be set on unrooted user
builds.
Bug: 309036663
Test: adb shell setprop debug.input.simulate_stylus_with_touch true
Change-Id: I7f20d977667c58a90b3842572c1ed9249e364cd8
diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop
index ec18e19..47375ad 100644
--- a/srcs/android/sysprop/InputProperties.sysprop
+++ b/srcs/android/sysprop/InputProperties.sysprop
@@ -16,13 +16,12 @@
owner: Platform
# A debug flag that converts all touch pointers to stylus pointers.
-# Requires a reboot to take effect.
prop {
api_name: "simulate_stylus_with_touch"
type: Boolean
scope: Internal
access: Readonly
- prop_name: "persist.debug.input.simulate_stylus_with_touch"
+ prop_name: "debug.input.simulate_stylus_with_touch"
}
# A flag to enable the new touchpad input mapper introduced in Android U, based around the ChromeOS