Related
Hello!
I'm trying to make my own Rom right now. With dsixda's Kitchen it isn't very hard to do so I thought I'd just give it a try. I'm taking a rooted official Update (Version: 2.10.405.2) as my base. Adding busybox runparts, the /data/app functionality, a2sd+, the custom bootanimation functionality etc. isn't a problem. Removing some apps like Maps, Facebook, Teeter (and so on) and adding some like Rom Manager, Neocore or Quadrant isn't a problem, too. But if I want to implement a theme like the Carbon Espresso Mod or a theme I made with the UOT Kitchen I'm getting bootloops at booting the phone. Here's what I do: I unzip the folder (for example a theme made with the UOT Kitchen) and I copy over the framework-res.apk from the unzipped folder to my Working Folder of the Kitchen (to system/framework) and I overwrite the original framework-res.apk.
And NO: I didn't choose a battery mod or a bootanimation in the UOT Kitchen....
Hope you guys can help me
I might be wrong but doesn't the new file have to be signed? I know there is a signing option in the kitchen.
Sent from my PC36100 using Tapatalk
It's a system .apk so it doesn't have to be signed.
I can't shed any light on the subject, but here's a bump.
Are you replacing the whole "framework-res.apk" file? If so then you will need to resign your entire ROM. Why? When you change a system file ("framework-res.apk", "com.htc.framework.apk", "twframework-res", "rosie.apk", etc.) it no longer has a matching "signature" for all the files it serves images to. Plug your phone into your computer and open up "ddms" in your android_sdk > tools folder to watch what happens when the phone boots up.
A workaround (The way I do it, it's more fun IMHO) is to open up your .apk files in 7zip (or if you're on a mac BetterZip) and add the images from the themed .apk to your stock .apk. This way makes it so your original .apk has the same signature as your other system files yet has the new images from the other files that you wanted. I've had a lot of luck with this method. I don't know if it will still work if you change any .xml files as I have not messed with those yet.
I've subscribed to this thread so if you have any questions post back here or you can PM me if you want. I'm on XDA all day, every day so I'll try to help as much as I can.
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
DomiKamp said:
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
Click to expand...
Click to collapse
The kitchen signs the .zip that you flash when you build it. It does not sign any .apks for you on its own. However, there is an option to sign .apks within the kitchen.
In my opinion, taking all of the images and figuring out how it all works is fun. I feel like I've already learned quite a bit from just digging around and moving files around.
As for the .xml files, you can decompile the .apk and edit them and then recompile the .apk. I'm actually looking into this today. It sounds like some work but hopefully I'll get it figured out.
Sounds like fun indeed So, I'll just have to try it. Where can I find the "Settings" for the Notification Bar? Thanks
The variois status*.xml files in the res/layout folder of the framework-res.apk and the status*.smali files in the services.jar.
What? If I want to implement a Theme made with the UOT Kitchen (without battery) I should just copy over those files to my existing res-framework.apk OR copy over the whole res-framework.apk (the new one) and sign it?
EDIT: Just tried it with a theme from the UOT Kitchen and it worked perfectly. I've just signed the res-framework.apk and the htc.com.resources.apk (or whatever) in the Kitchen, flashed it on my Phone and it just worked like a Charm. But I have got a 50% Transparent Notification Bar and all the system icons (Battery and time/date) are still black and not transparent! Has anyone got a idea where to change this? (.xml or whatever)...And does anyone know where I can find the HTC Wallpapers? I want to change them a little bit
HeyItsLou said:
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
HeyItsLou, I looked up your ROM thread but couldn't locate the video tutorial.... do you mind providing the url? Specifically, I am trying to add to the list of wallpapers in a ROM. (I have setup apktool but not sure where/which folder to add my wallpapers in Framework-res.apk Launcher.apk before recompiling/signing). Thanks.
You COULD use the Theme Porter by daneshm90. It will only port the PNG s for it so things like clock colour n stuff will be lost, but it will get you alot closer...
http://forum.xda-developers.com/showthread.php?t=737526
Sent from my HTC Hero using XDA App
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
DomiKamp said:
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
Click to expand...
Click to collapse
Isnt that what I said in the 2nd post -.- lol jk. Glad you got it working!
Yes! And that's why I tried it. And it worked! Thanks Husker and, of course, everybody else!
Glad you got it working. Welcome to the development side of android!
Sent from my PC36100 using XDA App
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
bestialbub said:
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Click to expand...
Click to collapse
I was curious about this too. I always edit the framework-res of any ROM I flash using a custom set of images I have and have never signed the apk afterwards and it has always worked. Maybe cause I'm only replacing images? I usually do this with framework-res and twframework-res and they both can sometimes grow by 1MB or more. Just my experience.
Sent from my SAMSUNG-SGH-I897 using XDA App
DomiKamp said:
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
Click to expand...
Click to collapse
I think that in order to do the "welcome to" thing you'll have to edit the update-script file. I'm not 100% on it though. Look at a cm Rom and see what all is in there.
Sent from my HTC Evo 4G using XDA App
Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
danalex0829 said:
Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
Click to expand...
Click to collapse
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
eunkipark92 said:
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
Click to expand...
Click to collapse
Well for the notification pulldown background ive got the one i wanted... what im referring to is when u have a notification, for instance you downloaded something from the market and u get successfully downloaded that one notification has no background it is set to transpare t and the letters are black so i can really read what it says...
anybody wishing to help?
If it is an image you need to edit to be non-black/transparent the file I think you're looking for is called "status_bar_item_background_normal.9.png"
Change that to a totally opposite color and see if that's it?
If you mean editing the color of the letters then I do not know what to edit in the .xml file.
Hope I helped!
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
P/s: I always get this error "An invalid character was found in text content. Error processing resource..." whenever I open xml file with IE.
vnthantai said:
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
Click to expand...
Click to collapse
^^ +1.....
danalex0829 said:
^^ +1.....
Click to expand...
Click to collapse
they must be decompiled with apk manager
additionally when you recompile make sure to check the log as there will be several images that will be renamed from. 9.png to png you must use the draw9patch program found in the tools folder of the android ask to 9patch these images otherwise your apks will not compile correctly. Im on my phone now so I can't provide the necessary video link how ever simply go on youtube and search how to use draw9patch there is a very good beginners explanation (2 part) of what a 9 patch is and how to use the 9 patch utility
Sent from my AXURA powered Vibrant
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
vnthantai said:
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
Click to expand...
Click to collapse
it varies, they can be in any folder really, but generally speaking that is where you will find most of them. Just check the logs and you will know exactly where to find them and what they were named.
was anyone able to figure out to edit services.jar in order to change clock color?
aamir123 said:
was anyone able to figure out to edit services.jar in order to change clock color?
Click to expand...
Click to collapse
Here you go man. http://forum.xda-developers.com/showthread.php?t=940692
That thread will explain that part. Be careful with it though, and make a backup cas if you mess it up you'll get a boot loop as I did
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
kashem58 said:
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
Click to expand...
Click to collapse
Instead of extracting, Just open it with winrar or 7zip and drag and drop image in the 7zip window.
Sent from samsung vibrant
Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Open ur new apk using 7zip (righr click>7zip>open archive) and do the same with ur old one. Delete the resources.xxxx(i dont know the name by heart lol) and drag and drop the one (by one i meant the resources.xxxx file) from the new zip to the old zip and adb push ur old frameworkres apk and reboot
Sent from my PG86100 using XDA App
kpkimmel said:
Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Click to expand...
Click to collapse
sounds more like a question. Use apk manager and or 7zip
how does just that one file carry over all the new pics and stuff i changed...
edited......
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
preludedrew said:
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
Click to expand...
Click to collapse
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
kpkimmel said:
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
Click to expand...
Click to collapse
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
preludedrew said:
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
Click to expand...
Click to collapse
Thanks you, sorry about the stupid framework-res question...i knew the answer but had been so long forget the simplest of steps....instead of normal compression i was using store instead.....duh.......thank you though for the reminder because 7zip will automatically restore the same it was decompressed with, unlike that crap winrar. Have a good one man and thank you again.
After reading from articles , now more or less I got some idea on how to create a theme for a custom rom , but still there's something I don't know .
1) First , I extract files from a rom using 7zip . Then , I extract out the content of framework-res.apk and make some modifies / changes to those .png files . So , after completed those modifies , I just open archieve on the original framework-res.apk , drag and drop the one I modified to replace the original one ? After that , how do I pack it in .zip file that can be updated in open recovery ? .xml file shouldn't be modified right ?
2) What if I do this , I get a theme.zip made for the rom , and then I extract the contents of the theme.zip using 7zip , then again I modify the .png files and after completed , I packed it again by open archieve on the original theme.zip , drag and drop the one I modified to replace the original one ? Does this works ?
3) What if I modify other system apps such as calender.apk ? Using the same method , extract , modify , drag and drop , replace , then again how do I pack it in .zip file that can be updated in open recovery ? Is there any "bond" between those system apps and framework-res.apk ? Can I just modify anyone of both ? Or I have to modify both system apps and framework-res.apk to get it works ?
Thanks
nikctsh said:
After reading from articles , now more or less I got some idea on how to create a theme for a custom rom , but still there's something I don't know .
1) First , I extract files from a rom using 7zip . Then , I extract out the content of framework-res.apk and make some modifies / changes to those .png files . So , after completed those modifies , I just open archieve on the original framework-res.apk , drag and drop the one I modified to replace the original one ? After that , how do I pack it in .zip file that can be updated in open recovery ? .xml file shouldn't be modified right ?
2) What if I do this , I get a theme.zip made for the rom , and then I extract the contents of the theme.zip using 7zip , then again I modify the .png files and after completed , I packed it again by open archieve on the original theme.zip , drag and drop the one I modified to replace the original one ? Does this works ?
3) What if I modify other system apps such as calender.apk ? Using the same method , extract , modify , drag and drop , replace , then again how do I pack it in .zip file that can be updated in open recovery ? Is there any "bond" between those system apps and framework-res.apk ? Can I just modify anyone of both ? Or I have to modify both system apps and framework-res.apk to get it works ?
Thanks
Click to expand...
Click to collapse
Here's what I know so far. I'm still trying to learn as much as I can:
1) If you are making a theme by trying to replace pngs in an existing framework-res.apk file, you can do this: open the apk file within your zip program, and edit the apk there (so you'll have two zip windows open. Once the apk is updated, close the most recent zip window. The first zip window should recognize that you've updated the apk file, and ask you to update the first zip window.
I've been playing around with this: http://forum.xda-developers.com/showthread.php?t=1432152
What it allows you to do is modify the files in Windows Explorer (or whatever file explorer you're using), and then let the script do the rest of the work for you. The actions it can do are: decompile apk, recompile apk, sign apk, created update.zip.
The xml files need to be edited if you want to achieve certain effects. For example, in the Gingerbread theme there are some edits that have to be made to a few xml files in order to achieve white text on black backgrounds on the popup menus. The nice thing about the framework flasher link from above is that it 'compiles' the files (meaning it will check if the .9.pngs are correct, and if your xml files point to correct assets), so you can go about doing xml edits and stuff without fear of bootlooping.
2) Yes, this should work.
3) If the updater script is a generic script (that is, it moves everything from the /system folder to /system, and /data to /data), then you can create directories in the update.zip that refer to whatever apk you want to replace, with the same structure as in Android. The cool thing about Metamorph, from what I gather, is that you can create folder structures with just the assets you want to replace, rather than the entire apk. This means that if you want to replace just a few images in Phone.apk, for example, you create a directory in the Metamorph script under /system/app/Phone/res/drawable-hdpi and add the images you want to replace in there. I think that's the way I want to create my themes from now on, I just need to figure out how to do it correctly
I tried the framework flasher , after located the framework-res.apk and run RunMe , it shows echo is off , the log process shows 'java' is not recognized as an internal or external command,
operable program or batch file.
Do you have Java installed?
Mioze7Ae said:
Do you have Java installed?
Click to expand...
Click to collapse
No , I have no Java installed . Tried to install before but couldn't get the right version .
Java
I've yet to find one all inclusive theming reference. Just a lot of searching & reading & trial & error. This might be a good place to get started.
Edit: You'll also want to get the Android SDK
3rdstring said:
Java
I've yet to find one all inclusive theming reference. Just a lot of searching & reading & trial & error. This might be a good place to get started.
Edit: You'll also want to get the Android SDK
Click to expand...
Click to collapse
BTW , since I'm still too new to theming , I'm thinking of making my first step by changing the colour of a completed theme . This is what I'm currently doing : I extracted the files content of your DarkFroyo.zip and then extracted it's framework-res.apk . ( IT'S YOUR THEME , CAN YOU GIVE ME THE PERMISSION TO DO THIS ? ) I'm changing the original orange colour of all those icon to light pink using photoshop , then replace the original one . The files type are .png . Also , I changed the battery status icon and status bar background . However , I haven't touch those .xml files , I just leave it there . So after I complete , do I just flash it right away in my phone or I need to doing something like "sign" ? As for now , I don't have any idea about "sign" .
nikctsh said:
BTW , since I'm still too new to theming , I'm thinking of making my first step by changing the colour of a completed theme . This is what I'm currently doing : I extracted the files content of your DarkFroyo.zip and then extracted it's framework-res.apk . ( IT'S YOUR THEME , CAN YOU GIVE ME THE PERMISSION TO DO THIS ? ) I'm changing the original orange colour of all those icon to light pink using photoshop , then replace the original one . The files type are .png . Also , I changed the battery status icon and status bar background . However , I haven't touch those .xml files , I just leave it there . So after I complete , do I just flash it right away in my phone or I need to doing something like "sign" ? As for now , I don't have any idea about "sign" .
Click to expand...
Click to collapse
Changing the color in Photoshop is fine for normal ".png"s but ".9.png"s are special, they have a 1 pixel border with guides that define how they are stretched to fill a space (& are only visible is a decompiled state). Just editing a .9.png in Photoshop might break the .9 patch. Since you are trying to modify my theme it might also be wise to grab the "undo.zip" so if (when) something you try bootloops the phone you can flash the undo to get back to stock. I know had numerous bootloops when I was first starting out (still do occasionally).
3rdstring said:
Changing the color in Photoshop is fine for normal ".png"s but ".9.png"s are special, they have a 1 pixel border with guides that define how they are stretched to fill a space (& are only visible is a decompiled state). Just editing a .9.png in Photoshop might break the .9 patch. Since you are trying to modify my theme it might also be wise to grab the "undo.zip" so if (when) something you try bootloops the phone you can flash the undo to get back to stock. I know had numerous bootloops when I was first starting out (still do occasionally).
Click to expand...
Click to collapse
Hey 3rdstring. I noticed you release a new version of your theme for the ODEXED version of CM6. For APKs that have ODEX files (such as Phone), are you deodexing them using apktool, then reodexing them? A brief pointer would be nice!
molohov said:
Hey 3rdstring. I noticed you release a new version of your theme for the ODEXED version of CM6. For APKs that have ODEX files (such as Phone), are you deodexing them using apktool, then reodexing them? A brief pointer would be nice!
Click to expand...
Click to collapse
No the only thing I'm changing in any of the odexed apks are images. I use a Metamorph file with ZipThemer to build the update.zip (& undo) after I've decompiled / recomfiled framework-res for the white menu text & 10% battery increments.
3rdstring said:
No the only thing I'm changing in any of the odexed apks are images. I use a Metamorph file with ZipThemer to build the update.zip (& undo) after I've decompiled / recomfiled framework-res for the white menu text & 10% battery increments.
Click to expand...
Click to collapse
The reason I ask is b/c I tried pushing a modified Phone.apk to CM6, but it didn't pick up any of the changes I added (images only). It made me think that the assets were already prebuilt in the odex file, so changing the apk wouldn't do anything unless the odex file was changed too.
I also tried applying a metamorph script on top of the odex ROM, but it caused a lot of fcs. I think it's b/c of the ODEXing too.
EDIT: My bad. Phone.apk is the calling screen, Contacts.apk is the dialer + contacts. DOH!!!
My edits are pushed correctly
Ok so i have had NO LUCK whatsoever trying to get this to work. My ROM for the Note 2 is a TW base (people want the S-Pen functions). And they like the AOSP feel so i decided to try and make a ROM that is AOSP themed. Well i have the launcher and a few AOSP themed apps such as the messaging app.
The flashers were very satisfied with my work so far. But they wanted an AOSP themed status bar. Meaning some AOSP battery images wifi and so on. I decided just just replace the EXACT images. I used a cm10 ROM to get the pngs. I also did use the newest Apktool to do it. I did all the framework installation. I decompiled both and started transfering. Here is what i did. I went to the drawable-xhdpi folder in both ROMs. They had pretty much identical png names. But the icons were different (one being the blue theme) so i took the blue icons (battery and wifi) and transfered them to my rom. I made sure that only the pngs with the same names were transfered. so there wasnt any issue compiling.
Next i compiled the APK file.
Then i used my backup systemui.apk file to transfer the META-INF folder to the new one using 7-zip.
Then i went and signed it and used dsixda's android kitchen to zipalign it. Then after all that i pulled that apk from the zipaligned folder and put it on my phone's sd card. I have the root explorer app. I move it to my /system/app folder. It moved successfully. Then i reboot and when it comes back up i dont have a status bar. And my wallpaper is black for a little while and then goes back to the feather thing.
I have tried signing and not signing. Zipaligning and not zipaligning.
I am stuck here. I am really wanting the AOSP themed icons in the status bar. Any help will be greatly appreciated!
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Open your fresh compiled apk, and your original apk using 7-zip (I haven't tested with Winrar, try if you wish).
Drag and drop all the files from your compiled apk to the original one, EXCEPT the AndroidManifest.xml.
Push this new cross-modded apk to your phone and reboot.
RoberGalarga said:
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Click to expand...
Click to collapse
Always zipalign.
XperienceD said:
Always zipalign.
Click to expand...
Click to collapse
I use dsixdas kitchen to zipalign my apks. Is there another tool I can use for just zipalign?
Droid Premium said:
Is there another tool I can use for just zipalign?
Click to expand...
Click to collapse
Yes, apk multi-tool.
RoberGalarga said:
Yes, apk multi-tool.
Click to expand...
Click to collapse
I appreciate it. Thanks sooo much!
Give me a hand please
RoberGalarga said:
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Open your fresh compiled apk, and your original apk using 7-zip (I haven't tested with Winrar, try if you wish).
Drag and drop all the files from your compiled apk to the original one, EXCEPT the AndroidManifest.xml.
Push this new cross-modded apk to your phone and reboot.
Click to expand...
Click to collapse
I am modding my status bar 2.3.4 and i want to add power toggles to it
i got a systemui.apk from another phone ( xperia arc 2.3.4) which has the same status bar like i do ( droid 3 )
when i switch systemui.apk's between them i get a FC and then i reboot and i get no status bar .
is that because it is from a different phone ( i looks exactly like my status bar ) or it might be a signature problem from android xml ?
Dorin21 said:
I am modding my status bar 2.3.4 and i want to add power toggles to it
i got a systemui.apk from another phone ( xperia arc 2.3.4) which has the same status bar like i do ( droid 3 )
when i switch systemui.apk's between them i get a FC and then i reboot and i get no status bar .
is that because it is from a different phone ( i looks exactly like my status bar ) or it might be a signature problem from android xml ?
Click to expand...
Click to collapse
You can't do that. Just because they look the same doesn't mean the coding is the same. You are gonna have to add all the missing coding from one that has it to yours. Not an easy task at all
Wayne Tech Nexus
zelendel said:
You can't do that. Just because they look the same doesn't mean the coding is the same. You are gonna have to add all the missing coding from one that has it to yours. Not an easy task at all
Wayne Tech Nexus
Click to expand...
Click to collapse
I even tried to copy a status bar from a 2.3.4 rom ( droid 3 ) to my own build ( 2.3.4 droid 3 ) and did not work
I somehow need to edit the status bar, the interface, so that I create the space needed by my toggles and then add them
And after that I need to create a command file so when I click on wifi to turn it off or on for example, right?
Do you know any place for learning coding or some tutorial that could help me in a way or another?
Dorin21 said:
I even tried to copy a status bar from a 2.3.4 rom ( droid 3 ) to my own build ( 2.3.4 droid 3 ) and did not work
I somehow need to edit the status bar, the interface, so that I create the space needed by my toggles and then add them
And after that I need to create a command file so when I click on wifi to turn it off or on for example, right?
Do you know any place for learning coding or some tutorial that could help me in a way or another?
Click to expand...
Click to collapse
You will need to use a decompiling tool such as APKtool. Then transfer the PNG files from the xperia systemui to the droid3 systemui. Make sure png file names are exactly the same on both systemui's or just rename them to match the droid3 systemui. Also make sure if you have lets say 400 png files in one folder make sure you have 400 at the end of your modding or you will have compiling issues and force closes!
Then use 7-zip to transfer the meta-inf folder to the modded apk file. Zipalign and boom you are done!
Droid Premium said:
You will need to use a decompiling tool such as APKtool. Then transfer the PNG files from the xperia systemui to the droid3 systemui. Make sure png file names are exactly the same on both systemui's or just rename them to match the droid3 systemui. Also make sure if you have lets say 400 png files in one folder make sure you have 400 at the end of your modding or you will have compiling issues and force closes!
Then use 7-zip to transfer the meta-inf folder to the modded apk file. Zipalign and boom you are done!
Click to expand...
Click to collapse
So if i understood corectly i'll have to do this
1. Decompile both apks with apktool .
2. Copy all the stuff from framework-res from xperia to my systemui ( or just for the status bar toggles )
3. Transfer meta-inf .
Question : if i transfer meta-inf folder i will copy and replace the original right ? And what is the meta inf actually ? (The command lines for each power toggle ? ( i mean what to do if i click wifi for example ☠)
4. Zipalign .
5. Replace the file in my unzipped rom ( should i unzip it normally or with apktool ) and then zip it and flash it
Dorin21 said:
So if i understood corectly i'll have to do this
1. Decompile both apks with apktool .
2. Copy all the stuff from framework-res from xperia to my systemui ( or just for the status bar toggles )
3. Transfer meta-inf .
Question : if i transfer meta-inf folder i will copy and replace the original right ? And what is the meta inf actually ? (The command lines for each power toggle ? ( i mean what to do if i click wifi for example ☠)
4. Zipalign .
5. Replace the file in my unzipped rom ( should i unzip it normally or with apktool ) and then zip it and flash it
Click to expand...
Click to collapse
Its a complicated process. It's hard to explain. Check to see if your device supports VRTheme. Go to the Themes section for your device and see if anybody has a theme that uses that system. If so that would make your life SOOO much easier!!
I want to edit my status bar style to iOS style by editing systemui.apk file ..how to do that tell me bro