Skip to content

Releases

KsuWebUI-SN 2.0-73

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 19 Nov 12:42
954caa6

Important

Still on the old KsuWebUI-SN (package io.github.a13e300.ksuwebui)? KsuWebUI-SN now uses a new package name, scorpion.ksuwebui.sn. Android treats it as a new app, so this release does not replace your current install, even if the in-app update popup offers it. Install it, then uninstall the old KsuWebUI-SN yourself. Your settings in the old app (pins, backgrounds, icons, theme) are not carried over.

Already using scorpion.ksuwebui.sn? Nothing to do, this is a normal update.

Tip

Highlights: a redesigned Settings drawer and module settings menu, with options grouped into clear cards, and long module names are no longer cut off.

πŸ” Changed

  • Settings drawer, grouped into cards: the switches are now split into two labelled cards, so it is easier to find what you need.
    • Style: Module Banners, Blend Banners and Module Icons, everything that changes how the module cards look.
    • Visibility: Disabled Modules and Hidden Modules, which decide what shows up in the list.
    • Same behaviour: Blend Banners still appears only while Module Banners is on, and the theme selector (Dark, Auto, Light) works as before. It now lines up with the cards.
  • Module settings menu, grouped into cards: the actions are no longer one long list. They are now in three labelled cards, always visible, with thin dividers between the rows.
    • Appearance: Set banner, Set icon, Banner transparency, Remove banner and Remove icon. Only the ones that apply to the module are shown.
    • Actions: Pin, Add to home screen and Hide.
    • Developer: Enable console and Clear module data.
    • Still red: the destructive actions (Remove banner, Remove icon, Clear module data) keep their red colour.
  • Long module names are fully shown: the title at the top of the module settings menu now wraps onto more lines instead of being cut off with "…".
  • Cleaner text wrapping: labels in the Settings drawer and the module settings menu now wrap only between words. Words are no longer split with a hyphen.
  • Translated: the new group names (Appearance, Actions, Developer, Style and Visibility) are available in all languages.

⚠️ Moving from the old package

  1. Install this release.
  2. Open it and grant root as usual.
  3. Uninstall the old KsuWebUI-SN (the one with the previous package name).

The original KsuWebUI Standalone is not affected. It keeps its own package name and can stay installed.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Settings drawer

  • activity_main.xml: the five MaterialSwitch rows are now inside two cards, each with a small label above it: group_style (sw_banners, sw_blend_banners, sw_icons) and group_visibility (sw_disabled, sw_hidden). The cards reuse bg_sheet_group and divider_sheet, and the theme toggle group margin changed from 24dp to 16dp to line up with them.
  • Rows: each switch has a 52dp minimum height, 18dp horizontal padding, a ripple background, breakStrategy="simple" and hyphenationFrequency="none". The view ids are unchanged, so no Kotlin code had to change for the drawer, and sw_blend_banners still toggles its visibility the same way.

Module settings sheet

  • MainActivity.kt: showModuleSettings() has a new local group() that inflates item_sheet_group.xml and returns the card body. action() now takes that body as its first parameter. The rows are added to three groups: group_appearance, group_actions and group_developer. In the Appearance group, Banner transparency now comes before the red Remove banner.
  • item_sheet_group.xml (new): a small label plus a card body with a middle divider. bg_sheet_group.xml (a 20dp rounded card fill with a card_stroke border) and divider_sheet.xml (a 1dp card_stroke line) are new as well.
  • item_sheet_action.xml: the row is plain again, with a ripple background, a 52dp minimum height, 18dp padding, a 16dp icon gap, and breakStrategy="simple" plus hyphenationFrequency="none" on the label.
  • bg_sheet_action.xml (removed): the outlined rounded row background is no longer used.
  • sheet_module_settings.xml: the title no longer has ellipsize="end" or maxLines="1", and it has hyphenationFrequency="none".

Strings

  • All seven locales: new group_appearance, group_actions, group_developer, group_style and group_visibility.

Not changed

  • The package, AIDL interface, URI scheme and theme names from the package rename are as before.
  • The ksu, ksu_bars, ksu_download and ksu_exec_log JavaScript bridges and the R8 rules are as before.
  • Banner transparency, Blend Banners, WebUI loading and the Eruda scripts are as in the previous release.

KsuWebUI-SN 2.0-69

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 18 Nov 22:12
0a7e4bb

Important

Still on the old KsuWebUI-SN (package io.github.a13e300.ksuwebui)? KsuWebUI-SN now uses a new package name, scorpion.ksuwebui.sn. Android treats it as a new app, so this release does not replace your current install, even if the in-app update popup offers it. Install it, then uninstall the old KsuWebUI-SN yourself. Your settings in the old app (pins, backgrounds, icons, theme) are not carried over.

Already using scorpion.ksuwebui.sn? Nothing to do, this is a normal update.

Tip

Highlights: a new Banner transparency slider for every module banner, Brazilian Portuguese is now available, module WebUIs open faster, and the module settings menu has a fresh look.

✨ New

  • Banner transparency: a new action in each module's settings sheet, shown for modules that have a banner. It opens a small sheet with a slider from 0% to 80% and a live preview of the card, so you can see the result as you drag.
    • Per module: every module keeps its own value, so you can fade one banner and leave the others as they are.
    • Works with Blend Banners: with Blend Banners off, a higher value makes the banner more see-through. With Blend Banners on, it controls how strongly the card colour covers the banner, and it never goes below 5% so the text stays readable.
    • Reset: puts the module back to its default. With Blend Banners on that is the automatic dim you had before.
    • Cleans up after itself: the value is cleared when you set a new banner or remove the banner.
    • Translated: available in all languages.
  • Brazilian Portuguese (PortuguΓͺs do Brasil): the whole app is now translated, and there is a Brazilian Portuguese README too. Thank you VictorGabriel7Dev for the translation!

πŸ” Changed

  • Faster module WebUIs: a module's WebUI now opens right away instead of waiting for the list of installed apps. The list is loaded only when a module asks for it, and it is refreshed each time you open a WebUI, so apps you just installed or removed are picked up.
  • New look for the module settings menu: the actions are now rounded rows with a thin border and a little space between them. Destructive actions (Remove banner, Remove icon, Clear module data) are shown in red.
  • Clearer wording: Set background and Remove background are now Set banner and Remove banner, in every language.

⚠️ Moving from the old package

  1. Install this release.
  2. Open it and grant root as usual.
  3. Uninstall the old KsuWebUI-SN (the one with the previous package name).

