Android Kiosk Application
The goal of this project is to create an android application running on tablets and acting as a kiosk to display promotional videos. The video is fetched from a HTML5 webpage and displayed in a WebView.
The application covers the following features :
- Kiosk mode (disable back/home/recent activities/power, etc buttons).
- Enter kiosk mode from the application
- Exit kiosk mode with an OTP (One-time password) from Google Authenticator.
- Modify the URL of the website hosting the video
- Claim the tablet and modify the website of the tablet online
- Secret touch command to open OTP pin (touch screen 4 times in the right pace)
- Viewer statistics
Setup:
- Open Android Studio
- Build and Run!
- Allow camera and display overlay (if the message facerecognition denied comes, the permissions have to be changed manualy in the settings.
- Scan OTP password
- Deactivate Google assistant
- Disable automatic system and software update in the settings
- Set app as home
Config video:
- Setup website with [kiosk-web]
- Set custom video in index.html
- Open settings in app and enter url to website
Claiming a tablet:
- Open settings view
- Select claim tablet
- Enter a group name, a device name and a passphrase
Edit url of clamimed tablet:
- Open https://kiosk-app-210502.firebaseapp.com
- Search by group name
- Select the tablet by device name
- Enter passphrase
- Edit url and save
The tablet applys the url almost instantly.
Backend configuration concept
In the encryption we use PBKDF2 to generate a key from a passphrase and use this key to encrypt the config with AES. Because there is no authentification for storing something in the database, a tablet replaces the online config with the local one when it can't decrypt it.