Branding back to Zeblaze if to THOR 4 is flashed LEM7 FW

Zeblaze THOR4 is same HW as Lemfo LEM7 and is possible flash FW for LEM7 into it (and vice versa)…

But if flashed LEM7 FW, then is changed:

  • boot logo from “Zeblaze” to “Lemfo LEM7”
  • boot and shutdown animation from “Zeblaze” to “Lemfo LEM7”
  • added Lemfo boot and shutdown sound
  • name of device/wifi/bt from “THOR 4” to “LEM7”

All this can be changed if TWRP in “THOR 4” is installed, for you who not friend with “GNU/Linux” commandline, i make automatic patcher “thoring.zip” installable via TWRP.

Currently zip patcher can also do:

  • remove sound for Camera shutter

Because if i try make ZIP with Aroma Installer (for user clickable selectable configuration by user) then screen is upside down and this is problematic for use,
then i make simple script with reading configuration from external text file, where all “patches” is separately configurable…

Actual configuration (coresponding to “function” in ZIP patcher), “patch” is only applied if is present config file, with somevalue=yes, without # on start of line…

# Configuration file used by thoring.zip “installed” via TWRP

All operation is done only if is here set to “yes” (or YES, Yes, yES…:slight_smile:

This change model information/name to “THOR 4”

change_model=yes

This replace actual Boot Logo (before starting Boot Animation) to Zeblaze logo from “THOR 4” FW

replace_boot_logo=yEs

This replace actual Boot Animation) to Zeblaze Boot Animation from “THOR 4” FW

replace_boot_animation=YES

This replace actual Shutdown Animation) to Zeblaze Shutdown Animation from “THOR 4” FW

replace_shutdown_animation=yes

This disable Boot Sound

disable_boot_sound=yes

This disable Shutown Sound

disable_shutdown_sound=yes

This disable Camera Shutter Sound

disable_camera_shutter_sound=yes

HowTo:
(although i have tried it on me THOR4, continue only at your own risk, with eventual necessity doing reflash via SPFlashTool if something breaks up)
1. Put both files (thoring.zip and thoring.conf) on “sdcard” 
2. Reboot to (already flashed) TWRP
3. Run Install ZIP and select thoring.zip from sdcard…

Download

thoring.zip (version 20180809)
thoring.conf (all options is enabled)

Technical Information

Inside thoring.zip is:

  • /META-INF/com/google/android/update-binary - not classic binary version of Android update-binary, but simply shell script with all functions, is run automatically when "Install ZIP" in TWRP is used...
  • /META-INF/com/google/android/updater-script -  empty/dummy file, normaly used by regular update-binary, probably not need, but for sure...
  • /logo.bin - extracted from official "THOR 4" FW archive (20180622)
  • /bootanimation.zip - extracted from system.img in official "THOR 4" FW archive (20180622)
  • /shutanimation.zip - extracted from system.img in official "THOR 4" FW archive (20180622)
What update-binary script doing (if corresponding options in thoring.conf is set to yes)
  • Replace Boot Logo (this is logo showed right after PowerOn, before is loaded Boot Animation) logo.bin is directly writed using dd to his partition /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/logo
  • Replace Boot Animation path for file on watch is /system/media/bootanimation.zip first is make backup of original file to /system/media/bootanimation.zip.bak, then is replaced by file in thoring.zip
  • Replace Shutdown Animation path for file on watch is /system/media/shutanimation.zip first is make backup of original file to /system/media/shutanimation.zip.bak, then is replaced by file in thoring.zip
  • Disable Boot Sound path for file on watch is /system/media/bootaudio.mp3 is renamed original file to /system/media/bootaudio.mp3.bak, if system not find it, then simply not use it...
  • Disable Shutdown Sound path for file on watch is /system/media/shutaudio.mp3 is renamed original file to /system/media/shutaudio.mp3.bak, if system not find it, then simply not use it...
  • Disable Camera Shutter Sound path for file on watch is /system/media/audio/ui/camera_click.ogg is renamed original file to /system/media/audio/ui/camera_click.ogg.bak, if system not find it, then simply not use it...

reserved…