I have the android app (org.openhab.habdroid) installed on tablets around my house.
Is there a way to set it as the device launcher / kiosk mode. With HabpanelViewer I used (adb shell cmd package set-home-activity de.vier_bier.habpanelviewer/.StartActivity) as a launcher. I don’t care so much for the security of a kiosk but it would be nice to have android tablets booting into it as the launcher. Is this possible?
Typically this is less on the app and more on the os. That said the app can have the feature added (at the expense of more permissions). There are many apps also that can put the phone into kiosk mode or single app mode. The problem as you stated will be having openhab going to the page you want. I havent looked at the code much but one option if the app supports it would be deeplinking. With this you could use something external to open the app to a specific part.
What android os version are you using and are you against another app aiding in the process?
Hey @mediatech15 - I’m running this on a bunch of Lineage / formerly Amazon Fire tablets running Android 8.1. Currently flashing them and then setting them up using this script. Having them launch the Android app at boot time is the last missing piece.
One hacky solution would be to have the OpenHAB adb binding tell each tablet to launch the application every few minutes. But there has to be a nicer way.
Though after further review this appears to no longer be free. I have a grandfathered account. So depending on a cost requirement that could be a problem. Though it is the non-hacky fully supported way to do all you want without root and without any weirdness
My goal is less in locking down the tablet, more in booting into the app. But I guess what you are saying is that I could do something like single-app-mode and that would just boot into the OpenHAB app. I’ll look into that now.
HPV has been great and I’ve used it for many years. But I also have an ongoing issue where it doesn’t reliably load my screen (clicking on the side menu and out again then finally loads the main screen). That coupled with it being discontinued had me looking at alternatives.
Ideally I just want an app that is:
a) fullscreen webview
b) able to be set as a launcher
c) can read a URL from a file.
I looked around at running Chrome/Firefox in some kind of webview mode but wasn’t able to find a way to set them as a launcher.
@mueller-ma thanks for adding as a launcher. That’s a great step!
One question to other’s running this on tablets: how do you keep your WiFi alive on newer versions of Android? My wall mounted tablets are plugged in and I have a rule using androiddebugbridge binding to turn on the screen when motion in the room is detected. But that can never complete if the tablet’s wifi is down and ADB cannot reach the tablet. Is there a trick to get Android to never sleep? Best I’ve found is writing a wake-lock at boot time (https://lynxbee.com/how-to-acquire-and-release-a-wakelock-forcefully-from-android-shell/#.Yqmp8zVByPM)