$ show ys1231/MoveCertificate
MoveCertificate is a Magisk/KernelSU/APatch module that moves user-installed CA certificates into the Android system certificate store, making them trusted system-wide. It supports Android versions 7 through 16 and provides two mounting modes: compatible (using tmpfs bind mounts) and builtin (leveraging Magisk Magic Mount). The module runs during boot via `post-fs-data.sh`, copying certificates from user directories and custom locations into system directories. It includes a web-based management UI (built with TypeScript, esbuild, and KernelSU WebUI) that allows users to view installed certificates, check module version, toggle modes, and delete certificates. The shell scripts handle permission fixing, SELinux context preservation, and compatibility cleanup (e.g., AdGuard certificates). The project is well-structured, with clear separation between shell logic and the web frontend, internationalization support, and a custom build pipeline.
The LLM identified 2 files worth highlighting for reuse:
A self-contained internationalization module that supports three languages (Chinese, English, Turkish) with automatic language detection, localStorage persistence, template interpolation for dynamic strings, and a clean API (`t`, `setLang`, `getLang`). It is isolated from Android-specific code and can be extracted and reused in any web project that needs simple i18n without external dependencies.
A custom build script that uses esbuild to bundle and minify TypeScript and CSS, applies JavaScript obfuscation via `javascript-obfuscator` API (no CLI), generates hashed filenames for cache busting, and automatically updates index.html references. It supports a development mode with watch and sourcemaps. This script is a reusable template for any small web UI project that needs a modern, lightweight build pipeline with optional code obfuscation.