[TUTORIAL]Boot Animation Sound - Thunderbolt Themes and Apps

MAKE A BACKUP!!! I am in no way responsible for anything you do to your phone!
I thought I'd do a write up on how you can add, remove, or change your ROOTED Thunderbolt animation sound. You have to do some of your own poking around to locate the files needed for your specific rom. There are many people that don't want to do this cause they are afraid they will screw something up. You can safely do this on your PC. Create a folder and extract your rom into that folder. Navigate to system/customize/cid where you extracted your rom. Locate the default.xml file and right click and to open with notepad. Now, scroll to the bottom and look for something that resembles the following.
<BootAnimation animation="/system/customize/resource/VZW_bootanimation.zip" audio="/system/customize/resource/Verizon_Thunderbolt_3sec.mp3" audiostart="VZW" />
Click to expand...
Click to collapse
OR this...
-
<BootAnimation animation="/system/media/bootanimation.zip" audio="/system/media/FinalThunder.mp3" audiostart="VZW" />
Click to expand...
Click to collapse
OR maybe even this...
-
<BootAnimation animation="/system/customize/resource/bootanimation.zip" audio="/data/local/bootsound.wav" />
Click to expand...
Click to collapse
You are looking for the name of the boot animation and sound. Write down the location and exact spelling paying attention to capitalization. Now go back to your extracted rom and look for your boot animation in the path that you wrote down. Open the zip and look at the folders contained inside. This will vary. Some animations have part0 and part1, while others might have just android. This will be needed for the start up boot animation and/or the down boot animation sounds.
***If you're running Synergy Rom yours will most likely look like the last one above.*** I've always edited the "audio="/data/local/bootsound.wav" />" string to match that of the boot animation. Just makes it easier in the long run. Modifying the xml file is easy to do on your phone with a web editing app from the market and never have to touch a PC. However, I prefer to do it with the PC because it is much easier to read, and edit.
To simplify things a bit I’m going to post some pics with the corrected strings so that you can copy and paste to your own XML file.
Synergy’s Stock XML
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Notice there is no string for the down boot animation audio. We will be adding that next as well as changing the location and identity of the boot sounds. Overwrite by copying and pasting the following into your XML starting directly below <BootConfiguration> and stopping after </ShutdownConfiguration>
<BootAnimation animation="/system/customize/resource/bootanimation.zip" audio="/system/customize/resource/FinalThunder.mp3" audiostart="android" />
</BootConfiguration>
<ShutdownConfiguration>
<ShutdownAnimation image_png="/system/customize/resource/downanimation.zip" audio="/system/customize/resource/DownSound.mp3" audiostart="android" image="" fps="15" />
</ShutdownConfiguration>
Click to expand...
Click to collapse
Synergy’s Stock XML should now look like this.
Once your XML file matches the above, you are now ready to save and close out of notepad. Transfer the edited default.xml file to your phones sd card. Using Root Explorer (mount R/W) copy the transfered file to system/customize/cid. Before you paste the edited XML file, rename your existing file by putting .old on the end for a backup. Paste the edited file. Give the default.xml proper permissions and ownership. Long press on the XML file and select "Permissions". Make it look like below and select ok.
X X
X
X
Now long press on the file again and select "Change Owner". Make it look like below.
Owner - Root
Group - Root
Time for your mp3 file! Your start up mp3 can be as long as you want but keep in mind that it will keep playing (mine are around 30 seconds). In contrast, your shutdown mp3 should be no longer than 4 to 5 seconds. Name your start up mp3 FinalThunder.mp3. Name your shutdown mp3 DownSound.mp3. Place your properly named mp3’s on the sd card and with root explorer (mounted R/W). Copy and paste the two mp3 files to system/customize/resources. Give them proper permissions and ownership as shown above.
Reboot and enjoy!
See Post 2 for Th3ory V6.02 and Bamf. The directions are exactly the same.
I'd like to give THANKS to McLabia for testing things out for me and also giving me some "constructive" criticism!
If this helped you at all, hit the Thanks!
hinds73

Th3ory 6.02 AND Bamf Stock XML (Previous versions differ)
Overwrite by copying and pasting the following into your XML starting directly below <BootConfiguration> and stopping after </ShutdownConfiguration>
<BootAnimation animation="/system/media/bootanimation.zip" audio="/system/media/FinalThunder.mp3" audiostart="part0" />
</BootConfiguration>
<ShutdownConfiguration>
<ShutdownAnimation image_png="/system/media/downanimation.zip"audio="/system/customize/resource/DownSound.mp3" audiostart="android" image="" fps="15" />
</ShutdownConfiguration>
Th3ory 6.02 AND Bamf Stock XML should now look like this.
Follow the bottom of post 1.
Th3oryRom INFUS3TH3ORY V1.0B (Open like above and copy/paste)
<BootAnimation animation="/system/customize/resource/VZW_bootanimation.zip" audio="/system/customize/resource/FinalThunder.mp3" audiostart="part0" />
</BootConfiguration>
<ShutdownConfiguration>
<ShutdownAnimation image_png="/system/customize/resource/downanimation.zip" audio="/system/customize/resource/DownSound.mp3" audiostart="android" image="" fps="15" />
Click to expand...
Click to collapse
I have attached what I am currently using for Th3ory Rom. Enjoy!
Edit:Added Th3oryRom INFUS3TH3ORY New build V1.08

Reserved for issues and resolutions...

HA! I didnt expect this to be this long. It didnt read like it was this long. Hopefully people do this though, cause I know I dig the hell outta mine. Thanks again for the help and for writing this dude.

McLabia said:
HA! I didnt expect this to be this long. It didnt read like it was this long. Hopefully people do this though, cause I know I dig the hell outta mine. Thanks again for the help and for writing this dude.
Click to expand...
Click to collapse
I know right!!! Geez, now that it's up I'm like damn!
Not a problem! Thanks for your help too!

hinds73 said:
MAKE A BACKUP!!! I am in no way responsible for anything you do to your phone!
I thought I'd do a write up on how you can add, remove, or change your ROOTED Thunderbolt animation sound. You have to do some of your own poking around to locate the files needed for your specific rom. There are many people that don't want to do this cause they are afraid they will screw something up. You can safely do this on your PC. Create a folder and extract your rom into that folder. Navigate to system/customize/cid where you extracted your rom. Locate the default.xml file and right click and to open with notepad. Now, scroll to the bottom and look for something that resembles the following.
OR this...
OR maybe even this...
You are looking for the name of the boot animation and sound. Write down the location and exact spelling paying attention to capitalization. Now go back to your extracted rom and look for your boot animation in the path that you wrote down. Open the zip and look at the folders contained inside. This will vary. Some animations have part0 and part1, while others might have just android. This will be needed for the start up boot animation and/or the down boot animation sounds.
***If you're running Synergy Rom yours will most likely look like the last one above.*** I've always edited the "audio="/data/local/bootsound.wav" />" string to match that of the boot animation. Just makes it easier in the long run. Modifying the xml file is easy to do on your phone with a web editing app from the market and never have to touch a PC. However, I prefer to do it with the PC because it is much easier to read, and edit.
To simplify things a bit I’m going to post some pics with the corrected strings so that you can copy and paste to your own XML file.
Synergy’s Stock XML
Notice there is no string for the down boot animation audio. We will be adding that next as well as changing the location and identity of the boot sounds. Overwrite by copying and pasting the following into your XML starting directly below <BootConfiguration> and stopping after </ShutdownConfiguration>
Synergy’s Stock XML should now look like this.
Once your XML file matches the above, you are now ready to save and close out of notepad. Transfer the edited default.xml file to your phones sd card. Using Root Explorer (mount R/W) copy the transfered file to system/customize/cid. Before you paste the edited XML file, rename your existing file by putting .old on the end for a backup. Paste the edited file. Give the default.xml proper permissions and ownership. Long press on the XML file and select "Permissions". Make it look like below and select ok.
X X
X
X
Now long press on the file again and select "Change Owner". Make it look like below.
Owner - Root
Group - Root
Time for your mp3 file! Your start up mp3 can be as long as you want but keep in mind that it will keep playing (mine are around 30 seconds). In contrast, your shutdown mp3 should be no longer than 4 to 5 seconds. Name your start up mp3 FinalThunder.mp3. Name your shutdown mp3 DownSound.mp3. Place your properly named mp3’s on the sd card and with root explorer (mounted R/W). Copy and paste the two mp3 files to system/customize/resources. Give them proper permissions and ownership as shown above.
Reboot and enjoy!
See Post 2 for Th3ory V6.02 and Bamf. The directions are exactly the same.
I'd like to give THANKS to McLabia for testing things out for me and also giving me some "constructive" criticism!
If this helped you at all, hit the Thanks!
hinds73
Click to expand...
Click to collapse
Thanx for this...

