From 07d15484c78ddb8df0b1ed7fa1d4c16506cc2ddc Mon Sep 17 00:00:00 2001
From: l2uler <335852737+CodePhrex@users.noreply.github.com>
Date: Sun, 25 Oct 2026 14:41:47 -0700
Subject: [PATCH 1/4] fix: register wireless diagnostics in bottom navigation
---
app/(tabs)/_layout.tsx | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
index f13b6a7..e3f3968 100644
--- a/app/(tabs)/_layout.tsx
+++ b/app/(tabs)/_layout.tsx
@@ -68,6 +68,13 @@ export default function TabLayout() {
tabBarIcon: ({ color }) => ,
}}
/>
+ ,
+ }}
+ />
);
}
From 5ef75c397e8a970b90dff68eb72c5ca739e6791a Mon Sep 17 00:00:00 2001
From: l2uler <335852737+CodePhrex@users.noreply.github.com>
Date: Sun, 25 Oct 2026 14:45:23 -0700
Subject: [PATCH 2/4] Add mobile-first Tools hub screen
---
app/(tabs)/tools.tsx | 134 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 134 insertions(+)
create mode 100644 app/(tabs)/tools.tsx
diff --git a/app/(tabs)/tools.tsx b/app/(tabs)/tools.tsx
new file mode 100644
index 0000000..eb9ebd0
--- /dev/null
+++ b/app/(tabs)/tools.tsx
@@ -0,0 +1,134 @@
+import { useRouter } from "expo-router";
+import { Pressable, ScrollView, StyleSheet, Text, View } from "react-native";
+
+import { ScreenContainer } from "@/components/screen-container";
+import { IconSymbol } from "@/components/ui/icon-symbol";
+import { palette } from "@/constants/commander";
+
+type ToolItem = {
+ title: string;
+ eyebrow: string;
+ detail: string;
+ icon: string;
+ route: "/(tabs)/wireless-diagnostics-screen" | "/(tabs)/catalog" | "/(tabs)/sessions" | "/(tabs)/usb";
+ tag: string;
+};
+
+const tools: ToolItem[] = [
+ {
+ title: "Wireless diagnostics",
+ eyebrow: "WI-FI · BLUETOOTH",
+ detail: "Review the current preview and see what is required for real radio discovery.",
+ icon: "wifi",
+ route: "/(tabs)/wireless-diagnostics-screen",
+ tag: "PREVIEW",
+ },
+ {
+ title: "CVE & patch library",
+ eyebrow: "THREAT INTELLIGENCE",
+ detail: "Review catalog freshness, patch references and evidence-based host correlations.",
+ icon: "book.closed.fill",
+ route: "/(tabs)/catalog",
+ tag: "LOCAL + FEEDS",
+ },
+ {
+ title: "Session reports",
+ eyebrow: "HISTORY · AUDIT",
+ detail: "Open saved host assessments and export the privileged-action disclosure.",
+ icon: "clock.arrow.circlepath",
+ route: "/(tabs)/sessions",
+ tag: "LOCAL",
+ },
+ {
+ title: "USB Link",
+ eyebrow: "COOPERATIVE TRANSPORT",
+ detail: "Inspect USB-host capability, permission requests and approved companion status.",
+ icon: "cable.connector",
+ route: "/(tabs)/usb",
+ tag: "DEVICE SUPPORT",
+ },
+];
+
+export default function ToolsScreen() {
+ const router = useRouter();
+
+ return (
+
+
+
+
+ DROID COMMANDER / TOOLKIT
+ Choose a tool.
+
+
+
+
+
+
+ Device checks first. Every tool states its data source and limits before you act.
+
+
+
+ CURRENT DEVICE SESSION
+ Read-only by default
+
+ Droid Commander does not bypass Android permissions. A visible tool or a successful UI action does not mean the underlying native capability is available.
+
+
+
+ {tools.map((tool, index) => (
+ router.push(tool.route)}
+ style={({ pressed }) => [styles.toolCard, pressed && styles.pressed]}
+ >
+
+
+
+
+ {tool.tag}
+
+ {`0${index + 1} / ${tool.eyebrow}`}
+ {tool.title}
+ {tool.detail}
+
+ Open tool
+ →
+
+
+ ))}
+
+ Preview labels are intentional. Real-device discovery and vulnerability correlation must be supported by native readings before results are treated as evidence.
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ content: { paddingHorizontal: 20, paddingTop: 20, paddingBottom: 36 },
+ headerRow: { flexDirection: "row", justifyContent: "space-between", alignItems: "center" },
+ headerCopy: { flex: 1, paddingRight: 12 },
+ kicker: { color: palette.orange, fontSize: 10, fontWeight: "900", letterSpacing: 1.1 },
+ title: { color: palette.ink, fontSize: 32, fontWeight: "900", letterSpacing: -1.2, marginTop: 5 },
+ mark: { width: 48, height: 48, borderRadius: 15, backgroundColor: palette.navy, alignItems: "center", justifyContent: "center" },
+ subtitle: { color: palette.muted, fontSize: 14, lineHeight: 21, marginTop: 10, marginBottom: 18 },
+ notice: { backgroundColor: palette.navy, borderRadius: 18, padding: 17, marginBottom: 20 },
+ noticeLabel: { color: palette.navyMuted, fontSize: 9, fontWeight: "900", letterSpacing: 1 },
+ noticeTitle: { color: "#FFFFFF", fontSize: 18, fontWeight: "800", marginTop: 7 },
+ noticeBody: { color: palette.navyMuted, fontSize: 12, lineHeight: 18, marginTop: 7 },
+ toolCard: { backgroundColor: "#FFFFFF", borderColor: palette.line, borderWidth: 1, borderRadius: 18, padding: 16, marginBottom: 12 },
+ pressed: { opacity: 0.78, transform: [{ scale: 0.99 }] },
+ toolTop: { flexDirection: "row", justifyContent: "space-between", alignItems: "center" },
+ toolIcon: { width: 42, height: 42, borderRadius: 13, backgroundColor: palette.orangeSoft, alignItems: "center", justifyContent: "center" },
+ tag: { color: palette.muted, fontSize: 9, fontWeight: "900", letterSpacing: 0.5, borderWidth: 1, borderColor: palette.line, borderRadius: 7, paddingHorizontal: 8, paddingVertical: 5 },
+ toolEyebrow: { color: palette.orange, fontSize: 9, fontWeight: "900", letterSpacing: 0.9, marginTop: 14 },
+ toolTitle: { color: palette.ink, fontSize: 19, fontWeight: "800", marginTop: 4 },
+ toolDetail: { color: palette.muted, fontSize: 13, lineHeight: 19, marginTop: 5 },
+ openRow: { flexDirection: "row", justifyContent: "space-between", alignItems: "center", marginTop: 14, paddingTop: 12, borderTopWidth: 1, borderTopColor: "#EDF0ED" },
+ openText: { color: palette.ink, fontSize: 12, fontWeight: "800" },
+ arrow: { color: palette.orange, fontSize: 20, fontWeight: "800" },
+ footer: { color: palette.muted, fontSize: 11, lineHeight: 16, marginTop: 7, paddingHorizontal: 3 },
+});
From cedcd96a3f62ba9a58df2e49c2154c9f17dde5cb Mon Sep 17 00:00:00 2001
From: l2uler <335852737+CodePhrex@users.noreply.github.com>
Date: Sun, 25 Oct 2026 14:45:59 -0700
Subject: [PATCH 3/4] Simplify bottom navigation and add Tools hub
---
app/(tabs)/_layout.tsx | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
index e3f3968..c207c45 100644
--- a/app/(tabs)/_layout.tsx
+++ b/app/(tabs)/_layout.tsx
@@ -48,17 +48,17 @@ export default function TabLayout() {
}}
/>
,
+ title: "Tools",
+ tabBarIcon: ({ color }) => ,
}}
/>
,
+ title: "Sessions",
+ tabBarIcon: ({ color }) => ,
}}
/>
,
}}
/>
- ,
- }}
- />
+
+
);
}
From dbdfe1c913e402cbd872947437909e2fe715d208 Mon Sep 17 00:00:00 2001
From: l2uler <335852737+CodePhrex@users.noreply.github.com>
Date: Sun, 25 Oct 2026 14:46:00 -0700
Subject: [PATCH 4/4] Redesign wireless diagnostics with honest live-scan
status
---
app/(tabs)/wireless-diagnostics-screen.tsx | 189 +++++++++++----------
1 file changed, 101 insertions(+), 88 deletions(-)
diff --git a/app/(tabs)/wireless-diagnostics-screen.tsx b/app/(tabs)/wireless-diagnostics-screen.tsx
index 4cca851..b6acc29 100644
--- a/app/(tabs)/wireless-diagnostics-screen.tsx
+++ b/app/(tabs)/wireless-diagnostics-screen.tsx
@@ -1,109 +1,122 @@
-import React, { useState, useEffect } from "react";
-import { View, Text, StyleSheet, ScrollView, TouchableOpacity, ActivityIndicator } from "react-native";
-import { WirelessManager, WiFiNetwork, BluetoothDevice } from "../../lib/wireless-manager";
+import { Alert, Pressable, ScrollView, StyleSheet, Text, View } from "react-native";
-export default function WirelessDiagnosticsScreen() {
- const [wifiNetworks, setWifiNetworks] = useState([]);
- const [btDevices, setBtDevices] = useState([]);
- const [loading, setLoading] = useState(false);
- const [adbStatus, setAdbStatus] = useState("Inactive");
- const [securityScore, setSecurityScore] = useState(null);
-
- const manager = WirelessManager.getInstance();
+import { ScreenContainer } from "@/components/screen-container";
+import { palette } from "@/constants/commander";
- const handleRunDiagnostics = async () => {
- setLoading(true);
- try {
- const wifi = await manager.scanWiFiNetworks();
- const bt = await manager.scanBluetoothDevices();
- setWifiNetworks(wifi);
- setBtDevices(bt);
-
- const report = manager.generateSecurityReport(wifi, bt);
- setSecurityScore(report.securityPostureScore);
- } catch (err) {
- console.error("Failed wireless diagnostics scan", err);
- } finally {
- setLoading(false);
- }
- };
+const previewNetworks = [
+ { name: "Example-Lab-5G", detail: "WPA3 · 5 GHz · sample only", strength: "Strong" },
+ { name: "Guest-Network", detail: "Open · 2.4 GHz · sample only", strength: "Review" },
+];
+const previewDevices = [
+ { name: "Example BLE Sensor", detail: "BLE · sample only", status: "Paired" },
+ { name: "Example Beacon", detail: "BLE · sample only", status: "Unknown" },
+];
- const handleEnableAdbWifi = async () => {
- const res = await manager.enableWirelessDebugging(5555);
- setAdbStatus(`Active on ${res.ipAddress}:${res.port}`);
+export default function WirelessDiagnosticsScreen() {
+ const explainRealScan = () => {
+ Alert.alert(
+ "Real scan not available yet",
+ "This build has no native Wi-Fi/Bluetooth discovery implementation connected to this screen. Android permissions and OS restrictions also apply. The examples below are demo data, not nearby devices. No scan was performed.",
+ );
};
- useEffect(() => {
- handleRunDiagnostics();
- }, []);
-
return (
-
- Wireless & Network Diagnostics
- Wi-Fi Posture, BLE Scanning & Wireless ADB Channel
+
+
+ TOOLS / RADIO VISIBILITY
+ Wireless diagnostics.
+
+ A transparent preview of the intended Wi-Fi and Bluetooth workflow. Live radio discovery is not connected in this build.
+
-
- Quick Controls
-
-
- {loading ? : Scan Network}
-
-
- Enable ADB over Wi-Fi
-
-
- Wireless ADB Status: {adbStatus}
- {securityScore !== null && (
- 75 ? "#4CAF50" : "#FF9800" }]}>
- Security Posture Score: {securityScore}/100
+
+
+
+ DEMO PREVIEW · NOT A LIVE SCAN
+
+ Device discovery is not enabled
+
+ Droid Commander currently has no native scanner feeding this screen. The sample entries below are clearly marked and must not be used as evidence of nearby networks or devices.
- )}
-
+ [styles.primaryButton, pressed && styles.pressed]}>
+ Check live-scan availability
+ →
+
+
-
- Wi-Fi Networks ({wifiNetworks.length})
- {wifiNetworks.map((net, idx) => (
-
-
- {net.ssid} {net.isConnected ? "(Connected)" : ""}
- BSSID: {net.bssid} | {net.security}
+
+ Wi-Fi preview
+ 2 EXAMPLES
+
+ {previewNetworks.map((network) => (
+
+ Wi
+
+ {network.name}
+ {network.detail}
- {net.rssi} dBm
+ {network.strength}
))}
-
-
- Bluetooth & BLE Devices ({btDevices.length})
- {btDevices.map((dev, idx) => (
-
-
- {dev.address} | {dev.type} | {dev.isPaired ? "Paired" : "Unpaired"}
+
+ Bluetooth preview
+ 2 EXAMPLES
+
+ {previewDevices.map((device) => (
+
+ BT
+
+ {device.name}
+ {device.detail}
- {dev.rssi} dBm
+ {device.status}
))}
-
-
+
+
+ Why is the list not live?
+
+ A screen and a button cannot discover radios by themselves. The app needs supported native APIs, the right runtime permissions, device settings where required, and tested Android-version behavior. Those pieces have not yet been implemented here.
+
+
+ Wireless debugging is not enabled by this screen. Use Android Developer options to manage wireless debugging manually.
+
+
);
}
const styles = StyleSheet.create({
- container: { flex: 1, backgroundColor: "#0A0E17" },
- content: { padding: 16 },
- title: { fontSize: 22, fontWeight: "bold", color: "#E2E8F0", marginBottom: 4 },
- subtitle: { fontSize: 13, color: "#94A3B8", marginBottom: 16 },
- card: { backgroundColor: "#1E293B", borderRadius: 12, padding: 16, marginBottom: 16, borderWidth: 1, borderColor: "#334155" },
- cardTitle: { fontSize: 16, fontWeight: "600", color: "#38BDF8", marginBottom: 12 },
- buttonRow: { flexDirection: "row", gap: 10, marginBottom: 12 },
- primaryButton: { flex: 1, backgroundColor: "#0284C7", paddingVertical: 12, borderRadius: 8, alignItems: "center" },
- secondaryButton: { flex: 1, backgroundColor: "#334155", paddingVertical: 12, borderRadius: 8, alignItems: "center" },
- buttonText: { color: "#FFFFFF", fontWeight: "600" },
- secondaryButtonText: { color: "#38BDF8", fontWeight: "600" },
- adbText: { color: "#CBD5E1", fontSize: 13, marginTop: 4 },
- scoreText: { fontSize: 14, fontWeight: "bold", marginTop: 8 },
- listItem: { flexDirection: "row", justifyContent: "space-between", alignItems: "center", paddingVertical: 8, borderBottomWidth: 1, borderBottomColor: "#334155" },
- itemTitle: { color: "#F8FAFC", fontSize: 14, fontWeight: "500" },
- itemSub: { color: "#94A3B8", fontSize: 12, marginTop: 2 },
- rssiText: { color: "#38BDF8", fontWeight: "bold", fontSize: 13 },
+ content: { paddingHorizontal: 20, paddingTop: 20, paddingBottom: 36 },
+ kicker: { color: palette.orange, fontSize: 10, fontWeight: "900", letterSpacing: 1.1 },
+ title: { color: palette.ink, fontSize: 30, fontWeight: "900", letterSpacing: -1, marginTop: 5 },
+ subtitle: { color: palette.muted, fontSize: 14, lineHeight: 20, marginTop: 8, marginBottom: 18 },
+ statusCard: { backgroundColor: palette.navy, borderRadius: 20, padding: 18, marginBottom: 24 },
+ statusRow: { flexDirection: "row", alignItems: "center" },
+ statusDot: { width: 7, height: 7, borderRadius: 5, backgroundColor: palette.orange, marginRight: 8 },
+ statusLabel: { color: palette.orange, fontSize: 9, fontWeight: "900", letterSpacing: 0.7 },
+ statusTitle: { color: "#FFFFFF", fontSize: 20, fontWeight: "800", marginTop: 12 },
+ statusDetail: { color: palette.navyMuted, fontSize: 12, lineHeight: 18, marginTop: 7 },
+ primaryButton: { backgroundColor: palette.orange, borderRadius: 12, paddingHorizontal: 13, minHeight: 48, marginTop: 16, flexDirection: "row", alignItems: "center", justifyContent: "space-between" },
+ pressed: { opacity: 0.78 },
+ primaryButtonText: { color: "#FFFFFF", fontSize: 12, fontWeight: "800" },
+ arrow: { color: "#FFFFFF", fontSize: 20, fontWeight: "800" },
+ sectionRow: { flexDirection: "row", alignItems: "center", justifyContent: "space-between", marginBottom: 10 },
+ secondSection: { marginTop: 18 },
+ sectionTitle: { color: palette.ink, fontSize: 18, fontWeight: "800" },
+ sectionCount: { color: palette.muted, fontSize: 9, fontWeight: "900", letterSpacing: 0.6 },
+ itemCard: { flexDirection: "row", alignItems: "center", backgroundColor: "#FFFFFF", borderColor: palette.line, borderWidth: 1, borderRadius: 14, padding: 12, marginBottom: 8 },
+ itemIcon: { width: 38, height: 38, borderRadius: 12, backgroundColor: "#EAF1F7", alignItems: "center", justifyContent: "center" },
+ itemIconText: { color: palette.navy, fontSize: 11, fontWeight: "900" },
+ btIcon: { width: 38, height: 38, borderRadius: 12, backgroundColor: palette.orangeSoft, alignItems: "center", justifyContent: "center" },
+ btIconText: { color: palette.orange, fontSize: 11, fontWeight: "900" },
+ itemCopy: { flex: 1, paddingHorizontal: 10 },
+ itemTitle: { color: palette.ink, fontSize: 13, fontWeight: "800" },
+ itemDetail: { color: palette.muted, fontSize: 10, lineHeight: 15, marginTop: 3 },
+ itemStatus: { color: palette.green, fontSize: 9, fontWeight: "900" },
+ reviewStatus: { color: palette.yellow },
+ limitCard: { backgroundColor: "#FFFFFF", borderColor: palette.line, borderWidth: 1, borderRadius: 16, padding: 16, marginTop: 18 },
+ limitTitle: { color: palette.ink, fontSize: 15, fontWeight: "800" },
+ limitBody: { color: palette.muted, fontSize: 12, lineHeight: 18, marginTop: 6 },
+ footer: { color: palette.muted, fontSize: 11, lineHeight: 16, marginTop: 14, paddingHorizontal: 2 },
});