Add IMS/VoLTE/VoWiFi stack and fix Dual-SIM cellular mobile data

- Add Qualcomm MCFG .mbn parser and profile store (bananarchy-imsctl), QMI_PDC/QMI_IMSDCM VoLTE daemon (bananarchy-imsd), and SWu IKEv2/EAP-AKA/ESP/SIP/AMR VoWiFi engine (bananarchy-vowifi) with disabled-by-default (auto) 4G-only activation and xmodem/xfiles/xcallscreen UI support.

- Add libmm-wds-bind.so QMI_SERVICE_WDS PRIMARY subscription binding (including serialized post-mux/data-port binding), msm-modem-uim-selection DSDS PS-domain handoff, cs-only dial pause/restore (10-bananarchy-dpm.sh), cold-boot mmcli -K recovery, and networks.so connection.autoconnect no race fix.

- Add offline test suites (test-ims-mbn.py, test-imsd-volte.py, test-vowifi-swu-ims.py, test-lte-mobile-data.py), update docs (CHANGELOG.md Unreleased, README.md, MANUAL.md, AGENTS.md), and pin rebuilt 4-target image SHA-256 hashes in scripts/check-rebuild.sh.
This commit is contained in:
Luxferre committed 2026-11-20 19:18:58 +02:00
1 parent 03bc80f267
commit c40ec932de
65 files changed
+11916 -129

No files matched your search

+47
View File
@@ -265,6 +265,10 @@ bool isYabasicExt(const std::string& ext) {
return ext == "yab";
}
bool isMbnExt(const std::string& ext) {
return ext == "mbn";
}
bool isLikelyTextFile(const std::string& path, off_t size) {
if (size == 0) return true;
if (size > 256 * 1024) return false;
@@ -1083,6 +1087,9 @@ int runFilesApp(int argc, char** argv) {
} else if (isYabasicExt(ext) && !duress) {
actionsList.push_back({1, kIconTerm, "Run in Yabasic (Terminal)"});
actionsList.push_back({17, kIconEye, "View Text"});
} else if (isMbnExt(ext) && !duress) {
actionsList.push_back({26, kIconSim, "Install IMS Profile (.mbn)"});
actionsList.push_back({27, kIconInfo, "Inspect IMS Profile"});
} else {
actionsList.push_back({1, kIconEye, "Open / View"});
}
@@ -1205,6 +1212,10 @@ int runFilesApp(int argc, char** argv) {
} else if (isYabasicExt(ext)) {
runYabasicInTerminal(item.fullPath);
return;
} else if (isMbnExt(ext) && !isDuressMode()) {
buildActionsList();
mode = ViewMode::Actions;
return;
} else if (isMediaExt(ext)) {
hideWindow();
runAsyncArgv("sxmo_open.sh", item.fullPath.c_str());
@@ -1321,6 +1332,9 @@ int runFilesApp(int argc, char** argv) {
} else if (isGameBoyExt(ext) || isJ2meExt(ext)) {
ic = kIconGamepad;
icCol = &colYellow;
} else if (isMbnExt(ext)) {
ic = kIconSim;
icCol = &colGreen;
} else if (isYabasicExt(ext) || it.isExec || ext == "sh") {
ic = kIconTerm;
icCol = &colOrange;
@@ -2275,6 +2289,39 @@ int runFilesApp(int argc, char** argv) {
btTargets = queryBtSendTargets(false);
btTargetSel = 0;
mode = ViewMode::BtSendModal;
} else if (actId == 26 && !filteredItems.empty() && !isDuressMode()) {
const auto& item = filteredItems[selected];
int rc = -1;
std::string out = trimStr(runCaptureCmd(
"doas -n /usr/bin/bananarchy-imsctl profile install " +
shellQuote(item.fullPath) + " --activate 2>&1", &rc));
statusBanner = (rc == 0) ? ("IMS profile installed: " + item.name)
: ("MBN install failed" + (out.empty() ? "" : (": " + out)));
statusBannerUntilMs = nowMs() + 2600;
mode = ViewMode::Browser;
} else if (actId == 27 && !filteredItems.empty() && !isDuressMode()) {
const auto& item = filteredItems[selected];
int rc = 0;
std::string out = runCaptureCmd(
"/usr/bin/bananarchy-imsctl profile inspect " +
shellQuote(item.fullPath) + " 2>&1", &rc);
viewingFilePath = item.fullPath;
viewingFileName = item.name;
textLines.clear();
textScrollLine = 0;
std::istringstream iss(out.empty() ? "Unable to inspect MBN." : out);
std::string line;
while (std::getline(iss, line)) {
if (!line.empty() && line.back() == '\r') line.pop_back();
if (line.empty()) {
textLines.push_back("");
} else {
for (size_t pos = 0; pos < line.size(); pos += 30) {
textLines.push_back(line.substr(pos, 30));
}
}
}
mode = ViewMode::TextView;
}
};