[Samsung Galaxy Core.] StratOS_HTC:
Boot animation, boot sound ...

Ok, here is the deal for my GC2 Samsung SM-G355HN :

If u have a original firmware (mine is G355HNXXU0ANH3) the boot animation and boot sound are not stored in kernel,ramdisk any other zip (bootanimation ...)

Samsung has made their own qmf's for animation. You can check your bootanimation preferably throught adb with 'bootanimation' in /system/bin/.

If u start the program in phone U'll have to take the battery out to get your phone usable, the animation is top moded aplication.

...In adb mode press just cancel '<Ctrl>+C' or exit/quit adb shell.

Ok, the bootanimation source (qmf's) are in system/media

C:\ADB\adt-bundle-windows-x86_64-20140702\sdk\platform-tools>adb shell
shell@kanas3gnfc:/ $ cd system/media
cd system/media
shell@kanas3gnfc:/system/media $ ls -l boot*
ls -l boot*
-rw-r--r-- root root 307252 2014-08-27 14:56 bootanimation.zip
-rw-r--r-- root root 2597636 2008-08-01 14:00 bootsamsung.qmg
-rw-r--r-- root root 1213332 2008-08-01 14:00 bootsamsungloop.qmg
-rw-r--r-- root root 49319 2014-08-27 14:56 bootsound.mp3
shell@kanas3gnfc:/system/media $

bootanimation.zip as told doesn't do nothing, some chinese leftover stuff here.

'Bootsamsung.qmg' is the boot file while booting after the end the 'bootsamsungloop.qmg' file is loading/showing until the anroid system is fully loaded and activated.

Check the shutdown.qmg ...

Ok, it took me a little bit to find that the sound is not the usual visible bootsound.mp3.

The animation is only for graphical animation, the boot sound is located in system/media/audio/ui (user interface).

shell@kanas3gnfc:/system/media/audio/ui $ ls -l
ls -l
-rw-r--r-- root root 7577 2014-08-27 14:56 Alert_on_call.ogg
-rw-r--r-- root root 5146 2014-08-27 14:56 Auto_focus.ogg
-rw-r--r-- root root 571497 2014-08-27 14:56 Birdsong_by_the_Lake.ogg
-rw-r--r-- root root 8059 2014-08-27 14:56 Call_Connect.ogg
-rw-r--r-- root root 6566 2014-08-27 14:56 Cam_Start.ogg
-rw-r--r-- root root 7567 2014-08-27 14:56 Cam_Stop.ogg
-rw-r--r-- root root 6262 2014-08-27 14:56 Camera_Timer.ogg
-rw-r--r-- root root 26266 2014-08-27 14:56 Camera_Timer_2sec.ogg
-rw-r--r-- root root 6210 2014-08-27 14:56 Camera_click_short.ogg
-rw-r--r-- root root 3726 2014-08-27 14:56 Camera_empty.ogg
-rw-r--r-- root root 14351 2014-08-27 14:56 Charger_Connection.ogg
-rw-r--r-- root root 6773 2014-08-27 14:56 Dialer_new.ogg
-rw-r--r-- root root 18648 2014-08-27 14:56 Dock.ogg
-rw-r--r-- root root 786319 2014-08-27 14:56 Fairy_Fountain.ogg
-rw-r--r-- root root 637833 2014-08-27 14:56 Gentle_Spring_Rain.ogg
-rw-r--r-- root root 4713 2014-08-27 14:56 Highlight.ogg
-rw-r--r-- root root 4705 2014-08-27 14:56 HoverPointer.ogg
-rw-r--r-- root root 10937 2014-08-27 14:56 Lock.ogg
-rw-r--r-- root root 6907 2014-08-27 14:56 Lock_none_effect.ogg
-rw-r--r-- root root 8559 2014-08-27 14:56 Lock_tension.ogg
-rw-r--r-- root root 14323 2014-08-27 14:56 LowBattery.ogg
-rw-r--r-- root root 470154 2014-08-27 14:56 Media_preview_Over_the_horizon.ogg
-rw-r--r-- root root 6687 2014-08-27 14:56 New_chat.ogg
-rw-r--r-- root root 97411 2008-08-01 14:00 PowerOn.ogg
-rw-r--r-- root root 11242 2014-08-27 14:56 S_Beam_end.ogg
-rw-r--r-- root root 12070 2014-08-27 14:56 S_Beam_error.ogg
-rw-r--r-- root root 13673 2014-08-27 14:56 S_Beam_start.ogg
-rw-r--r-- root root 9922 2014-08-27 14:56 S_HW_Touch.ogg
-rw-r--r-- root root 4766 2014-08-27 14:56 S_SIP_Backspace.ogg
-rw-r--r-- root root 6830 2014-08-27 14:56 Sent_chat.ogg
-rw-r--r-- root root 558556 2014-08-27 14:56 Serenity.ogg
-rw-r--r-- root root 9520 2014-08-27 14:56 Shutter.ogg
-rw-r--r-- root root 6210 2014-08-27 14:56 Shutter_multiple.ogg
-rw-r--r-- root root 7294 2014-08-27 14:56 SideSync_Connected.ogg
-rw-r--r-- root root 838441 2014-08-27 14:56 Sparkling_Mist.ogg
-rw-r--r-- root root 15785 2014-08-27 14:56 TW_Battery_caution.ogg
-rw-r--r-- root root 8350 2014-08-27 14:56 TW_Call_Disconnect.ogg
-rw-r--r-- root root 4789 2014-08-27 14:56 TW_SIP.ogg
-rw-r--r-- root root 7868 2014-08-27 14:56 TW_Silent_mode_off.ogg
-rw-r--r-- root root 9926 2014-08-27 14:56 TW_Touch.ogg
-rw-r--r-- root root 5515 2014-08-27 14:56 TW_Volume_control.ogg
-rw-r--r-- root root 16795 2014-08-27 14:56 Tap_tension.ogg
-rw-r--r-- root root 5176 2014-08-27 14:56 TextSelection.ogg
-rw-r--r-- root root 816576 2014-08-27 14:56 The_Secret_Forest.ogg
-rw-r--r-- root root 18669 2014-08-27 14:56 Undock.ogg
-rw-r--r-- root root 10939 2014-08-27 14:56 Unlock.ogg
-rw-r--r-- root root 7287 2014-08-27 14:56 Unlock_none_effect.ogg
-rw-r--r-- root root 15468 2014-08-27 14:56 Unlock_tension.ogg
-rw-r--r-- root root 12860 2014-08-27 14:56 Voice_processing.ogg
-rw-r--r-- root root 8038 2014-08-27 14:56 Voice_start.ogg
-rw-r--r-- root root 10141 2014-08-27 14:56 Voice_stop.ogg
-rw-r--r-- root root 10235 2014-08-27 14:56 Zero_Clickr_Ready.ogg
-rw-r--r-- root root 9520 2014-08-27 14:56 camera_click.ogg
-rw-r--r-- root root 13878 2014-08-27 14:56 lens_flare_lock.ogg
-rw-r--r-- root root 4407 2014-08-27 14:56 lens_flare_unlock_silence.ogg
shell@kanas3gnfc:/system/media/audio/ui $

Here and in the /audio/ dir you can insert other music for alarms,notification,ringtones and ui interfaces like :Auto_focus,Undock,Unlock,Camera sounds ...

We are interested in PowerOn.ogg - our boot song :)

