Contents of the docs
Blackview Tab90 Home Assistant Kiosk · Docs
Background
How it came about: a locked bootloader, stock firmware instead of LineageOS, Kite instead of the Home Assistant app and the hunt behind the five Kite fixes.
On this page
After the Weelikeit F83W, four Blackview Tab90 joined. The plan was the same: unlock the bootloader, flash a slim system, Home Assistant as home app. It turned out differently.
The bootloader stays locked
The basics: Unisoc T606 (ums9230), 4 GB RAM, Android 15 with a 64-bit userspace, A/B with Virtual A/B, vendor on
Android 13. The developer options allow unlocking (oem_unlock_allowed=1), but fastboot oem unlock only answers
"Unlock bootloader fail", without a confirmation dialog on the tablet. The Unisoc route via SPD download mode and a
signed fastboot (ums9230_universal_unlock) did not work either.
Decision: the stock firmware stays. Instead of a custom image, a script cleans the system up over ADB, entirely without root. The rule: as little as possible. Only WebView, touch, Wi-Fi, brightness and power stay – Play Store and Play services go too. The wall panel does not need updates, it has to run.
Kite instead of the Home Assistant app
On the F83W the Home Assistant app is the home app. Without root there is no watchdog to keep it in front, and the app is easy to leave. On a Lenovo tablet and a Blackview running Fully Kiosk another problem showed: every WebView update from the Play Store kills Fully, and it does not come back.
The choice fell on Kite AOS: a kiosk app with an MQTT connection to Home Assistant, restart after crashes and scheduled reloads. Kite becomes the only home app, the Blackview launcher goes. If Kite crashes, Android restarts it right away as home app.
At first Kite ran with GeckoView instead of the system WebView, to stay away from WebView problems. On the T606, Gecko
crashed natively though (SIGSEGV in libxul), and the same evening it was back to the Android WebView.
Five bugs in Kite
In continuous use five bugs showed up one after another. Each one is fixed as a patch and submitted to the Kite
project (pull requests #29, #30, #32, #34 and one more for the vh units).
- MQTT never connects. Kite uses MQTT 5 with a last will. The MQTT library dereferences
willPropertieswith!!, and Kite did not set them – the CONNECT packet was never built and the socket stayed open. - Endless loading logo. The WebView's renderer process dies now and then on the T606. Kite noticed, but did not rebuild the WebView. Now it is thrown away and created fresh.
- No restart after native crashes. Several times a day Kite crashes in the Mali GPU driver. Kite's restart only kicked in for Java crashes. Now Kite reads why it ended last time on the next start and restarts after native crashes too.
- Frozen dashboard. One morning the dashboard had been frozen for hours. The trail: renderer crash at 01:24, Kite's connection monitor pauses the WebView after 20 seconds, shortly after comes "resume and reload" – but Kite kept commands in a single state value, and "resume" was overwritten by "reload". The WebView stayed paused, even the scheduled reload at 3 am never finished. Now the commands go through a queue.
- Dashboard as a line. A new dashboard with
layout-cardshowed only a thin bar in Kite, in Fully it worked. WebView version (127 vs. 157), user and kiosk-mode were ruled out. Measured withevaluate_js:innerHeightwas 870, butcalc(100vh - 64px)came out as 0. Kite lays out the WebView withWRAP_CONTENT, and Chromium then uses a layout height of 0. WithMATCH_PARENT,vhis right again.
What else came up
- Boot loop on reboot. Two tablets hung in the boot animation after a reboot. The list of removed apps contained
com.google.android.sdksandbox, without which Android 15's package manager does not start. In normal use nobody notices, only on the next boot – and then only a factory reset helps. Since then the script reboots the tablet once at the end and checks that it comes up. - The Settings app needs Digital Wellbeing, otherwise it crashes.
- Settings in front of Kite: after a Kite crash, Android brought a leftover Settings task to the front. The script closes Settings at the end.
- Gboard crash: on one tablet the keyboard crashed every time it opened after the factory reset.
pm clearfor Gboard helped.
What I took away
A locked bootloader is not the end: without root, ADB gets you surprisingly far. A full reboot belongs in every test,
because some bugs only show while booting. And measuring beats guessing – an evaluate_js that writes values into the
URL was faster than any theory.