[PROJECT] REAL animated Bootanimations in AOSP - G1 Android Development

I want to start a project for a REAL animated bootscreen, maybe as GIF or multiple JPGs..
From what I know, the bootanimation is triggered by the surfaceflinger, and it calls the bootanimation binary.
The source is here:
http://android.git.kernel.org/?p=pl...9269bc9fa9452ad32d733830713565e157cc;hb=donut
Lets mod it

In the Droid dump the start animation is a serie ofpng files maybe we can use the same things for the desktop ?

Quick Question: Does htc include some special files that allows android to support GIF's ?

imfloflo said:
In the Droid dump the start animation is a serie ofpng files maybe we can use the same things for the desktop ?
Click to expand...
Click to collapse
Incompatible, throws out errors, idk why.
Daneshm90 said:
Quick Question: Does htc include some special files that allows android to support GIF's ?
Click to expand...
Click to collapse
Didn't see any.. but running the bootaniamtion bin does show the AOSP animation.

K i dont have a build environment setup so im just gonna suggest
What happens if u replace
Code:
initTexture(&mAndroid[0], mAssets, "images/android-logo-mask.png");
with
Code:
initTexture(&mAndroid[0], mAssets, "images/boot.gif");
???

djengizz mentioned to me, he saw in the source that the system makes calls to android-logo-mask.png maybe we should change that .png to .gif

Daneshm90 said:
K i dont have a build environment setup so im just gonna suggest
What happens if u replace
Code:
initTexture(&mAndroid[0], mAssets, "images/android-logo-mask.png");
with
Code:
initTexture(&mAndroid[0], mAssets, "images/boot.gif");
???
Click to expand...
Click to collapse
man u beat me 2 it

Maybe it's possible to create an array of images for the foreground (android-logo-mask0.png --> android-logo-maskxxx.png) and iterate over them in the do - while loop that shifts the background image.

Yes, great idea, maybe a very wide,wide image of pngs? Not sure if it will work though..
Any dev out there with java knowledge?

Sorry to say that but it isn't Java...
C++... I'm cloning the git-repro and then look it's so easy to just change the name to .gif...
I don't think it's enough, because the png and gif-format are both different and png is ONE frame, a gif has many frames!

born2die said:
Sorry to say that but it isn't Java...
C++... I'm cloning the git-repro and then look it's so easy to just change the name to .gif...
I don't think it's enough, because the png and gif-format are both different and png is ONE frame, a gif has many frames!
Click to expand...
Click to collapse
Ah it never is as easy as it seems, but doesnt hurt to give it a shot
Yea loading multiple png's would definitely be a good alternative, just add some delay between them.

