Recently Written · git

assistkey

Hardware key remapper for the Viwoods AiPaper Reader: AI key, volume keys and power, with multi-tap, hold and chords

git clone https://github.com/equwal/assistkey

Log | Files | Refs


app/src/main/res/xml/accessibility_service_config.xml (939 bytes)

1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3     flagRequestFilterKeyEvents plus canRequestFilterKeyEvents is the whole
4     point: without both, onKeyEvent is never called and no key can be
5     intercepted. Window content is needed only for the scroll action, and
6     gesture dispatch only for the synthetic page-turn swipes.
7 -->
8 <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
9     android:accessibilityEventTypes="typeWindowStateChanged"
10     android:accessibilityFeedbackType="feedbackGeneric"
11     android:accessibilityFlags="flagDefault|flagRequestFilterKeyEvents|flagReportViewIds|flagRetrieveInteractiveWindows"
12     android:canRequestFilterKeyEvents="true"
13     android:canPerformGestures="true"
14     android:canRetrieveWindowContent="true"
15     android:description="@string/service_description"
16     android:notificationTimeout="100"
17     android:settingsActivity="dev.equwal.assistkey.ui.MainActivity" />