This repository contains sources for two Android accessibility services from Google:
- TalkBack -- a screen reader for blind and visually impaired users. For usage instructions, see TalkBack User Guide.
- Switch Access -- screen navigation tool for users with mobility limitations. For usage instructions, see Switch Access User Guide.
When you build and install TalkBack package, both services will be installed under Settings -> Accessibility and will be turned off by default. It is not recommended running both services at the same time as they may conflict with each other.
To build TalkBack sources you will need:
- Download android sdk from https://developer.android.com/sdk/installing/index.html?pkg=tools
- Set ANDROID_HOME to the path of Android sdk folder
- Open Android SDK manager and install
- Tools/Android SDK Build-tools 27.0.0
- Android 8.0 (API level 25)
- Extras/Android Support Repository
- Extras/Google Repository
Building, Installing and Testing
TalkBack uses gradle as build system. Here are commands to build, install and test the project from command line:
- Assemble debug and release apks: ./gradlew assemble
- Assemble only debug apk: ./gradlew assembleDebug
- Install debug apk on connected device: ./gradlew installDebug
- Run robolectric tests: ./gradlew test
This repository also includes a test app that you can use to:
- Test TalkBack's behavior against various standard widgets and interaction patterns.
- Explore source code for test cases to see the implementation of various TalkBack features.
To build and install the app, do the following:
- Switch to the root directory of this repository.
- Change to the "tests" directory.
- To assemble debug and release apk: ./gradlew assemble
- To build debug apk: ./gradlew assembleDebug
- The apks will be located in the app/build/outputs/apk directory.