Kahlali · for unattended devices and edge AI

Your device is out in the field with no one around.
When the app crashes, who restarts it?

Kahlali is an Android™ system layer on the device: it restarts apps that crash or stop responding, so no one has to come.

Both sides crash the same way; the difference is what happens next.

Without Kahlali

For example: if the app doesn't handle the crash itself, the screen stays on "App has stopped" until someone taps "OK".For example: stuck on a dialog until someone taps OK.

With Kahlali

Result: no dialog; the app restarts automatically, and this crash is recorded too.Result: no dialog; it restarts automatically and is recorded.

Problem and approach

What Kahlali solves, and how to start evaluating it

The problem

Android was originally designed for a phone with someone right there to operate it. When it shows a dialog that someone has to tap (such as "App has stopped"), or needs someone to tap "Allow" before an app gets a permission, there is no one on site to tap, so the screen stays where it is until someone gets there.

A monitoring program you write yourself covers part of this, but that program needs maintaining too, and it has to be checked again with every new Android version. With Kahlali, every version the maintainer provides is checked by the maintainer first (currently built on Android 16); for what is being tested now and what is for trying only, see Platforms and test status.

What Kahlali does

Kahlali is built on the Android Open Source Project (AOSP), the Android source code that Google publishes. It works in the system layer beneath your apps, which boots the device and starts and manages the apps. It can manage one or several of your apps, and does four main things:

  • Automatic restart: when an app crashes or stops responding, it is restarted automatically, with no dialog. Details
  • Lock mode: only your app is on screen, and people on site cannot switch to anything else. Details
  • Permissions granted in advance: permissions such as camera, microphone and location are switched on in advance, so no one has to tap "Allow". Details
  • Event log: every crash and restart is recorded, and you can see them on a management page. Details

Also included

  • AI check: see how fast the sample AI model runs on this device; checking your own model is arranged separately. Details
  • Built-in browser: if your app is a web page, it can be shown in the built-in browser (included in the community edition). Details
  • Developer kit (SDK): your apps can be managed by Kahlali without any changes; when you need it, the open-source SDK lets them read network status and other information. Details

Using Kahlali

  1. Upload APKUpload your app's install file on the management page (the console)

  2. Make it managedHand it over to Kahlali to monitor and manage

  3. LockOnly your app is shown on screen

Three forms

