Compare commits

...
Author SHA1 Message Date
e7d481a48e Move Astar Hub links to astar76.com
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 16:25:58 -06:00
13f199ed59 docs: Astar Hub moved to astar76sites.parore-gila.ts.net
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 12:15:15 -06:00
5d5151687b docs: Astar Hub moved to astar76sites.tail7c4f5e.ts.net
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 12:07:42 -06:00
dfecc24142 Add CLAUDE.md and tools/verify for future sessions
tools/verify runs every check that doesn't need an install. The test harness
now holds a keep-awake assertion and a longer limit, because idle phones froze
runs partway through.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 22:55:49 -06:00
e6d0ac6ddd Mention Filza in the install steps
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 20:08:40 -06:00
9e11560d93 Stop tracking HANDOFF.md
It holds local setup notes, and the repo is going public. It stays on disk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 20:03:09 -06:00
a41a8ab6f0 Add a project page: README, screenshots and showcase video
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 20:00:11 -06:00
12 changed files with 145 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
build/
/releases/
/HANDOFF.md

58
CLAUDE.md Normal file
View file

@ -0,0 +1,58 @@
# Islet
A Dynamic Island for notched iPhones: a SpringBoard tweak in Objective-C, no Theos. Built for an iPhone XR on iOS 18.7.1
with Dopamine rootless. Read `HANDOFF.md` first if it exists: it is local-only and holds the phone's address, setup and
what is confirmed on device.
## Never do these
- Never respring, reboot, run `sbreload` or install anything. The owner installs and resprings by hand.
- Never break the arm64e rules below. A mistake takes SpringBoard down, not just the build.
- Never put private details in tracked files: this repo is public. Local details go in `HANDOFF.md`, which is gitignored.
## arm64e rules
This clang can't produce the signed pointers the arm64e runtime wants, so these crash at runtime, not at compile time.
`tools/lint` catches what it can.
- No static Objective-C classes. Create them at runtime with `MakeClass`.
- No `@"..."` literals in `src/Islet.m` or `src/IsletPrefs.m`: use `NS("...")`. Test executables built arm64 may use them.
- No global or static blocks. Use `HB(^{ (void)_islet_z; ... })` with `int _islet_z = 0; (void)_islet_z;` in scope.
- Every selector used as a gesture or notification target must be registered on its runtime class.
- `IsletPing` loads into a daemon: Foundation only, built with `tools/build-arch <arch> mini`.
- Hooks go through `SwizzleChecked`, which refuses a missing method or an unexpected return type.
## Finding private APIs
Don't guess a selector. On the phone, `/var/mobile/probe4 <framework path> <Class>` dumps a class. SpringBoard's classes can be
probed from outside by passing `/System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard`. Also `like:<text>`,
`proto:<text>`, `sym:<name>` and `call:Class.selector`. The source is `src/probe.m`.
Prefer an event over polling, and when a stock UI signal is unreliable find the real one: the lock pill uses authentication
state because the lock screen's own signals also fire for Notification Center.
## Working on it
1. Change the code, and add a check to `SelfTest` in `src/Islet.m` for anything testable.
2. Bump `VERSION` when a new build is going to the phone.
3. Run `tools/verify`: lint, package, self test, Settings test and load tests, then it copies the deb to `/var/mobile/islet.deb`.
4. Look at the PNGs in `build/selftest`. Passing checks say nothing about how a card looks.
5. Tell the owner what to install and what to try. Say plainly what only ran offscreen.
Before trusting a report from the phone, check the running version: `isletctl dump`, then the first line of
`/var/jb/var/mobile/islet-dump.txt`. A report once turned out to be about the previous build.
New settings need a default in both the code and `pkg/prefs/Root.plist`: `tools/lint` fails if they differ.
## Layout
- `src/Islet.m`: the tweak. Sections are `#pragma mark`s: Arbitration, Sources, Accessories and batteries, System state, Hooks.
- `src/IsletPrefs.m` and `pkg/prefs/`: the Settings page. `src/IsletPing.m`: the Watch ping hook. `src/isletctl.m`: the CLI.
- `tools/`: `verify`, `package.sh`, `build-arch`, `selftest`, `lint`, `film` and `film-edit.py`.
- Activities are dictionaries (`Act`). Long-running ones go in `gOngoing` with a priority, popups go through `PostTransient`.
`Suppressed()` decides when the island steps aside, and stock UI must come back whenever it does.
## Releases
`docs/releases/<version>.md` holds the notes. See the global instructions for the folder and upload steps, and tell the owner
the version and contents before publishing. The showcase video is `tools/film` then `tools/film-edit.py`.

View file