The original KsuWebUI Standalone is not affected. It keeps its own package name and can stay installed.

πŸ™ Thanks

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Banner transparency

  • MainActivity.kt: new showBannerTransparency() bottom sheet and a per module preference banner_alpha_<module id> (a float from 0 to 0.8). New helpers bannerTransparency(), autoBlendAlpha() (the automatic scrim formula, moved out of the card binding) and blendScrim() (the saved value with a 5% minimum, or the automatic value). Normal banners use banner.alpha = 1 - transparency. The preference is removed when the banner is replaced or deleted.
  • Layout and drawables: new sheet_banner_transparency.xml (a Material Slider, a rounded live preview and Reset and Done buttons) and ic_opacity.xml.
  • Strings: set_background and remove_background are renamed to set_banner and remove_banner. New banner_transparency, reset and done strings are added to all seven locales.

Module settings sheet

  • item_sheet_action.xml: the row now uses the new bg_sheet_action.xml (a ripple with a 20dp rounded card_stroke border), 16dp and 3dp margins, a 52dp minimum height and 20dp padding.
  • MainActivity.kt: action() has a new danger parameter that tints the icon and label with DISABLED_RED. It is used for Remove banner, Remove icon and Clear module data.

WebUI loading

  • AppList.kt: getApplist() now loads on demand through runBlocking, guarded by a Mutex. cachedApps is @Volatile and a new invalidate() clears it.
  • WebUIActivity.kt: the startup coroutine that preloaded the app list before prepareWebView() is gone, and onCreate calls AppList.invalidate().
  • MainActivity.kt: the app list preload at startup is removed.
  • FileSystemService.kt: the root check uses Shell.getShell().isRoot instead of creating a new root shell each time.

Translations and docs

  • values-pt-rBR/strings.xml (new): the Brazilian Portuguese translation, with the same strings as the English file.
  • docs/README_pt-BR.md (new): the Brazilian Portuguese README. The language links in README.md and every docs/README_*.md now include it, the Translating section lists it, and the add_language.py example for pt-BR was removed because the language is now included.

Not changed

  • The package, AIDL interface, URI scheme and theme names from the package rename are as before.
  • The ksu, ksu_bars, ksu_download and ksu_exec_log JavaScript bridges and the R8 rules are as before.

KsuWebUI-SN 2.0-60

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 18 Nov 02:08
2de7726

Important

Still on the old KsuWebUI-SN (package io.github.a13e300.ksuwebui)? KsuWebUI-SN now uses a new package name, scorpion.ksuwebui.sn. Android treats it as a new app, so this release does not replace your current install, even if the in-app update popup offers it. Install it, then uninstall the old KsuWebUI-SN yourself. Your settings in the old app (pins, backgrounds, icons, theme) are not carried over.

Already using scorpion.ksuwebui.sn? Nothing to do, this is a normal update.

Tip

Highlights: new Blend Banners option that turns each module banner into its card background, a cleaner Export tab in Eruda, and a fix for Eruda settings storage keys.

✨ New

  • Blend Banners: a new switch under Module Banners in the settings drawer. When it's on, the banner no longer sits at the top of the card. It becomes the whole card background instead.
    • Always readable: the image is dimmed automatically so the text stays clear. Bright images get a stronger dim, darker ones a lighter dim, and it follows light and dark theme.
    • Only when banners are on: the switch appears only while Module Banners is on and hides when it's off.
    • Info and translations: it has its own entry in the Info dialog and is translated into Arabic, French, Japanese, Polish and Simplified Chinese.
    • Off by default: nothing changes for you until you turn it on.

πŸ” Changed

  • Bolder module cards: the author, version, description, size, date and update labels on every module card are now bold, in light and dark theme, with or without banners, so text stays easy to read on banner backgrounds. The description also uses the same colour as the other lines now, instead of a dimmer grey, on every card. The Disabled Module, Hidden Module and Update available texts are extra bold, heavier than the other labels, so they stand out.
  • Chips: the size, date, disabled and hidden chips are now see-through with a visible border, so they look like proper chips on banner backgrounds. The Update available chip is now a solid green with white text and icon, in light and dark theme, so it stands out.
  • Cleaner Export tab (Eruda): the extra heading is gone, the description is lighter and better spaced, and the Export button is now a rounded accent button.
  • Eruda storage keys: the Executions tab's saved sort order now uses an eruda- prefix (eruda-ksu-exec-order), so Eruda's own keys all share one prefix. Export now picks up Eruda data by that prefix (plus active-eruda).
    • One-time reset: the Executions sort order goes back to newest first once, then is remembered as before.

⚠️ Moving from the old package

  1. Install this release.
  2. Open it and grant root as usual.
  3. Uninstall the old KsuWebUI-SN (the one with the previous package name).

The original KsuWebUI Standalone is not affected. It keeps its own package name and can stay installed.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Blend Banners

  • BannerBackdrop.kt (new): a small drawable that center-crops the banner to the card bounds and draws a flat scrim on top.
  • Scrim strength: it uses the card colour at 60% to 90% opacity in dark theme and 40% to 70% in light theme, so banners stay visible in light mode. In light theme the author, version and description text uses the stronger colorOnSurface colour while blended. The banner's average brightness (an 8 by 8 sample) is stored as Module.luma, and the card's theme decides which brightness needs the stronger dim.
  • MainActivity.kt: new opt_blend_banners preference, prepBanner() (skips the bottom fade used by the normal banner), and the card binding. Card text colours are cached once, and blended cards in light theme use colorOnSurface for the author, version and description text.
  • Layouts and strings: new sw_blend_banners switch in activity_main.xml, an id on the card content layout in item_module.xml, and opt_blend_banners / info_blend_banners_body in all six locales.

Module cards

  • item_module.xml: android:textStyle="bold" on the author, version, version code and description text, and a new TextAppearance.KsuWebUISN.ChipBold style (in themes.xml) on the size, date and update chips.
  • Chips: all six chips in item_module.xml set chipSurfaceColor to transparent (Material was filling them with its surface colour), and use colorOutline for the border. The update chips (module_update and the icon-only status_update) are the exception: they use a solid update_chip_solid fill and border with update_chip_on (white) text and icon, both new colours in colors.xml, the same in light and dark theme. update_chip stays for the Info dialog icon. The unused update_chip_text colour was removed.
  • Heavier status text: new TextAppearance.KsuWebUISN.ChipStatus style in themes.xml (Black font weight) on the module_update chip. MainActivity.kt switches the date chip to it only while it shows Disabled Module or Hidden Module, and back to ChipBold otherwise.

