Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Launcher: the key services subscribe to no accessibility events

Riku Pirttinokkaba411c1075a6
diff --git a/launcher/app/src/main/res/xml/home_key_service.xml b/launcher/app/src/main/res/xml/home_key_service.xml
index 2921be72d..7aaf1ee8a 100644
--- a/launcher/app/src/main/res/xml/home_key_service.xml
+++ b/launcher/app/src/main/res/xml/home_key_service.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
+<!-- Keys only: no accessibilityEventTypes (0), so the system never calls into the launcher for
+ accessibility events, which both services ignore. Key filtering depends only on
+ flagRequestFilterKeyEvents and canRequestFilterKeyEvents, not on the event types. -->
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
- android:accessibilityEventTypes="typeWindowStateChanged"
android:accessibilityFeedbackType="feedbackGeneric"
android:accessibilityFlags="flagRequestFilterKeyEvents"
android:canRequestFilterKeyEvents="true"
diff --git a/launcher/app/src/main/res/xml/input_key_service.xml b/launcher/app/src/main/res/xml/input_key_service.xml
index 52eab154e..0ae67d19a 100644
--- a/launcher/app/src/main/res/xml/input_key_service.xml
+++ b/launcher/app/src/main/res/xml/input_key_service.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
+<!-- Keys only: no accessibilityEventTypes (0), so the system never calls into the launcher for
+ accessibility events, which both services ignore. Key filtering depends only on
+ flagRequestFilterKeyEvents and canRequestFilterKeyEvents, not on the event types. -->
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
- android:accessibilityEventTypes="typeWindowStateChanged"
android:accessibilityFeedbackType="feedbackGeneric"
android:accessibilityFlags="flagRequestFilterKeyEvents"
android:canRequestFilterKeyEvents="true"