mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
JIANT runs under the boot head of V15 and of V16, while V15's app under V16's head is untested; the rescue never writes the head, so an FM-1 that came with V16 is restored to JIANT. The android workflow puts the public JIANT package in the APK (android/rescue/fetch_jiant.py, same checks as make_site.py, GPL + Apache-2.0 notices). The app offers JIANT (default), the official V15 (downloaded once) or a .fwsc of your own; the web page and make_uf2.mjs accept JIANT packages too (identity FM-1_9xx, flash.bin exactly 0x93000, Felucca loader inside). Tested with a package made by tools/fm1pkg_make.py: Java, JS and the page agree byte for byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
12 lines
598 B
Bash
Executable File
12 lines
598 B
Bash
Executable File
#!/bin/sh
|
|
# android/rescue/test/run.sh V15.fwsc V16.fwsc wl82loader.bin WEB.uf2 BASE_ZERO.uf2 [JIANT.fwsc JIANT_REGION.bin]
|
|
# WEB.uf2: node rescue/make_uf2.mjs BASE_ZERO.uf2 V15.fwsc wl82loader.bin WEB.uf2
|
|
set -e
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
OUT="${TMPDIR:-/tmp}/fm1-rescue-app-test"
|
|
rm -rf "$OUT" && mkdir -p "$OUT"
|
|
javac -d "$OUT" "$HERE/../app/src/main/java/fm/jiant/rescue/RescueImage.java" \
|
|
"$HERE/../app/src/main/java/fm/jiant/rescue/Picoboot.java" \
|
|
"$HERE/../app/src/main/java/fm/jiant/rescue/RescueStatus.java" "$HERE/RescueTest.java"
|
|
java -cp "$OUT" RescueTest "$@"
|