Eruda

  • assets/eruda/export.js: updated styles (.kex-open button, spacing) and isErudaKey now matches ^eruda or active-eruda. The title element is removed.
  • assets/eruda/executions.js: ORDER_KEY is now eruda-ksu-exec-order.
  • WebViewHelper.kt: the unused exportTitle text was removed.

Not changed

  • The package, AIDL interface, URI scheme and theme names from the package rename are as before.
  • The ksu, ksu_bars, ksu_download and ksu_exec_log JavaScript bridges and the R8 rules are as before.

KsuWebUI-SN 2.0-55

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 17 Nov 02:35
b8346a8

Important

KsuWebUI-SN has a new package name: scorpion.ksuwebui.sn. Android treats it as a new app, so this release does not replace your current install. Install it, then uninstall the old KsuWebUI-SN yourself. Your settings in the old app (pins, backgrounds, icons, theme) are not carried over.

Tip

Highlights: KsuWebUI-SN no longer shares its package name with the original KsuWebUI Standalone, so both can now be installed side by side. Nothing else changed: every feature and screen works exactly as before.

πŸ” Changed

  • New package name: the app id changed from io.github.a13e300.ksuwebui to scorpion.ksuwebui.sn. KsuWebUI-SN and the original KsuWebUI Standalone no longer conflict and can be installed together.
  • Installs as a separate app: because the package name is different, this release is not an update to older KsuWebUI-SN builds. If an older build shows the update popup and you tap it, the new app is installed next to the old one and the old one stays installed.
  • Nothing else changed: no feature, screen, setting or behavior was touched. The new source was compared file by file with the previous one, and the only differences are the renames listed below.

⚠️ Moving from the old package

  1. Install this release.
  2. Open it and grant root as usual.
  3. Uninstall the old KsuWebUI-SN (the one with the previous package name).

The original KsuWebUI Standalone is not affected. It keeps its own package name and can stay installed.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Package rename

  • app/build.gradle.kts: namespace and applicationId are now scorpion.ksuwebui.sn.
  • Source folders: java/io/github/a13e300/ksuwebui moved to java/scorpion/ksuwebui/sn and aidl/io/github/a13e300/ksuwebui moved to aidl/scorpion/ksuwebui/sn, including the services package.
  • Code: every package and import line (including the generated databinding imports) now uses scorpion.ksuwebui.sn. No reference to io.github.a13e300 is left in the project.
  • AndroidManifest.xml: it only uses relative class names (.App, .MainActivity, .FileBrowserActivity, .EditorActivity, .WebUIActivity), so only the theme references changed (see below).

Other names that came from the original app

  • AIDL: IKsuWebuiStandaloneInterface is now IKsuWebuiSnInterface (file renamed, and RootServices.kt and AppList.kt updated).
  • URI scheme: the module launch intents use ksuwebuisn://webui/<id> instead of ksuwebui://webui/<id>. Nothing else reads this URI and the manifest has no filter for it.
  • Themes: Theme.KsuWebUI, Theme.KsuWebUI.WebUI and ThemeOverlay.KsuWebUI.ButtonDialog are now Theme.KsuWebUISN, Theme.KsuWebUISN.WebUI and ThemeOverlay.KsuWebUISN.ButtonDialog. The manifest and the 8 R.style.ThemeOverlay_KsuWebUISN_ButtonDialog references in MainActivity, EditorActivity, WebViewHelper, UpdateUi and WebUIActivity were updated to match.
  • Gradle: rootProject.name is now KsuWebUI-SN.

Not changed

  • The ksu, ksu_bars, ksu_download and ksu_exec_log JavaScript bridges, the ksu URL scheme used for module icons, and the R8 rules are exactly as before.
  • The README credits and the LICENSE still name the original authors, since the code is based on their work.

KsuWebUI-SN 1.2-53

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 16 Nov 02:29
c093785

Tip

Highlights: this release adds a new Export tab to the module's Eruda console. Pick what you want (local storage, session storage, cookies, IndexedDB, Cache Storage, executions, network requests and console logs) and save it all as one ZIP file. Pressing back on a module's WebUI now asks before it closes, so you can't leave by accident. All Eruda console texts are now English only.

✨ New

  • Export tab: open the module's Eruda console and use the new Export tab (placed right after Executions). It shows a short description and an Export button.
  • Choose what to export: tapping Export opens a checklist with nothing ticked, so you decide what leaves the device. The items are Local storage, Session storage, Cookies, IndexedDB, Cache storage, Executions, Network requests and Console logs. There is also a Select all row.
  • Items with no data: they are listed last, dimmed and marked Not found, and can't be selected.
  • One ZIP, one file per item: every ticked item is saved as its own file inside a single ZIP named KsuWebUI-SN_export-<date>_<time>.zip. An info.json file in the ZIP lists the exported items, the time, the page address and any item that failed.
  • Readable storage files: local storage and session storage are written in an easy to read layout and split into Eruda settings and module data. Values that are JSON are shown as JSON instead of one long escaped line.
  • Network requests: you get a network.json list of all requests plus the response body of each request as its own file in a network folder.
  • Exit confirmation: pressing back in a module's WebUI still goes back through the pages first. When there is no page left to go back to, a dialog asks Exit this module WebUI? with Yes and No. The new text is translated in Arabic, French, Polish, Japanese and Simplified Chinese with DeepL.

πŸ” Changed

  • Executions export moved: the Export button is gone from the Executions tab. Executions are now exported from the new Export tab together with everything else.
  • Eruda console texts are English only: all texts in the Eruda console and its dialogs and messages (Add, Edit, Key, Value, the clear and restore items, Live reload, Copy response body, Open Editor, the reload dialog, and the Copied, Refreshed, Styles updated and Page reloaded messages) are now always shown in English, whatever the app language is. The Enable console debug and Disable console debug menu items are not part of the Eruda console and stay translated.
  • Better buttons: the buttons in the Executions tab are bigger and easier to see and tap, and the Open Editor button in the Editor tab is now a filled button. Both tabs also look correct when an Eruda console theme doesn't provide its colors.
  • Module cards: tapping the bottom row of a module card no longer opens its WebUI. This covers the empty space around the settings icon, the size and date chips and the switch, the card edges and the space below them, so a missed tap can't open the module by accident. The rest of the card still opens the WebUI as before.