Just a little tip for those that are wondering how to trim the boot sound, if you download Ringdroid( https://market.android.com/details?id=com.ringdroid&hl=en ), you can chop and rename the files as needed. Just a shortcut for anyone that doesnt want or know how to use audio editing software.

my question to you, how do you use more then 1 mp3 at a time? For example it plays 1 first, and then goes to the other?
so for example
<BootAnimation animation="/system/media/bootanimation.zip" audio="/system/media/scream.mp3" audiostart="part1" audio="/system/media/android_audio.mp3" audiostart="part2" />
I tried this and only android_audio.mp3 started - it skipped/did not play scream.mp3
edit: also how do you make a song loop until animation is finished, or play a song a second time?

Wicked123 said:
my question to you, how do you use more then 1 mp3 at a time? For example it plays 1 first, and then goes to the other?
so for example
<BootAnimation animation="/system/media/bootanimation.zip" audio="/system/media/scream.mp3" audiostart="part1" audio="/system/media/android_audio.mp3" audiostart="part2" />
I tried this and only android_audio.mp3 started - it skipped/did not play scream.mp3
edit: also how do you make a song loop until animation is finished, or play a song a second time?
Click to expand...
Click to collapse
Hey Wicked, I use audacity for all my mp3 trimming. Especially if I want to merge 2, 3, 4 or more clips into one. You can do all kind of things with it. To answer your question, I'm not so sure that can be done. The easiest way would be to time your boot animation from start to finish and then make your clip to suit. If you want, you can upload your mp3s that you want and give me the order you want them in and exactly how long. Also let me know which "part" you want to have them start.
hinds73

PMGRANDS said:
Thanx for this...
Click to expand...
Click to collapse
Welcome, let me know if you hit any snags? With as many updates that come out, zips and xmls seem to get changed regularly.
hinds73

This helped me fix my boot sound
hinds73 said:
Th3ory 6.02 AND Bamf Stock XML (Previous versions differ)
Overwrite by copying and pasting the following into your XML starting directly below <BootConfiguration> and stopping after </ShutdownConfiguration>
<BootAnimation animation="/system/media/bootanimation.zip" audio="/system/media/FinalThunder.mp3" audiostart="part0" />
</BootConfiguration>
<ShutdownConfiguration>
<ShutdownAnimation image_png="/system/media/downanimation.zip"audio="/system/customize/resource/DownSound.mp3" audiostart="android" image="" fps="15" />
</ShutdownConfiguration>
Th3ory 6.02 AND Bamf Stock XML should now look like this.
Follow the bottom of post 1.
Th3oryRom INFUS3TH3ORY V1.0B (Open like above and copy/paste)
I have attached what I am currently using for Th3ory Rom. Enjoy!
Edit:Added Th3oryRom INFUS3TH3ORY New build V1.08
Click to expand...
Click to collapse
Your tutorial on the XML was great, helped me figure out how to fix boot sound on my EVO with Synergy. +1 Thanks button hit

Bumping cause I recommended it to someone... Lol.
Sent from my rooted, Dark Horse INFECTED Synergy bolt running Ziggys latest.

is the default.xml not in an aosp rom? I have searched everywhere in shiftao5p v1.2 but cannot find one.

bigd5783 said:
is the default.xml not in an aosp rom? I have searched everywhere in shiftao5p v1.2 but cannot find one.
Click to expand...
Click to collapse
You may be looking for something like this to make it work.
http://forum.xda-developers.com/showthread.php?t=1048231
Let me know if it works for you?
hinds73

Related

[Tutorial] How to make manila 2.5 animated wallpapers

I've been making a few of these and I decided after a couple of requests that I should make a tutorial. I will try to be as thorough as possible. If I missed a step, please let me know and I will correct it. Thanks!
This tutorial will be for the Circles Animated Wallpaper. If I have time, I will add the Brush and Light Wallpapers later.
Things you will need:
1. A .png picture editor - Photoshop, Gimp, Paint.Net etc.
2. CFC_gui editor http://forum.xda-developers.com/showpost.php?p=3164600&postcount=1
3. A file explorer that will allow you to overwrite files in the Windows folder : Total Commander, Resco Explorer etc.
Step 1.
Create a folder on your Desktop PC Called Circles.
Step 2.
Open the file explorer on your phone that you will be using and go to the "Windows" folder.
Step 2a.
Locate, copy, and paste the following files to your storage card:
1f3e9503_manila
2bfd66c8_manila
2c0f7f49_manila
2c33b04b_manila
2c45c8cc_manila
2c2197ca_manila
5ad77c2b_manila
199e77cf_manila
4256a2d4_manila
42448a53_manila
423271d2_manila
Step 3.
Go to the "Windows>Animated Wallpaper" folder.
Step 3a.
Copy the file _RAW_Circle.png to your storage card
Step 4.
Copy these files to the "Circles" folder on your PC that you have created.
Step 5.
Open CFC_gui.exe
Step 6.
Select "File>Select Folder>Circles (Wherever you saved your Circles folder)
Step 7.
Select "Tools>Export to PNGs". To keep things simple, export the PNGs to the Circles folder.
Step 8.
Now open your photo editing software and begin editing your pictures.
_RAW_Circle.png is the thumbnail veiw that you will use to select your Wallpaper when you are finished.
5ad77c2b_manila is a 512x1024 image of your background
To make the next two images (199e77cf_manila and 1f3e9503_manila) you will need to start out with a 480x640 wall that you are using. These two images when combined, need to match up perfectly.
The rest are simply the circles that you can replace with any image you desire.
Be sure to replace and save all of the pngs with the same name in the circles folder.
Step 9.
Go back to CFC_gui. Select the first file in the window on the left. Hit the "Replace with" button on the lower right. Select the png from the "Circles" folder that has the corresponding name. This will overwrite the manila file with that name in the "Circles" folder. Do this with all of the files in the window on the left.
Step 10.
Now hit: Tools>Finish Up. The wizard that follows will CFC Compress, Pad, and Trim your files to optimize them for use on your device.
Step 11.
Move all of the manila files in the folder and the _Raw_Circle.png back to your storage card.
Step 12.
Copy all of the manila files in step 11 over to your Windows folder on your device. If asked to overwrite the existing files, click yes
Step 13.
Copy the file _RAW_Circle.png to the "Windows>Animated Wallpaper" folder. Again, if asked to overwrite the existing files, click yes
Now restart your device, go to Settings tab>Personalize>Home tab wallpaper>animated wallpaper and select your new wallpaper!
Big Thanks out to DavidMMorley over at PPCGeeks for this. If you want to change the WAY that the images animate, follow these instructions:
You will need m9converter http://forum.xda-developers.com/show...54&postcount=2
Convert your file to a XML using that tool (dos command line tool)
Now you can edit your XML, Notepad++ is perfect
snippet of lines 539-563
<Object Type="GLESSprite2D">
<Property Name="Center" X="8.0" Y="-8.0" Z="0.0" />
<Property Name="Position" Animated="true">
<Keyframes>
Each moving item has 5 positions it moves to during the animation time. Change the X and Y values to tell it where to go on your screen. 0,0 is top left.
<Keyframe Frame="180" X="0.0" Y="-550.0" Z="0.0" />
<Keyframe Frame="250" X="300.0" Y="-450.0" Z="0.0" />
<Keyframe Frame="479" X="0.0" Y="-380.0" Z="0.0" />
<Keyframe Frame="480" X="50.0" Y="-180.0" Z="0.0" />
<Keyframe Frame="550" X="300.0" Y="0.0" Z="0.0" />
</Keyframes>
</Property>
<Property Name="Opacity" Animated="true">
<Keyframes>
You can control the transparancy of each step also, why their is a extra one I do not know
<Keyframe Frame="220" Value="50.0" />
<Keyframe Frame="250" Value="50.0" />
<Keyframe Frame="479" Value="50.0" />
<Keyframe Frame="480" Value="50.0" />
<Keyframe Frame="520" Value="50.0" />
<Keyframe Frame="550" Value="50.0" />
</Keyframes>
</Property>
<Property Name="Texture Path" Value=".\Assets\Images\Home\WVGA\circle01.qtc" />
You can stretch your image if you want also here:
<Property Name="Size" Width="76.0" Height="76.0" />
How long do you want this particular one to last:
<Property Name="Duration" Value="956" />
</Object>
Lots of trial and error in there to play with, have some fun. I have ones that go around the screen and ones that fall upwards.
Now use the m9converter and turn back into a manila file and place in your windows directory.
Amazing tutorial...will try this sometime...thanks.
Wow............this is awesome!
ezzie said:
Wow............this is awesome!
Click to expand...
Click to collapse
Thought you would like it.
Thanks for this, i've started to make a theme...upload shortly..if it works !
Do you know what the manila files are for the _RAW_Brush and RAW_Light animations?
Awesome.
.
is it also working on 2.1 ???
rickiri69 said:
is it also working on 2.1 ???
Click to expand...
Click to collapse
These are for 2.5 only.
skilty said:
Thanks for this, i've started to make a theme...upload shortly..if it works !
Do you know what the manila files are for the _RAW_Brush and RAW_Light animations?
Click to expand...
Click to collapse
As soon as I have some free time, I'll update the tutorial to include those as well.
Is it normal that after Step 10 - Tools>Finish Up, the files atributes for the Manila files is modified to Hidden.
EDIT: forget it, solved
Thanks
cool
asset path?
I'd like to change the graphics of the icons, not just their scripted movements... but when I open the file (as well in your example portion) there is the line:
<Property Name="Texture Path" Value=".\Assets\Images\Home\WVGA\circle01.qtc" />
where the hell is this .\Assets... stuff? I really cannot find this path!
ruspa said:
I'd like to change the graphics of the icons, not just their scripted movements... but when I open the file (as well in your example portion) there is the line:
<Property Name="Texture Path" Value=".\Assets\Images\Home\WVGA\circle01.qtc" />
where the hell is this .\Assets... stuff? I really cannot find this path!
Click to expand...
Click to collapse
For the graphics part, follow the directions in the first post.
xpressyourcell said:
If you want to change the WAY that the images animate, follow these instructions:
You will need m9converter http://forum.xda-developers.com/show...54&postcount=2
Convert your file to a XML using that tool (dos command line tool)
Now you can edit your XML, Notepad++ is perfect.
Click to expand...
Click to collapse
Thanks for all this info, but can you tell me which file your referring to in the quote above? which file has the scripts in?
skilty said:
Thanks for all this info, but can you tell me which file your referring to in the quote above? which file has the scripts in?
Click to expand...
Click to collapse
Sorry, I copied his instructions from my PPCGeeks thread and forgot this post was before it...
"Nice! Also a note that 011f4a3f is a m9/xml that you can easily control the pattern and speed of each moving item if you get tired of them just falling down the same way! "
Hi xpress, can u share some of your animated-wallpaper archievements?
Hi.
A question: How can I increase the speed of the bubbles in animated wallpaper?
Thanks.!
vodanhdaisu said:
Hi xpress, can u share some of your animated-wallpaper archievements?
Click to expand...
Click to collapse
Go Here To See Examples!
I've been trying to create my own animated theme but i'm struggling to get the RAW_Circle/background image to work.
I'd created a new RAW_Circle file and put that in the windows folder and the animated wallpaper folder, I also created the two manila files 1f3,199etc and the 512 background image but when i select the new one via animated wallpapers (I can see my new image) the screen/background goes white.
I've also resized them to 480x640 dimensions (i've got a VGA device) but now i just get a plain black background?
I've also been trying to play with the scripts via m9editor. I want to make all 8 manila files (the circles) appear and replace each other in the same place. e.g the first one appears in the bottom right corner and the next one replaces it in the same position and so on. I won't need the five stages/keyframes of each animation just one, but can i just delete the other four keyframes from the script below??
<Object>Type="GLESSprite2D"
<Property> Name=Center Value="X=38 Y=-38 Z=0"
<Property> Name=Position Value="PosX=2E-05"
<Keyframes>
<Keyframe> Frame=160 Value="X=6553600 Y=-6553600 Z=0"
<Keyframe> Frame=260 Value="X=16384000 Y=-36044800 Z=0"
<Keyframe> Frame=459 Value="X=16384000 Y=-36044800 Z=0"
<Keyframe> Frame=460 Value="X=6553600 Y=-6553600 Z=0"
<Keyframe> Frame=560 Value="X=16384000 Y=-36044800 Z=0"
and would i need to change this line... <Property> Name=Position Value="PosX=2E-05"
to...
<Property> Name=Position Value="PosX=2E-01"
anyone help??
I already have this problem in cooking room...
You do copy thefiles in W/animated and windows...
I know it's strange...
Ex:
In Energy rom copy the files in W/animated
In MaesusLeo V1.9 Copy W/animated is not enough... copy to windows again

