Skip to content

Jepl4r/hiby-mods

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiBy Mods

A collection of custom firmware modifications for HiBy digital audio players, along with documentation of the proprietary OTA firmware format for the benefit of the modding community.

This project is part of the hiby-modding organization. Also see:

  • hiby_os_crack by Tartarus6 — complementary firmware modding project with clean unpack/repack scripts, QEMU emulation setup, Windows support, and SOC hardware documentation.

What This Project Does

Provides custom firmware builds and tools for modifying HiBy OS on supported devices. Modifications are built on top of the stock firmware and distributed as ready-to-flash .upt files.

Current modifications in v1.4+:

  • Database Manager — new Settings menu entry to save/load the music library database to/from SD card without rescanning. Supports all 13 languages.
  • PC Database Updater — Python script and GUI app to generate the music library database on your PC in seconds
  • Unified Theme — modernized UI including updated system dialogs, battery icon, WiFi/BT scanning dialogs, and more
  • Alphabetical sorting — multi-language article support, symbols sort to top, updated scrollbar
  • Extended Unicode font support — adds rendering for scripts not included in the stock firmware
  • ADB support — root shell access via USB, enabled through a hidden easter egg
  • Custom firmware identifier — About page shows 1.4+ to distinguish from stock

Known Limitations:

  • Added Unicode scripts display left-to-right regardless of the script's natural reading direction — the HiBy OS text renderer does not support bidirectional text
  • Characters appear in isolated forms and do not connect to each other — the OS renderer does not support contextual shaping

Tested On

  • Device: HiBy R3 Pro II (r3proii)
  • Base firmware: Stock HiBy OS (January 2026)
  • Host OS used for building: Ubuntu / Pop!_OS (Linux)

⚠️ Compatibility: The pre-built firmware in this repository has only been tested on the HiBy R3 Pro II. Do not flash on other devices unless you have built and verified it yourself.

Quick Install (Pre-built Firmware)

If you just want to flash the latest modifications without building from source:

  1. Download r3proii-v1.4-hmod.upt from the Releases section
  2. Verify the checksum matches the one listed in the release notes
  3. Copy it to the root of your SD card and rename it to r3proii.upt
  4. Insert the SD card into your HiBy R3 Pro II
  5. Hold Volume Up and press Power to enter the updater
  6. Let it flash — it will say "Upgrading..." then "Succeeded"
  7. Remove the SD card before the device reboots
  8. Done

Note: After flashing go to Settings → UI Themes and reselect your preferred theme to ensure the correct boot logo displays.

Recovery: If something goes wrong, you can always restore by flashing the original stock firmware from HiBy's website using the same procedure.

Using the Database Manager

Instead of waiting for the device to rescan your music library, generate the database on your PC in seconds:

  1. Insert your SD card into your PC
  2. Run tools/Update_Database.py or use the GUI app
  3. Insert the SD card back into the device
  4. Go to Settings → Database Manager → Copy Database from SD
  5. The library reloads instantly — no rescan needed

Enabling ADB

ADB can be enabled on any firmware version (including stock) without any modification:

  1. Go to Settings → About
  2. Tap the "About" text 10 times
  3. A message saying "Test Mode Turned On" will appear
  4. Connect the device to your PC via USB
  5. Run adb devices to confirm the connection

To disable ADB, tap "About" 10 times again.

Note: ADB and USB mass storage share the same USB interface and cannot run simultaneously. While ADB is enabled the device will not appear as a storage drive.

Building From Source

Requirements

sudo apt install squashfs-tools xorriso fontforge python3-fontforge p7zip-full

Using the Mod Tool (Recommended)

# 1. Clone this repository
git clone https://github.com/hiby-modding/hiby-mods
cd hiby-mods

# 2. Place your stock .upt firmware in the Firmware/ folder

# 3. Run the mod tool
./tools/universal_mod_tool.sh

Manual Build

# 1. Clone this repository
git clone https://github.com/hiby-modding/hiby-mods
cd hiby-mods

# 2. Download the stock firmware from HiBy's website
# Place it at: firmware/r3proii_stock.upt

# 3. Run the rebuild script
./tools/rebuild.sh

Repository Structure

hiby-mods/
├── README.md
├── binaries/
│   ├── Sorting Patch/        # Sorting-only patched binary
│   └── DB Manager Patch/     # Sorting + Database Manager patched binary
├── docs/
│   ├── FIRMWARE_FORMAT.md    # Detailed OTA format documentation
│   └── SCREENSHOTS.md        # ADB screenshot guide
├── themes/
│   └── Unified Theme/        # Community UI theme (3 variants)
├── tools/
│   ├── build_upt.sh          # Manual build script
│   ├── merge_arabic_font.py  # Font merging utility
│   ├── universal_mod_tool.sh # Interactive mod tool
│   ├── MOD_TOOL.md           # Mod tool documentation
│   ├── rebuild.sh            # Quick rebuild script
│   ├── Update_Database.py    # PC database updater script
│   └── Update Database README.md
└── firmware/
    ├── r3proii-arabic.upt    # v1.0
    ├── r3proii-v1.1.upt      # v1.1
    ├── r3proii-v1.2.upt      # v1.2
    ├── r3proii-v1.3.upt      # v1.3
    └── r3proii-v1.4-hmod.upt # v1.4+ (latest)

Documentation

See docs/FIRMWARE_FORMAT.md for complete documentation of the OTA update format, partition layout, boot sequence and hardware details.

See docs/SCREENSHOTS.md for a guide on capturing screenshots from the device via ADB.

Changelog

v1.4+

  • Database Manager — load/save music library database via Settings menu, all 13 languages supported
  • PC Database Updater — Python script and GUI app for fast library generation on PC
  • Custom firmware identifier — About page now shows 1.4+

v1.3

  • Updated Unified Theme — expanded system dialog modernization, new icons throughout
  • ADB support — fixed USB gadget conflict enabling reliable ADB connectivity

v1.2

  • Unified Theme — modernized launcher, screensaver, playing screen, stream media icons, boot logo
  • Updated alphabetical sorting — multi-language article support, symbols sort to top

v1.1

  • Extended Unicode font support for scripts not included in stock firmware
  • Alphabetical sorting fix — entries starting with "The" now sort correctly

v1.0

  • Initial release
  • Documented OTA firmware format
  • Proof of concept custom firmware build

Disclaimer

This firmware is provided as-is with no warranty. Flashing custom firmware carries a small risk of making your device temporarily unbootable. In the event of a boot loop, you can always recover by flashing the original stock firmware from HiBy's website using the Volume Up + Power method described above.

This project is not affiliated with or endorsed by HiBy Music.

Contributing

Contributions are welcome. Areas where help would be valuable:

  • Testing on other HiBy devices that share the same firmware format
  • Investigating kernel source availability (check github.com/hiby-music)
  • Adding support for additional Unicode scripts
  • GUI and theme modifications
  • RockBox Bluetooth/WiFi integration
  • Further ADB exploration and live system research

Acknowledgements

  • @Jepl4r — Unified Theme, sorting patch, Database Manager, PC database updater, mod tool
  • @Tartarus6 — hiby_os_crack tooling and collaboration
  • Noto Naskh Arabic font by Google (OFL licensed)
  • HiBy Music for making a great device
  • The head-fi.org community
  • The Reddit r/hiby community

About

Custom firmware modifications for HiBy digital audio players (currently tested on R3 Pro II)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 60.5%
  • Shell 39.5%