🧹 Removed

  • Eruda console translations: the Arabic, French, Polish, Japanese and Simplified Chinese translations of 27 Eruda console texts were deleted. The English text of these 27 Eruda console texts is now built into the app instead of being stored in the English strings file.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Export tab (new)

  • assets/eruda/export.js (new): injected with erudaJs("export") after executions and before editor in the Eruda console setup. It registers an Export tool in Eruda and moves its tab after Executions (before elements if that tab is missing), then calls updateSlider(). All of it is wrapped in try/catch and skipped if it was already added. Cost: it is only loaded together with the console (Eruda), so modules with the console off are not affected.
  • Picker: pressing Export checks every item in parallel (has functions, a failed check counts as not found), unticks everything, puts found items first and disables the rest. Select all only affects found items. If nothing is ticked, an alert asks to select at least one item.
  • Collectors:
    • Local and session storage: keys starting with eruda-, eruda_, ksu- or ksu_ go to eruda, all others to module, sorted by key. Values that look like JSON are parsed and plain quoted strings are unquoted.
    • Cookies: read from document.cookie (cookies that are visible to JavaScript) and URL-decoded when possible.
    • IndexedDB: uses indexedDB.databases(). For each database it writes the version and every store with keyPath, autoIncrement, indexes and all rows. Dates, Maps, Sets, typed arrays, ArrayBuffers and Blobs/Files are encoded with a __type marker (binary as base64). It stops at depth 30 and marks circular references.
    • Cache storage: lists every cache with the URL, method, status, content type and length of each entry (the bodies are not exported).
    • Executions: the log text from window.__ksuExecText().
    • Network requests: read from eruda.get('network').requests(). Bodies are saved as network/NNN-<name>.<ext>, with the name cleaned and cut to 60 characters and the extension taken from the response sub type. JSON bodies are pretty printed.
    • Console logs: read from the rendered log items of the Eruda console, each line starting with its type such as [error] or [warn], and stack lines indented.
  • Failures: an item that throws doesn't stop the export. It is written as <file>.error.txt and listed under failed in info.json.
  • ZIP writer: built in the page with no library. Names are UTF-8 (flag 0x0800), every file has a CRC-32, and files over 64 bytes are compressed with CompressionStream('deflate-raw') when it exists and the result is smaller, otherwise they are stored. No ZIP64, so it is meant for normal sized exports.
  • Saving: the ZIP is turned into base64 and passed to ksu_download.save(base64, name, 'application/zip'), the same bridge the old Executions export used.

