Caution
This is my unofficial personal build of AndroidAPS. It is NOT a medical device, and it CAN dose insulin.
- The AAPS Objectives are switched off.
- It has been tested on one setup only: mine.
- Nobody should install it on a phone that runs a real closed loop for a person: not for yourself, not for your child, not just to try it.
It is published to read and to learn from. To loop, use the official AndroidAPS instead. Read the full safety notice before you build or install anything.
Calm home: a start screen for AAPS that shows what you need in one second.
My personal take on how AAPS could look.
An unofficial mod of AndroidAPS 4.0.0 with AutoISF 3.2.1. It changes what you meet when you open the app, on the home screen, under the lock-screen clock and on your wrist, and keeps everything AAPS and AutoISF do. This page shows build 1617.
Calm home · Insulin · Home widget · Lock screen · Watch · Safety · How it is built · Docs
Every image on this page uses synthetic data. Calm home, the widgets and the watch faces are rendered from their real code; the device frames and status bars around them are drawn, and no image is a screenshot of a real phone or watch (how).
nightscout/AndroidAPS 4.0.0
└─ AutoISF 3.2.1 on AAPS 4: the community port by bjr (blaqone/AAPS-autoISF, branch aaps4-autoisf)
└─ this mod: Calm home and its insulin flow, widgets, watch faces, watch bolus flow, loop timing,
safety guards, settings carry-over from AutoISF 3.2.1 on AAPS 3.4, early upstream fixes
- Everything the port does is still here: AutoISF 3.2.1 on AAPS 4.0.0, 1-minute CGM values, the loop interval setting, UKF smoothing, the CGM slope/offset correction, scenes and automations for AutoISF, and the AutoISF chip (the port's README, AutoISF v4 guide).
- One meaning per colour, and never colour alone. Green is in range, amber is high or "look soon", red is low or "act now", on every surface. Every warning also carries a word, a number or a shape. How old glucose and a late loop look follows one rule on the phone, both widgets and the watch.
- Nothing doses on its own. Every dose ends in a stock AAPS path: the bolus wizard, the stock prepare and commit, the stock watch pre-check and confirmation, the existing AAPS dialogs.
- The new screens are opt-in. Calm home and the watch bolus ball are off by default; the stock overview and the stock widgets stay.
An optional start screen for the phone, for the moments when you only want to know that all is well, or give insulin without hunting for it. Settings → Calm home → Show Calm home (off by default), then Design: Family (the default), Halo, Glass (two frosted glasses, one for the number and one for the curve) or Orbit.
- Read at the top, act at the bottom. A status row says how old the last loop run is and how long the pod and the sensor have left. The number and a quiet 3-hour curve fill the middle. Insulin and Target sit in the thumb zone; Full AAPS (the unchanged stock overview) and More sit under them.
- Lit only when all is well. The number glows only while the reading is fresh, in range, and nothing about glucose, the loop or the pump needs attention. The light only goes out; it never hides a word, a shape or a button.
- Small facts on tap. Quiet pills above the buttons say the active insulin and carbs, and the target or a running temp target. A tap grows a card with the last bolus, the split of active insulin or the temp target's end.
- "Carbs needed" has an OK, and a row that needs no action can be swiped away. It comes back when it matters.
- Never hidden. A low and an urgent low (by word and shape), old or missing glucose, a pod fault, a loop that stopped deciding, a pause and a running bolus with Stop stay on the screen in every design, with what the pump delivers right now. AAPS's own alarms and sounds work exactly as before.
- Night, light and German. It follows AAPS's light or dark theme and turns to a night palette from 22:00 to 07:00. In German at font size 1.3 it still fits the smallest frame checked.
Every state and every rule: Calm home's design and build plan.
- AAPS's own calculator, live. One question, "Carbs you eat", and the stock calculator answers as you type. With nothing typed it answers "do I need insulin now?" in plain words.
- One confirm with AAPS's own lines, then a hold of about a second. The big number is the dose AAPS will really give. A tap does nothing, and every way out drops the prepared dose at once.
- Quick amounts, pen doses, carbs only. 0,5 and 1,0 U through the same confirm and hold. A pen dose is only recorded, never given by the pod.
- Every check runs again at the end of the hold and can only refuse. Behind it are the stock AAPS calculator, prepare and commit, limits and protection: the flow changes how things are shown, not what is given. The stock calculator stays one long press away.
Every screen: the insulin flow, screen by screen. Dosing review: round 8. Since build 1614 the first screen is a calm sheet, Kohlenhydrate | Insulin, with the same confirm and hold; the keypad in the picture is one setting away (spec §24). Build 1615 added a faster bar, the first tab and start values as settings (spec §25).
A frosted-glass card that sits well on any wallpaper. You place it as "AAPS kusi" next to the stock AAPS widgets, which stay.
- One big number with its trend and age, in the colour of its range.
- What the loop works with: profile and target, the ISF of the last loop run with its AutoISF factor, and a basal chip when basal differs from the profile.
- How the last days went: time in range for 24 h, 7 and 30 days (a bar turns green only from the 90 % goal), the 14-day mean and an HbA1c estimate; IOB, carbs and insulin over 24 h.
- An old reading never looks current: its age turns amber from 6 minutes; from 12 the reading turns grey, loses its arrow, and its age turns red (one age rule).
- Calculator
⚠️ : it opens the stock bolus wizard after app protection. A low does not lock it; it warns.
Glucose, trend and IOB under the clock, readable without unlocking.
- No buttons, so any treatment still needs an unlocked phone.
- A word for every state that matters: LOW, OLD and NO DATA at every size, a doubled outline for an urgent low, HIGH where the slot has room. An old value says what it was: "last in range" or "last low".
- One extra line, only when it matters: a late loop (amber from 6 minutes, red from 15), a temp target, an unusual basal or carbs on board.
- It reads the wallpaper: light or ink type, and a scrim that follows its brightness.
- Made for Samsung Good Lock LockStar, in sizes S, M and L. Other lock screens are untested.
- Halo is the calm one: a ring with a glucose gradient, the target band and a 30-minute trend tail.
- Glass is frosted: an aurora in the colour of the range behind a glass card, and a 3-hour sparkline.
- Orbit puts the loop, IOB, carbs and basal on discs around the dial, plus a temp target when one runs.
- All three are native faces that share one state model, so they can never disagree. A low carries a word, an old reading is struck through, a late loop is named with its age, and always-on keeps the time, the number, the arrow and a word when it matters.
- Off by default. Switched on, each face gets a bolus ball: a fixed amount, or a quick picker.
- The watch only asks. It sends the stock bolus pre-check; the phone applies its own limits and answers with the standard confirmation, so nothing is delivered from the watch alone.
- The confirm screen shows what the dose will do, marked approximate and display only: the BG drop, IOB before and after, the carbs it covers, and warning chips.
On every screen that can start a dose (Calm home's Insulin button and sheet, the home widget's calculator, the watch picker and bolus ball), a low or an urgent low warns, in red or with the watch confirm's LOW chip, and the dose still goes through AAPS's own confirm; the calculator counts the low. The lock-screen widget has no buttons. What still locks, as before: a low that falls fast (the watch picker, the sheet's quick amounts), old glucose (a fingerstick first), a running or very recent bolus, a pod fault, a suspended or disconnected pump, a paused loop. AAPS's limits, constraints, alarms and sounds are unchanged. Dosing reviews: no low lock and round 9.
Configuration → General → Database copy, also in Calm home's More. Export database copy saves one checked copy
of the AAPS database as a single file in the AAPS folder, exports/androidaps-<date>.db, for What-If
AutoISF on a computer. No debuggable build swap is needed. A red card warns first: the copy
holds your health data and the pump and sensor serials, but no passwords, Nightscout login or pod keys, and it is not
encrypted. AAPS never uploads or shares it, and it keeps the newest 2 copies. The loop keeps running while the copy is
made: the copy uses its own read-only connection in WAL mode. It is refused during a bolus, while AAPS tidies its
database after the start, while the database schema is not this build's, and when space is low. New in build 1616
(module README, privacy review).
Calm home, the home widget, the lock-screen widget and the three watch faces read one table for how old glucose and a late loop look. Glucose: up to 5 minutes it looks current; from 6 its age shows in amber ("look soon"); from 12 it is old: no range colour, no arrow, the age or the warning in red; from 30 it is no data. Loop: amber from 6 minutes, red from 15 (the loop alarm's default); an unknown loop is grey, never "OK". It is the strictest rule the surfaces had before, so nothing looks current for longer than it did. Display only: the locks that start at 12 minutes keep their own limits, which tests hold equal to the table.
-
Public, not released. There is no release, no APK and no tag. The version name is still the port's
4.0.0-aisf3.2.1; the versionCode is the build number (1617 now), and each build raises it. -
Tested with: Omnipod DASH; FreeStyle Libre 3 through Juggluco (1-minute readings); a Samsung phone with One UI and Good Lock LockStar; a Samsung Galaxy Watch (3.4 line) and a Wear OS 4 emulator (4.x faces). Nothing else has been tried.
-
The 4.x line is new. It replaces the 3.4 line on the maintainer's own setup from late November 2026. Nobody else has run it yet.
-
Build 1613 fixes a display error of Calm home's insulin sheet: it shows the active insulin with the calculator's minus ("−1,25 active"), because the calculator subtracts it; builds 1611 and 1612 showed "+1,25 active". The amount offered and given was always the calculator's own and does not change. The Design setting now calls Glass "two frosted glasses". Display only; the watch app's release code is the same as in 1611. It builds on 1612 (Calm home's Glass with two glasses) and 1611: Calm home with its insulin flow, one low rule on every screen, the lock widget's loop age and the Nightscout carbs fix. Phone and watch are a matched pair (what each build brought).
-
Build 1614 (built as a signed phone and watch pair at versionCode 1614; on the maintainer's phone for testing from 2 Dec 2026, before 1616): the insulin sheet's first screen becomes one calm sheet with two tabs, Kohlenhydrate | Insulin, one number with its reasons, a value bar and one button, "… IE prüfen", which goes to the same confirm and hold as before. A tap on Insulin opens Kohlenhydrate, holding it opens Insulin, and a setting brings back build 1613's keypad. The number shows only while AAPS's calculator has answered for exactly the grams, settings and reading on the screen; for that, one display-only hook tags each result of the stock calculator with its inputs and its reading. The numerals no longer shrink at font 1,3, on the sheet and on the confirm. Nothing that is given changes. Its dosing review (round 10) found no veto and one finding to fix first: the settings page inside the sheet stayed live while AAPS checked a dose. That finding and the smaller ones of the dosing, UX and code reviews are fixed: while AAPS checks, the sheet shows its number and nothing changes the calculator; the settings page has no "… prüfen"; the rows in "Mehr" say why they are off; a low keeps its red line. The reviewer's re-check of that fix says ship (re-check) (Build 1614, spec §24).
-
Build 1615 (on top of 1614; built as a signed phone and watch pair at versionCode 1615; not installed on its own, it is part of 1616), from the owner's test of 1614: the value bar is faster (7 dp of finger travel a step instead of 12, one tick per step, no acceleration, no fling); a setting picks the tab a tap on Insulin opens (Kohlenhydrate or Insulin; a hold opens the other one, and a low or old glucose always opens Kohlenhydrate); two settings give start values (for example 20 g and 2,00 IE), so the sheet opens there with the line "Startwert aus den Einstellungen". A start value gives and records nothing by itself: "… prüfen", the confirm and the hold stay the only way, and the button ignores taps in the first 1,4 s. There is no start value, with the reason, in a low or within 2 h of one, with old or falling glucose, below 5,0, with 1,00 IE or more active, within 2 h of a bolus or carbs, at night, near the max bolus and in a few more cases. The sheet's open design points are decided (in a low Insulin stays a tab; the warning card sits under the tabs). On Calm home each column of pills and buttons now lines up on its outer edge (the target pill, Target and More on the right). Nothing that is given changes. Its dosing review (round 11) said fix first, no veto: the start value now stays under its rules until the owner changes the number (a touch that ends on it or Genau and back no longer make it his own amount); with the UX and code reviews' fixes (old glucose offers "Fingerstich eingeben" also at 0 g, the words say "kein Startwert" when the quick amounts are off, "Startwert, ohne Rechner" under the number). The reviewer's re-check of those fixes says ship (re-check) (Build 1615, spec §25, renders).
-
Build 1616 (on top of 1615; built as a signed phone and watch pair at versionCode 1616; on the phone and the watch since 2 Dec 2026): two packages the owner asked for, each built and reviewed on its own branch first. The Database copy for What-If: "Export database copy" in Configuration → General and in Calm home's More writes one checked copy of the database to the AAPS folder, after a red warning that it holds your health data; it reads over its own read-only connection and touches no dosing path (privacy review: fix first, fixed). And the surfaces: one age rule for glucose and the loop on Calm home, both widgets and the three faces; "IE" and "IE/h" in German on every kusi screen (Calm home, both widgets, the watch), the decimal comma on a German watch (also in de-CH), and the home widget's settings and bolus screens in the phone's language (dose-text review: fix first, fixed). Display only: no dosing math, SMB or AutoISF logic, limit, loop input or timing changes, no lock moves, and no file under the dosing paths differs (
checkDosingEquivalencepasses). The watch code changes, so phone and watch went on as a matched pair (Build 1616). -
Build 1617 (on top of 1616; built as a signed phone and watch pair at versionCode 1617; on the phone since 2 Dec 2026, the watch follows): 1616 plus exactly one dosing fix from upstream
⚠️ , so that it goes onto the phone alone. With the cake or pizza carb type (or a QuickWizard with eCarbs), the later part of a meal is now stored together with its carbs, once the bolus has succeeded. Before, a failed, refused or dropped bolus left that later part behind as carbs without their insulin, and the loop gave insulin for them. Now nothing of that meal is stored; after a failed or uncertain bolus alarm, enter the whole meal again. After a successful bolus everything is stored as before, and the dose does not change. Its dosing review says ship, no veto (review). The watch still runs 1616 and gets 1617 next; 1617 changes nothing in the phone–watch data contract (Build 1617).
Known limitations
- With Omnipod DASH, for 3 hours after a daylight-saving change, AAPS 4.0.0 refuses manual boluses and temp basals from the phone. Upstream's automatic DASH time handling (PR #5506) is not in this build.
- The faces are classic Wear OS watch faces. A Wear OS 5 emulator image did not accept them, so newer watches may not.
- The lock-screen widget is made for Samsung Good Lock LockStar. Other lock screens are untested.
- Calm home is fitted and checked for one phone (384 dp wide, 745 to 776 dp tall) and at 360 dp width. Other screen sizes are untested.
- The home-widget quick bolus has not been tested on a device; it is compiled in and stays off.
- The texts this mod adds exist in English and German only. Other languages fall back to English. In German every kusi screen writes the insulin unit as AAPS does ("IE", "IE/h") and decimals with a comma, the watch too (also with the watch in de-CH, and when AAPS on the phone is set to English); the home widget's settings and bolus screens and its calculator messages follow the phone's language, as the widget does. AAPS's own screens, such as the bolus wizard the calculator opens, keep the AAPS language. On the watch, the stock loop status screen, the tiles and the stock complications say "IE" too but keep their own number format (a point in de-CH, the phone's format for what the phone sends); the stock watch faces keep the stock German "E"; the phone's TDD and status messages are shown as the phone sends them.
- In English the phone's kusi screens also write the decimal comma ("1,20 U"), as they always did; the English watch writes a point.
- The NSClient wake-lock change can delay the 1 s SMB-fallback temp basal to the next wake-up. While CGM readings arrive, that is at most about one reading later.
- This mod does not make the port identical to AutoISF 3.2.1. The remaining differences are measured and listed in KUSI_CHANGES.md.
This software can control an insulin pump. Wrong insulin doses can cause severe hypoglycemia, diabetic ketoacidosis, loss of consciousness or death.
- This is an unofficial, experimental, personal build. It is NOT an official AndroidAPS release. It is NOT supported, reviewed or approved by the AndroidAPS team, by the AutoISF authors or by the author of the AAPS 4 AutoISF port it is built on.
- This is not a medical device. It is not approved by any health authority (FDA, CE, MDR or any other). It is not medical advice.
- You use it entirely at your own risk. You alone are responsible for building it, installing it, choosing every setting and every insulin dose that results from it.
- No warranty of any kind. The software is provided "as is". The authors and contributors accept no liability for any harm, injury, damage or loss, direct or indirect, that results from using, building or sharing it (see the license, sections 15 and 16).
- Test first, without risk: use the virtual pump or Open Loop for several days. Only move to Closed Loop when every result has made sense to you. Then start with careful limits (max IOB, max SMB, AutoISF min/max).
- This build removes a safety net. The AAPS Objectives are switched off, so the app will not stop you from closing the loop or enabling SMB and automations on day one. You have to do those learning steps yourself.
- Some defaults differ from AAPS and from the AutoISF port (see Defaults that differ). They also apply after an in-place update to every setting you never saved. Check every setting after you install it.
- Changes marked
⚠️ in KUSI_CHANGES.md and in the base changelog can change how much insulin is given. Read them before you install or update. - It has been tested on one setup only (see Status). Every other pump, CGM, phone and watch is untested.
- Always keep a backup plan: a blood glucose meter, fast carbs, an insulin pen and a way to stop the loop at any time.
- Do not use it if you do not understand how AndroidAPS, OpenAPS/SMB and AutoISF work, or if you cannot check and correct what the loop is doing.
- Talk to your diabetes team before you change your therapy.
If you do not accept these terms, do not build, install or use this software.
- The modules and core hooks, what can change dosing
⚠️ , and how to build, install, update and go back: How it is built. - No device serial in the repository: the
Makefilereads the loop phone's serial from a private device file (make secrets-setup); without it every phone counts as the loop phone.make hooksinstalls a pre-push guard that refuses serials, the signing passwords, key files, password literals andadb -s <device id>, also in binary files, tag messages and branch names;KUSI_PUSH_GUARD=offskips it for one push: Private device file and push guard. ⚠️ Some defaults differ from stock AAPS and from the AutoISF port, among them loop interval 1, SMB delivery ratio 0.2 and the Objectives off: Defaults that differ.- Built and designed with AI assistance (Claude); dosing changes are reviewed separately: see AI-assisted design and development.
- docs/kusi/HOW_IT_IS_BUILT.md: how it is built, with the defaults that differ, the AI-assisted design and development, the build steps and how to install, update and go back
- docs/kusi/KUSI_CHANGES.md: what this mod changes, by area, with
⚠️ and status - docs/kusi/UX_IMPROVEMENTS.md: every UI and UX change on one page, by surface, with defaults, switches and pictures
- docs/kusi/reviews: the dosing reviews, one per change that can affect dosing
- docs/kusi/my-setup.md: my own setup on one page (one person's setup, not a recommendation)
- docs/kusi/calm-home/DESIGN_AND_PLAN.md and docs/kusi/insulin-flow/DESIGN_AND_PLAN.md: Calm home and its insulin flow, every state and every rule
- docs/kusi/showcase/README.md: how the images on this page are rendered, and the synthetic data they use
- docs/kusi/CI.md: what Kusi CI checks on every push, and why it publishes no APK
- kusi/whatif/README.md: What-If AutoISF, the desktop replay tool, and kusi/dbexport/README.md: the Database copy that feeds it
- Engineering records: KUSI_PATCHES.md (every core touch and its test), KUSI_BACKPORTS.md (every upstream fix considered) and REPLAY_RESULTS.md (the port measured against AutoISF 3.2.1)
- The base port: docs/README_AAPS4_AUTOISF.md and its changelog CHANGELOG-autoISF.md (German)
This mod is a small layer on top of years of other people's work. Thank you:
- The AndroidAPS team and contributors (nightscout/AndroidAPS), maintained by Milos Kozak. That includes the authors of the upstream fixes ported here (Milos Kozak, Philoul and, on the 3.4 line, Ruud van den Brink). Thanks also to OpenAPS (oref0/oref1), the algorithm base, and the Nightscout project.
- AutoISF by ga-zelle and T-o-b-i-a-s, with the testers and contributors named there, among them swissalpine.
- bjr (blaqone/AAPS-autoISF) for the AAPS 4.0.0 +
AutoISF 3.2.1 port this mod is built on, and JetFoxy for the
autoisf-3.2.1branch that port started from. - Juggluco (Jaap Korthals Altes) and xDrip+, the CGM data paths this was used with. No code was copied from them.
- Roboto by Google (Apache License 2.0), the typeface of the images on this page.
Same as AndroidAPS: GNU Affero General Public License v3.0 (LICENSE.txt). This
mod is a modified version of AndroidAPS and of the AutoISF port, and is licensed as a whole under the
AGPL-3.0. The modifications are marked // KUSI: in core files and listed in
KUSI_PATCHES.md and KUSI_BACKPORTS.md.
This program comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law (see sections 15 and 16 of the license). AndroidAPS, AAPS and Nightscout are names of their projects. They are used here only to describe what this mod is built on.








