In this blog post we will be side-loading and deploying a custom WebApp (which can be a FirefoxOS app, by the way) to our KaiOS device without a Jailbreak or OmniSD.
The process is very similar to the process, which is outlined on BananaHackers here.
Make sure to check out this post with information on how you can easily convert a website or WebApp to a KaiOS app. How to deploy such an app, will be described in the following.
What we need
First of all we will need (obviously) a KaiOS device. In this case I will be using the Nokia 8110 4G.
What I absolutely love about the KaiOS platform, is how easy it is to develop and deploy applications for it. We will only need:
- adb (installation instruction here)
- Firefox 52.9 or older (recommended Firefox 49) OR
- Pale Moon browser
Personally, since it is quite annoying to install an outdated version of Firefox, I decided to use Pale Moon browser on Linux (via a VM on MacOS). That worked flawlessly.
Just in case you are wondering, KaiOS is based on Firefox OS (Boot to Gecko) which is, very sadly, discontinued. The most amazing (in my opinion) thing about this platform is the fact, that it is so easy to write apps for it.
In the following we are going to do that on our KaiOS device.
KaiOS developer mode
Basically, my steps are very similar to those found on BananaHackers.
First, we will need to enable debug mode. That’s very easy:
*#*#33284#*#* on the keypad from the home screen (to memorise it you can think of
*#*#debug#*#*). A bug should appear on the top of the screen.
Now we can just connect our device using ADB (assumes you have ADB installed). Just connect it using a USB cable and check for the device using
adb devices (from the terminal or command line).
ADB error, no permissions
adb error screenshot
It could happen that you get the following error:
no permissions (user in plugdev group; ...). For me this only happened on Linux. To fix this no permissions, user in plugdev group error, just head on your KaiOS device into the settings, then go to Storage and enable USB Storage.
Then restart the adb server using
adb kill-server (from Terminal) and run
adb devicesagain (like shown on the screenshot).
Connecting to Pale Moon Browser
Alright, now we can connect our device to the Pale Moon Browser (or an outdated Firefox version, if you chose for that - the process is exactly the same).
Fire up your Pale Moon and head over to Tools » Web Developer » WebIDE.
Then click on Remote Runtime. Check, that it says
localhost:6000 and press connect.
Now it is very likely that it will say Operation failed: Connecting to Remote Runtime.
In this case just run
adb forward tcp:6000 localfilesystem:/data/local/debugger-socket from Terminal and try again.
Opening packaged web app
If your web app comes in a packaged format (in a .zip file) you will have to unzip it.
In the Pale Moon WebIDE click on Open packaged App… and head inside the directory where the app is located, more specifically the
manifest.webappfile. Click open.
Deploying app to the KaiOS device
If everything is well you should see green circle next to the app title. If you don’t see it, that is not necessarily a big deal, because the WebIDE environment checks for the necessary requirements as if it were an app for FirefoxOS. Of course, KaiOS will have slightly different requirements.
Just press the play button (the triangle button) and your app should deploy to your KaiOS device.
If you want to learn how to actually convert a usual website or web app to KaiOS format, please check out this post by me.
Anyway, if you have question, please feel free to contact me