pspdfkit-labs / quickdemo Goto Github PK
View Code? Open in Web Editor NEWAndroid QuickDemo
License: MIT License
Android QuickDemo
License: MIT License
Is there any reason for the minSdkVersion to be 24? I wanted to test it on a Marshmallow device (23), so I lowered it and it worked just fine. You can't use the quicktile, but that's not an issue.
By the way, the app is awesome, thanks!
I have changed the hour but in demo mode the current hour is still shown (not even 7:00 or 6:00)...
I am using the pre-built apk from XDA-Developers, but I don't think they did changes to the code.
Everything else is working great, although an option to show "Priority mode" icon would be cool too.
Thanks
Set up this mode:
adb shell settings put global sysui_demo_allowed 1
adb shell am broadcast -a com.android.systemui.demo -e command enter
Set battery level
adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false -e level 100
Hide notifications
adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false
Hide any alarm bells and volume
adb shell am broadcast -a com.android.systemui.demo -e command status -e location hide -e alarm hide -e volume hide
Set time to 18:15
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1815
Set phone network type and level and the wifi level
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype 4g -e level 4 -e wifi show -e fully true -e level 3
And to reset to default mode:
adb shell am broadcast -a com.android.systemui.demo -e command exit
Full reference:
https://android.googlesource.com/platform/frameworks/base/+/android-6.0.0_r1/packages/SystemUI/docs/demo_mode.md
The setup screen shows a simple HTML file setup-guide.html
stored in the app's assets: https://github.com/PSPDFKit-labs/QuickDemo/blob/master/app/src/main/assets/setup-guide.html
This file is generated from a Markdown template: https://github.com/PSPDFKit-labs/QuickDemo/blob/master/setup-guide.md
Right now this has to be done manually, and is thus prone to mistakes. A PR fixing this issue should add automated Markdown-to-HTML conversion to the app's build script, so that the file is properly regenerated on every build.
Since the app also works on Marshmallow (API 23) but quick setting tiles were introduced in API 24, the app could provide a sticky notification for toggling demo mode on API 23 devices.
It could be nice if we could have values in a JSON sent to the application. The use case I have in head is that I want every developper of my application to have the same settings for the QuickDemo app during screenshots, and I want this configuration to be shared to everyone.
It can be a parameter sent to Gradle (like the path of the file) during build to put those values directly in the app.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.