maxisma said:
Yes, great idea, maybe a very wide,wide image of pngs? Not sure if it will work though..
Any dev out there with java knowledge?
Click to expand...
Click to collapse
Judging from the source the background shift happens at 12 fps and it renders a texture from the png image (so i don't think an animated gif would work).
That means that something like the Droid animations would at least last around 4 seconds (i thought there's about 50 images in it) although you could speed up / slow down things of course.

we gotta figure out the way that droid calls the bootanimation.zip in /media. they're clearly not even using /assets because the android-mask.png is all still in there.

djengizz said:
That means that something like the Droid animations would at least last around 4 seconds (i thought there's about 50 images in it)
Click to expand...
Click to collapse
there's more like 100

jroid said:
we gotta figure out the way that droid calls the bootanimation.zip in /media. they're clearly not even using /assets because the android-mask.png is all still in there.
Click to expand...
Click to collapse
Same with Htc. They even have their assets folder n stuff, but never use it. If we cud figure out either htc or droid's calling methods, we're set

Which bootanimation.zip are you talking about?

it looks like the source is written to recognize png's. a simple change to .gif wouldn't work unless we were to re-write the source to recognize .gif.. so then our focus should be to get an animation using png's. hence, what Motorola did w/ droid

jroid said:
we gotta figure out the way that droid calls the bootanimation.zip in /media. they're clearly not even using /assets because the android-mask.png is all still in there.
Click to expand...
Click to collapse
It doesn't really matter, we could move them to framework-res/assets for the AOSP builds.

born2die said:
Which bootanimation.zip are you talking about?
Click to expand...
Click to collapse
in droid's dump, the /system/media/ has bootanimation.zip in there which contains the droid boot png's

At the moment i'm a bit confused, so wich bootanimation are you really talking about?
EDIT: Thx, don't know so much about DROID...

Related

Animated gifs, wallpapers and so on

I know currently that animated pics dont work on the android os, or does it? They have to to an extent for the face that the second boot pic is animated with the lil android dude or if u got 1.5 the android text. my old razr v2 didnt allow this either until someone was able to make a theme with a animated pic embedded as the bg. has anyone been looking into this.
Idk but this would be really nice to have though...
Animated Radar images on i.wund.com (weatherunderground.com's iPhone site) don't seem to work either.
This is a big deal for me since I am a frustrated wanna be meteorologist.
teknomanelvis said:
I know currently that animated pics dont work on the android os, or does it? They have to to an extent for the face that the second boot pic is animated with the lil android dude or if u got 1.5 the android text. my old razr v2 didnt allow this either until someone was able to make a theme with a animated pic embedded as the bg. has anyone been looking into this.
Click to expand...
Click to collapse
There are animated buttons in the calculator application. I'd would check that code to see what's making that work and see if there is anyway to make it work anywhere else... if there is a will, there will be a way.
d474rpr said:
if there is a will, there will be a way.
Click to expand...
Click to collapse
Nice.
There is also an animated boot screen, guess it is a gif but I don't know...
um I know that theDUDE and im sure others have changed the ANDROID on cupcake... v1.5. One flashes across a different text and it has a fire effect through the letters... im sure their are some constraints at the moment...
but just thought id throw my 2 cents in.. maybe they had more luck
doubleokneegro said:
um I know that theDUDE and im sure others have changed the ANDROID on cupcake... v1.5. One flashes across a different text and it has a fire effect through the letters... im sure their are some constraints at the moment...
but just thought id throw my 2 cents in.. maybe they had more luck
Click to expand...
Click to collapse
Dont quote me, but I think that those are just 2 .png files interlaced with each other. Any themer would know better though.
from what i can tell most of the themers that have changed it only changed the color of the background behind the android text. it is a simple .png that has a "shiny" section and it loops the entire image to the right. i am not sure what causes it to move, but i thought i saw someone used fireworks to create a new image. i am sure that if you get the source code from google you can have a look to see what is actually happening
I made the fire for the prodigal port and i changed the whole image for the boot i did for the Dude's Full 1.1a default i also made it faster. There are i cons in parts of the theme that can be made bigger and not affect the theme.
i think this is a deja vu post again. there must be an older one.
the basic answer is that the current widget can only display static images unless you extend it yourself.

Boot Screen

I am attempting to build an Ubuntu like boot screen for my phone with the default Ubuntu logon sound.
However in my failed attempts to do this, I have ruined/misplaced my original Sprint.Gif and boot.mp3.
Could one of you please email me a copy of your Sprint.gif and Boot.mp3. You can adb shell in to /system/media/bootscreen and cp them to you sd card.
You can email them to me kcarpenter five two eight AT gmail.com
Thanks a million in advance!
You could also grab the boot screens from the fresh pre kitchen. he has 5 other s screen as well as the original Sprint in there
I am on a linux machine right now, wouldn't run.
Kcarpenter said:
I am on a linux machine right now, wouldn't run.
Click to expand...
Click to collapse
Does not need to, the files are all in folders, the proggie is just a simple .exe to access them. Just unzip and you will have all you need.
Doesnt have to, the files are included. Just get them from the folder.
Kcarpenter said:
I am attempting to build an Ubuntu like boot screen for my phone with the default Ubuntu logon sound.
However in my failed attempts to do this, I have ruined/misplaced my original Sprint.Gif and boot.mp3.
Could one of you please email me a copy of your Sprint.gif and Boot.mp3. You can adb shell in to /system/media/bootscreen and cp them to you sd card.
You can email them to me kcarpenter five two eight AT gmail.com
Thanks a million in advance!
Click to expand...
Click to collapse
Email Sent.
Ahhhhh, thank you gents for the enlightenment. On with my screw ups. Any of you know if these gifs have certain requirements? Like can only have x ammount of colors? When I put my GIFs in, its like a broken video card - all staicy and pixelated can't even tell what the image is.
There may be code that specifies the height and width..
Did you match your size with the file you replaced?
N0J said:
There may be code that specifies the height and width..
Did you match your size with the file you replaced?
Click to expand...
Click to collapse
Yes sir, 320 x 480 on the sprint logo. The XML file has some numbers but I have no clue what they are refering to.
ScreenX = 100
ScreenY = 130
Noj you seem to be the art guy, any ideas?
Kcarpenter said:
Yes sir, 320 x 480 on the sprint logo. The XML file has some numbers but I have no clue what they are refering to.
ScreenX = 100
ScreenY = 130
Noj you seem to be the art guy, any ideas?
Click to expand...
Click to collapse
I may be incorrect about this but if you compare those numbers to actual screen size that seems very close to the size of the animation.
@ WTPhoto, the HTC and HERO images are 300 x 120 the Sprint image is 320 x 480 - I replaced the Sprint.gif with this one.
If someone has any clue what I am doing wrong here let me know.
I have another thread going about that specific problem in the Apps/Themes sub forum.
I am making a new boot screen for my self that mimics an Ubuntu one. Problem I have, is durring the animation, as far as I can tell frame 2...crap hits the fan. The image distorts in a funny pixelated way. Not sure how to describe it other than an explosion of random colored pixels. Well not so random colored, they are the colors that are in the image.
So I guess my question is, are there certain ways the GIF needs to be formated? Color restrictions? Frame restriction? In all the image is 32 kb so its not huge. I have it formated is a Animated Gif WebSnap 128 - There is no transparency.
Click to expand...
Click to collapse
EDIT:
Ok so uploading the image to the thread didn't keep the animation - promise its not just a black picture lol
Kcarpenter said:
@ WTPhoto, the HTC and HERO images are 300 x 120 the Sprint image is 320 x 480 - I replaced the Sprint.gif with this one.
If someone has any clue what I am doing wrong here let me know.
I have another thread going about that specific problem in the Apps/Themes sub forum.
EDIT:
Ok so uploading the image to the thread didn't keep the animation - promise its not just a black picture lol
Click to expand...
Click to collapse
lol like I said I I could be wrong. I dont know ANYTHING about GIF's never had any desire to mess with them until now. I am however pretty happy with the horizontal nexus one bootscreen just added the "fresh" sound to it.
be intresting to see if you can get this going.
This is what the boot actually looks like...screen-o-garbage
Just another thing that stops me from putting my ROM out there, I don't want to have to fix this crap lol.
Kcarpenter said:
Yes sir, 320 x 480 on the sprint logo. The XML file has some numbers but I have no clue what they are refering to.
ScreenX = 100
ScreenY = 130
Noj you seem to be the art guy, any ideas?
Click to expand...
Click to collapse
Kcarpenter said:
This is what the boot actually looks like...screen-o-garbage
Just another thing that stops me from putting my ROM out there, I don't want to have to fix this crap lol.
Click to expand...
Click to collapse
hmmm, I needed to look into bootscreens anyway, lol
got a request for one
1st guess is the x and y are either screen position coordinates or a timer for each image.
Can you setup a dl for your file, pm it to me?
I can make a animated gif from scratch if I need to
N0J said:
hmmm, I needed to look into bootscreens anyway, lol
got a request for one
1st guess is the x and y are either screen position coordinates or a timer for each image.
Can you setup a dl for your file, pm it to me?
I can make a animated gif from scratch if I need to
Click to expand...
Click to collapse
Yeah, Ill PM . Right now we are snowed in at my In-laws house, it will be a day or two before we dig out.
Here is the gif if you want to take a look at it. I had to zip it, if you upload a gif the site turns it to a jpeg.
Forgot to post the zip.

[Q] [IDEA] Porting HDPI themes to MDPI

Just recently been into themes and knew how they work.
If I use some kind of batch image resizer to resize hdpi png's to mdpi, and put those resized in drawable-mdpi it would work.
Am I correct? I see no reason why it can't be as easy as that.
I resize them with GIMP. Don't know what you use but in theory have to work
well, i don't know any coding language.
Maybe someone could make a script to resize images??
it would be a pain in the a** to resize them one by one
There are many batch resize windows apps that will let you convert a complete folder full more at once..
just google it
Sent on the run from my Magic 32A
It will not work on many .9.PNG files unless you resize them from source. Sorry but I've tried it with my theme. .9.png files are not just normal png files. They are made to stretch and readjust depending on the orientation of your device (landscape versus portrait) and may have what is called 'guides' coded within the images to tell the OS how to display that graphic. If you were to edit that file in any way those guides are over written and it messes up your whole theme. So if you were to use a batch resizer you would probably experience a disgusting looking interface coupled with acore crashes. Unless of course you used the files from source and just created the app from the source code. But who knows you might get lucky and whatever app that you are trying to theme may not use those pesky .9.png files.
Binary100100 said:
It will not work on many .9.PNG files unless you resize them from source. Sorry but I've tried it with my theme. .9.png files are not just normal png files. They are made to stretch and readjust depending on the orientation of your device (landscape versus portrait) and may have what is called 'guides' coded within the images to tell the OS how to display that graphic. If you were to edit that file in any way those guides are over written and it messes up your whole theme. So if you were to use a batch resizer you would probably experience a disgusting looking interface coupled with acore crashes. Unless of course you used the files from source and just created the app from the source code. But who knows you might get lucky and whatever app that you are trying to theme may not use those pesky .9.png files.
Click to expand...
Click to collapse
Thank you for this Binary100100..
In a regular theme, about how many pngs are .9?
and what do you mean "created from source"?
MicroMina said:
Thank you for this Binary100100..
In a regular theme, about how many pngs are .9?
and what do you mean "created from source"?
Click to expand...
Click to collapse
.9.png with guides? I have no clue. For an entire rom... I would say over a hundred easily. There are about a dozen of them just in the Dialer app itself. If you modify any one of them the whole thing get's messed up. It's very delicate. What do I mean create it from source? Download the source code from HTC website on a Linux machine and create the ENTIRE rom from scratch. It's not that hard actually once it's all set up. Before you do the "make" command you would do your xml edits, resizing, color edits, etc. You can tell what a .9.png file is because it has a line on the right of the image and a line on the bottom beneath it. It will have a black pixel at the top and one on the left. So you edit those files the way that you want it and then create the app or the entire rom. If you chose to create the entire rom then remove the parts from the rom that you don't want in your theme and then make an update-script file for your flashable theme. Nobody said that making a theme is fun or easy and in many cases the developers of the theme (like myself) do it just because they did it for their own device and chose to share their work. On average if you want to create an entire theme it will take you at least 30+ hours of work if you are already set up and knowledgable with Linux and image editing. That's how long it took me anyway.
Thank you for this very informative post.
I guess its not that easy after all. Maybe one day I could try it.
Thanks again.
MicroMina said:
Thank you for this very informative post.
I guess its not that easy after all. Maybe one day I could try it.
Thanks again.
Click to expand...
Click to collapse
Oh it's plenty easy, it's just very time consuming to make a theme from scratch and since you can't take a 3kb file measuring 20 x 20 and turn it into 36 x 36 and turn it into a 5.4 kb file without losing resolution (thus defeating the purpose of being on a AMOLED HD display) even if you were to suceed it probably still won't look very good. Think of it like this. Take a standard 800 x 600 video for your non-high definition television. Sure it looks alright but what about if you displayed it on a 1080p television. Is the picture going to look any better? Not really because it's the quality of the video and not the television itself. Now, if you could enhance the video... it would make a huge improvement. But by simply resizing the images wouldn't really do anything for a HD screen (my theory anyway).
But if you build everything from the source code (that is such as Cyanogen's github) and edit all the images from scratch then you shouldn't have a problem. But it is VERY time consuming like I mentioned before. I loathe the idea of upgrading my phone now because that means that my current theme along with all of the work that I've done with it... will be obsolete until I can do it all over again from source. Ugh.

[BOOT ANIMATION] finished my boot animation but cant get it to work

i made a boot animation to match the liberty rom. it is the raising of the flag on mnt serabachi on iwo jima. i made the folder structure and the appropriate desc.txt but it wont play on my dx. Can anyone help me get this to work?
sound DO NOT WORK on liberty Rom (dont ask me why cuz i really dont know), i was checking you animation and i recommend to use at least minimum 480x320 image size and max 480x854 , as you may know you can set the animation size on the desc.txt so no need to go high and then going down on the desc.txt , that way you'll have a not heavy and lighter zip file at the end cuz 29MB for a bootanimation is kinda big using only 220 frames.....
P.S. that's one of the reason i use .jpg format instead of .png
thank you for the reply. is there any way to batch resize the pictures? i really dont want to do 220 pics individually. I CAN however, batch rename the pictures to the .jpg extension. I will do that and research how to batch resize.
mattmartin77 said:
thank you for the reply. is there any way to batch resize the pictures? i really dont want to do 220 pics individually. I CAN however, batch rename the pictures to the .jpg extension. I will do that and research how to batch resize.
Click to expand...
Click to collapse
mmm not really the programs i use just do batch rename and format change but not resize :-( ...... i have never have the need on doing it cuz use a program to create my clips and safe those clips with the right size and then create the jpg's out of it
well i found that both gimp and photoshop can batch resize easily so i am going to try that
mattmartin77 said:
well i found that both gimp and photoshop can batch resize easily so i am going to try that
Click to expand...
Click to collapse
mmmm interesting i didnt know gimp does it LoL...thats good to know... thanks for sharing info
draken78 said:
mmmm interesting i didnt know gimp does it LoL...thats good to know... thanks for sharing info
Click to expand...
Click to collapse
well you need a plugin, but its free and so far working great! not only is it resizing all my images, but it is also changing em to .jpg at the same time.
i just finished resizing, im going to try it now.
ok i tested the boot animation again with the resized pictures in a jpg format. the size is now 480x360 because i kept the original ratio, and i made the desc.txt 480x360 at 15fps. i converted everything to .jpg and i removed the audio. i used the liberty toolbox to flash it then i confirmed it was in the right spot using root explorer. i rebooted and all that appeared was a blank screen... any suggestions?
i really would like an answer, bump
Make sure when putting all the files/images/desc file into the zip you set the compression method to STORE and not NORMAL. When my bootanims were just a black screen this is what fixed it.
Explodee said:
Make sure when putting all the files/images/desc file into the zip you set the compression method to STORE and not NORMAL. When my bootanims were just a black screen this is what fixed it.
Click to expand...
Click to collapse
thank you for your help, but how to I change my compression method?
mattmartin77 said:
thank you for your help, but how to I change my compression method?
Click to expand...
Click to collapse
if you are using WINRAR do the follow :
1- select the folders and file to compress
2- right click on you mouse/touch pad (in case you are using a laptop like me LoL)
3- select " add to archive"
4- there you can change you compression method from normal to store
5- add a name to the file and select ZIP
6- click OK
7- you're done.
if you are using 7zip is pretty much the same steps from winrar...
hope that helps
thank you so much it works now! im going to put a few finishing touches on it and post it up!
mattmartin77 said:
thank you so much it works now! im going to put a few finishing touches on it and post it up!
Click to expand...
Click to collapse
Super ..... hope to see your animation soon
a few things for future reference though,
1. what is a good gif creator? i have tried at least 10 websites and at least 6 programs and none do what i want efficiently. i want to open all 220 frames at once and make an animation rather than opening each individually like i had to.
2. what is a good video to jpg creator? i had to go frame by frame and take snapshots for my entire animation last time and i took like 2 hours:/
mattmartin77 said:
a few things for future reference though,
1. what is a good gif creator? i have tried at least 10 websites and at least 6 programs and none do what i want efficiently. i want to open all 220 frames at once and make an animation rather than opening each individually like i had to.
2. what is a good video to jpg creator? i had to go frame by frame and take snapshots for my entire animation last time and i took like 2 hours:/
Click to expand...
Click to collapse
1 - Animated GIF Producer and Ulead GIF Animator so far are the best out there
2 - Video to JPG converter is my favorite and the best for bootanimations.
thank you, thread can be closed.

[Q] A Path to Take

Hey Guys,
I wanna learn modding and developing Android. I'm new to XDA and don't know which path to take. Should I start by modding some .apks or should I use Android SDK to learn to develop apps. BTW, I use Linux (Xubuntu 1.04) and I'm familiar with the Command Line. I just want somebody to point me in the right direction.
Thank you...
JasonKZLY said:
I'm new to XDA and don't know which path to take.
Click to expand...
Click to collapse
Hi.
Take which ever comes naturally, but you should have some idea before signing up as modding an apk or two is a bit different to developing a full app I would say. I would start by reading reading and reading some more.
Hmm...
XperienceD said:
Hi.
Take which ever comes naturally, but you should have some idea before signing up as modding an apk or two is a bit different to developing a full app I would say. I would start by reading reading and reading some more.
Click to expand...
Click to collapse
I found this thread by Cyanogen --- http://forum.xda-developers.com/showthread.php?t=667298. I decided to take his advice but I have another question, a bit stupid one perhaps, I was trying to edit my Android's Phone.apk. I was changing the colour of the numbers in the dialpad to blue, I used Gimp (Yes, I changed the mode to RGB) and edited the .png files in both drawable-hdpi-finger and drawable-mdpi-finger. I signed and zip-aligned the .apk, after putting it in my phone's system/app, changing permissions and rebooting. The Numbers in the dial-pad was still white in colour, I had also edited the unknow-caller png and that worked but the dialpad thingy didn't work. Any ideas???
JasonKZLY said:
I found this thread by Cyanogen
Click to expand...
Click to collapse
A third path then. :silly:
JasonKZLY said:
The Numbers in the dial-pad was still white in colour, I had also edited the unknow-caller png and that worked but the dialpad thingy didn't work. Any ideas???
Click to expand...
Click to collapse
It might not be an image but controlled by an xml, or the buttons you've changed aren't what's used by the Phone etc, for example the dialer buttons in my Phonebook to make a call aren't the same as when I'm on a call, as the ones used while I'm in a call are in another apk, which for me is SEMCPhone.apk, which you'll only find on SonyEricsson/Sony Phones.

Categories

Resources