From 4f4a84ebce40c088d66769649e44750af98c3761 Mon Sep 17 00:00:00 2001 From: cocobo1 Date: Mon, 27 Jul 2026 16:50:02 +0000 Subject: [PATCH] fix: remove broken settings section on android and broken device info command --- src/core/commands/debug.ts | 6 +++++- src/core/ui/settings/pages/General/About.tsx | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/commands/debug.ts b/src/core/commands/debug.ts index 6f005ed..5f66833 100644 --- a/src/core/commands/debug.ts +++ b/src/core/commands/debug.ts @@ -15,6 +15,10 @@ export default () => { ], execute([ephemeral], ctx) { const info = getDebugInfo(); + + if(info.device.codename === undefined) { info.device.codename = ""} + else{ info.device.codename = "(" + info.device.codename + ")" } + const content = [ "**Kettu Debug Info**", `> Kettu: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`, @@ -22,7 +26,7 @@ export default () => { `> React: ${info.react.version} (RN ${info.react.nativeVersion})`, `> Hermes: ${info.hermes.version} (bcv${info.hermes.bytecodeVersion})`, `> System: ${info.os.name} ${info.os.version} ${info.os.sdk ? `(SDK ${info.os.sdk})` : ""}`.trimEnd(), - `> Device: ${info.device.model} (${info.device.codename})`, + `> Device: ${info.device.model} ${info.device.codename}`, ].join("\n"); if (ephemeral?.value) { diff --git a/src/core/ui/settings/pages/General/About.tsx b/src/core/ui/settings/pages/General/About.tsx index 15378b7..944a44f 100644 --- a/src/core/ui/settings/pages/General/About.tsx +++ b/src/core/ui/settings/pages/General/About.tsx @@ -70,11 +70,12 @@ export default function About() { version: debugInfo.device.model, icon: "MobilePhoneIcon" }, - { + // this is renamed now on android but i cant be bothered to find it + ...(Platform.OS !== "android" ? [{ label: Platform.select({ android: Strings.CODENAME, ios: Strings.MODELID })!, version: debugInfo.device.codename, icon: "TagIcon" - } + }] : []), ]; return (