Release blog post: https://pspdfkit.com/blog/2016/clean-statusbar-with-systemui-and-quickdemo/
- Android SDK (API 25)
- Android Studio 2.2+
adb(for installing the app and granting the required permissions)
- Android emulator or devices running Marshmallow (API 23+)
To build and run the app, you can open the project with Android Studio and press
Run. Alternatively you can install the app from the command line.
git clone email@example.com:PSPDFKit-labs/QuickDemo.git cd QuickDemo/ ./gradlew installDebug
You can also run the
setup.sh script, wich will check for ANDROID_HOME, clone the project, and use Gradle to install and setup the tool. The script will also remove files of the project after installation.
If you cloned the project, you can run
setupDemoMode gradle task to do the setup.
This can be done either by finding and selecting
Gradle window in Android Studio, or by running the following:
Manually via adb
- When launching the app for the first time you need to grant the
android.permission.DUMPpermission, which is required to control the System UI demo mode. You need to do this using
adb shell pm grant com.pspdfkit.labs.quickdemo android.permission.DUMP
- Since the System UI tuner (and its demo mode) is an experimental Android feature, you need to activate it globally.
adb shell settings put global sysui_demo_allowed 1
The app comes with a quick settings tile which you can use to quickly toggle the demo mode.
- Completely open the status bar drawer, expanding all quick setting tiles.
- Press the edit button on top of the drawer, to show the quick setting tiles picker.
- Drag the QuickDemo tile to your desired position.
- Exit edit mode, and tap the tile.
You can launch QuickDemo activity to configure all displayed icons of the demo mode.
- You can find the activity in your app launcher.
Feedback and contribution
Since this project is open source, feel free to use it, give feedback, or contribute in any way you find suitable.
This project is maintained and funded by PSPDFKit.