Blackview Tab90 Home Assistant Kiosk
Contents of the docs

Blackview Tab90 Home Assistant Kiosk · Docs

Configuration

What setup.sh changes on the Blackview Tab90: removed apps, system settings, permissions and home role for Kite and the Kite configuration for Home Assistant.

On this page

The setup does not touch the system partition, everything runs over adb without root. This page explains what the script sets up.

Removed apps

src/removed-apps.txt lists 118 packages that the script removes with pm uninstall -k --user 0. The APKs stay on the locked system partition, they are only gone for the user.

Group Examples
Google apps Play Store, Chrome, YouTube, Maps, Gmail, Assistant, Photos
Google services Play services, Services Framework, setup wizard, ad services, telemetry
Blackview app updater, app lock, system manager, themes, weather, telemetry
Firmware and factory tests OTA updater, engineer mode, camera and GPS tests
AOSP/Unisoc camera, gallery, clock, calculator, radio, screen savers, print services

Deliberately not in the list because they are needed:

Package Reason
com.google.android.webview WebView for the dashboard
com.google.android.sdksandbox without it the system process crashes on every boot (boot loop)
com.google.android.inputmethod.latin keyboard for sign-in and Wi-Fi password
com.google.android.apps.wellbeing without Digital Wellbeing the Settings app crashes
com.google.android.documentsui file picker to import the Kite configuration
core modules, telephony, com.unisoc.* permissions, installation, system services

The script removes the Blackview launcher only in step 5, once Kite is the home app. Left below Kite, it would come to the front after a Kite crash. Without it Android restarts Kite as the only home app.

The script removes the Play Store on purpose: every WebView update from the store kills the kiosk app, Fully Kiosk for example did not come back afterwards. Without the store, tablet and WebView stay on the tested version.

System settings

Setting Value Effect
stay_on_while_plugged_in 7 screen stays on while powered
screen_off_timeout maximum no timeout
screen_brightness_mode 0 no adaptive brightness
screen saver off also not when docked or asleep
lock screen off locksettings set-disabled true
heads_up_notifications_enabled 0 no banners over the dashboard
animations (window, transition, duration) 0 no animations
low_power 0 no battery saver
navigation gestures Kite hides the bars in full screen
show_first_crash_dialog, hide_error_dialogs 0, 1 no crash dialogs on the wall panel

Kite: permissions and home app

  • Permissions of the setup wizard up front: camera, microphone, notifications
  • Special access: display over other apps (return to the kiosk, start after boot), modify system settings (brightness), exact alarms (daily reload, restart after a crash), run in the background
  • Battery: exempt from battery optimization, standby bucket active
  • Device admin: so Kite can turn the screen off via MQTT. Kite is not device owner.
  • Home app: Kite gets the HOME role, the Blackview launcher is removed.

Kite locks the tablet through full screen, auto return and being the only home app, not through Android's lock task mode.

Kite configuration

For every tablet the script writes a kite-config.json in Kite's export format and puts it on the tablet for import:

Field Value
dashboardUrl DASHBOARD_URL from kite.env
webEngine AndroidWebView
isAutoReturnEnabled true
mqttIp, mqttPort, mqttUsername from kite.env
mqttClientId kite-<serial>
mqttFriendlyName panel name from step 6
isMqttEnabled true
isMotionEnabled false

Not part of the import and therefore manual: the MQTT password and the resilience settings ("Scheduled reload" at 3 am).

Note

Motion detection and camera streaming are off. Kite's streaming would be an MJPEG server on port 8080 without a password, visible to the whole network.

Files in the repo

File Contents
setup.sh the setup script
src/removed-apps.txt removed apps
kite.env.example template for kite.env
kite/version.env Kite version, upstream repo and tag
kite/patches/*.patch the five Kite fixes
tools/build-kite.sh builds the Kite APK, see Kite build