It's the ogg format. Save your favourite boot - Power On sound as PowerOn.ogg in /system/media/audio/ui.

You can do it manually or throught ADB,Terminal emulator :

Here is for the ADB :

First make your /system/ is rw (readwrite) :

shell@kanas3gnfc:/ $ su
su
root@kanas3gnfc:/ # mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
root@kanas3gnfc:/ #

Copy your files to SD root (bootsamsung.qmg,bootsamsungloop.qmg,PowerOn.ogg) or anywhere in the phone, local ADB folder on comp...

overwite *.qmg files in /system/media/ and PowerOn.ogg in /system/media/audio/ui/

root@kanas3gnfc:/system/media # cd /storage/extSdCard
cd /storage/extSdCard
root@kanas3gnfc:/storage/extSdCard # cp bootsamsung.qmg /system/media/bootsamsung.qmg
system/media/bootsamsung.qmg
root@kanas3gnfc:/storage/extSdCard # cp bootsamsungloop.qmg /system/media/bootsamsungloop.qmg
g /system/media/bootsamsungloop.qmg
root@kanas3gnfc:/storage/extSdCard # cp PowerOn.ogg /system/media/audio/ui/PowerOn.ogg
m/media/audio/ui/PowerOn.ogg
root@kanas3gnfc:/storage/extSdCard #

remount back to ro (readonly) and run bootanimation throught adb to check graphic Power ON sequence only:

root@kanas3gnfc:/storage/extSdCard # mount -o remount,ro -t ext4 /dev/block/mmcblk0p1 /system
root@kanas3gnfc:/ # bootanimation
bootanimation
^C
C:\ADB\adt-bundle-windows-x86_64-20140702\sdk\platform-tools>

You can also change the permission of the files before ro remount :

chmod 644 is the primary for those 3 files ( -rw-r--r-- root@root ) but not needed if su (#) enabled

Power Off phone and enjoy ... U can change other stuff PowerOff, shutdown ...

Have also provided mine bootanim, loop and sound as update zip recovery package included.

... for now I'm working on to change the boot logo before boot animation.Help or any other infos are mostly wanted.

And about the *.qmg files, check and search the xda, there are lot about it ...

The animations I used are original files from other Samsung devices, PoverOn wav found and converted from the internet.

The update script :

ui_print("********************************");
ui_print("* StratOS boot animation,sound *");
ui_print("********************************");
ui_print("");
ui_print("For SM-G355H*");
run_program("/xbin/busybox", "mount", "/system");
run_program("/xbin/busybox", "mount", "-o", "rw,remount", "/system", "/system");
ui_print("Deleting files");
delete("/system/media/audio/ui/PowerOn.ogg");
delete("/system/media/bootsamsung.qmg");
delete("/system/media/bootsamsungloop.qmg");
ui_print("Extracting files");
package_extract_dir("system", "/system");
ui_print("");
ui_print("Finished");
run_program("/xbin/sleep", "5");
unmount("/system");