How it is built
MTBOX is secondary-developed from the open-source FongMi/TV project (GPL-3.0), version 6.6.19. The whole package — baseline, patches, music engine and build scripts — is on GitHub: 11,200 files, about 183 MB.
The local music engine is thirteen Java files: javac and d8 produce a classes4.dex that is injected directly, with no smali round-trip. It drives a MediaSession with a MediaStyle notification, so the lock screen, control centre and headset or car buttons all work.
The effect chain is exactly Equalizer plus BassBoost. LoudnessEnhancer is disabled and setPlaybackParams is never called at 1.0×, so a full-scale lossless source is never clipped by dynamic loudness processing — playback stays on the native path.
Lyrics come from the public NetEase endpoint: LRC is synced word by word and cover art falls back gracefully. If both cover and lyrics fail, playback continues silently instead of throwing an error at you.
Hardening: NanoHTTPD is bound to 127.0.0.1 instead of 0.0.0.0, six dangerous permissions including CAMERA are removed, and the scanner page simply finishes instead of opening the camera.
Packages are signed with a keystore I keep myself and verified with apksigner for v2/v3 — no third-party re-signing. It complements TTBOX: one guards the HarmonyOS ecosystem, the other guards Android.


