i am building my own custom rom with all my files and settings the way i like them and i would like to add some of my .apk's to my update however i want them on my ext2 partition(if its not possible then dw) also i would like to know if i have to resign these .apks. Another thing is that i would like to add my own settings to it such as wallpaper, ring tones etc.
any help would be greatly appreciated, thanks in advance
Wallpapers, ringtones get added during compiling of you rom (unless you're just taking existing rom and taking things out and adding things in) If you want apps on your ext2... just install them, they will survive wipes and reinstalls. As a matter of fact I would do the same thing for wallpaper and ringtones but if you must.....
ringtones go into /system/media/audio/ringtones
wallpapers are somewhere in the system/framework.apk if I'm not mistaken
Good luck
thx im gna need it
double post
borodin1 said:
wallpapers are somewhere in the system/framework.apk if I'm not mistaken
Good luck
Click to expand...
Click to collapse
I have been toying with this myself and actually wallpapers are located in:
Code:
/system/app/Launcher.apk
once you have the apk, you will need a program such as 7zip or Winzip to explore (not unzip) the file and browse to:
Code:
/res/drawable/
within the Launcher.apk file, that is where the wallpapers are located....
Best of luck
Related
I am currently using the Latest Cyan Mod ( 4.1.999 something ) and I really miss the blur transition animation. Can you guys tell me if there is a way I can push it manually ?
Thanks in advance
go to spare parts and enable window animations
Well I guess u have no idea what am I talking about ! I know how to perform those simple steps ( I have been flashing mah phones and doing all kinda stuffs for a long time ). What I am asking is" the new BLUR transition animation found in some new themes ! I just wanna know if I can push it manually without actually installing the theme
Thanks btw
haven't used the blur animations myself, so i may be wrong, but take the theme with the animations, pull the folder framework-res.apk/res/anim (the first one can't recall exact name). take that folder and drag it over into an unthemed version of your rom into the same location. sign the .zip file, then flash it.
david1171 said:
haven't used the blur animations myself, so i may be wrong, but take the theme with the animations, pull the folder framework-res.apk/res/anim (the first one can't recall exact name). take that folder and drag it over into an unthemed version of your rom into the same location. sign the .zip file, then flash it.
Click to expand...
Click to collapse
Thanks a lot for the info, but can you tell me how to sign the .zip file since I have not done this b4. Thanks
this is probably one of the easiest ways to set it up.
for framework-res (at least in Hero builds) you are not required to resign the apk after editting...easiest way to edit an apk is within winrar...on your computer (PC as I don't own a mac) right click on the apk and set it to open with winrar (set it as default program)
now you can edit the contents of the apk without ever extracting the contents.
So after you open take the /res/anim from file A and move it into the framework-res.apk from the build you wish to use simply ADB push (or a root file explorer or some terminal method I don't know) the file to /system/framework
reboot...and viola.
I'm trying to edit a few things but I'm not sure how to go about repackaging them as .apk even though I know they're archives. If I open the archive and extract everything how should I go about putting it back together? Is it as simple as throwing it in a .zip file, renaming it to .apk and signing it or am I missing something? I tried doing that with Rosie.apk because it has a lot of wallpapers I won't ever use and I wanted to throw some of my ringtones into it too.
Dyonas said:
I'm trying to edit a few things but I'm not sure how to go about repackaging them as .apk even though I know they're archives. If I open the archive and extract everything how should I go about putting it back together? Is it as simple as throwing it in a .zip file, renaming it to .apk and signing it or am I missing something? I tried doing that with Rosie.apk because it has a lot of wallpapers I won't ever use and I wanted to throw some of my ringtones into it too.
Click to expand...
Click to collapse
there is already another thread somewhere farther down about this, but in short, you need to resign. Stericson did a one-click signing tool, but I was never able to get it working on my machine. I use the same tools, but I have to do the manual sign option, it is still easy, it just uses one more click.
As far as repacking rosie.apk, you should just be able to locate the .png and small.png files you want to replace. Find your new wallpapers, rename them to the names of the wallpapers you want replace. (you will need to resize your 480x320 wallpapers to the small wallpaper dimensions, they are 80x60. easiest way to resize is in MS paint or Gimp. once you rename just drag the files into the open winrar window. For rosie i think wallpapers are in the drawable 480x320 folder. When winrar brings up a prompt, just make sure you have the options selected to add and overwrite existing files or something of the like. It is also a good idea to adb pull your Rosie.apk just in case things go bad you can push a backup to revert you to where you were before. If you got any questions send me a PM or hit me on gtalk- [email protected]
Dyonas said:
I'm trying to edit a few things but I'm not sure how to go about repackaging them as .apk even though I know they're archives. If I open the archive and extract everything how should I go about putting it back together? Is it as simple as throwing it in a .zip file, renaming it to .apk and signing it or am I missing something? I tried doing that with Rosie.apk because it has a lot of wallpapers I won't ever use and I wanted to throw some of my ringtones into it too.
Click to expand...
Click to collapse
You can open Rosie.apk with something like winrar and replace the images without the need to resign. I've done it countless times. There's not much point in removing wallpapers in Rosie though, it will just reduce the size of the apk without any noticeable speed improvment. Most Hero devs use the stock Rosie apk.
As for ringtones, they don't reside in Rosie.apk. You can put them on your FAT32 (or EXT if you have one). Just put the mp3's in /media/audio/ringtones. I highly suggest putting them on ext because when the SD card is mounted in your computer your phone can't access the ringtones. Ext isn't mounted (on windows atleast) so they are still accessible.
Thanks guys, I seem to have it almost done now with this and what I stumbled through
When I select my custom wallpaper, I don't want to go through the resizing process over and over again. Is there a way I can copy the wallpapers I want to the system directory in order to use the system wallpaper app? I tried searching for this topic, but couldn't find anything like it. Thanks for any assistance with this issue.
*Update*I found my answer on another website:
"They are not in a directory.. they are on the Launcher.apk under \res\drawable
I know you can replace the wallpapers there with your own ( I've done this before) but I'm not sure If you'll be able to add more wallpapers to the gallery without replacing the default ones. "
To MOD: Please delete this thread!!! Thanks!!!
any guide/info on the proccess. would like to change some wallpapers
MotoMudder77 said:
any guide/info on the proccess. would like to change some wallpapers
Click to expand...
Click to collapse
It would probably be easier if you checked out on the market Wallpaper Set and Save.
MotoMudder77 said:
any guide/info on the proccess. would like to change some wallpapers
Click to expand...
Click to collapse
The wallpapers are in the Launcher.apk file.
Replace as necessary and re-sign the apk file.
You will find wallpapers that are in there twice they are in fact the wallpaper itself and a thumbnail (with "small" added onto the name).
nolimit78 said:
It would probably be easier if you checked out on the market Wallpaper Set and Save.
Click to expand...
Click to collapse
Got it, Is very easy. Thanks, would still like to change walls in the wallpaper gallery.
Binary100100 said:
The wallpapers are in the Launcher.apk file.
Replace as necessary and re-sign the apk file.
You will find wallpapers that are in there twice they are in fact the wallpaper itself and a thumbnail (with "small" added onto the name).
Click to expand...
Click to collapse
I've got that much from searching around. Is it just too in depth that theres not a guide for it? Sorry Im a noob to android.
The fact that you have to replace them is what gets me, is it too hard to write new ones into the .apk?
And even if (heres the noob Q) how would I pull apart the .apk, and then resign it?
MotoMudder77 said:
Got it, Is very easy. Thanks, would still like to change walls in the wallpaper gallery.
I've got that much from searching around. Is it just too in depth that theres not a guide for it? Sorry Im a noob to android.
The fact that you have to replace them is what gets me, is it too hard to write new ones into the .apk?
And even if (heres the noob Q) how would I pull apart the .apk, and then resign it?
Click to expand...
Click to collapse
Wow you are a noob. LOL.
To open the apk just use winrar or similar. Extract it like you would a zip file but don't delete anything. Now say you are wanting to replace Wallpaper1.jpeg, Wallpaper2.jpeg, Wallpaper3.jpeg and Wallpaper4.jpeg you only need to replace those 4 and the corresponding _small.jpeg file (example: Wallpaper1_small.jpeg) with your appropriately named replacements (customized Wallpaper1.jpeg and Wallpaper1_small.jpeg) and replace the original. Then take your modified files and drop it back into the /drawable directory of your apk file. Sign your apk file and you should be good to go. Make sure that you don't have a Thumbs.db in the directory. It's safe to have in there but it can take up space and it's completely unnecessary. In regards to just adding additional wallpapers it would have to be done from source. It's probably easier for a beginner to just rename and replace.
To resign... (sigh) there are about half a dozen ways to do it. Seek and ye shall find.
What I am trying to do (on DC v1.1b5) is combine 3 (or more) signed zips (espresso, clear notification bar, and a taskbar) into an unzipped rom so I can sign it later and flash the whole rom with my changes. (NO I'M NOT GOING TO POST IT AND SAY ITS MY ROM lol)
All of these modifications each change framework-res.apk and com.htc.resources.apk in their own way.
Would I have to figure out every single change to each individual apk and merge them into one file? Or is there another way?
I am not only doing this for my phone, but I am doing this to learn.
Any help would be appreciated
Yes, since there's really no way to tell which files were edited in each theme, you have to go through and find it.
Honestly, the easiest way to do this that I've found is to unzip the archive and scroll through the folders with thumbnails enabled so you can quickly see what they all look like.
I know that the statusbar .pngs are in framework-res.apk/res/drawable-mdpi and they all start with statusbar_* or status_bar*.
The .pngs for the Rosie are found in com.htc.resources.apk/res/drawable-port-mdpi/
EDIT: I would also recommend creating a MetaMorph theme when you get all the files you need. (I'm not sure if it works on 2.1/Sense ROMs, I'm about to use it and find out though) that way you can apply the themes while your phone is on, you can easily transfer it between ROMs, and you only need to use the files that you've changed, instead of the entire .apk. For instructions on creating a MetaMorph theme: http://forum.xda-developers.com/showthread.php?t=591329
on windows 7 you can make one folder called NEWframeworkapk paste all the original file to it, then copy and paste all the files from the others. it will say "do you wish to move and replace "jpg" say yes for all and then you have the changed files.
haha thats what i do? prolly some super easy way though.
Gregalous said:
Yes, since there's really no way to tell which files were edited in each theme, you have to go through and find it.
Honestly, the easiest way to do this that I've found is to unzip the archive and scroll through the folders with thumbnails enabled so you can quickly see what they all look like.
I know that the statusbar .pngs are in framework-res.apk/res/drawable-mdpi and they all start with statusbar_* or status_bar*.
The .pngs for the Rosie are found in com.htc.resources.apk/res/drawable-port-mdpi/
EDIT: I would also recommend creating a MetaMorph theme when you get all the files you need. (I'm not sure if it works on 2.1/Sense ROMs, I'm about to use it and find out though) that way you can apply the themes while your phone is on, you can easily transfer it between ROMs, and you only need to use the files that you've changed, instead of the entire .apk. For instructions on creating a MetaMorph theme: http://forum.xda-developers.com/showthread.php?t=591329
Click to expand...
Click to collapse
Avalaunchmods said:
on windows 7 you can make one folder called NEWframeworkapk paste all the original file to it, then copy and paste all the files from the others. it will say "do you wish to move and replace "jpg" say yes for all and then you have the changed files.
haha thats what i do? prolly some super easy way though.
Click to expand...
Click to collapse
thank you both for the input.
now to go find EVERY change they all make lol
if anyone has an easier way, PLEASE don't hesitate to post lol
regaw_leinad said:
thank you both for the input.
now to go find EVERY change they all make lol
if anyone has an easier way, PLEASE don't hesitate to post lol
Click to expand...
Click to collapse
Gregalous said:
I know that the statusbar .pngs are in framework-res.apk/res/drawable-mdpi and they all start with statusbar_* or status_bar*.
The .pngs for the Rosie are found in com.htc.resources.apk/res/drawable-port-mdpi/
Click to expand...
Click to collapse
Here's a headstart
Gregalous said:
Here's a headstart
Click to expand...
Click to collapse
Thanks
I actually prefer MetaMorph over doing a zip file because all you need are the files that have been changed. However, in 2.1 a lot of files are scattered around or in different places and once the Sprint update comes through who knows where everything will be. Once I finally figured out how to set up the folders the rest I have done became easy...and no need to turn off your phone.
Edit: You can also combine more than one folder at a time
HTC HERO
DamageControl V1
&RoidRage said:
I actually prefer MetaMorph over doing a zip file because all you need are the files that have been changed. However, in 2.1 a lot of files are scattered around or in different places and once the Sprint update comes through who knows where everything will be. Once I finally figured out how to set up the folders the rest I have done became easy...and no need to turn off your phone.
Edit: You can also combine more than one folder at a time
HTC HERO
DamageControl V1
Click to expand...
Click to collapse
Yeah, MetaMorph is pretty cool.
but my problem was actually FINDING the changes in already made zips lol
but I think I got it, well most of the changes (hopefully all)
Hi Guys,
I'm coming from Windows Mobile 6.5 where theming was a bit different:
When I started with 6.5 I used to think the only way to change the look of my phone interface was to flash a custom rom, but then I realized I could theme individual components (6.5 theme, Taskbar, Icons, Start Menu, ect) and it turned out to be pretty easy.
With Android I'm begining to think the opposite exists, is it basically true that in order for me to change the colors of the taskbar, or menus, taskbar icons - I have to use a custom rom?
I have been reading over these threads for the past three days and I have learned a lot, but I'm still confused...
I used to do M2D themes and change the xml and such, but when I read the Android theming guides ALL of it seems foreign to me...does't seem like I can just swap out pngs for pngs I made in Photoshop Am I making this seem more difficult than it is?
Are there individual themes for my taskbar, dialer, ect (not roms)? And if so can a former Windows Phone user explain them in comparison to installing a cab?
I know I have a ton of questions so any help at all would be appreciated
Thanks
MEGA MAN
There are MANY apps out there that will allow you to make these changes. Do some searches on the market and you'll find them. Do some research into rooting your phone (at your own risk) which will allow even more options.
You do not have to use a custom ROM to theme your phone, but it makes it a lot easier overall. AFAIK, you still have to have your phone rooted to theme more than icons.
To theme images, it really is just swapping out your images for the images already there as long as they contain the same dimensions, format (pretty much always .png), and name.
The .xml files are easiest to edit if you have decompiled the apk with a tool call apktool, because then they are in readable format.
Apktool is also really great for getting .9.png's in decompiled format with the stock guidelines intact.
You can theme various different components with an app called Metamorph or Ninjamorph, otherwise, you're going to have all your different parts together.
I've been theming android for getting close to two years now, so if you would like more help, you can PM/email (david1667jones gmail) me for more specific answers.
megaman - ain't it a trip coming from WM to android? yeah...WM seems such a simpler way. especially CHT2...that is really the best modding system ever.
been experimenting for the past 2-3 weeks and have been successful. (even have a usable CM7 theme that i may post...)
so let's hash this out. maybe teach eacho other a thing or two. if i am being too basic, let me know.
apk - like a cab. tricky thing is that (i believe) if you edit an apk, you replace the entire apk. unlike a cab where you can replace 1 single file. there are theme programs (metamorph - haven't used it, ADW and others that allow replacement with a single file...but they take a little work. nothing easy like cabs for WM.)
to begin you need 7zip (or winrar i hear works.) this will allow you to open apks, replace files and restore them in seconds:
http://www.7-zip.org/
i assume your rom is rooted (i really don't understand the term, but it allows freedom to mod your phone. i am using an HD2 - WM phone - running nand android so by default my phone is rooted.)
let's explore - take any apk and open it with 7zip. you will see 3 files (this is off of memory as i am at work right now.) open them and look around. ((want to find your installed apks and back them up? search market for Astro. (settings> backup and save your apks to your sd card)))
under res you will see drawable folders - this is the jackpot. in there you will see your images. there is a lot of redundancy in apks. the trick is finding the right image. try changing some, etc. this is the most basic of theming.
before moving on to xmls, etc (which there are quite good guides for this) just try the above. when you replace the files move up the folder hierarchy and it will ask you something about saving/restoring - cilck yes. the apk is now modded.
install the apk and see the changes.
however, if you are editing the core apks - system and framework-res, we will need to talk about how to do that (i use clockworkmod flashing...easy to do.)
let me know if this helps.
Thank you guys so much for your knowledge!
I do have my phone rooted and I have bootloader installed
The one reason I thought that I had to download a "ROM" is because I keep reading about having to be deodexed in order to modify...and I was underthe impression that most custom roms provide this deodexing?
on to APK's...I do have 7Zip and I have opened some up and found where the graphics are...now I am actually extracting the apk so I can manually go through each folder and see whats there including graphics...there does seem to be another way of opening the APK with 7Zip and not actually extracting it, but I don't thing I can actually see the image previews this way. >>>so I extract, change my desired images, re-zip and change the file extention back to .apk - BUT then I read about signing APK's? ...and signing zips?
After some researching I found a thread in which someone posted something like they make a copy of there current ROM "theme?" and then copy it in zip form on to their PC where they goe through all of the desired APKs and then Zip it back together and install it from the screen that you get to after holding the power button and home (recovery screen maybe?) <<< Anyway is this possible? This seem most like what we did in windows phone...but again I think where I'm getting caught up is the signing aspect...I've seen auto signers, but I feel like the ones I've seen were only for XP and I have Windows 7.
Woo... ok wrote a lot there - if you have anytime to elaborate on anything, I'd be happy to hear.
...and jsmccabe - that HD2 is one awesome device...I remember everybody asking if Windows 7 would everbe available and now you guys are dual booting with WP7 and Android - AWESOME!!! (if I didnt have Verizon
megaman...sorry it took a bit. "real life" and all that...
megaman 2 said:
The one reason I thought that I had to download a "ROM" is because I keep reading about having to be deodexed in order to modify...and I was underthe impression that most custom roms provide this deodexing?
Click to expand...
Click to collapse
- not sure what deodexed means. is your rom cm7? if so, tmobile themes is an "easy" way to make a theme.
- are you theming to share or for yourself? if the latter just replace the the files in your rom and flashe the rom. if the former, what type of rom?
megaman 2 said:
on to APK's...I do have 7Zip and I have opened some up and found where the graphics are...now I am actually extracting the apk so I can manually go through each folder and see whats there including graphics...there does seem to be another way of opening the APK with 7Zip and not actually extracting it, but I don't thing I can actually see the image previews this way. >>>so I extract, change my desired images, re-zip and change the file extention back to .apk - BUT then I read about signing APK's? ...and signing zips?
Click to expand...
Click to collapse
- you can extract to make life easier. but when you are ready to make the changes just drag the new icons into the original apk. it will update it for you and you can install it and done.
megaman 2 said:
After some researching I found a thread in which someone posted something like they make a copy of there current ROM "theme?" and then copy it in zip form on to their PC where they goe through all of the desired APKs and then Zip it back together and install it from the screen that you get to after holding the power button and home (recovery screen maybe?) <<< Anyway is this possible? This seem most like what we did in windows phone...but again I think where I'm getting caught up is the signing aspect...I've seen auto signers, but I feel like the ones I've seen were only for XP and I have Windows 7.
Click to expand...
Click to collapse
CWM themes are pretty easy to do. i started with this, the problem is it replaces the entire apk to replace 1 image. which if you are modifying systemui or frameworks, may overwrite other things (colors that you didn't want to.) easiest thing to do....find an already established CWM theme and keeping the same structure, replace the images and flash via CWM.
let me know if you want more details...cheers and good luck!