[Q] Question about bootanimation.zip - Android Themes

I‘m new here.I want to konw if I Modify Resolution ( desc.txt) in bootanimation.zip,need I resign the zip?With what tools?How?
Sorry about my poor English,I'm a student of Chinese.Hope you can read my words.

No need to resign it. However, you can not compress it. Compression level should be 'Store'.

Related

Question for developers

Right away, forgive my ignorance on the subject, I'm sure I can spend 10-12 hours searching forums and figure it out or someone can take 2 min and just answer it.
Lets say one was to take an app from the market and unzip it into a folder to see what it's made out of. Let's also say that one has absolutely no clue about android, Linux or programming in general, just too much curiosity and a phone to play with. So that certain individual (and I will not admit that it was me, it was.... my friend) found .dex file inside and thought of editing it, nothing fancy, just replace some URLs with other URLs. Here the question: How would I (I mean... my friend) would edit .dex file? Notepad seems to do it but something tell me (I mean... my friend) that it's not the right way. How would I put that app back toghether into .apk format after I'm done with it (Agh, screw it, it's me, it's not my friend). I should also note that I'm not trying to do this for profit or trying to steal someone's app.
Any help is greatly appreciated
You my friend are a Grade A tard.
apk files are not unzipped.
Decompiled maybe?
topdnbass said:
You my friend are a Grade A tard.
apk files are not unzipped.
Decompiled maybe?
Click to expand...
Click to collapse
Whatever you would like to call it. If it make you happy, I "decompilied" apk file using WinRAR to get a number of files including above mentioned .dex file.
Now that we have that figured out, how do I edit .dex file and repack everything else into .apk?
Thanks
First off, yes you can open the .apk file and see the other files but the files for the actual app are compiled. They arent editable. You would need the source to edit the app in any way.
As to the .dex file if you can open it with a text editor and change stuff all you are likely to do is break the app. As for putting it back together and getting it to install, good luck. You will probably need to get it resigned or something.
If you are wanting to learn how to make apps for android you should download the SDK. I believe there is a tutorial with some example apps that you can make out there somewhere also.
Dharkaron said:
First off, yes you can open the .apk file and see the other files but the files for the actual app are compiled. They arent editable. You would need the source to edit the app in any way.
As to the .dex file if you can open it with a text editor and change stuff all you are likely to do is break the app. As for putting it back together and getting it to install, good luck. You will probably need to get it resigned or something.
If you are wanting to learn how to make apps for android you should download the SDK. I believe there is a tutorial with some example apps that you can make out there somewhere also.
Click to expand...
Click to collapse
Agh, now we are getting somewhere.
Just for the record: I do not want to make apps, I'd rather leave it to pros and pay few bucks for working app that has no bugs.
The app I am referring too is StreamFusion which is a streaming audio player. Initial install puts about 30 preloaded stations in the playlist, none of which are of any interest to me. I unzipped apk and found this .dex file (resources.dex? not at home, can't check) which contained URLs for default-loaded streams. All I want to do is replace them with URLs of my own so I don't have to search shoutcast,add my stations and delete defaults everytime I decide to wipe my phone. Sounds like such a simple task, yet there's no clear documentation on how to do something like that (at least for the non-dev crowd).
With that said, I don't want to change the way StreamFusion, they do give you an option to remove defaults manually (one by one!) and they do give you an option to add your own stations in the playlist. It just takes too long and I've done it a few too many times already.
I'll keep playing with it, let me know if anyone for sure knows how to do it, otherwise I'll report when I figure it out or when I get tired of it.
Sorry for being rude earlier, i was in a bad mood
If you mean StreamFurious all you need to do is long press the radio station and hit delete
topdnbass said:
You my friend are a Grade A tard.
apk files are not unzipped.
Decompiled maybe?
Click to expand...
Click to collapse
Have you actually tried renaming an .apk file to .zip and opening it? In short, apk is just like a jar. They're just zip files with specific metadata requirements.
“Always keep your words soft and sweet, just in case you have to eat them.” -Andy Rooney
borodin1 said:
edit .dex file? Notepad seems to do it but something tell me (I mean... my friend) that it's not the right way.
Click to expand...
Click to collapse
when in doubt .. HEX .. hex editing of a file can maintain its purest essence and prevent it from crashing .. provided of course that you edit the right parts .. i've done this thousands of times in computer games .. change one little thing and POOF! your scrawny little piss-ant becomes mighty hercules and you can slay the dragon - LOL - ok .. so maybe not so korny
borodin1 said:
With that said, I don't want to change the way StreamFusion, they do give you an option to remove defaults manually (one by one!) and they do give you an option to add your own stations in the playlist. It just takes too long and I've done it a few too many times already.
Click to expand...
Click to collapse
The defaults that are hard-coded into the apk are loaded on first run into a sqlite3 database. Sure you could edit the hard-coded defaults, but this would be an unclean solution. A better solution would be to backup the sqlite3 database to your computer and restore it with adb whenever you reinstall. You can also easily edit the database conveniently on your pc as well.
The location of the db is /data/data/com.streamfurious.android.free/databases/streamfurious.db
By the way, the SF defaults already include KQED, BBC WS and TWiT. What more could anyone possibly need
You can decompile apk class files from the dex file.
http://zeaster.blogspot.com/2007/11/how-to-decompile-dex-file-on-android_28.html
As for repacking it after the edit.....check this out this might help...
http://forum.xda-developers.com/showthread.php?t=503007
or ask strazzere

what file is the image for the slider in titanium?

i would like to customize the slider in titanium, could someone upload the file or tell me what file it is in the Windows directory?
bronzeres.dll in \windows
under rcdata
portrait 3000
landscape 4000
so i'm using XN resource editor, i'm new to this- i figured ut how to export the images, but i don't know how to replace them, anyone care to guide me?
use resource tuner...its the best that i know of...its what i use...if you want i can mod the file for you...just give me the images that you want to use and ill see what i can do...if not get that program and change them yourself...
thanks for the offer, but i am here to learn, i got restuner and i opened up the file and replaced it pretty simple, but then after putting it in my windows directory there was no homescreen, so i had to switch back to the original
do the images have to a certain type? restuner said they were .png so i ripped the files from the .dll and they were .png so i opened them with GIMP then colorized them to light blue and then saved them with default settings and but them back into the .dll, do i need to use special settings?
hey no prob...i like to do it and learn myself...i only offer cause alot do not...they just want it done...lol...alright...when saving you have to change and then click save as and put whatever and then add the ext .png...will save in .png and should be good to go...

[Q] 8 bit? Themers Please help

Hi all, i am trying to work on a theme for the Droid X. Can anyone tell me why some of the images open in photoshop incorrectly and more to the point how to fix them?
I cant post a link apparently to the image or a http link since i'm new but
You can view the image here. http:/ / dl.dropbox.com/u/6769503/8bit.jpg
Is there a setting or something I can change in PS to open these correctly?
Thanks for your time.
KraYzeE
krayzee said:
Hi all, i am trying to work on a theme for the Droid X. Can anyone tell me why some of the images open in photoshop incorrectly and more to the point how to fix them?
I cant post a link apparently to the image or a http link since i'm new but
You can view the image here. http:/ / dl.dropbox.com/u/6769503/8bit.jpg
Is there a setting or something I can change in PS to open these correctly?
Thanks for your time.
KraYzeE
Click to expand...
Click to collapse
What is the original file extension? .png?
I had this same problem with some .png files wich had transparency in windows image viewer, but not in photoshop.
My solution was to open it in Paint.net and save it, rewriting the original image. Please be sure to set the transparency correct whilst saving in paint.net.
Download Paint.net
Thanks for the reply, yes it was a PNG, ill try paint.net but i would really like to use Photoshop. I cant understand how it can mess up the transparency and anti alias like that.
Update: Paint.net does indeed open the file correctly... so while i do now have a solution. I would still like to find out why Photoshop (both CS4 & CS5) open it incorrectly ?
Well technically 8 bit pngs are indexed images with a varying amount of colored pixels and then varying amount of transparent and semi transparent pixels so some programs might not like this. I would recommend gimp over ps as its similar but doesn't have this issue.
Sent from my HERO200 using XDA App
that image actually seems correct, can you post an image of the alpha channel? then we will know if photoshop is not reading the file correctly
As one poster said, it's because the images is indexed. If you do Image > Mode > RGB, it will un-index it. I must warn you though, PS is HORRIBLE with indexed images. Use GIMP/Paint.NET to un-index it to save yourself a headache
JAguirre1231 said:
As one poster said, it's because the images is indexed. If you do Image > Mode > RGB, it will un-index it. I must warn you though, PS is HORRIBLE with indexed images. Use GIMP/Paint.NET to un-index it to save yourself a headache
Click to expand...
Click to collapse
Ahh but then you lose the 8 bit optimization, even running optpng will not put it back to index png cause it will ossy optimize it. So just use gimp.
Thanks for the replys guys.
Here is an example image.
http:/ / dl.dropbox.com/u/6769503/btn_circle_pressed.png
If you open it in PS, you will see what i mean, changing it to RGB does not change the image. I can open it correctly it Fireworks, then save it without making any changes, and then i am able to open it in Photoshop correctly.
This will do for now in case anyone else runs into this issue. The file size isn't too much bigger this way, so it will work for now.
Thanks again to all that helped.
http://dl.dropbox.com/u/1631008/btn_circle_pressed_fixed.png
Here's the image fixed, it was indexed... all I did was open it up with osx Preview and save it again. Or you can try this gimp they all talk about but I think it's overkill to switch to another program just because 1 or 2 images are weird, especially after you paid for your copy of Photoshop.
DBBGBA said:
http://dl.dropbox.com/u/1631008/btn_circle_pressed_fixed.png
Here's the image fixed, it was indexed... all I did was open it up with osx Preview and save it again. Or you can try this gimp they all talk about but I think it's overkill to switch to another program just because 1 or 2 images are weird, especially after you paid for your copy of Photoshop.
Click to expand...
Click to collapse
Thanks for your help. I don't have OSX and i absolutely cannot get used to Gimp. but opening it in adobe fireworks and saving it again right away does the trick, so although it's a pain, its simple to do.
If anyone ever figures out a way to directly open these types of files in Photoshop i'd be glad to know.
Cheers
KraYzeE
krayzee said:
Thanks for your help. I don't have OSX and i absolutely cannot get used to Gimp. but opening it in adobe fireworks and saving it again right away does the trick, so although it's a pain, its simple to do.
If anyone ever figures out a way to directly open these types of files in Photoshop i'd be glad to know.
Cheers
KraYzeE
Click to expand...
Click to collapse
Yes that works but your removing the indexing. Android uses indexed pngs wherever possible because this saves space and resources, if you changed every file in the android system to rgba your phone would be noticeably slower.
If you change it to rgba and then run optipng on it you'll see it will not index cause it can only lossy optimize, but if you set the mode to index and then optimize it you'll notice then file will be considerably smaller with little or no image quality loss. So in short your removing a vary important optimization feature of the android system.
If your looking for a quick image conversion tool try image magick, this will allow you to write scripts to convert them png24/32 to png8 and back whole folders at a time.
well as we do with video it's always better to work with uncompressed, high res images. Then when everything is done and set in stone we compress and optimize without loosing too much image quality.
If i had to start a theming project I'll probably do the same, convert everything to high res, work on it then compress to a more optimized format.
DBBGBA said:
well as we do with video it's always better to work with uncompressed, high res images. Then when everything is done and set in stone we compress and optimize without loosing too much image quality.
If i had to start a theming project I'll probably do the same, convert everything to high res, work on it then compress to a more optimized format.
Click to expand...
Click to collapse
Yeah for video thats fine, but in theming and specifically for this file gimp will allow you to work on the indexed file and you literally can not tell the difference with the indexed file being atleast 50% smaller. Maybe this would make sense with an image that has alot of quality or is high res but in this instance it a loss of time and added steps when the same could be accomplished with industry standard tools.

[Q] Help with Changing Status Bar Signal Icons, Files to be Modded

I'm currently trying to modify the way the Vivid displays its network status indicators (the E, 4G, 4GLTE, etc.), and was hoping for a little help from somebody more experienced in the details than I. I'm aware of the methods to simply replace images by swapping PNG's in framework-res.apk and SystemUI.apk, but what I'm trying to do here is actually change the way it's displayed, so it'll show 3G/U or H like most other Android phones will. From the research I've done, I know this would involve some decompiling, which I've never done before. So my question is:
There seem to be two files that deal with the way Android displays network and signal status: SystemUI.apk and services.jar. (There's also services.odex, though I'm not sure how this fits in.) I've seen methods that decompile both, and I was wondering if anybody had any experience here to clarify which one I should focus on. (And additionally, isn't a .odex simply a variation on a .dex classes file, which would be contained inside a .jar anyway? So how does that fit in?)
You may ask why I want to do this! I'll tell you:
I've always found it midly annoying that to the Vivid a network is one of three things: EDGE, 4G, or LTE. What happened to GPRS, UMTS, or HSPA?
I know android reports at least the difference between UMTS & HSPA, thought I'm not sure about HSPA+, so it should be possible since most other phones do show it.
Now that I have a permanent root, I'd like to customize my phone to my liking
Several others have expressed an interest in making the network status icon actually work properly
I want to learn more about the nitty gritty details of how Android works, with the goal of getting more into ROM developement.
I can't find anybody else who's done it
Why not?
Thanks! Any help would be greatly appreciated!
PS - I know this is dev related, but I didn't make anything, and we don't have a Q&A, so I put it in general
if you deodex your /system then you dont have to worry about the .odex file at all.
i think it boils down to systemui.apk and the smali contained within.
if you dont know how to decompile, i suggest you learn how. start with some basic stuff, because editing smali is a pain in the ass.
http://forum.xda-developers.com/showthread.php?t=695701
http://apkmultitool.com/
learn how to use those tools. you will need them and you will also need to set up a few other things.
if you are on Windows, you need the JAVA JDK, and ADB SDK installed
it would help if you have Notepad++, as it is much better than any other notepad application on windows (IMO)
learn some smali/baksmali <this is the part i actually struggle with, i am still learning
ALSO, 7zip is the best archive tool on windows, bar none...
Pirateghost said:
if you deodex your /system then you dont have to worry about the .odex file at all.
i think it boils down to systemui.apk and the smali contained within.
if you dont know how to decompile, i suggest you learn how. start with some basic stuff, because editing smali is a pain in the ass.
http://forum.xda-developers.com/showthread.php?t=695701
http://apkmultitool.com/
learn how to use those tools. you will need them and you will also need to suet up a few other things.
if you are on Windows, you need the JAVA JDK, and ADB SDK installed
it would help if you have Notepad++, as it is much better than any other notepad application on windows (IMO)
learn some smali/baksmali <this is the part i actually struggle with, i am still learning
ALSO, 7zip is the best archive tool on windows, bar none...
Click to expand...
Click to collapse
Hey, PG, thanks for the pointers! Understanding how to decompile the apk's is one of the main things I'm interested in learning, so I appreciate the links you provided, as I hadn't stumbled on them yet! And I agree about NP++, great program! I'll see what I can do playing with it, but if I have questions, may I pm you with them?
I will help out where I can.
Sent from my HTC PH39100