Executions

  • assets/eruda/executions.js: exportLog() and its Export button were removed. The text is now built by buildLogText() and exposed as window.__ksuExecText(), which polls first and returns an empty string when there are no entries.
  • Styles: colors use fallbacks (var(--foreground, inherit), var(--accent, #4a8cff), var(--console-error-foreground, #f44336)) and neutral rgba(128,128,128,…) backgrounds and borders instead of --border, --background and --darker-background. .kx-btn got more padding, a larger radius, a stronger background and an :active state.

Eruda console texts

  • WebViewHelper.kt: new ERUDA_TEXT_JS constant (a plain English window.ksuText = {…} object, now with the 19 export texts added to the existing keys), used in place of Context.erudaTextJs(), which was removed together with the unused org.json.JSONObject import. The native Eruda console dialogs now use English literals (Copy, View, Edit, Key, Value) and so do the toasts (Copied, Refreshed, Styles updated, Page reloaded).
  • res/layout/dialog_reload.xml: Reload, Reload table and Reload WebUI are now literal texts instead of string resources.
  • assets/eruda/editor.js: the Open Editor button is a filled accent button and its colors have fallbacks.
  • Strings: the Eruda console strings were removed from every strings.xml: reload_title, reload_table, reload_webui, copy_title, view_title, edit_title, choose_key, choose_value, copied, refreshed, eruda_add, eruda_value_for, eruda_exists, eruda_exists_hint, eruda_delete_item, eruda_clear_local, eruda_clear_session, eruda_clear_console, eruda_clear_network, eruda_restore_defaults, eruda_bg_scroll, eruda_live_reload, eruda_copy_body, eruda_open_editor, eruda_editor_hint, live_reload_styles and live_reload_reloaded. The two strings console_enable and console_disable are unchanged in all languages.

Exit confirmation

  • WebUIActivity.kt: the back callback is now the field backCallback. It calls goBack() while the WebView has history, otherwise confirmExit(). confirmExit() does nothing if the dialog is already showing. It inflates DialogConfirmBinding with the new title, hides the message, and uses ThemeOverlay_KsuWebUI_ButtonDialog. No dismisses the dialog. Yes dismisses it, sets backCallback.isEnabled = false and calls onBackPressedDispatcher.onBackPressed(). The dialog is dismissed in onDestroy.
  • Strings: new confirm_exit_webui in English, Arabic, French, Polish, Japanese and Simplified Chinese. There are no TODO translate markers.

Module cards

  • res/layout/item_module.xml: the bottom row (settings button, chips and switch) got the id actions_row. It now reaches the edges of the card with layout_marginStart and layout_marginEnd of -20dp and carries its own padding: 20dp at the start and end, 8dp at the top (this replaces its old layout_marginTop) and 16dp at the bottom. The same 16dp bottom padding was removed from the parent container, which got clipToPadding="false", so the card looks exactly the same as before.
  • MainActivity.kt: ViewHolder sets the existing consumeTouch listener (the one the chips already use) on binding.actionsRow. Touches that no child handles are consumed by the row, so they never reach the card's click listener that opens the WebUI. The settings button and the switch still handle their own taps first.

KsuWebUI-SN 1.2-50

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 14 Nov 23:29
31d61e4

Tip

Highlights: this release adds a built-in WebUI file editor. A new Editor tab in the module console lets you browse a module's webroot folder, open text files with syntax colors, search, undo/redo and save them as root, all without leaving the app. Messages no longer pile up when shown quickly, and the APK is smaller. The new texts are translated in all five languages.

✨ New

  • WebUI editor: open the module console and use the new Editor tab (placed before Network) with the Open Editor button. It opens a file browser for that module's WebUI files (/data/adb/modules/<id>/webroot). Folders come first, files show their size, and the back button goes up one folder at a time.
  • Edit and save as root: tap a file to edit it. Files are saved with root access, so you can fix a module's WebUI directly on the device. The Save button is only active when something changed, and leaving with unsaved changes asks whether to Save, Discard or Cancel.
  • Syntax colors: HTML, XML, SVG, CSS, JavaScript (js, mjs, cjs, ts) and JSON files are colored, with separate colors for light and dark mode. Other file types open as plain text.
  • Undo and redo: step back and forward through your edits. Typing and deleting in a row are grouped together, and undoing back to the saved text marks the file as unchanged again.
  • Find in file: the search bar finds text without caring about upper or lower case, highlights every match, shows the match count and jumps to the previous or next one. If text is selected when you open it, it is used as the search word.
  • Safe file handling: only plain UTF-8 text files up to 1 MB can be edited. Larger or binary files show a clear message instead of opening. Files with Windows line endings (CRLF) are saved with the same line endings.
  • Editor messages: new texts for an empty folder, a file that can't be opened, too large or not text, saved, and save failed.

πŸ” Changed

  • One message at a time: a new app message now replaces the one still on screen instead of waiting in line behind it. This applies to Copied, Refreshed, live reload, download and error messages.
  • Smaller APK: only the app's own languages (English, Arabic, French, Polish, Japanese and Simplified Chinese) are packed into the app. Extra languages from libraries are left out.
  • Translations: the new Editor texts are translated in Arabic, French, Polish, Japanese and Simplified Chinese with DeepL.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

WebUI editor (new)

  • assets/eruda/editor.js (new): injected with erudaJs("editor") after network in the console setup. It registers an Editor tool in Eruda with a hint text and an Open Editor button, then moves its tab before network and calls updateSlider(). The button sends prompt('__ksu_editor__', ''). All of it is wrapped in try/catch and skipped if it was already added. Cost: it is only loaded together with the console (Eruda), so modules with the console off are not affected.
  • WebViewHelper.kt: new PROMPT_EDITOR. The handler starts FileBrowserActivity with EXTRA_ID (module id) and EXTRA_NAME (module name, or the id if empty), then confirms the prompt. ksuText has new openEditor and editorHint entries.
  • FileBrowserActivity.kt (new): lists /data/adb/modules/<id>/webroot through the root FileSystemManager from FileSystemService. It rejects an empty id or one containing / or ... Entries are sorted folders first, then by lowercase name, and the list is loaded on App.executor. A back callback goes up one folder and never leaves webroot. The list reloads in onResume so changes made in the editor show up. Files open in EditorActivity.
  • EditorActivity.kt (new): loads and saves through the root FileSystemManager (newOutputStream(false) to save).
    • Path check: the path must start with /data/adb/modules/, contain /webroot/ and contain no /../ or trailing /.., otherwise the activity finishes.
    • Loading: files over 1_000_000 bytes are refused (TooLarge). A 0 byte in the first 8192 bytes, or bytes that don't survive a UTF-8 round trip, are refused as NotText. CRLF is turned into \n while editing and turned back on save.
    • History: Edit(start, removed, added) records from a TextWatcher. Typing and deleting in a row merge up to 200 characters, newlines break a merge. At most 300 edits and 3,000,000 characters are kept. isClean() compares the last edit and a signature with the saved marker, so undoing back to the saved text clears the dirty state.
    • Search: case-insensitive indexOf, at most 3000 matches, 150 ms debounce, shown as MatchSpan and CurrentMatchSpan background spans. The count reads n/3000+ when the limit is hit.
    • Highlighting: tokens are built on Dispatchers.Default after a 350 ms debounce (900 ms above 300,000 characters) and dropped if the text changed meanwhile. Only a window of the visible lines plus 20,000 characters on each side gets SyntaxSpans, and it is moved when scrolling gets within a quarter of the margin of its edge (80 ms debounce).
    • UI: edge-to-edge with the bottom padding following the keyboard, adjustResize, and configChanges for orientation|screenSize|keyboardHidden|uiMode (the colors are redone on a dark mode switch). Back runs the search close, then the unsaved dialog (dialog_unsaved.xml).
  • SyntaxHighlighter.kt (new): regex based tokenizer with Language (PLAIN, HTML, CSS, JS, JSON) chosen from the file extension (html, htm, xml, svg β†’ HTML; css; js, mjs, cjs, ts; json). Token kinds: comment, string, keyword, number, tag, attribute, property. HTML handles embedded script and style content by tokenizing it again with the matching language.
  • AndroidManifest.xml: registers FileBrowserActivity and EditorActivity, both exported="false".
  • Resources: new layouts activity_file_browser, activity_editor, item_file and dialog_unsaved, new menu editor_menu (save, undo, redo, search) and new icons ic_arrow_back, ic_arrow_down, ic_arrow_up, ic_close, ic_file, ic_folder, ic_redo, ic_save and ic_undo.

Messages

  • App.kt: new showToast(context, text|@StringRes, duration). It keeps the last Toast, cancels it before showing the new one, uses the application context, and posts to the main thread when called from another thread.
  • WebUIActivity.kt, WebViewHelper.kt, WebViewInterface.kt: every Toast.makeText(...).show() (root request, live reload, copied, refreshed, WebView crash, download start and failure, interface messages) now calls showToast.

Build

  • app/build.gradle.kts: appLocales is read from the values-* folders in src/main/res (pattern values-xx, values-xxx, with an optional region). localeFilters += listOf("en") + appLocales keeps only those languages in the APK, so a new language added with scripts/add_language.py is included automatically.
  • proguard-rules.pro: -assumenosideeffects for the four kotlin.jvm.internal.Intrinsics null-check functions (checkNotNullParameter, checkNotNullExpressionValue, checkParameterIsNotNull, checkExpressionValueIsNotNull), which removes those checks from release builds.

Strings

  • Strings: 20 new strings in English, Arabic, French, Polish, Japanese and Simplified Chinese: eruda_open_editor, eruda_editor_hint, folder_empty, file_open_failed, file_too_large, file_not_text, file_saved, file_save_failed, unsaved_title, unsaved_message, action_save, action_discard, action_cancel, navigate_back, action_undo, action_redo, action_search, search_hint, search_previous and search_next. There are no TODO translate markers.

KsuWebUI-SN 1.2-47

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 14 Nov 13:24
4061003

Tip

Highlights: this release only changes the module console (Eruda) and translations. Live reload now swaps changed CSS in place without reloading the page, the console Network tab can copy just a response body, and the console panel no longer jumps off the screen when the keyboard opens. The new texts are translated in all five languages, and the translation script can now edit existing strings and pick up new ones.

✨ New

  • Live reload for styles: when you save only .css files, the WebUI swaps the changed stylesheet in place instead of reloading the page, so your scroll position, open dialogs and typed text stay as they are. This works for stylesheets added with <link rel="stylesheet">. If a changed file is not loaded that way (for example @import or an inline <style>), or you saved other file types together with the CSS, it falls back to a normal full reload.
  • Reload messages: Live reload now shows a short message after each update, Styles updated for a style swap and Page reloaded for a full reload.
  • Copy response body: open a request in the console Network tab and use the new { } button next to the copy-response icon. It copies only the response body to the clipboard (JSON is pretty-printed) and shows Copied.

πŸ” Changed

  • Live reload batching: the app now keeps every changed file from a quick burst of saves instead of only the last signal, so it can tell a CSS-only save from a mixed one. Several quick saves are still merged into one update.
  • Copy message: every copy button in the console now shows the same system Copied message that the app already uses, so it follows the app language and looks the same everywhere.
  • No Eruda notifications: Eruda's own in-page notifications are gone, including their unused code and styles, and the console is a little smaller.
  • Refreshed message: the refresh buttons in the Elements, Storage, Cookie and Sources tools show the app's own Refreshed message, the same way copy buttons show Copied. In Storage it appears after choosing the table refresh.
  • Translations: the new Styles updated, Page reloaded, Refreshed and Copy response body texts are translated in Arabic, French, Polish, Japanese and Simplified Chinese with DeepL.

πŸ› οΈ Fixed

  • Console and keyboard: tapping a text box in the console, such as the Executions search, opened the keyboard and pushed the whole panel up so its title bar, tabs and search box went off the screen. The panel now shrinks to fit above the keyboard and everything stays visible.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Live reload styles (new)

  • IFileChangeListener.aidl: onChanged() is now onChanged(String path).
  • FileWatchService.kt: each FileObserver reports the changed file as a path relative to webroot (the folder's relativeTo(rootDir) prefix plus the file name). The mask, the watched extensions (html, htm, js, mjs, css), the 6 levels depth and the 100 folder limit are unchanged.
  • LiveReload.kt: changes is now a Channel<String>(UNLIMITED) instead of a conflated Channel<Unit>. watch() drains old paths when the switch is turned on. reloadOnChange(swapStyles, reload) collects the unique paths during the 300 ms debounce. If every path ends with .css (case-insensitive) it calls swapStyles(paths) and skips the reload when that returns true, otherwise it calls reload().
  • WebViewHelper.kt: new WebView.swapStyles(paths) suspend function. It reads assets/livereload_css.js, replaces PATHS_JSON with the paths as a JSONArray, runs it with evaluateJavascript and resumes with result == "true". initWebView shows the live_reload_styles or live_reload_reloaded toast after a swap or a reload.
  • assets/livereload_css.js (new): finds every link[rel~="stylesheet"][href] on the same host whose decoded path equals / + the changed path. For each match it clones the <link> with a ksulr=<timestamp> query parameter, inserts the clone after the old one, removes the old one on load and removes the clone on error. It returns false if any changed path has no matching <link>, which makes the caller do a full reload.

Network response body (new)

  • assets/eruda/network.js: injected with erudaJs("network") after livereload and before theme. It adds padding-right: 72px to .eruda-network .eruda-detail .eruda-control, inserts a span.eruda-copy-body ({ }) before .eruda-copy-res, and takes the text from eruda.get('network')._detail._detailData.resTxt (objects go through JSON.stringify(..., null, 2)). The text is sent with prompt('__ksu_copy__', text), which the existing PROMPT_COPY handler copies to the clipboard with the copied toast. A MutationObserver adds the button again when the detail view re-renders, and the script looks for the detail container every 250 ms, up to 40 times. Cost: the script is only loaded together with the console (Eruda), so it does nothing for modules that have the console off. The 250 ms search stops as soon as the container is found, or after 10 seconds at most. The observer watches only the direct children of that one container and only wakes up when request details change, so an idle console uses no battery.
  • WebViewHelper.kt: ksuText has a new copyBody entry.

Eruda notifications removed

  • assets/eruda.min.js: the 7 notify("Copied", ...) calls (Console, Network response and curl, Elements, Storage, Cookie, Info) now call window.prompt("__ksu_copied__", ""). The 7 notify("Refreshed", ...) calls (Elements, Storage, Cookie, Sources script, stylesheet, iframe and image) now call window.prompt("__ksu_refreshed__", ""). The dead notification code is removed: the luna-notification module (2556) and its import, DevTools.notify, _initNotification and its call, the empty <div class="notification"> in the panel template, and the .luna-notification* rules in the console stylesheet. The embedded luna-notification stylesheet (module 5259, with its icon font) is emptied.
  • assets/eruda/storage.js: the storage refresh button is intercepted, so the stock handler never runs. After the table refresh it now sends prompt('__ksu_refreshed__', ''). The WebUI reload choice reloads the page and shows no message.
  • WebViewHelper.kt: new PROMPT_COPIED. It shares one branch with PROMPT_COPY: PROMPT_COPY still writes the clipboard first, PROMPT_COPIED only shows the existing copied toast. New PROMPT_REFRESHED has its own branch that shows the new refreshed toast.

Console and keyboard

  • assets/eruda/inset.js: the injected rule for .eruda-dev-tools now also sets max-height: calc(100vh - var(--safe-area-inset-bottom,0px) - var(--safe-area-inset-top,0px)) !important. The panel's bottom is pinned to --safe-area-inset-bottom, which includes the keyboard height, and the panel is 80% of the screen tall by default, so with the keyboard open its top used to end up above the screen.

Strings and tooling

  • Strings: new eruda_copy_body, live_reload_styles, live_reload_reloaded and refreshed in English, Arabic, French, Polish, Japanese and Simplified Chinese. check_strings.py passes and there are no TODO translate markers.
  • scripts/add_language.py: running it again for an existing language first adds any new English strings (marked TODO translate) and then continues with the marked ones. New --edit [name ...] mode shows the English and the current text of one, several or all strings and asks for a new one, where Enter keeps the current text. --create-only was removed. The READMEs in all six languages describe the new commands. None of this changes the app.

KsuWebUI-SN 1.2-40

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 12 Nov 23:24
cbeb729

Tip

Highlights: the module console (Eruda) has a new Live reload switch that reloads a WebUI by itself whenever you edit its web files, plus smoother swiping and scrolling inside the console.

✨ New

  • Live reload: in the module console, open the Settings tab and turn on Live reload. While it is on, saving, creating or moving an .html, .htm, .js, .mjs or .css file in the module's webroot reloads the WebUI automatically. Several quick saves are merged into one reload. The switch is remembered per module and is off by default. It only reloads while the WebUI is on screen, and it only watches the webroot folder, up to 6 levels deep and 100 folders.

πŸ” Changed

  • Background Scroll/Swipe: the console setting is now called WebUI Background Scroll/Swipe. When it is off, touching or swiping inside the console panel no longer reaches the WebUI behind it. The resize handle, column resizers and the console button still work.
  • Settings toggles: tapping anywhere on a switch row in the console Settings tab now flips it, and the rows no longer flash a highlight when touched.
  • Sources tab: the Sources tab no longer scrolls sideways.
  • Executions export: the exported file name now includes seconds, KsuWebUI-SN_execution-DD-MM-YYYY_HH-MM-SS.txt, so two exports in the same minute no longer share a name.
  • Module cards: the size, date and status chips are no longer touch targets. Touching them is ignored instead of reacting like a button.
  • Translations: the new Live reload text and the renamed Background Scroll/Swipe text are translated in Arabic, French, Polish, Japanese and Simplified Chinese.

πŸ› οΈ Fixed

  • Swiping between console tools: a sideways swipe used to be ignored anywhere there was content that can scroll sideways. It is now only ignored when that content actually scrolled during the swipe, so swiping between tools works on those panels too.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Live reload (new)

  • FileWatchService.kt: a RootService that exposes IFileWatcher (start(root, listener) and stop(listener)). It walks the webroot (maxDepth(6), at most 100 directories) and puts a FileObserver on each folder with the mask CLOSE_WRITE | MOVED_TO | CREATE. Only files ending in html, htm, js, mjs or css call the listener. A dead listener is stopped when a call throws RemoteException.
  • AIDL: new IFileWatcher.aidl and a oneway IFileChangeListener.aidl (onChanged()).
  • LiveReload.kt: holds enabled (a MutableStateFlow) and a conflated Channel. watch() binds the root service while enabled is true and always stops the watcher and unbinds on cancel. reloadOnChange(reload) waits for a change, debounces for 300 ms, drops the extra events and calls reload().
  • WebViewHelper.kt: initWebView creates a LiveReload for webroot. watch() runs in lifecycleScope, and reloadOnChange { state.webView?.reload() } runs inside repeatOnLifecycle(STARTED), so reloads only happen while the activity is visible. The JS side tells Kotlin about the switch through prompt('__ksu_livereload__', '1' | '0') (PROMPT_LIVE_RELOAD), which sets liveReload.enabled.
  • assets/eruda/livereload.js: creates the config ksu-livereload (liveReload: false), adds a switch to the Eruda Settings tab with window.ksuText.liveReload, and sends the current value on change and on startup. It is injected with erudaJs("livereload") after scroll and before theme.
  • Strings: new eruda_live_reload, passed to the page as liveReload in ksuText.

Console scroll and swipe

  • scroll.js: when the console is open and Background Scroll/Swipe is off, touchstart, touchmove, touchend, touchcancel and the matching pointer events on #eruda are stopped from propagating if they come from inside .eruda-dev-tools. The resizer, luna-data-grid-resizer and entry button are excluded. The string eruda_bg_scroll now reads "WebUI Background Scroll/Swipe".
  • ux.js: hScrollable() was split into swipeBlocked() (inputs, textareas, content-editable, luna-tab) and scrollers(). scrollers() records the scrollLeft of every sideways-scrollable ancestor (overflow wider than 40 px, stopping at .eruda-dev-tools and skipping the Sources panel) at touchstart. On touchend the swipe is dropped if any of them moved, otherwise the 70 px / 1.8 ratio rule applies as before.
  • ux.js styles and clicks: extra CSS removes the setting-row hover highlight and tap highlight, and hides horizontal overflow in #eruda-sources. A capturing click listener on the shadow root toggles the checkbox of a .luna-setting-item-checkbox row when you tap the row outside the input.

Other

  • executions.js: the export stamp adds seconds (HH-MM-SS).
  • MainActivity.kt: ViewHolder.init sets an OnTouchListener that returns true on size, date, moduleUpdate, statusDisabled, statusHidden and statusUpdate.
  • Translations: eruda_live_reload and the updated eruda_bg_scroll are present in English, Arabic, French, Polish, Japanese and Simplified Chinese. check_strings.py passes and there are no TODO translate markers.

KsuWebUI-SN 1.2-33

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 12 Nov 06:51
4a712ab

Tip

Highlights: faster module load, the module console (Eruda) has a new Executions tab that records every command a WebUI runs as root, with its output, exit code and duration.

✨ New

  • Executions tab: when Enable console debug is on for a module, its console now has an Executions tab. It lists every ksu.exec and ksu.spawn call the WebUI makes, showing the time, the command, a βœ“ / βœ— / … status, the exit code and how long it took. Calls that are still running update live.
  • Call details: tap a call to see the full command, its options, stdout and stderr. Copy command and Copy output buttons are included.
  • Search, sort and filter: search across commands and output, switch between Newest first and Oldest first (your choice is remembered), and filter to Failed calls only.
  • Export and clear: Export saves all calls as a text file named KsuWebUI-SN_execution-DD-MM-YYYY_HH-MM.txt. Clear empties the list.

πŸ” Changed

  • Faster module list: module cards are now prepared in the background right after the app opens, so the list scrolls more smoothly the first time.
  • Console debug off: nothing is recorded and the Executions tab is not added, so modules without console debug are unaffected.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Execution log (ExecLog.kt, new)

  • ExecLog(enabled): an in-memory log, one per WebUI session. start, out, err and end record events, and every method returns immediately when enabled is false.
  • Limits: it keeps at most 200 calls, 5,000,000 characters per call and 30,000,000 in total. The oldest calls are dropped first, and a call that hits its cap gets a trunc event.
  • ExecLogInterface: exposed to JS as ksu_exec_log with events(after) (returns events newer than a sequence number) and clear(). It is only added when console debug is on for the module.

WebView bridge (WebViewInterface.kt, WebViewHelper.kt)

  • WebViewInterface(state, log): now takes an ExecLog. Both exec variants and spawn log the start, stdout, stderr and exit code. spawnLabel(command, args) builds the display text for spawned commands.
  • initWebView: reads KEY_CONSOLE_MODULES from the settings prefs to decide whether the module has console debug on. It creates the ExecLog from that and adds ksu_exec_log only when it is on.
  • Injection: erudaJs("executions") is added to the Eruda startup script after theme.

Eruda panel (assets/eruda/executions.js, new)

  • Tool: an eruda.Tool subclass named Executions that polls ksu_exec_log.events(lastSeq) every 600 ms, only while the tab is visible.
  • UI: search, order toggle (kept in localStorage as ksu-exec-order), All / Failed filter, Export and Clear. The tab is moved ahead of Elements, and Elements moves next to Settings.
  • Export: builds the text file and saves it through ksu_download.save.

Card prewarming (MainActivity.kt)

  • prewarmCards(): uses a Looper idle handler to create 6 card view holders and put them in the RecyclerView pool. It is called from onCreate before the first refresh and stops if the activity is destroyed.

KsuWebUI-SN 1.2-31

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 12 Nov 00:48
a1376b1

Tip

Highlights: you can now turn a module on or off right from the list (with a reboot prompt), modules show an Update available badge when a newer version exists, cards show the module's version code, and a new ℹ️ Information screen in the settings drawer explains every option and icon.

✨ New

  • Module on/off switch: every module card now has a switch at the end of the bottom row. Turning it off marks the module as disabled, turning it on enables it again. The change takes effect after a reboot, so the app then asks Reboot now or Later. If you flip the same module back before rebooting, the pending change is cancelled and no reboot is asked. If the change fails you get a "Couldn't change the module state" message.
  • Update available badge: if a module's module.prop has a numeric versionCode and an updateJson link, the app checks that link in the background when the list loads. When the module's published version code is higher than the installed one, its card shows a green Update available badge. Checks that fail or time out are ignored quietly.
  • Version code on cards: a "Version code: …" line now appears under the version on cards of modules that declare a versionCode.
  • Information screen: a new ℹ️ button next to Settings in the drawer opens a short guide. It explains Theme, Module Banners, Module Icons, Disabled Modules and Hidden Modules, and what each card icon and button means (disabled, hidden, update, pinned, settings gear, switch).

πŸ” Changed

  • Status labels on cards: a module with one status still shows it as text (red Disabled or Hidden in place of the date, or the green Update available badge). A module with more than one status now shows small icons instead of the old combined "Disabled Β· Hidden" text, so the row no longer overflows.
  • Card bottom row: the settings gear moved to the start of the row, the size and date (or status) chips are centered in the space between the gear and the switch, and the switch sits at the end.
  • Translations: all the new texts are translated in Arabic, French, Polish, Japanese and Simplified Chinese.

🌍 For translation contributors

Translating the app (Click to expand)
  • Guided translation: scripts/add_language.py <code> now walks you through the translation. It creates values-<code>/strings.xml with every string marked <!-- TODO translate -->, shows each English string, and you type the translation and press Enter.
  • Skip and quit: Enter alone skips a string, and quit_translate saves and quits.
  • Saved as you go: every answer is written to the file straight away. Run the same command again to continue with the strings still marked.
  • Safety checks: placeholders like %s and %1$d must match the English text, and special characters are escaped for you. A table of what you translated is shown at the end.
  • Old behaviour: --create-only just creates the file so you can edit it by hand.
  • Docs: the English README and the translated ones in docs/ describe the new flow.
  • Checking: run python3 scripts/check_strings.py when you are done.

βš™οΈ Under the hood

For developers ⚠️ (Click to expand)

Module switch (MainActivity.kt)

  • setModuleEnabled(item, enable): runs touch or rm -f on /data/adb/modules/<id>/disable through Shell.cmd on App.executor, with single quotes in the id escaped. The switch is disabled while the command runs, then the card is rebuilt from the new state. On failure it shows module_toggle_failed.
  • Pending reboot tracking: markPendingReboot(id) keeps the ids changed since boot in the pending_reboot string set (KEY_PENDING_REBOOT) and stores the current /proc/sys/kernel/random/boot_id under pending_boot_id (KEY_PENDING_BOOT). A different boot id clears the set. Toggling an id a second time removes it, and the reboot prompt is only shown while the change still needs a reboot.
  • showRebootPrompt(enabled): uses a new showConfirm overload that takes CharSequence title and message plus custom Yes / No labels (reboot_now and the existing update_later). The old showConfirm(icon, title, message, onYes) now calls it.

Module updates

  • ModuleUpdateChecker.kt (new): latestVersionCode(url) only accepts links starting with http, uses a 6 second connect and read timeout, sends User-Agent: KsuWebUI-SN, accepts HTTP 200 only, reads at most 256 KB and returns the trimmed versionCode field of the JSON as a Long, or null on any problem.
  • checkModuleUpdates(mods): runs after the list is built. It only checks modules with a numeric versionCode and an updateJson link, at most 4 requests at a time (Semaphore(4)), and calls setModuleUpdate(id) on the main thread when the remote code is higher.
  • Module data class: new fields versionCode, updateJson and updateAvailable. The module.prop parser now reads versionCode and updateJson.

Card layout (item_module.xml, onBindViewHolder)

  • New views: version_code TextView, toggle (MaterialSwitch, scaled to 0.85), and the chips module_update, status_disabled, status_hidden and status_update. The three status chips are icon-only and are only used when a module has more than one status.
  • Status logic: statusCount counts disabled, hidden and update. Zero shows the date, one shows text (or the update chip), more than one shows the icon chips and hides the date chip.
  • Layout: the settings gear moved to the start of the bottom row. The chip group is wrapped in a FrameLayout with layout_weight="1" and the group centered inside it.

Information screen

  • showInfoDialog(): builds the dialog from the new dialog_info.xml, item_info_header.xml and item_info_row.xml, opened by the new drawer_info button in activity_main.xml (the Settings title row is now a horizontal row with the button at the end).
  • Resources: new drawables ic_info, ic_block and ic_update, and colors update_chip (#1E8E3E, #5BD982 in night), update_chip_text (#FFFFFF, #00210B in night) and status_red (#E53935).
  • Strings: 25 new strings (version_code, module_update_available, module_toggle, module_toggle_failed, reboot_to_enable, reboot_to_disable, reboot_to_apply_message, reboot_now, info_title, info_close and the info_* texts) in English, Arabic, French, Polish, Japanese and Simplified Chinese. check_strings.py passes and no TODO translate markers are left.