Skip to content

Instantly share code, notes, and snippets.

@itisFarzin
Created March 3, 2025 11:30
Show Gist options
  • Save itisFarzin/47b83994597e5f49c7717b1d4c114a21 to your computer and use it in GitHub Desktop.
Save itisFarzin/47b83994597e5f49c7717b1d4c114a21 to your computer and use it in GitHub Desktop.

Ever wanted to change the Daria logo on your Daria Bond device? Now you can! Here's how:

Getting Started

  1. Download the mtklogo binary from the mtklogo repo.
  2. Get the default logo.bin from my Telegram channel.
  3. Put both files in the same folder along with my custom config.

Unpacking the Logo

Run this command to extract the logo:

./mtklogo unpack logo.bin -o logos -p daria

Editing the Logo

Make your changes to the extracted images in the logos/ directory.

Repacking the Logo

Once you're done, repack it with:

./mtklogo repack -o mylogo.bin logos/logo_*

Flashing the New Logo

Finally, flash your custom logo:

fastboot flash logo mylogo.bin

Enjoy your changes!


Disclaimer: I'm not responsible for any damages caused by using this guide. Proceed at your own risk.

# Just a marker in case the format changes.
version: "1.1"
# profiles
profiles:
# Default profile is for "old" MTK devices.
# For a recent phone, maybe overriding the color_model will be enough.
# For a tablet, you may want to flip orientation.
- name: default
# supported color models are:
# - "rgbabe" 32bits R,G,B,A Big Endian
# 4 bytes per pixel:
# 0|rrrrrrrr|gggggggg|bbbbbbbb|aaaaaaaa|3
#
# - "rgbale" 32bits R,G,B,A Little Endian
# 4 bytes per pixel:
# 0|aaaaaaaa|bbbbbbbb|gggggggg|rrrrrrrr|3
#
# - "bgrabe" 32bits B,G,R,A Big Endian
# 4 bytes per pixel:
# 0|bbbbbbbb|gggggggg|rrrrrrrr|aaaaaaaa|3
#
# - "bgrale" 32bits B,G,R,A Little Endian
# 4 bytes per pixel:
# 0|aaaaaaaa|rrrrrrrr|gggggggg|bbbbbbbb|3
#
# - "rgb565be" (16bits: 5red, 6green, 5blue), Big Endian
# 2 bytes per pixel:
# 0|rrrrrggg|gggbbbbb|1
#
# - "rgb565le" (16bits: 5red, 6green, 5blue), Little Endian
# 2 bytes per pixel:
# 0|gggbbbbb|rrrrrggg|1 (OMG!)
#
# Phone makers may use other formats, they are not supported by this tool.
color_model: bgrabe
# supported formats
# `w` - is the image width in pixels
# `h` - is the image height in pixels
# `t` - is an optional text hint.
# Default orientation is 'portrait': logo's width is smaller than height.
# You can reverse orientation when unpacking using the `-flip` command line argument.
formats:
# Most credits goes to rom1nux - https://github.com/rom1nux/mtkimg
# who collected interesting data about many MTK devices.
# conflicting sizes (which have same l = w*h) were removed.
# orientation defaults to portrait.
- { h: 160, w: 120, t: "QQVGA" }
- { h: 240, w: 160, t: "HQVGA" }
- { h: 320, w: 240, t: "QVGA" }
- { h: 360, w: 240, t: "WQVGA" }
- { h: 376, w: 240, t: "WQVGA" }
- { h: 384, w: 240, t: "WQVGA" }
- { h: 400, w: 240, t: "WQVGA" }
- { h: 428, w: 240, t: "WQVGA" }
- { h: 432, w: 240, t: "WQVGA" }
- { h: 480, w: 270, t: "HVGA" }
- { h: 480, w: 272, t: "HVGA" }
- { h: 480, w: 320, t: "HVGA" }
- { h: 480, w: 360, t: "HVGA" }
- { h: 640, w: 480, t: "VGA" }
- { h: 640, w: 384, t: "WVGA" }
- { h: 720, w: 480, t: "WVGA" }
- { h: 768, w: 480, t: "WVGA" }
- { h: 800, w: 480, t: "WVGA" }
- { h: 848, w: 480, t: "WVGA" }
- { h: 852, w: 480, t: "WVGA" }
- { h: 853, w: 480, t: "WVGA" }
- { h: 854, w: 480, t: "FWVGA" }
- { h: 800, w: 600, t: "SVGA" }
- { h: 960, w: 640, t: "DVGA" }
- { h: 1024, w: 576, t: "WSVGA" }
- { h: 1024, w: 768, t: "XGA" }
- { h: 1152, w: 768, t: "WXGA" }
- { h: 1280, w: 768, t: "WXGA" }
- { h: 1280, w: 800, t: "WXGA" }
- { h: 1360, w: 768, t: "WXGA" }
- { h: 1366, w: 768, t: "FWXGA" }
- { h: 1152, w: 864, t: "XGA+" }
- { h: 1152, w: 900, t: "XGA+" }
- { h: 1152, w: 870, t: "XGA+" }
- { h: 1120, w: 832, t: "XGA+" }
- { h: 1440, w: 900, t: "WXGA+" }
- { h: 1440, w: 960, t: "WSXGA" }
- { h: 1280, w: 1024, t: "SXGA" }
- { h: 1280, w: 960, t: "SXGA-" }
- { h: 1400, w: 1050, t: "SXGA+" }
- { h: 1680, w: 1050, t: "WSXGA" }
- { h: 1600, w: 1200, t: "UXGA" }
- { h: 1920, w: 1200, t: "WUXGA" }
- { h: 2048, w: 1152, t: "QWXGA" }
- { h: 2048, w: 1536, t: "QXGA" }
- { h: 2560, w: 1600, t: "WQXGA" }
- { h: 2880, w: 1600, t: "WQXGA" }
- { h: 2560, w: 2048, t: "QSXGA" }
- { h: 3200, w: 2048, t: "WQSXGA" }
- { h: 3200, w: 2400, t: "QUXGA" }
- { h: 3840, w: 2400, t: "WQUXGA" }
- { h: 4096, w: 3072, t: "HXGA" }
- { h: 5120, w: 3200, t: "WHXGA" }
- { h: 5120, w: 4096, t: "HSXGA" }
- { h: 6400, w: 4096, t: "WHSXGA" }
- { h: 6400, w: 4800, t: "HUXGA" }
- { h: 7680, w: 4800, t: "WHUXGA" }
- { h: 640, w: 360, t: "nHD" }
- { h: 960, w: 540, t: "qHD" }
- { h: 1280, w: 720, t: "HD" }
- { h: 1600, w: 900, t: "HD+" }
- { h: 1920, w: 1080, t: "FHD" }
- { h: 2560, w: 1440, t: "QHD" }
- { h: 3200, w: 1800, t: "WQXGA+" }
- { h: 3840, w: 2160, t: "UHD" }
- { h: 5120, w: 2880, t: "UHD+" }
- { h: 7680, w: 4320, t: "FUHD" }
- { h: 15360, w: 8640, t: "QUHD" }
- { h: 54, w: 38, t: "MISC" }
- { h: 54, w: 48, t: "MISC" }
- { h: 24, w: 135, t: "MISC" }
- { h: 1, w: 135, t: "MISC" }
# You can edit your own profiles
# Here is an example for my phone.
# You can duplicate this block, give a new progile name,
# then fill the image dimensions you expect.
- name: generic_mt6337t
color_model: bgrabe
# a profile may fit many phones, so you can give it an "alias".
alias:
- condor_p8_lite_pgn610
- lenovo_p1ma40
formats:
# full screen image - 3686400 bytes
- { w: 720, h: 1280 }
# symbols - 11520 bytes
- { w: 45, h: 64 }
# bigger symbols - 14592 bytes
- { w: 57, h: 64 }
# battery charge animation - 18908 bytes
- { w: 163, h: 29 }
# battery charge level (1 line repeat) - 652 bytes
- { w: 163, h: 1 }
# Another example for my previous phone.
- name: thl5000
color_model: rgb565le
formats:
# full screen image - 4147200 bytes
- { w: 1080, h: 1920 }
# small letter - 20328 bytes
- { w: 84, h: 121}
# charge animation - 31616 bytes
- { w: 304, h: 52}
# bigger letter (percent) - 26136 bytes
- { w: 108, h: 121}
# charge line - 608 bytes
- { w: 304, h: 1}
- name: mt6877
alias:
- daria
- zahedan
color_model: bgrabe
formats:
# full screen imag
- { w: 1080, h: 2400 }
# number
- { w: 360, h: 8 }
# bar
- { w: 263, h: 47 }
- { w: 263, h: 2 }
# percentage symbol
- { w: 57, h: 64 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment