[Q] editing miui theme and getting error - General Questions and Answers

hello,
i was trying to edit the miui theme according to my liking
this is what i did
i took the existing theme , extracted it.various folders are created which are present in the theme
i go to com.android.systemui , i made my changes and i re-zip them, and since now it has zip format and i rename them to com.android.systemui and now i select all the folders in the parent theme folder and re-zip them, change the format back to mtz . i get error in theme manager
i tried to be as clear as possible. sorry for being horrible here.
so basically i want to know how i can rezip android.systemui and the main theme folder back after editing without errors?
any help ?
thanks for your time

I THINK they've change the whole theming thing after 1.7.8.
But i'm far from sure since i haven't made any themes since 1.6.xx.
Sent from my HTC Desire HD using XDA Premium App

Related

[THEME] [HELP] Working on a modded theme, running into problems.

Everything seems to work fine so far, but I've hit a snag.
Here's what happens. I've made some changes to my rom. I'm on modaco's latest, I have theme with the battery percentage mod installed (can't remember which), but everything runs perfectly with no hiccups or hangups.
The problem I'm running into is with the battery icons.
Here's what I do.
1) Pull framework-res.apk from device(to keep my changes)
2) Pull battery icons from framework-res
3) Modify icons
4) Put icons back into framework-res
5) Push framework-res back to device
As soon as I push this back to the device, everything starts force-closing. Phone, gmail, launcher, contacts...everything.
I've made changes like this before and this has never happened. Am I doing something wrong here? Any help would be appreciated. I would like to eventually release this as a theme that people can flash.
try pushing the modded files while in recovery...
..never pushed framework-res.apk.
In recovery sounds good..
But why not makin a morph?..or you could do an update.zip.
i am assuming you rebooted after pushing the new framework-res.apk across?
Did you zipalign before pushing? I know CM zipaligns on boot after changes in recovery but can't remember for stuffed pushed across- i either just zipalign it myself or the easiest and best thing to do is what rori~ said- just make a metamorph- that way when the rom gets updated you dont have to change anything at all (assuming there are no xml changes)..
eg. i have been using the same CM metamorph theme i made since about 5.0.X and it still works on every nightly- i have had tyo remove xml edits etc as CM now does that itself but it makes it all so easy.
instead of using adb, try doing it the easy way with Metamorph. Basically you'll need to create custom pngs with the same name as the ones you want to replace in the framework-res.apk.
So get a copy of your framework-res.apk and rename it to .zip and unzip it. Erase all the folders where you have no custom images to push. You'll prob just end up with some nested folders like "framework-res-->res-->drawable-hdpi" or a similar last folder. Place the custom images in there, then just reuse this attached xml file, making sure to change the pertinent information such as the file structure to be the correct path so the images push to the correct folder when you apply it with Metamorph. Be sure to save the xml file with a reasonable name, then zip the xml and framework-res folder containing your custom images together. Make sure the zip has the same name as the xml file only with .zip extension or you may get an error.
From there install Metamorph. Load the zip you created onto your sd card inside the "android themes" folder. Launch Metamorph, grant su, then "unzip new theme", and "apply all".
Hope this is helpful. A bit longer than I pictured it, but easy to do. If you run into trouble just DL a couple ones other people did and it should become easier to figure out.
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
icegad said:
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
Click to expand...
Click to collapse
Awesome! Thanks a ton! I'll report back my findings...
Sorry, no such luck. Endless force closes and reboots. Bummer. I'll have to sleep on it for a day or two and come back to it.
If anyone has any ideas, please let me know.
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
icegad said:
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
Click to expand...
Click to collapse
That would be great, thanks!
morphed the icons onto my phoneno fc or bootloops here
see screenshot....(i have a black status so it maybe hard to see your icons )
only thing i can think of is.... dont know if you were putting your folder within the drawable-hdpi folder that can cause errors..put the standalone images only
and i went ahead and put the icons in the morph you so you can jus morph this zip >>>
http://www.mediafire.com/file/9ldnfsf4t894kz6/Framework_res_obama.zip

Revert back to stock font?

I just installed the incognito theme and love it but was wondering how to switch the font back to stock. Is there an easy way to do this?
Sent from my DROIDX using XDA App
I'm also intrested in changing up a few fonts? And font colors too. I've browsed around most of the apk files to see if anything stands out to me but no luck... Mostly .png image files. Which ive successfully modified. But can't seem to find straight forward answers floating around for fonts in the any of the forums.
Any help pointing to the right files locations??
Why would you want to go back to the old font
If you wanna do that, the best way is to repackage the Incognito zip file with the fonts you wanna use. You can do that by:
1 Extract the files in the .zip file to some location on your computer (there should be 2 folders and a file, I think).
2 From your extracted files, go to the font folder located inside the system folder
3 Replace the fonts in that folder with any fonts you want (in your case, you'll have to download the stock fonts from somewhere) and make sure that the fonts are renamed to match the ones before
4 Once that's done, repackage the files/folders as a .zip file by jumping back out to the location of where you originally extracted the files, selecting all 3 files/folders(ctrl+ click each one), right click and "send to compressed folder (zip)".
5 Put that file on your sd card and install it the same way you installed the theme the first time.
Sent from my DROIDX using XDA App
PS: Thank you Android gods for Swype

[Q] Restoring stock edit menu icons after theming?

Hey everybody, this is my first post here.
I recently installed Rubix Focused and the Linear theme for it. All is well and good except that some of the edit menu icons are themed and some are not. This really bugs me and I wanted to change them all back to the stock icons. I've found the icons inside of the framework.apk inside the linear theme zip, but when I replace them via 7zip and try to reinstall the theme, they aren't changed and my phone pretty much flips out.
Also some of the icons for other programs (Gmail, others) are also changed, I'm assuming whatever would work to fix the ones inside the framework apk would also work for changing out the icons in those specific apps.
So how do I go about doing this? I thought it would be a simple fix but I'm thinking I'm missing something during the process.
If you use the rubix zip u flashed...
Open it up with 7zip and pull ouy everything but the framwork-res.apk
Then reflash the new zip. I believe u can do this...read it in this forum somewhere...
Sent from my DROIDX using XDA App
Would I be reflashing Rubix's framework or the theme's (Linear)? The modified icons came from the theme installation.
Use the rubix framework if you want them to look like the stock rubix icons.
Sent from my DROIDX using XDA App
I replaced the icons in the theme with the icons I wanted and replace the framework file in the original theme's zip and deleted everything else, keeping the file structure to the framework file intact. It freezes whenever I try to install it now.
Grvyrds said:
I replaced the icons in the theme with the icons I wanted and replace the framework file in the original theme's zip and deleted everything else, keeping the file structure to the framework file intact. It freezes whenever I try to install it now.
Click to expand...
Click to collapse
What process and exact steps did you take to do this?
Sent from my DROIDX using XDA App
Alrighty, I ended up getting something to work. I used another simple theme mod's zip file and replaced the framework file with mine and installed fine. I'm guessing it had to do with signage or something.j Would life have been made easier if I used apk manager?
Yes, if you are just replacing images, apk manager would probably make life easier...
Sorry I didn't think to mention this before... was just trying to think of the easiest method to get you back to where you wanted to be in terms of look/feel.

[Q] Moving modified .apks to the same roms update

Hello so what I've got is this. I've modified some of the system .apks and the framework on my current rom well an update has rolled out and i was wondering how do i take those modded apps with me I've used zipthemer and cwm but i get a bootloop using zipthemer i had wrote my xml to install the entire .apk is this wrong any help would be greatly appreciated thanks
Use Super Manager to make a backup of all your .APK's on the device it will be under the .APK section in Super Manager around tab 4 or 5 i believe! Mount your SD card in your PC after the backup and push the backup .APK's to a new folder on your PC and do a fresh clean flash of the new ROM then push the .APK's back onto the device after you reboot! If this is not exactly what you are looking for feel free to elaborate a bit more im pretty sure i understand the concept you are going for!
That's pretty much what I'm aiming at only im talking about modified /system apks I usually wind up pulling the apps and framework and replacing the image files inside the new ones with the ones ive edited using 7.zip and pushing them back to /system/app or framework with adb but man that takes forever lol I guess what ive done here is created a system wide theme including system apps and framework but i dont know how to write the xml to push the images into the framework and apks through a cwm flashable
I guess im kinda looking for building a flashable theme something i can just flash after installing the rom update but I''m not really sure if what I've done is or could be considered a theme i guess it would be seeing as how it changes the look of the apps and framework its seems like I'm themeing the hard way
(btw typing while i think sorry if it doesn't make sense)
edit - but it seems like ive tried pushing the actual "old" apk from an older version to a new version of the same rom and it force closes
Sent from my Incredible 2 using xda premium
AHH yea now i fully understand what you are getting at... props br0... i for one have never used ABD to push system modified values back to the droid but i completely get what your doing. I assume the "old.apk" force closes because your modified values collide with the default values resulting in a source error, are you using some sort of hex editor to modify anything? or just extracting .png's and swapping? if swapping .png's only you should be able to extract swap and rebuild with success but im sure there will be bugs as this is open source of sorts! I'll take a look around and see if i can find anything structured towards this because i gotta tell you man that is something i have thought about taking on myself for a little bit now just haven't gotten around to it. Sounds easy enough to do what you are going for as does most things... until you put it into practice lol i'll have a look around br0
No I'm not using an editor just 7zip to open the apk and pulling pngs from old and placing them in the "new" apk and pushing it back to the system folder if you can download something like this from the market surely I can build one I think I'm just missing something
That would be awesome man any help further into this would be greatly appreciated and Ill do the same and post here
Sent from my Incredible 2 using xda premium
Nevaloud said:
No I'm not using an editor just pulling pngs from old and placing them in the "new" apk and pushing it back to the system folder
That would be awesome man any help further into this would be greatly appreciated and Ill do the same and post here
Sent from my Incredible 2 using xda premium
Click to expand...
Click to collapse
Download a apk editor just Google how to edit apk and you should find a nice set of script put together as a cmd promt.There extract the apk both old and new then replace the PNG files.After that repackage them using the script and also sign them as a system apk (there is a script for this too).After that just copy it to the folder you took it from or via ADB.I edited mine SystemUI.apk like this and now my status bar is exactly like the one in ICS
Sent from my LG-P350 using xda premium
This sounds like what I do with with 7zip i keep the drawable files ive edited on my cpu after a rom update i pull the new apk and open with seven zip and just drag and drop what I've edited to the open res
push back reboot success
Sent from my Incredible 2 using xda premium
Nevaloud said:
This sounds like what I do with with 7zip i keep the drawable files ive edited on my cpu after a rom update i pull the new apk and open with seven zip and just drag and drop what I've edited to the open res
push back reboot success
Sent from my Incredible 2 using xda premium
Click to expand...
Click to collapse
Yeah but i think you need to sign them too in order for them not to FC and yeah rebooting after you pushet them is a must
Sent from my LG-P350 using xda premium
O no no they don't force close doing this at all
they only force close when I tried pushing an "old" apk to the "new" rom
If you pull the new ones and change with 7zip and push back they're money
I really just want to build a flashable theme zip so I don't have to pull all kinds of stuff after an update
Just a simple flash maybe even something i could deploy onto another inc2 but I'm really not sure if that's possible because of the amount of changes done to multiple apks and framework
If you guys would like to see screen shots ill post some just for fun I've done alot of work
Sent from my Incredible 2 using xda premium
http://forum.xda-developers.com/showthread.php?t=1111476
you can have a look at this
Thank you for the link but I'm not using apktool to decompile apps I'm just editing .Png images and putting what I pull from the phone back on the phone like a theme would but I'm not just editing the framework-Res I've "themed" 6 or 7 system apks aswell but I have done zero XML editing to anything
From my Inc2 Nevaloud V2.6

Adding my own 1% battery icons

So as in my earlier thread I have moved back to eagles blood 4.0.4 AOSP rom. One of the drawbacks is that the hdpi drawable folder in my systemui does not have 1% icons. I've read a few tuts on how to make my own....or add them from a downloadable zip.
My question to those who are more knowledgeable about development is this: will opening the drawable hdpi folder from my systemui.apk with 7-zip and replacing all my stock sys_batt PNG images with the custom 1% images and then saving those to the folder and pushing the systemui.apk back to my phone do the trick?
Sent from my LG-P999 using xda premium
Pain-N-Panic said:
So as in my earlier thread I have moved back to eagles blood 4.0.4 AOSP rom. One of the drawbacks is that the hdpi drawable folder in my systemui does not have 1% icons. I've read a few tuts on how to make my own....or add them from a downloadable zip.
My question to those who are more knowledgeable about development is this: will opening the drawable hdpi folder from my systemui.apk with 7-zip and replacing all my stock sys_batt PNG images with the custom 1% images and then saving those to the folder and pushing the systemui.apk back to my phone do the trick?
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
Should add long as those are referenced (I think in the xml, but then, I have never done this myself). Would need a nandroid for sure .
-- The noob says:
From first-hand experience, a smartphone is incapable of making you smarter!
Nope, they're not. I have to manually reference them in the sys_bat icon XML file located in drawable folder. Then I have to swap in the images in the drawable hdpi folder once they're referenced. However, I'm having issues. Once I extract the files from the apk with 7zip, specifically the drawable folder to get to the sys_bat icon XML file, I cannot open it in notepad++ to edit it. I'm getting an error. Any ideas mansa?
Edit- LOL nandroid was the first thing I did!
Now I have to crank out this stupid paper for class so I can continue tinkering with my Android lol
Sent from my LG-P999 using xda premium
Ok, So I've come to learn that in order to edit XML files within the APK, that the APK needs to be decompiled with APK Tool, not simply extracted using 7zip. I downloaded APK tool and set everything up according to this tut----> http://forum.xda-developers.com/showthread.php?t=1989533
I have the APKTOOL folder placed on the root of my C:/ drive. Inside that folder I have placed the following aapt (the apktool exe or application file), apktool (batch file), apktool.jar, and my framework-res.apk (I know I need to use systemui.apk, I'm just using this as I follow the tutorial on how to get this program working before I try anything on my own files). When I get to the command c:\apktool>apktool if system.apk to install the APK on my system so I can decompile I get an error saying it's not a recognized command. Any ideas dev-friendly users?
So I realized I didn't have the JDK installed on my pc since I did a system wipe on it the other day. Reinstalled it but it's still not working. Very frustrating. I'm also using win 8 if that means anything.
Giving up on apktool as I cannot seem to get a way around the error. However, apk manager seems much more user friendly and have seen tuts using the program specifically for ics roms. I've only seen tuts for apktool using jelly bean roms so maybe that's the issue. I won't be home until late tonight as I have class. If anyone has any tips/suggestions please let me know.
Sent from my LG-P999 using xda premium
Not that many people are in here anyway but I figured I'd give it a shot. So I went to use apk manager instead of apk tool which seemed to be a much more "newb friendly" program. I can successfully decompile my framework-res.apk but cannot decompile my systemUI.apk afterward. I get an error....here's my log if anyone can help me with it:
EDIT- deleted log as I was able to decompile systemUI with a different apk program. That was a huge headache getting it to decompile. Now editing the XML should be no problem, along with swapping out the PNG's. Recompiling on the other hand will most likely be another headache!

Categories

Resources