@ -1,7 +1,39 @@
<div align="center">
<img src="assets/islet.svg" width="104" alt="Islet">
# Islet
Dynamic Island for notched iPhones (built for iPhone XR, iOS 18.7.1, Dopamine rootless). SpringBoard tweak in
Objective-C, no Theos: compiled with the swift.org clang + iPhoneOS 18.6 SDK, linked and signed on the phone.
**A Dynamic Island for notched iPhones.**
Music, calls, timers, AirPods, your Apple Watch and every system popup, in one small
island that clings to the notch, in portrait and landscape.
[Download](https://astar76.com/git/astar76/Islet/releases/latest) ·
[Watch the video](docs/showcase.mp4) ·
[Settings](#settings) ·
[Build](#build-and-test)
<video src="https://astar76.com/git/astar76/Islet/raw/branch/main/docs/showcase.mp4" controls></video>
[![Islet showing music, AirPods, a timer, a call, a notification and more](docs/cards.png)](docs/showcase.mp4)
</div>
## Install
Grab `Islet-<version>-iphoneos-arm64.deb` from [Releases](https://astar76.com/git/astar76/Islet/releases) and copy it to the phone.
Open it in **Filza** and tap **Install**, or use a terminal:
```sh
sudo dpkg -i Islet-0.7.6-iphoneos-arm64.deb
```
Respring when you're ready: Islet never does it for you. Configure it in **Settings > Islet**.
Built and tested on an iPhone XR with iOS 18.7.1 and Dopamine rootless. It needs ElleKit and PreferenceLoader.
Other devices and iOS versions are untested. Without the jailbreak active the phone is plain stock:
nothing Islet changes outlives SpringBoard.
## What it shows
@ -19,6 +51,11 @@ Objective-C, no Theos: compiled with the swift.org clang + iPhoneOS 18.6 SDK, li
banner), airplane mode, Wi-Fi, cellular data and Bluetooth toggles, rotation lock, AirDrop visibility, network changes,
an app starting on the camera or microphone, lock and unlock (off by default). Popups dismiss themselves.
Online lyrics send the song title and artist to lrclib, then NetEase if needed. Video apps are excluded, and both can be
turned off in Settings.
![Landscape, with the island on the notch on either side](docs/landscape.png)
## Gestures
| Gesture | Compact | Unfolded | Popup |
@ -45,6 +82,7 @@ lyrics, onlineLyrics, neteaseLyrics, watchPing, hideLandscape, hideFullscreenVid
## Build and test
- `tools/verify` runs everything below that can be checked without installing, then copies the deb to the phone.
- `tools/package.sh` builds `build/com.astar76.islet_<VERSION>_iphoneos-arm64.deb`. It runs `tools/lint` first, which
catches the arm64e rule breaks the compiler can't see.
- `tools/selftest` renders every island state offscreen on the phone in a throwaway process, never SpringBoard, runs

5
assets/islet.svg Normal file
View file

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120">
<rect width="120" height="120" rx="27" fill="#0a84ff"/>
<rect x="20" y="44" width="80" height="32" rx="16" fill="#000"/>
<circle cx="84" cy="60" r="7" fill="#30d158"/>
</svg>

After

Width:  |  Height:  |  Size: 269 B

BIN
docs/cards.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
docs/landscape.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View file

@ -11,11 +11,13 @@ Built and tested on an iPhone XR with iOS 18.7.1 and Dopamine rootless. It needs
- **System popups:** volume, silent switch with the swinging bell, Focus, airplane mode, Wi-Fi, cellular data, Bluetooth, rotation lock, AirDrop, Low Power Mode, battery, Face ID lock and unlock.
- **Landscape:** the island stays on the notch on either side.
Watch every animation in `Islet-0.7.6-showcase.mp4`, attached below.
## Using it
Tap to unfold, swipe up to hide, swipe sideways to switch activity, long press to open the app. Everything is in Settings > Islet and applies live, including Reset to Recommended Settings under Recovery.
Install with `sudo dpkg -i Islet-0.7.6-iphoneos-arm64.deb`, then respring. A respring is not run for you.
Install by opening the deb in Filza, or with `sudo dpkg -i Islet-0.7.6-iphoneos-arm64.deb`, then respring. A respring is not run for you.
## Good to know

BIN
docs/showcase.mp4 Normal file

Binary file not shown.

View file

@ -1093,7 +1093,7 @@ static NSMutableURLRequest *LrclibRequest(const char *path, NSArray *query) {
NSURLComponents *u = [NSURLComponents componentsWithString:[NS("https://lrclib.net/api/") stringByAppendingString:NS(path)]];
u.queryItems = query;
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:u.URL];
[req setValue:NS("Islet (https://archlinux.tail7c4f5e.ts.net/git/astar76/Islet)") forHTTPHeaderField:NS("User-Agent")];
[req setValue:NS("Islet (https://astar76.com/git/astar76/Islet)") forHTTPHeaderField:NS("User-Agent")];
return req;
}

View file

@ -2,8 +2,16 @@
// loadtest <dylib> [seconds]. With ISLET_SELFTEST=<dir> the dylib renders its cards there and exits by itself.
#import <Foundation/Foundation.h>
#import <dlfcn.h>
#import <mach/mach_time.h>
int main(int argc, char **argv) {
@autoreleasepool {
// An idle phone sleeps with its screen off and freezes this process mid-run, so hold it awake while it works.
void *iokit = dlopen("/System/Library/Frameworks/IOKit.framework/IOKit", RTLD_NOW);
int (*assertion)(CFStringRef, uint32_t, CFStringRef, uint32_t *) = iokit ? dlsym(iokit, "IOPMAssertionCreateWithName") : NULL;
uint32_t held = 0;
CFStringRef kind = CFStringCreateWithCString(NULL, "NoIdleSleepAssertion", kCFStringEncodingUTF8), why = CFStringCreateWithCString(NULL, "Islet test", kCFStringEncodingUTF8);
int rc = assertion ? assertion(kind, 255, why, &held) : -1;
printf("keep awake: %s\n", rc == 0 ? "held" : "not held");
void *h = dlopen(argv[1], RTLD_NOW);
printf("dlopen: %s\n", h ? "ok" : dlerror());
if (!h) return 1;

View file

@ -8,6 +8,7 @@ SWIFT=${SWIFT:-$HOME/.local/opt/swift/usr/bin}
tools/build-arch arm64e exe build/loadtest-e tests/loadtest.m
ssh -i "$KEY" "$PH" 'rm -rf /var/jb/var/mobile/t/selftest; mkdir -p /var/jb/var/mobile/t/selftest'
scp -q -i "$KEY" build/Islet-arm64e.dylib build/loadtest-e "$PH:/var/jb/var/mobile/t/"
ssh -i "$KEY" "$PH" 'cd /var/jb/var/mobile/t && ldid -S Islet-arm64e.dylib && ISLET_SELFTEST=/var/jb/var/mobile/t/selftest ./loadtest-e ./Islet-arm64e.dylib 90'
ssh -i "$KEY" "$PH" 'cd /var/jb/var/mobile/t && ldid -S Islet-arm64e.dylib && ISLET_SELFTEST=/var/jb/var/mobile/t/selftest ./loadtest-e ./Islet-arm64e.dylib 120'
rm -rf build/selftest; scp -rq -i "$KEY" "$PH:/var/jb/var/mobile/t/selftest" build/selftest
test -f build/selftest/status.txt || { echo "self test wrote no result"; exit 1; }
cat build/selftest/status.txt

27
tools/verify Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
# Everything that can be checked without installing: lint, package, self test, Settings test, load test, then copies the deb
# to /var/mobile/islet.deb. Never installs and never resprings. Stops at the first failure, and an old result never counts.
set -euo pipefail
cd "$(dirname "$0")/.."
KEY=${IPHONE_KEY:-$HOME/.ssh/iphone_key}; PH=${IPHONE:[email protected]}; T=/var/jb/var/mobile/t
V=$(cat VERSION); DEB=build/com.astar76.islet_${V}_iphoneos-arm64.deb
tools/package.sh > build/pkg.log 2>&1 </dev/null || { grep -E " error|lint:" build/pkg.log | sort -u | head; exit 1; }
tail -1 build/pkg.log; test -f "$DEB"
rm -rf build/selftest
tools/selftest > build/st.log 2>&1 </dev/null || { tail -5 build/st.log; exit 1; }
test -f build/selftest/status.txt || { echo "self test wrote no result (it can stall: run this again)"; exit 1; }
PASS=$(grep -cE '^PASS' build/selftest/status.txt || true); FAIL=$(grep -cE '^FAIL|EXCEPTION' build/selftest/status.txt || true)
echo "self test: $PASS passed, $FAIL failed; $(tail -1 build/selftest/status.txt)"
[ "$FAIL" = 0 ] || { grep -E '^FAIL|EXCEPTION' build/selftest/status.txt; exit 1; }
tools/build-arch arm64 exe build/prefstest tests/prefstest.m </dev/null
ssh -i "$KEY" "$PH" "rm -rf $T/pb; mkdir -p $T/pb" </dev/null
scp -q -i "$KEY" -r build/deb/var/jb/Library/PreferenceBundles/IsletPrefs.bundle "$PH:$T/pb/" </dev/null
scp -q -i "$KEY" build/prefstest build/deb/var/jb/Library/MobileSubstrate/DynamicLibraries/Islet.dylib build/deb/var/jb/Library/MobileSubstrate/DynamicLibraries/IsletPing.dylib "$PH:$T/" </dev/null
ssh -i "$KEY" "$PH" "cd $T && ISLET_PREFS_BUNDLE=\$PWD/pb/IsletPrefs.bundle ISLET_PREFS_FILE=\$PWD/pb/t.plist ./prefstest \$PWD/pb/IsletPrefs.bundle/IsletPrefs | tail -1 | grep -qx PASS && echo 'settings test: PASS'
for id in com.apple.Preferences com.apple.springboard; do ISLET_BID=\$id ./loadtest-e ./Islet.dylib | tail -1 | grep -qx PASS && echo \"load test (\$id): PASS\"; done
./loadtest-e ./IsletPing.dylib 1 | tail -1 | grep -qx PASS && echo 'load test (ping hook): PASS'" </dev/null
scp -q -i "$KEY" "$DEB" "$PH:/var/mobile/islet.deb" </dev/null
echo "copied to /var/mobile/islet.deb: $(sha256sum "$DEB" | cut -c1-16)"