Kahlali comes in three forms: the community edition and the evaluation system image (an image that replaces the Android system part on your board and keeps the board's own drivers) are for evaluation; the integrated version is for integrating into your board and shipping.

Community editionFree, coming soon

Where it runs
As a container on a computer or development board
Screen
Viewed on a computer (not the device's own screen)
Signing*
A public test signature
Use
Evaluation, learning, development and non-commercial use; not for products you ship or paid services

Evaluation system imagePrepared per device, ask by email

Where it runs
Flashed onto your board or phone
Screen
The device's own screen
Signing*
A public test signature
Use
Evaluation only

Integrated versionFor shipping, separate commercial licence

Where it runs
Integrated with your board's drivers and flashed onto the device
Screen
The device's own screen
Signing*
Signed with your own keys, which you keep
Use
Products you ship or paid services

* Signing: how the device checks who the system and its updates come from. A public test signature can be used by anyone, so it is fine for evaluation but not for shipping.

Current status: the community edition has not been released yet. Once it is, you can try it on an ordinary computer (PC or Mac, for trying it only) or on RUBIK Pi 3, a development board on the market. Before the release, a development build was installed and run on RUBIK Pi 3 with the official Ubuntu 24.04 image by following the installation instructions (published with the release). Measured stability (long-running and high-load operation) and AI performance data will be published once testing is done.

The evaluation system image is not available for public download; it is prepared for your device individually. Please write with the model of your board or phone and its current Android version; the maintainer first checks whether it is feasible and then replies. It is currently built on Android 16, so the device must already run the maker's Android 16; the other conditions are in Details for engineers.

Before you evaluate

Is Kahlali a fit for your product?

A good fit

  • The device runs your own apps (one or several), with no one around, and has to keep running reliably for a long time.
  • Your team builds Android apps but would rather not maintain the system layer.
  • You would like to try it for free before deciding whether to use it in a product.

May not be a fit

If any one of these applies, please write first:

  • Devices already managed by another device management system (MDM): Kahlali itself takes this management role, so the two cannot be used together; if you need them integrated, please write first.
  • It needs Google Play or other Google services: Kahlali does not include them.
  • With the community edition, it needs the device's own screen or location: the community edition has neither.
  • The app restarts itself: that part has to be left to Kahlali instead.

The full list of limits is in Details for engineers.

The path

From evaluation to integration to shipping

Each stage uses one of the three forms above; for further collaboration, please email the maintainer.

  1. 01Free evaluation

    Uses: the community edition (once released)

    What you do
    Have your engineers install the community edition and your app, and try automatic restart and lock mode.
    What Kahlali provides
    The community edition, the sample app and the console.
  2. 02Integration into your board

    Uses: the evaluation system image, or integration by the maintainer

    What you do
    Share your board and requirements (you can sign a non-disclosure agreement, or NDA, first); you can also ask by email about the evaluation system image (prepared for your device individually) and flash it yourself to try.
    What the maintainer does
    Assesses your board and, depending on its driver support, integrates the screen and the AI chip; after an NDA, can also check on a reference board whether your AI model can use the AI chip.
  3. 03Shipping

    Uses: the integrated version

    What you do
    Confirm your shipping volumes and update plans, and sign the commercial licence.
    What the maintainer does
    • The system and updates of the integrated version are signed with your own keys: you keep the keys, and the maintainer provides the signing tools and process and never handles your private keys (the secret keys used for signing).
    • Where needed, sets things up so that events are sent to your own server.
    • For the integrated version, the scope and period of updates and maintenance are set out in the commercial licence.

What is possible, how long it takes and what it costs depend on your board and needs; if you need to ship soon, please write first to check the timing.

Questions

Frequently asked questions

After the app is restarted, can its work carry on?
Kahlali restarts the app, but it does not keep what was in memory at the moment of the crash. Save the progress of the work as you go, and carry on from the saved state when the app starts.
Can it recover the app when it hangs?
Yes, when the system flags the app as not responding: Kahlali restarts it. If the app hangs and the system does not notice, the app has to handle it itself (details).
How does licensing work?
  • You may: use the community edition free for evaluation, learning, development and non-commercial use.
  • You may not: use it in products you ship or in paid services; those need a separate commercial licence, so please write to the project mailbox.
  • Open source at release: the porting kit (a tool that packages a Python program from Linux as an Android app), the SDK (developer tools that let your app call Kahlali features) and the sample app.
  • Not open source: the Kahlali system itself, which is why the community edition is a free evaluation edition rather than an open-source one.

The Kahlali name and logo are not covered by the software licences.

Does it include Google Play?
No. Kahlali does not include Google Play or other Google services, so there is also no network location from Wi-Fi or cell towers. If your product needs Google services, hardware certified by Google is a better fit.
Can it drive an HDMI screen?
Not the community edition: you see its screen on a computer. The evaluation system image and the integrated version use the device's own screen.
Can we use it on a board we designed ourselves?
Email the maintainer to discuss it. The community edition is currently evaluated and being verified on RUBIK Pi 3; whether your own board is feasible depends on what the board and its chip support. If your board already runs the maker's Android 16, you can also ask by email about the evaluation system image (prepared for your device individually) and try it yourself first; the conditions are in Details for engineers.
Where does the name Kahlali come from, and how do you say it?
It is made up of two Taiwanese Hokkien words: 甲 kah (scale armour) + 鯪鯉 lâ-lí (pangolin). When threatened, a pangolin rolls into a ball and lets its scales protect it; that is the idea behind the name: keep your app protected. Say it KAH-lah-lee.

Technical details

Details for engineers

How it works, the rules behind each capability, the full list of limits, platform test status and technical questions are on a separate page.

Details for engineers →

Contact

Working together and contact

To talk about integrating it into your board, asking about the evaluation system image, a commercial licence or other ways of working together, write to the project mailbox. Please include your board, your app and the conditions in the field; when you ask about the evaluation system image, please also include the model and its current Android version; there is no committed preparation time yet, so if you are in a hurry, please say so in your email.

Email the maintainer

Project mailbox
contact@kahlali.org
Every "Email the maintainer" button on these pages writes here.
GitHub
github.com/kahlali
Code repositories open with the first public release; none is public yet.
Maintainer
Hsin-Hsien Lee (who started and maintains Kahlali)