help with homebrew bootanimation

Hi I' a web designer and graphic artist, not much android developer, I've made this intent of a bootanimation.zip, even make the zip with KEKA for mac osx ppc and photoshop, but somewhat it is just showing a black screen. I'm attaching the zip file, could you check it out and tell me what would be wrong with it?
I cannot attach the file, so I've uploaded, if someone can download it and check it, I would appreciate letting me know why this is only showing a black screen on my tablet.
Thanks.
Gus
p.s: here is the file http://gusduenas.leftandrightsolutio...tanimation.zip
any help.
;(
What device?
----------------------------------------------
I'm full of great idea's, but don't have the time to create them or learn the coding to create them. If you want to make one of my ideas a reality just message me and I will give you my idea as specific as possible.
ideas:
Spoiler
-launcher/lock screen
-line rider type game where you control the character
-2d fighting game like art of fighting for the SNES
-multiplayer fps where you create your own map with a creative mode (minecraft style)
-roller coaster tycoon style game
-many more!
Just message me which idea you want info on and I'll tell you!
----------------------------------------------
check on the link I've posted and see what would be the problem, thanks for your help.
gusduenas said:
check on the link I've posted and see what would be the problem, thanks for your help.
Click to expand...
Click to collapse
link is broken...
Homebrew animation [SOLVED for Mac users]
Finally! I've just solved, many threads were correct the problem with the bootanimation.zip is the compression so I've downloaded the stuffit plus and I set the preferences to no compression and expert mode to the middle between faster and smaller compression level 8 and I've opened in the stuffit archive manage one of the many bootanimation.zip files I have from original and finally I got it good! :good:
Now it is working this solution is specially for all mac users (like me) with photoshop and stuffit archive manager. When in the window of the stuff archive manager, you are able to navigate the files inside the zip, so the better is to erase the originals and replace by yours, don't forget to have the desc.txt written good.
As an extra precaution, when you finally have all your files made in photoshop jpg, go and open preview and re-save them as jpg again in order to have a regular jpgs, maybe is nothing but I've just wanted to be sure since the bmp from photoshop is not read as a boot_logo by android, so my those are my two cents.

Categories

Resources