Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[GUIDE][HOW TO]Mod bootanimation in ROMs without /system/media/bootanimation.zip

$
0
0
Wannabe developers stepping into the ROM Development scene usually begin with theming and porting. One Themeable feature of Android is the Boot Animation. Traditionally it is located in /system/media for the latest versions of the OS. But sometimes it is possible that the folder contains this :



So what to do in this case ??? Yeah you can copy the bootanimation.zip to /data/local after the first boot, change permissions to rw-r--r-- and reboot to see the glorius boot animation you just planted. This is fine if you are a end user, but if you're theming a ROM, it can be quite frustrating to ask the user to do this, since most people would be overwhelmed by this procedure (Not anyone here at the Android Development and Hacking forums - it's supposed to be noob-resistant, right ;) ). So here I am with the tutorial for themers and devs alike who want to mod the supposedly hidden bootanimation.


Before we begin, ensure you have the following installed and ready to go :
Prerequisites
  • APK Tool by @iBotPeaches
  • Java 7 JRE and JDK
  • ADB (If you want to do this without any flashing)
  • Brain.jar and Common Sense.apk (Plenty required if you do not fit into the [Developers Only] parameter)


So Let's Begin
  1. Get the framework-res.apk of the ROM you want to theme (Either from the zip or using adb pull /system/framework/framework-res.apk)
  2. Decompile it using apktool
  3. Navigate to framework-res/assets/images. Here you'll find android-logo-mask.png and android-logo-shine.png
  4. Replace the android-logo-mask.png with your custom splash of the EXACT same dimensions(Or you can change the width to your device's screen's width if you have borders in the image). I used my team's logo and cut out the white parts to let the shine shine through:D:D:D
  5. Optional : If you want, you can also edit the android-logo-shine.png to mod the color of the shine
  6. Compile the framework-res.apk (Ignore the errors, if any. They are harmless......Atleast in my case)
  7. Copy the the META-INF folder and AndroidManifest.xml from framework-res/original to the apk in /framework-res/dist

  8. Copy the apk to the framework folder in the ROM zip or use adb push framework-res.apk /system/framework
  9. Done! You have competed the tutorial. Flash/Reboot to see the fruits of your labour

Demonstration
Before

After


Hit Thanks if I helped you and let me know below if you're stuck or have a suggestion

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>