[HOW TO] Make your own bootscreen and create signed zip

Here's a tutorial for those wanting to make their own (animated) bootscreen for the HTC Hero. Decided to write it after I'd seen a couple of posts from people asking about this, and some encouragement from yet another. I've tried to write this in greatest detail possible, so everyone can have a go at doing this.
Tools
It's really quite simple, if you have the proper tools for the job:
SignAPK.jar + testkey.pk8 + testkey.x509.pem
SignAPK.cmd (batch file written by me to facilitate signapk.jar use)
Graphics editor that can work with animated GIF files (Adobe Photoshop or Fireworks recommended)
a plain text editor capable of editing UNIX files (if you're unsure about this, use the free, and open source Notepad++. You can get the Installer.exe here.)
These aren't required, but make things easier:
Android SDK Tools installed (working adb.exe at the very least)
Hero's stock bootscreen to start from)
I have attached two stock Hero bootscreens (one with and one without the HTC startup sound), as well a zip file with the signapk files.
Setting up SignAPK
First, make sure you have Java installed. If not go to www.java.com to install it.
Second, I recommend to unzip the SignAPK_xda.zip file to C:\SignAPK.
Lastly, add the signapk folder to your PATH environment variable:
[*]Go to Control Panel, System
[*]Click on "Advanced" (or "Advanced System Settings")
[*]Click the button "Environment Variables..."
[*]Locate the PATH variable under "User Variables" (or "System variables" if you want to use SignAPK under other user accounts) and double-click it to edit
[*]In the "Variable Value" field, at the end of the line, type a semi-colon and the path to the signapk files ;C:\SignAPK
[*]You could also add the path to your java.exe file here if you have troubles with running signapk.​
A note on signapk.CMD
I wrote this batch file so it's possible to sign a zip file from a command line with the least amount of typing (saves time and less chance of a typo). It will check for java.exe and if it doesn't find it in your %PATH% it will let you know and try anyway. It will also prompt you to overwrite or not, if it finds the signed destination file already exists. Open in notepad to find out more.
Contents of bootscreen_stock.zip
You can delete the following three files, as they are created by the signing process:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
This file contains the command to copy the files to the SYSTEM: volume on your device - you never need to edit this:
META-INF\com\google\android\update-script
This file tells Android how and which files to display - open in Notepad++:
system\media\bootscreen\boot_animation.xml
Then we have the actual bootscreen files:
system\media\bootscreen\boot1.gif - shown first, and plays only once
system\media\bootscreen\boot2.gif - shown after first ends, and loops forever (i.e. until end of boot sequence)
system\media\bootscreen\boot_bg.gif - optional file, this file is used as background during entire boot sequence if the 2 aforementioned files are smaller than Hero's screen
system\media\bootscreen\boot.mp3 - optional sound file, played once during boot
boot_animation.xml file contents
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2008 HTC Inc.
*
-->
[COLOR="Red"]<!-- For new bootup animation
<BootConfiguration>
<BootAnimation
image="/system/media/bootscreen/boot.gif"
audio="/system/media/bootscreen/boot.mp3"
image2="/system/media/bootscreen/boot2.gif" (optional)
image3="/system/media/bootscreen/boot3.gif" (optional)
screenX="100" (optional)
screenY="130" (optional)
image_bg = "/system/media/bootscreen/boot_bg.gif" (optional)
useAudio="1" // 1: true ; 0:false (optional)
/>
</BootConfiguration>
-->
[/COLOR]
[COLOR="Green"]<!-- For cropped version -->
<BootConfiguration>
<BootAnimation
image="/system/media/bootscreen/boot.gif"
image2="/system/media/bootscreen/boot2.gif"
image3="/system/media/bootscreen/boot2.gif"
loopimage="/system/media/bootscreen/boot2.gif"
image_bg="/system/media/bootscreen/boot_bg.gif"
audio="/system/media/bootscreen/boot.mp3"
screenX="10"
screenY="180"
useAudio="1"
/>
</BootConfiguration>
[/COLOR]
[COLOR="Red"]<!-- For full screen version -->
<!--BootConfiguration>
<BootAnimation
image="/system/media/bootscreen/boot.gif"
audio="/system/media/bootscreen/boot.mp3"
useAudio="1"
/>
</BootConfiguration-->[/COLOR]
This is the file included with the stock bootscreen. This file actually contains 3(!) configurations, however the first and third (red-colored) have been commented out. In short, edit the middle (green-colored) "BootConfiguration" section.
Delete the line that begins with image3= as you won't need it.
If you do not wish to include a startup sound, delete lines starting with:
audio=
useaudio=
Alternatively, simply set useAudio=0
If you boot1.gif and boot2.gif files are both 320x480 pixels, delete lines starting with:
image_bg=
screenX=
screenY=
Alternatively, simply set screenX=0 and screenY=0
If you delete the audio= and image_bg= lines, you can ofcourse delete the files audio.mp3 and image_bg.gif to keep the update.zip as small as possible.
ScreenX and ScreenY are coordinates in pixels, that tell Android where to place the GIF files on the screen. Top-left of the screen would be ScreenX=0 and ScreenY=0; bottom-right would be ScreenX=320 and ScreenY=480. This means that if you make a GIF file that is 200 px wide and 180px high and you wish to center this on the screen, you'd use ScreenX=60 and ScreenY=150 (i.e. ScreenX=320-200=120/2=60 and ScreenY=480-180=300/2=150). If your GIF files are exactly 320x480 pixels, you can set ScreenX and ScreenY both to 0, or leave those two lines out entirely.
Creating a GIF animation from scratch
(boot1.gif and boot2.gif)
Using Adobe Photoshop CS4 (cannot speak for older versions, I think you'd need the now discontinued Adobe ImageReady instead):
Create a layer for each frame of your animation (yes, I didn't say creating an animation from scratch wouldn't be a lot of work)
Click Window -> Animation to show the Animation panel
Click the panel menu (top right icon in panel) and choose "Make Frames from Layers"
If the frames are loaded in reverse from what you intended, choose "Reverse Frames" from the Animation panel menu
From the panel menu, choose "Optimize Animation" and UNtick both "Bounding Box" and "Redundant Pixel Removal"
Finally, go to File -> Save for Web & Devices, UNtick "Transparency" and play with some of the options to reduce file size.
To (re-)open an animated GIF file in Photoshop CS4, go to File -> Import -> Video Frames to Layers and type in the file name box *.gif then hit the Enter key so you can see GIF files, browse to it, select and click Load.
Using Adobe Fireworks CS4:
Make sure the "States" panel is visible, via Window -> States
Create a new "State" for each frame of your animation
To set frame delays, or basically set how long each frame will be shown for, in 100ths of a second, select one or more states and right-click, choose "Properties"
Make sure you do not use transparency (this gave me problems)
To save, go to File -> Save As, set "Save as Type" to "Animated GIF (*.gif)" and "click Options"
Do check "Dither" for better looking gradients and transitions
Play with the options on the first tab to reduce file size
On the "Animation" tab, UNcheck "Crop each state" (don't do this and get some crazy glitchy results in your bootscreen)
Creating a GIF animation by converting a G1 bootscreen animation to Hero format
(boot1.gif and boot2.gif)
You can also import a bunch of PNG files as layers (and subsequently frames) from, for example, a G1 bootscreen.
The fastest way in my experience is simply using Fireworks' File -> Open dialog, make sure all files are in one directory, select them all, do check the "Open as Animation" checkbox and click "Open". This will open each file into its own state in one big file. Then use instructions above to set frame delays and proceed to save as animated GIF.
You can also do it in Photoshop, but this method is very slow, via File -> Scripts -> Load Files into Stack (UNtick "Create Smart Object after loading layers"). Then follow the steps above to create an animated GIF file.
Compiling your bootscreen
If you have the files you want, it's time to zip them and then sign the zip file.
Make a folder "mybootscreen" and unzip the stock bootscreen into that, so it looks like this:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-script
system\media\bootscreen\boot_animation.xml
system\media\bootscreen\boot1.gif
system\media\bootscreen\boot2.gif
system\media\bootscreen\boot_bg.gif
system\media\bootscreen\boot.mp3
Delete those first 3 files, edit the XML file as needed and replace the GIF files with your own (see my explanations above).
Use for example 7-zip to select the 2 folders META-INF and system and click "Add" (to create new archive)
Make sure you set "Archive Format" to ZIP
Open a Command Prompt window (click Start, Run, type cmd and click OK, or if you have Vista or Windows 7, click Start, type cmd and hit Enter key)
Use this command to go to the directory with your zip file: CD /D C:\path\to\your\file
Type signapk mybootscreen.zip and hit Enter key
Barring any typo's you should now have a file named mybootscreen_signed.zip. You can copy that to the root of your SDCARD and flash it via your recovery image, or use DroidExplorer's flash function.
If this tutorial was of any use to you, or you have ideas to make it better, please reply and let me know. Thanks for reading!
EDIT (2010-04-11): updated SignApk_xda_v20100411.zip. Fixed a couple of forgotten quotes in signapk.cmd that made signing files with spaces in their filenames impossible. New zipfile attached.
wooooo THANKS!
THANKS A LOT! I have made the animated gifs and the sound, but I was insure how to sign and create the signed zip. I'll be trying this ASAP when Ive finished work. Ill keep you posted....
Thanks again m8.
Great guide, I have made my own bootscreen for the Villain rom, but for some reason, when i flash it to my hero, on boot, it plays less than a second of it, ad then messes up completely and displays random static like on an old tv, and then just a black screen for the remainder of the boot time
Help!! my gifs are not that big, i made sure of that (only slightly more than the stock) and i made them in photoshop CS4 with the animations panel, and followed your instructions to the letter.
Gifs are bellow, please help, as i would really like to release these, as i think they are really nice.
Boot1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Boot2
Hey, very nice work! Try the zip I've attached. I think it came out great.
It boils down to a few small problems. Here are some steps I took to correct them:
Imported your files into PS as I described in the tutorial using "Video frames to Layers"
Edit -> Convert to Profile -> sRGB IEC61966-2.1 (UNcheck "Flatten Image")
For just boot1.gif in Animation Panel, bottom left, set looping to "Once"
For just boot1.gif via Image -> Image Size... -> Width:320px, Height:480px, Resolution:72dpi, Check Resample Image and set to "Bicubic"
File -> Save for Web & Devices, with these settings: Selective, Diffusion, UNcheck transparency, UNcheck interlaced, Colors:64 (as this is a grayscale animation, it looks fine), Dither:100%, Matte:none, Web snap:0%, Lossy:0, Metadata:none.
The end result is bigger files, but they work. The XML was fine.
Great! thanks a lot for your help, and your original guide, I might do a few more boot screens now as it looks really good (in my opinion)
mattyyey said:
THANKS A LOT! I have made the animated gifs and the sound, but I was insure how to sign and create the signed zip. I'll be trying this ASAP when Ive finished work. Ill keep you posted....
Thanks again m8.
Click to expand...
Click to collapse
How'd it come out? Would love to see your results!
Really interessant, this is exactly what I was looking for! Thanks for this How-To!
For the signing process I haven't use your "signapk.cmd" (since I'm a linux user)But I have a question: testkey.x509.pem & testkey.pk8 you provied are only to sign app for the Hero? or is it a standard Android singning process? I mean... where are those key from?
For now i've just "resign" the stockbootscreen for "educational purpose", soon I'll try to create something, I hope
EDIT: Okay I was able to resign the original one correctly since I was able to flash it, BUT my bootscreen is still this nexus one animated. So maybe I don't understand wich bootscreen we actually modifing. I know this is not the really first one (this one is fine: spend one day to find that we need a custom SPL to change my ex horrible T-mobile first bootscreen to a Hero one) So why can't I remove the nexus one coming with aHero ROM?
EDIT2: using
Code:
./adb pull /system/media/bootscreen/boot.gif ./Desktop
I get the right image... that mean the files are correctly flashed on my ROM but nothing change so that mean aHero is using a different path for the 2nd bootscreen ???
Thanks for any hint
carbonyle said:
Really interessant, this is exactly what I was looking for! Thanks for this How-To!
Click to expand...
Click to collapse
You're most welcome!
carbonyle said:
For the signing process I haven't use your "signapk.cmd" (since I'm a linux user)But I have a question: testkey.x509.pem & testkey.pk8 you provied are only to sign app for the Hero? or is it a standard Android singning process? I mean... where are those key from?
Click to expand...
Click to collapse
The signapk files (except signapk.cmd) came from a 5MB file named "AndroidMod.zip" that floats around the internet, so to speak. It also contains 3 img files, part of a tutorial I guess, which are not needed for signing. The testkey certificates were created by whomever made that zipfile. The credentials for those files are quite anonymous ("Android" and "[email protected]", etc), so they should be fine to use. You could use openssl to generate your own key files. I tried, and they generated okay, but zips signed with my own certificate wouldn't flash. Recovery (Amon RA) kept saying the files weren't signed. So if you figure out how to properly generate your own certificates, I'd love to hear it.
carbonyle said:
For now i've just "resign" the stockbootscreen for "educational purpose", soon I'll try to create something, I hope
EDIT: Okay I was able to resign the original one correctly since I was able to flash it, BUT my bootscreen is still this nexus one animated. So maybe I don't understand wich bootscreen we actually modifing. I know this is not the really first one (this one is fine: spend one day to find that we need a custom SPL to change my ex horrible T-mobile first bootscreen to a Hero one) So why can't I remove the nexus one coming with aHero ROM?
EDIT2: using
Code:
./adb pull /system/media/bootscreen/boot.gif ./Desktop
I get the right image... that mean the files are correctly flashed on my ROM but nothing change so that mean aHero is using a different path for the 2nd bootscreen ???
Thanks for any hint
Click to expand...
Click to collapse
I don't know I'll download aHero and have a look.
EDIT: Okay, just had a quick look in "aHero07-signed.zip" and it appears Android 2.1 uses a different bootscreen format. Do this:
adb shell
cd /system/media
ls
Instead of a bootscreen directory you'll see a file "bootanimation.zip". Instead of 2 animated GIFs, it contains 2 directories. Each directory is an animation, with a bunch of PNG files for frames. A text file describes which dir is what animation (order of playback) and the delay between frames. If you want to convert a 1.5/1.6 bootscreen from GIFs to seperate PNGs for use in this new format, just open the GIF file in Photoshop (or GIMP I guess) as described and save each frame as a seperate file (Photoshop has a function or script for that, maybe GIMP does too).
Maybe you'll find more information in this thread. I got the Supernova bootscreen graphics (see my sig) from there, which I converted into a bootscreen for Cupcake.
Well, my experience from running 2.1, you can use the bootanimation.zip, or if you delete it and create the bootscreen folder, it also works.
I have the same problem though, when I load up my gif, using the old method, it looks like hells just got unleashed on the gif. Nothing in place, static, etc... I followed your tutorial, tried a couple things, nothing has been working so far...
EDIT: Nvm, found another program to remove the transparency, works now! Got bored, haven't seen any terminal style logins - this works great for my phone, the timing might be different for others though.
To get it working, just delete your bootanimation.zip and flash the zip as usual.
Boot1
Boot2
http://groups.google.com/group/admin-panel-dev/web/terminal_signed.zip
Great tutorial! And nice work that one is Warhawk
I have a problem. I made one by screen capturing some video. Converted it to .gif fine. I can play it in windows fine, but when flashing to android the image just gives a black screen (its only the gif area of the screen cos the animation is only 300x120.
I have provided the .gif above, if anyone can help.
Thanks
I went ahead and removed the transparency from the gif, it showed up on my Hero just fine when I zip/signed it.
Aaah Thanks so much buddy. I swear i tried that though (maybe i made a mistake)
Cheers so much!
I am getting an error after flashing. My installation aborts.
...
Verifying update package...
Installing update...
E:Can't find update script
Installation aborted.
...
Can you help??
quan_one said:
I am getting an error after flashing. My installation aborts.
...
Verifying update package...
Installing update...
E:Can't find update script
Installation aborted.
...
Can you help??
Click to expand...
Click to collapse
Upload your update.zip. Some-one should be able to help.
Did you include the update-script to: \META-INF\com\google\android
Hey guys I created my own boot screen but I am failing to see why my gif will not display on my hero. I have created it from scratch being careful not to include any transparent images or layers but it still displays as a black screen. I am not sure what would cause my gif not to play on my phone other than a transparency issue.
Any help would be more than welcome.
(I am able to sign my zip and flash it no problem)
(edit: The image was my actual .gif but after upload it turn into a jpeg. I will host the file and upload from there.)
My stuff can be found here at mediafire : http://www.mediafire.com/?sharekey=43b651ad9cd91774e7c82ed4b8f0c380e53d1e35008d24d5d8c7c6998cb4ca21
.psd
signed zip
Thanks again!
rejectedkid said:
Hey guys I created my own boot screen but I am failing to see why my gif will not display on my hero. ...
Click to expand...
Click to collapse
You need to go into mybootanimation_signed.zip\system\media\bootscreen and edit your boot_animation.xml.
phaelox said:
...ScreenX and ScreenY are coordinates in pixels, that tell Android where to place the GIF files on the screen. Top-left of the screen would be ScreenX=0 and ScreenY=0; bottom-right would be ScreenX=320 and ScreenY=480. This means that if you make a GIF file that is 200 px wide and 180px high and you wish to center this on the screen, you'd use ScreenX=60 and ScreenY=150 (i.e. ScreenX=320-200=120/2=60 and ScreenY=480-180=300/2=150). If your GIF files are exactly 320x480 pixels, you can set ScreenX and ScreenY both to 0, or leave those two lines out entirely...
Click to expand...
Click to collapse
The difficult thing is that you have two .gifs that are diff sizes so not too sure what to do.
On the one I made, my .gifs are both the same resolution so the value I set for ScreenX and ScreenY work for both.
Look at some other people's .xml files and hope you find someone elses that also uses two different resolution .gifs.
ah. thanks for your input
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
And just because there are no transparent images that you can see or know you put in, doesn't mean that they aren't in there. For some reason, even if I untick Transparent layers in PS, I still get them. I went and got Animation Shop 3, optimized the gif after making it in PS, then re-wrote the file, and everything works fine.
Hope everything is working
Hi !
I have 2 questions :
First one :
To ddotpatel : Your bootscreen is really nice ! Is it working on any 2.1 rom or do I have to change it ? On which rom did you create it ?
And the second one, that tuto is working on 1.5 and 2.1 roms ? Because I heard that it was different to make an 1.5 bootscreen and an 2.1 one...
Thanks for your answers

[Tutorial] White Notification Bar [Updated 5/13/10]

Here is a pack of 3 files that, if pushed to your rom will give you the white task bar. This will change status icons and is just a work in progress "fill in the the gap" type of thing until I can write a proper update script for an update.zip. Currently this has only been tested to work 100% with:
Evil Eris 2.0.1 (It will, however, break the Sense launcher. So if you want the white bar, use another launcher)
Ic3Rom 2.0
It DOES NOT work on
TaintedVanilla 1.3.1
Or any rom that has it's System/Framework apk's and jar's odexed.
Please let me know if it works with any others.
Also, please not that this will change the status bar highlights to green.
http://www.multiupload.com/4YV5D61YRX
Click to expand...
Click to collapse
Just push the three files and reboot. Reboot will take about 5 min, so don't freak out if it takes forever. If you get into a boot loop, however, it didn't work.
DISCLAIMER: I'm not responsible if this bricks your phone. Please don't yell at me if it does. Also, be smart: do a nandroid backup before you try this.
Click to expand...
Click to collapse
This tutorial is for a white menu bar. It's still kind of a work in progress, but it works for the most part. When done, it looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ok. Here is the extremely long way to do this, but it should work with any rom and will give you a full (date/time/notifications) white/vanilla task bar.
(Seriously, this may take 30 minutes or more if you're unfamiliar with some of these commands)
DOWNLOAD: http://www.multiupload.com/VZWCE0A0FN
Unzip the files and there should be 4 folders and 1 file: framework-res, com.htc.resources, PCSCII, Tools, and StatusBarIcon.smali.
Also included are the tools needed to crack open the .dex file from services.jar, smali.jar and backsmali.jar
First you'll need to pull the proper files to modify from whatever rom you're using. Open up your command line program of choice and do this:
cd [your tools folder in the android sdk]
adb remount
adb pull /system/framework/framework-res.apk framework-res.apk
adb pull /system/framework/com.htc.resources.apk com.htc.resources.apk
adb pull /system/app/PCSCII.apk PCSCII.apk
adb pull /system/framework/services.jar services.jar
Click to expand...
Click to collapse
Copy all these files into a new folder.
Things can get messy so name them whatever you'd like to keep things organized.
After all this you can start copying files. First we need to open up services.jar. Easiest way is to change the .jar ending to .zip and expand it with whatever program you'd like. Copy the classes.dex into a new folder. Keep the original folder of the expanded services.jar, it makes things easier in a few minutes.
Here is where things get a little complicated. You'll need to open up the classes.dex file with backsmali.jar. First, make sure Backsmali.jar is in the same folder as classes.dex. Next enter this command into the terminal:
cd [the folder with backsmali and classes.dex file]
java -Xmx512M -jar baksmali.jar -o classes/ classes.dex
Click to expand...
Click to collapse
This will expand classes.dex into a folder. Click through this folder until you find a folder called Status. Now drag the StatusBarIcon.smali into the Status folder. Allow the replacement.
Now we need to close the classes.dex file back up. Make sure smali.jar is in the same folder as the classes folder (make a new folder just to avoid a conflict with your original files) and use these commands:
cd [the folder with smali and the classes folder]
java -Xmx512M -jar smali.jar -o classes.dex classes/
Click to expand...
Click to collapse
You should have a fresh classes.dex file now. Now put this new classes.dex file into the original services.jar folder (that you expanded from a zip) and rezip that file. Then change the name from a .zip to .jar.
Step 1: done.
The next few parts are a lot easier, so stick with me here.
Now we need to open up the Framework-res.apk and replace all of the image files needed for a sexy white menu bar. All of the needed files are in the folder named (you guessed it) framework-res. First, you'll need to expand this .apk, do so by changing it into a .zip. After you expand it, copy the files from my folder to the matching folders. Don't drag and drop the folders, it won't work. Select all inside them and paste/drag/whatever over to the one from your phone. There should be a folder of image files, and a folder with two xml files. Once done return to the top folder of the framework-res.zip you expanded and re-zip the contents. Make sure you select the contents and zip them.
**DO NOT ZIP THE FRAMEWORK-RES FOLDER ITSELF, SELECT THE FILES INSIDE THE FOLDER AND RE-ZIP THEM**
You should now how have a new archive. Rename it to framework-res.apk and set it aside for later use.
The last parts are essentially the same things, but with the other two folders I've included: PCSCII and com.htc.resources. Copy the files, and re-zip them into .apk files.
Ok. Almost done.
Now it's time to send the files back to your phone. Place the new versions of these files into your Tools folder in the Android SDK.
Now let's push them back to your phone:
cd [your tools folder... again]
adb remount
adb push PCSCII.apk /system/app/PCSCII.apk
adb push framework-res.apk /system/framework/framework-res.apk
adb push com.htc.resources.apk /system/framework/com.htc.resources.apk
adb push services.jar /system/framework/services.jar
adb reboot
Click to expand...
Click to collapse
Reboot can take a while, so be patient. I'm thinking rebooting into recovery and clearing your dalvik cache may help, but haven't tried it.
If everything worked correctly, you should have a brand spankin' new notification bar.
Just a note, I have tested this on Evil Eris 2.0 and IceRom 2.0 and it works perfectly. However, it should work with whatever rom you're using. Also, this will change some of your icons to Vanilla ones. If you don't want them changed, don't copy the files that will change them. Those should be apparent when copying the image files from the folders I've included.
If you have any questions, feel free to ask.
Also, if anyone knows how to wrap this all up into a nice little update.zip, please do it or let me know how to do it. It would be greatly appreciated.
Hello, I appreciate the tutorial! I'm attempting to get this set up for my Tainted Vanilla rom and ran into a snag at the beginning. Our services.jar file contains no classes.dex file. All it contains is MANIFEST.MF. Any ideas about how I should proceed?
Ok, I think I've figured it out.
The .odex file is basically the .dex file in an uncompressed format. To break it open you do the same thing you would do with a dex file. Plug it into baksmali and it should yield you a Classes folder. You do have to reassemble it though, which requires you to first deodex it... and it's kind of a pain in the ass. I've figured out the first portion of it, but deodexing the file is decently complicated for a n00b like me. I'll continue to work on it and will hopefully have a solution tomorrow.
Here's where I'm stuck if anyone wants to figure it out:
$ java -Xmx512m -jar baksmali.jar -x services.odex
Error while disassembling method Lcom/android/server/ConnectivityService;-><init>(Landroid/content/ContextV. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Lcom/htc/connectivity/DummyStateTracker; cannot be resolved.
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedValidationException(ClassPath.java:535)
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDepth(ClassPath.java:543)
at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.java:383)
at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:274)
at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(AnalyzedInstruction.java:199)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccessors(MethodAnalyzer.java:479)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndPropagateChanges(MethodAnalyzer.java:459)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeDirectCommon(MethodAnalyzer.java:2968)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeDirectRange(MethodAnalyzer.java:2927)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:856)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:202)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:291)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:135)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:187)
at org.jf.baksmali.main.main(main.java:277)
opcode: invoke-direct/range
CodeAddress: 811
Method: Lcom/android/server/ConnectivityService;-><init>(Landroid/content/ContextV
Click to expand...
Click to collapse
I know that in order for successfully deodex, all the file paths have to be correct. I, however, do not have them yet.
More info here for anyone interested: http://code.google.com/p/smali/wiki/DeodexInstructions
Good work, this should be an update.zip once we have confirmed it working successfully.....
stopxstart said:
Ok, I think I've figured it out.
The .odex file is basically the .dex file in an uncompressed format. To break it open you do the same thing you would do with a dex file. Plug it into baksmali and it should yield you a Classes folder. You do have to reassemble it though, which requires you to first deodex it... and it's kind of a pain in the ass. I've figured out the first portion of it, but deodexing the file is decently complicated for a n00b like me. I'll continue to work on it and will hopefully have a solution tomorrow.
Here's where I'm stuck if anyone wants to figure it out:
I know that in order for successfully deodex, all the file paths have to be correct. I, however, do not have them yet.
More info here for anyone interested: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I get the same error. I posted a issue about this on the project page.
EDIT: Figured it out. Add -c :com.htc.resources.jar
You will need to deodex it first thou.
Can we see screenshots of this notification bar
If you look at the IC3 rom screenshots, this should be the same.
Also, stopxstart, thanks for the hard work! Really appreciate it. Should the phone be connected this whole time? Thanks!
gritts said:
If you look at the ICQ rom screenshots, this should be the same.
Also, stopxstart, thanks for the hard work! Really appreciate it. Should the phone be connected this whole time? Thanks!
Click to expand...
Click to collapse
ICQ ROM do you mean IC3 ROM?
Yes, thanks, I corrected it.
gritts said:
If you look at the IC3 rom screenshots, this should be the same.
Also, stopxstart, thanks for the hard work! Really appreciate it. Should the phone be connected this whole time? Thanks!
Click to expand...
Click to collapse
It's easy just to keep it connected but it's not required. Just make sure you adb remount before pushing and pulling the files.
Going to try out a workaround for all of this, I'll report back sometime tonight.
Also, if this works it will allow me to write a sufficient update.script for a standalone zip.
For those following the progress of this, I am currently testing some standalone files to push that should make this whole process easier.
So far works on: Evil Eris 2.0 and Ic3Rom 2.0 (well, fixes it).
Testing others now.
I'm looking forward to your testing on Tainted Vanilla
hoban_eris said:
Hello, I appreciate the tutorial! I'm attempting to get this set up for my Tainted Vanilla rom and ran into a snag at the beginning. Our services.jar file contains no classes.dex file. All it contains is MANIFEST.MF. Any ideas about how I should proceed?
Click to expand...
Click to collapse
I second that.
ok so these are the things i can't get
the verizon wireless text is white
and the clear button is black with white text
how can i fix these
Re: [Tutorial] White Notification Bar
Did you follow the tut
-------------------------------------
Sent via the XDA Tapatalk App
gritts said:
Did you follow the tut
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
ok ive tried several times and failed every time could someone put up the final zip I could flash
iloveandroid said:
ok so these are the things i can't get
the verizon wireless text is white
and the clear button is black with white text
how can i fix these
Click to expand...
Click to collapse
Let me double check the XML files in the Framework-res.apk to make sure I put the right ones in. I literally have 60 folders filed with the same file from different testing so I could have easily posted the wrong one.
Also, there isn't a zip to flash because I haven't written the update script for it. If you would like to, please do.
stopxstart said:
Let me double check the XML files in the Framework-res.apk to make sure I put the right ones in. I literally have 60 folders filed with the same file from different testing so I could have easily posted the wrong one.
Also, there isn't a zip to flash because I haven't written the update script for it. If you would like to, please do.
Click to expand...
Click to collapse
I would make a flashable but i dont know how
Ok, I fixed the button problem.
You're using Ic3Rom right? Pretty sure the files I have will work with it straight up but let me test it.
Also, I added screenshots to first page.

Startup & Shutdown Animations from the Android Commercials -SHUTDOWN SOUND NOW WORKS!

Startup & Shutdown Animations from the Android Commercials -SHUTDOWN SOUND NOW WORKS!
--UPDATE MAR 29--
SOUND NOW RE-SYNCED.
Okay so I've finally spent the time to re-edit the sound on the Android Eats Apple startup animation numerous times to get it in sync with the video. I have also done some minor edits to the video. I'm using LeeDrOiD Version 2.0.0 (as 2.2.2 doesn't work with DSP Manager and I like lowering the treble on the so music/sounds/ringtones don't sound so harsh). I've updated the MegaUpload link with the new Andoroid Eats Apple Animation. I can't say whether the sound will be in sync with other verions/ROMS but it is in sync with LeeDrOiD 2.0.0. (I hope it's in sync with 2.2.2). Lastly make sure the option for fastboot is off or the whole animation and sounds will probably not load up fully.
--UPDATE FEB 18--
Great news!! I've solved the problem of how to make shutdown sounds work on the Desire HD!! I do believe this is a first as I've not found any info on Android phones so far except for the Samsung (Facinate, Captivate, ect). I've posted the Bad Android Shutdown Animation.zip at the end of the post. Make sure to follow the guide here to get the sounds to work on shutdown. The guide for the shutdown sound will be based on using LeeDrOiD HD ROMs which I'm using but I'm guessing it should be similar on other ROMs or even stock HTC ROMs with Root Access. So basically what you need to do is grab the .xml files located on your phone at "/system/customize/CID/". For me the two files are: "default.xml" and "LeeDrOiD.xml". For those not familiar with how to copy files to and from the system folders of your phone have a look below as I've explained how to use ADB for those basic commands. Okay so basically for me I've tested using LeeDrOiD HD 1.5.1 and also the version 2.0.0 (using his 2.0.3 Kernal). Using a text editor (notepad with wordwrap switched off is fine) just go to the bottom of the file and change the old lines which will be something like this:
<ShutdownConfiguration>
<ShutdownAnimation image_png="/system/customize/resource/downanimation.zip" image="" fps="15" />
</ShutdownConfiguration>
Click to expand...
Click to collapse
...change em to this:
<ShutdownConfiguration>
<ShutdownAnimation image_png="/system/customize/resource/downanimation.zip" audio="/data/local/shutdown.mp3" useAudio="1" image="" fps="24" />
</ShutdownConfiguration>
Click to expand...
Click to collapse
Ok now you can see that you're going to have to copy an animation zip file (in the same format as a startup animation) called "downanimation.zip" to "/system/customize/resource/" and also need to copy an MP3 file named "shutdown.mp3" to "/data/local/". Okay for those feelin lazy who are using LeeDrOiD HD 2.0.0 I've included the two .xml files so you don't even need to edit yours, you can just push em to you phone. I've posted the shutdown animation zip file below as I did have to re-edit the sound file to get it in sync for shutting down as it must use a different timing that when used as a startup sound... I did it on LeeDrOiD 1.5.1 so it may need a little adjustment for LeeDrOiD 2.0.0 or other ROMs. Sorry I don't have time now... I've gotta move interstate in a couple of days!! So anyway to adjust the sound sync you just edit the sound file in your favourite sound editing software and simply cut and paste sections of silence as needed. Audio editing software which shows a timline with increments down to less than 1 sec is ideal. Please look at the bottom of the post for the new zip files for the Shutdown Animation and the .xml files. --Have fun
---PREVIOUS POST---
Hi guys,
I hope this is allowed...
I've been workin on getting a couple of the Android Commercials into Startup & Shutdown animations. It's taken a long time, mostly with the audio, editing to get it in sync and creating new sound to completely replace the one for the "Bad Android" one... Unfortunately at this stage the I couldn't get any shutdown sound to work on the Desire HD. The "Andoird Eats Apple" was designed as a startup and the Bad Android was designed as a shutdown... So you can get the idea of the sound I've shown it as two startup animations.
Here's the youtube links to see how the animations look on my phone:
"Android Eats Apple"
http://www.youtube.com/watch?v=Wbd135qp-0M
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
"Bad Android"
http://www.youtube.com/watch?v=AI_DITbtRFk
Here are links to the animations. If MegaUpload ****s itself or the files get removed just PM me and I'll try repost a link:
"Android Eats Apple Animation" (Updated 29-Mar-2011)
http://www.megaupload.com/?d=2QFQNAQ5
"Bad Android Startup Animation"
http://www.megaupload.com/?d=HW7YHHIK
-Bordem Warning-
The info I've typed bellow is a rough guide how to use the files for your phone and how to create your own animations.
Okay so these are set to go for any 480x800 screen size. They are pretty easy to customise if your screen size is smaller or larger. The settings for the screen size are in the "desc.txt" file included. If you set your screen size in that file the bootanimation resizes it all on the fly. For the shutdown animation the changing the screen size in "desc.txt" doesn't seem to resize the images so instead use a simple program like Imagicon to do a batch resize of all the images. To be safe (for other phones) it's best to set no more than 24K colour.
Now on the ROM I'm using (LeeDrOiD HD) the startup "bootanimation.zip" and "android_audio.mp3" go in the "/data/local" folder on the phone. The shutdown "downanimation.zip" goes in the "/system/customize/resource" folder. Here are some simple tips using ADB and command prompt in windows. Make sure the USB cable is of course connected on charge only with USB Debugging on:
(always best to do this first)
"adb remount"
(an example of how to list the folder contents)
"adb ls /data/local"
(If you wanna backup the original then)
"adb pull /data/local/bootanimation.zip"
"adb pull /data/local/android_audio.mp3"
(backup shutdown animation)
"adb pull /system/customize/resource/downanimation.zip"
To copy the animations and sounds first move the above backed up originals to some other folder. Now copy and new "bootanimation.zip", "android_audio.mp3" or "downanimation.zip" to your folder on your PC where you have adb (usually "platform-tools). Now in command prompt do:
"adb remount"
"adb push bootanimation.zip /data/local"
"adb push downanimation.zip /system/customize/resource"
(for the startup sound)
"adb push android_audio.mp3 /data/local"
Lastly I've found the "desc.txt" doesn't seem to work to change or set the right frame rate when using the shutdown animation. Here's how to change it.
For me using LeeDrOiD HD custom ROM I have two files (pretty much the same) one called "default.xml" and the other "LeeDrOiD.xml" they are located in the "/system/customize/CID". You get the idea by now how to push & pull the files from your phone. Use a txt editor like notepad for both .xml files and you'll see down the bottom of the files a section for the shutdown animation that looks something like this:
<ShutdownAnimation image_png="/system/customize/resource/downanimation.zip" image="" fps="15" />
Click to expand...
Click to collapse
Now you just change the number next to the fps to whatever frame rate per second you want. For example if you are using my "Bad Android" shutdown animation then set it to 24.
Lastly just remember that I've included both zip animations containing the "bootanimation.zip" file, this can easily just be renamed to "downanimation.zip" and placed in the appropriate folder and it works as the shutdown animation. If you decide to rename another startup animation other that "Bad Android" you'll want to set the frame rate. You already know how to set it as I explained above but you'll need to find what to set the frame rate at.... Open desc.txt contained in the "bootanimation.zip" file and you'll see something like: 480 800 30p
the 30p means 30 frames per second. So in this example you'd now change the fps of your .xml files also to 30.
The possibilities are really limitless for shutdown and startup animations. Once you grab your video, it could really be from almost any source. Put it in the free program Super and set output to sequence of images and then either .png or .jpg. You can also crop images, resize and stretch all with this very easily. If you have wide animations like the one I've used you can select them all in windows explorer in Vista or Windows 7 and right click and just choose rotate right. You can now create your own folders within a "startupanimation.zip" or "downanimation.zip". Make sure when you zip it you use a program where you can choose "store mode" which is using no compression, if not the animation won't work. You can google the desc.txt settings if you need for more help. Lastly if your animation won't show anything, I've found often it's the damn "desc.txt". For some reason everything in it looks perfect but it somehow is causing the animation to not work. Copy a new desc.txt from a working bootanimation.zip and then re-edit with your settings.
Alright enough of this jibber-jabber... time to try out the animations and if you're up for it try make some of your own? Hey I'm sure there'd be a million Bender from Futurama clips that'd be wikked as a boot animation with sound.
Take care
P.S. If you wanna change your splash screen use any 480x800 .bmp file in 24K colour with Android Flasher http://forum.xda-developers.com/showthread.php?t=794638
nice i cant wait i like the 1st one its always nice to bash apple
yoshi thats some slick work mate, i can't wait
great work cant wait
Yoshi_523 said:
P.S. If you wanna change your splash screen use any 480x800 .bmp file in 24K colour with Android Flasher http://forum.xda-developers.com/showthread.php?t=794638
Click to expand...
Click to collapse
In this topic there is a topic to Desire splashes, do they also work for Desire HD?
Donny1987 said:
In this topic there is a topic to Desire splashes, do they also work for Desire HD?
Click to expand...
Click to collapse
you cant use that tool..... download the radio flash tool from the radio thread and use that to flash splash1.img
how bout for 2.3.2 androind user? i found out those folder path are not identical with the tutorial
Originally posted by sub7evenhow bout for 2.3.2 androind user? i found out those folder path are not identical with the tutorial
Click to expand...
Click to collapse
The startup & shutdown animations and sounds shouldn't be a problem to play with. At least in my experience when I've put ones on my phone that aren't right the thing just doesn't play but the phone still works okay. That having said it's always safest to have a ROM backup done first which is very easy once you have Eng S-Off and Clockwork Recovery Mod installed. I'd be a bit more wary about playing with the splash screen as they seem to involve the system partition area. Just use an app that will is recommended for your specific model of phone. And yes the link I gave for Android Flash is in a Desire phone thread but it works well for flashing the spash screen on a Desire HD phone.
Ok many phones and Android versions are going to have different locations for the startup and shutdown animations and sounds. Try google it and you may get some idea where to look. I'd then look around on your phone using "adb ls" as I talked about above or even easier is if you have a .zip file of say a custom ROM you are using have a look at in on your computer. It will have exactly the same folder layout in the .zip file as when the ROM is loaded on your phone. Look for the bootanimation.zip ect. Look in "system/media/ui" if the above folders mentions aren't what yours is using. If you look hard enough you should be able the files.
Originally Posted by Donny1987
In this topic there is a topic to Desire splashes, do they also work for Desire HD?
Originally posted by AndroHero
you cant use that tool..... download the radio flash tool from the radio thread and use that to flash splash1.img
Click to expand...
Click to collapse
Hey I used Android Flasher 1.6.1 which is exactly the one listed in the link I gave from the DESIRE phone thread. YES it works 100% fine for flashing on a DESIRE HD. YES this was reccomended elsewhere in the splash screens thread as working for the DESIRE HD also. All you have to do it just check the bmp image is 480 pixels wide 800 pixels high and 24K colour then use the program. Follow the thread on Android Flasher for details on ALL the procedures you need done before using the program (basically make sure your phone is rooted with ENG S-OFF and of course Radio S-Off is always a good idea).
i found that, it was on system/media/ it works on the animation but not sound android_sound.mp3. still googling...
I'm trying to create my own custom boot animation but I have no idea why it's not working. I zip the file without compression but when I reboot my phone the screen just stays black
Do you know where to find a proper Guide?
Thanks
Donny1987 maybe this will help...
if your animation won't show anything, I've found often it's the damn "desc.txt". For some reason everything in it looks perfect but it somehow is causing the animation to not work. Copy a new desc.txt from a working bootanimation.zip and then re-edit with your settings.
Click to expand...
Click to collapse
Basically I faced what you're facing a lot. The black screen. Firstly if you aren't familiar with the settings please google desc.txt settings. You'll get all that info pretty easy. For some unknown reason I had so copy new desc.txt files a few times then with a working original I'd edit with the right info.
If you have a non working animation I'd try working from the ground up... get a known working desc.txt from your phone or from a .zip you downloaded from a bootanimation that you've got to work on your phone. Next just put say 10 of your images that are the correct size and in the exact same folder layout as is the previous working bootanimation and as it says in the desc.txt. Now in making just a simple 10 image tester if it's playing at 30frames per second or higher then you could miss it playing if you have both the setting for loop off and the last image of your animation all black.
Once you have a working 10 image tester of your animation then go from there in stages. Try all your images maybe next then reboot, if all good then next boot maybe change the frame rate speed in the desc.txt and reboot. Ect ect. If you get stuck you can PM me. There's always the option I could take a look at the zip too.
Don't worry after my first tries after spending ages fiddling with images and getting a modified animation, it just didn't work at all. I deleted everything and gave up only to come back weeks later and crack it and realise how close I was last time and get animations I was much happier with.
Yoshi_523 said:
Donny1987 maybe this will help...
Basically I faced what you're facing a lot. The black screen. Firstly if you aren't familiar with the settings please google desc.txt settings. You'll get all that info pretty easy. For some unknown reason I had so copy new desc.txt files a few times then with a working original I'd edit with the right info.
If you have a non working animation I'd try working from the ground up... get a known working desc.txt from your phone or from a .zip you downloaded from a bootanimation that you've got to work on your phone. Next just put say 10 of your images that are the correct size and in the exact same folder layout as is the previous working bootanimation and as it says in the desc.txt. Now in making just a simple 10 image tester if it's playing at 30frames per second or higher then you could miss it playing if you have both the setting for loop off and the last image of your animation all black.
Once you have a working 10 image tester of your animation then go from there in stages. Try all your images maybe next then reboot, if all good then next boot maybe change the frame rate speed in the desc.txt and reboot. Ect ect. If you get stuck you can PM me. There's always the option I could take a look at the zip too.
Don't worry after my first tries after spending ages fiddling with images and getting a modified animation, it just didn't work at all. I deleted everything and gave up only to come back weeks later and crack it and realise how close I was last time and get animations I was much happier with.
Click to expand...
Click to collapse
Thanks, that actually worked
Let's see what I can make
wow sounds..............
...interesting.
lol
got all working but wierdly enough the sounds seems to be out of sync for a second
edit: make that 2 seconds
this is excellent!!!
one problem how do i push sounds to downanimation?
ive got the apple one on the start up which is perfect but no sound on reboot.
thanks
edit my bad, just re read the first post...
hopefully that will soon work
rrrr ... i love your work ... big big thanks!
just a question, is it ok with you, if i change the Text to "Android Revolution HD" and put it in my Theme?
for sure, i´ll post you BIG BIG Credits on my Thread
hmm ... have to agree ... the sound is 2 seconds to late!
But just on "normal" reboot, on "Fast reboot" its working fine!
any ideas?
wow they both look great
will give it a try later and report if i also have some issues with the sound
hi guys,
the sound and the video are not synchronic, any ideas?

[TUTORIAL] How to easily THEMES .apk (for DEODEXED ROM only)

After few days surfing, asking & testing. I decide to make a easily tutorial for theming in Windows, I think as long you know to use computer, they is nothing much difficult to theming/modifying the .apk yourself.
My guide only cover:
De-compile & compile of .apk
changing the .png file inside .apk
Modifying tricky .9.png file.
Modifying .xml file.
Zip Align the .apk
What you need:
Your phone must be ROOT and DEODEXED.
CWM pre-install recommended, you can simply get this function by installing superatmos / Lucifr kernel.
7-zip - for replacing file inside .apk
JRE (Java Runtime Environment) - required to run the APKtool
Android-SDK - must install before APKtool & Zipalign work.
APKTool Download the apktool & also apktool-install-windows.
Before Start:
Always remember make a backup for any .apk file you plan to change or amend.
Recommended make a flash-able version of origin not amend .apk in-case something went wrong, you can always flash back the original file via CWM. Example if you did something wrong in your systemUI.apk (for statusbar) it will probably make your phone nearly impossible access any part due to unstop FC.
I also like to take this opportunity to THANKS the following user help, without them, all this is not possible.
ronhoover88
superatmos
tarunagg
Vertumus
De-compile & Compile of .apk
Why this step is required:
You need to de-compile the .apk before you can correctly modified the tricky .9.png and also to see a readable .xml for amending.
Step:
Install JRE (Java Runtime Environment) & Android-SDK.
Download the apktool & also apktool-install-windows, extract the file and put inside your Windows Folder.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open command prompt (Start - Run - CMD)
Before de-compile the .apk, make sure you copy out your current phone framework-res.apk & twframework-res.apk, lidroid-res.apk only required if you using lidroid-res.apk in your framework.
Code:
[B]apktool if [location of .apk][/B]
Example:
apktool if D:\APK\framework-res.apk
apktool if D:\APK\twframework-res.apk
apktool if D:\APK\lidroid-res.apk
Now, De-compile the .apk
Code:
[B]apktool d [filename.apk] [directory][/B]
Example: apktool d D:\framework-res.apk D:\De-compile
If sucess, you will seen the following line in your CMD.
The De-compile folder will be generate as seen below.
Now you can amend whatever you like to amend, after done, proceed to following step.
Compile back:
Code:
[B]apktool b [directory][/B]
Example: apktool b D:\De-compile
Extra build folder will appear inside your De-compile folder, all file inside here already compile and can use later in your Android phone.
Changing/Replacing the .png file inside .apk
Amending normal .png no need to de-compile, just extract the file and modified using any photoshop tools or simply replace the .png
Just right click any .apk file and select 7-zip extract to, as seen below:
Now go to the extracted folder and amend / replace any .png file you like to replace. (Remember .9.png file cannot just simply replace, check following post for instruction.)
Modifying tricky .9.png file.
The .9.png cannot just simply amend using any photoshop and put back, because by doing so, either the amend .9.png won't appear or just simply give you FC in your phone when running it.
What to do:
De-compile the .apk.
Below showing the different between before and after de-compile of .9.png, as you can seen on right image,they is extra 4 black dot + 1 black bar and surrouding with transparent bar, all this area must be keep and not amend during photoshop. The de-compile image will auto increase 1 x pixel + 1 y Pixel.
Just amend without touching those area, save it and then put back to correct folder and compile back.
Modifying .xml file
After you have de-compile the .apk, now all inside .xml is readable where you can make some changes on the color selection, clock position and etc. by just simply open with notepad and modified.
Before de-compile, the .xml look like below which is not readable and understand by human.
After de-compile, now the .xml is readable and understand by human.
Now you can amend what ever you like, Google/Search XDA forum for which .XML to amend.
Use this color code checker site for getting your desire color code.
After done, don't forget, you must compile back the .xml before it is understandable by Android OS.
Screenshot below showing modifying the sub text .xml to ICS blue color.
Change all
Code:
from android:color="#ffffffff to [B]android:color="#ff3f9bbf[/B]
at zzz_tw_secondary_text_sub.xml
Zipalign the .apk
Why this step is required:
You need to align the .apk to let the Android phone run the modified .apk perform much smoother and better, if you have more not align .apk file in your phone, it will eventually drag down your entire phone performance.
This step is not necessary but recommended.
Step:
Open command prompt at your Android-SDK Tools folder
Type following command and run
Code:
[B]zipalign -fv 4 [filename.apk] [filename-new.apk][/B]
Example: zipalign -fv 4 framework-res.apk framework-res-new.apk
A new Zipalign .apk will be generate as seen below, highlight in blue.
Zipalign in batch, save following code in .bat and put in your folder that contains .apk file. It will batch running zipalign all .apk inside, this guide I found from user Grumpy Old Man post at RootWiki. Thanks for this easier method.
Code:
@echo off
REM Batch file to recursively zip align *.apk files in a directory
REM and its sub-directories. This is significantly easier and faster
REM than manually zip aligning them.
@echo Zip aligning now...
for /R %%X in (*.apk) do zipalign 4 "%%X" "%%~dpX%%~nX.new"
@echo Replacing non-aligned files with zip aligned files...
for /R %%X in (*.new) do move /Y "%%X" "%%~dpX%%~nX.apk"
@echo Zip aligning done, press any key to exit
pause
Final Step
OK, done everything? now you need to put back to your phone with 2 method
Flash via CWM - highly recommended
Root Explorer - not recommended as it may not properly change for Statusbar theming.
Using CWM
Make a flash-able .zip to flash at CWM
Not sure how to do, let use a easier way, take any flash-able .zip, use 7-zip and choose open archive as seen below:
Now just drag and drop all your modified .apk inside the .zip file, choose YES when ask "Confirm File Copy" as seen below:
Copy the modified .zip to your root SDCARD and restart to CWM and install. Done!
Using Root Explorer
Temporary copy your modified .apk to your /system/csc
Right click choose permission and set as below:
Move your current .apk to correct directory /system/app
Done! This method is not recommended for framework-res.apk & systemUI.apk, better way still flashing via CWM.
ENJOY HAPPY THEMES!
My Achievement
Below is what you can get after themes. Enjoy!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FROM BELOW, NOT RELATED TO S II - i9100G
CENTER CLOCK for SONY XPERIA Z phone.
De-compile the SystemUI.apk, then change some code at status_bar.xml in /res/layout
Step 1 - Find
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock"
android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip"
android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Step 2 - Replace Step 1 code with
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center_horizontal|center"
android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
Step 3 - Then search for
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
and now cut Step 2 code and paste in bottom Step 3 code.
Step 4 - Lastly find
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
and past following code beside it.
Code:
android:background="@drawable/status_bar_background"
Save the edited status_bar.xml
Sony Xperia Z Center Clock Screenshot.
Very nice tutorial!i'm too lazy to type/make a tutorial..lol its good for sharing the idea..:thumbup:
Sent from my GT-I9100G using Tapatalk 2
fauzi_91 said:
Very nice tutorial!i'm too lazy to type/make a tutorial..lol its good for sharing the idea..:thumbup:
Sent from my GT-I9100G using Tapatalk 2
Click to expand...
Click to collapse
Thanks, I am still learning.
u forget to mention the deleting of edited xmls file and resources.arsc
samyam2002000 said:
u forget to mention the deleting of edited xmls file and resources.arsc
Click to expand...
Click to collapse
My final step is drag back and save using 7-zip, the file will automatic replace, no need manual delete.
By the way, thanks for highlighting removing of resources.arsc, add-in this step at final step now.
i dont know if i am doing it right what what exactly does a build folder contain a folder or .apk file
samyam2002000 said:
i dont know if i am doing it right what what exactly does a build folder contain a folder or .apk file
Click to expand...
Click to collapse
The build folder contain all the files you had de-compile just before but in compile format back.
Andrewtst said:
The build folder contain all the files you had de-compile just before but in compile format back.
Click to expand...
Click to collapse
so i just replace them or what on the original .apk
definnately apkmanager is easier
samyam2002000 said:
so i just replace them or what on the original .apk
definnately apkmanager is easier
Click to expand...
Click to collapse
Correct. Just replace to your origin .apk and remember always do a backup for any .apk you want to amend.
thanks for ur tutorial bro..
Mybe u can add a lil bit intro/tutor about uot kithen too if u want..can introduce to people out there who never used it b4..they also can get so many icons in there..
Sent from my GT-I9100G using Tapatalk 2
fauzi_91 said:
Mybe u can add a lil bit intro/tutor about uot kithen too if u want..can introduce to people out there who never used it b4..they also can get so many icons in there..
Sent from my GT-I9100G using Tapatalk 2
Click to expand...
Click to collapse
Oh, I never try before that, wait I try first, before I can add-in.
Andrewtst said:
Oh, I never try before that, wait I try first, before I can add-in.
Click to expand...
Click to collapse
Uot kitchen is the easier way to make a theme as long as we know how to use it..there are a lot of option there..n we juz need to upload the systemui.apk n framework-res.apk..but for contact,phone etc will remain stock..that one we can use ur tutor to modify..
Sent from my GT-I9100G using Tapatalk 2

Categories

Resources