Skip to content

Build without Accessibility service - #1

Merged
anr2me merged 2 commits into
mainfrom
access
Nov 18, 2026
Merged

anr2me merged 2 commits into
mainfrom
access

Conversation

@anr2me

@anr2me anr2me commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Prevent Google Play Protect from blocking the installation.

Google Play Protect blocks the installation of a sideloaded APK that
declares an accessibility service. The block message says that the
application can request access to sensitive data. The only match in the
manifest was AgpAccessibilityService (BIND_ACCESSIBILITY_SERVICE).

The default build now has no accessibility service. Use the Gradle
property -Pavg.accessibility=true to add it (Accessibility mode).

- Move the service, its manifest entry and its XML configuration to
  app/src/accessibility. The build adds this source set to the debug and
  release build types only when the property is true. The output path of
  the APK does not change.
- Add BuildConfig.ACCESSIBILITY and AccessibilityState (main source set).
  The service sets AccessibilityState.connected. The view model reads it,
  so the main code does not use the service class.
- Hide Accessibility mode in the UI when the build does not have it.
  Stop the one-second poll of the service state in that case.
- Store.backend returns Shizuku when the saved mode is Accessibility and
  the build does not have it.
- Workflow "Build APK": add the input "Add Accessibility mode". The APK
  file name ends with -accessibility when it is true.
- Workflow "CodeQL": build with the option, so that the service is
  still analyzed.
- Update the README (STE100).
The buttons Start and Stop are disabled when their action is not
possible. After a click, the pressed button becomes disabled and loses
the focus. The focus then moved to a distant button.

Add StartStopRow. A click on Start sets a pending state. When the pad
starts, the focus moves to Stop. A click on Stop or Stop all moves the
focus to Start when the pad stops. If the action fails, the state does
not change, the focus stays, and the pending state expires after 5 seconds.
The focus does not move when the state changes for another reason, for
example when a pad stops by itself.
@anr2me
anr2me merged commit fe141f6 into main Nov 18, 2026
5 checks passed
@anr2me
anr2me deleted the access branch November 18, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant