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
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.
Hi guys
as the title says, how can I change the background (often blue one) when you view the settings, contacts, etc?
I know it's something about the framework-res.apk, res/drawable-hdpi/semc_bg.png. But I think there's more to edit.
I've got the image to change, my problem right now is what respective files to change in the framework-res. and also how to install it to the phone
Can someone help me? a nice step-by-step process will help me alot, especially for a big noob like me
Thanks a lot, in advance
Replace the semcbg.png file in the semcgenericUxpres.apk
Sent from my X10i using xda premium
Thanks dude ^^ You sure it's this one? none at framework-res? how to edit it , and bring it back to the phone?
there has 2 option to do this..
1-use PC/laptop (winrar/7zip,,,and the new image)
2-use your phone (root explorer,,and the image)
with pc/laptop edit the ***.zip (rom) file
just replace all of semcbg.png every where I mean on framework-res.apk
and other framework (i'm not sure which rom and/or sometime other rom has extra framework-res.apk) (that why u i told u to replace all of this thing)
and for the update also
(maybe u use it...like 'screenshoot.zip' it containing it own framework)
goodluck buddy!
semc_bg.png is located in two files, framework-res.apk and SemcGenericUxpRes.apk. Location for that two files is system/framework. In each of that two files u have two semc_bg.png backgrounds, for normal and for landscape mode. Location of that backgrounds in each of previous .apk files is res/drawable-hdpi and res/drawable-land-hdpi. U can edit apk files with 7zip on ur PC.
Enjoy!
Thanks guys!
for example, I finished all the editing stuffs
How will I put it back to the phone? since it is an .apk, will I install that thru package installer? or what? just put the new edited framework-res.apk/semcgenericuxpres.apk in the phone, and reboot and the effects will take place?
You will need to use Root Explorer. Follow these steps:
Make a backup of the original APKs frst!
Copy the edited APKs from your SDCARD to your /system folder. (Yes, the "/System" folder)
Use Root Explorer to set the permissions to RW-R--R--
Once the permissions are set, CUT the files and paste in "/system/framework"
It will ask if you want to overwrite, go ahead and overwrite the files.
Reboot.
Or find empty flashable zip file,put framework files in it and flash via xrecovery.
Sent from my xperia "z10i"
neoxx3m said:
Sent from my xperia "z10i"
Click to expand...
Click to collapse
Which ROM is that? Did u get a port of the Walkman Z onto the X10?
Hi. I just wanted to write a guide on modifying apks. You probably have seen my rom in the ported section.
(I'll make the guide look better when I get home)
Well lets get started.
1.
First. An introduction to what an apk is. An apk is (believe it or not) a zip of files.
2.
So how do you go about editing a zip? I suggest using 7z on your computer or root explorer on your phone.
Second: there are a lot of apks you can edit but for this guide I'll be using the systemui.apk that you find in any rom in the system/app folder.
3.
Ok. So assuming you start with the system ui apk your going to need to extract the apk with 7z on your computer. (or root explorer on your phone. Es file should work also)
4.
Now you should have a new folder where you chose to extract your apk. Open that folder. Your going to see a bunch of files. What your probably going to be interested in is the res folder. Go into that folder and find the drawable hdpi folder. Open it.
Your going to see a lot of icons. Here is where you can change things like wifi icons. You can add 4g icons and so much more. Even edit what your contacts look like.
5.
This is an important step. Make sure your using the system ui apk from the rom your currently on or make sure its compatible with yoir rom.
Ok so now we get to the things like icon changes. Download a theme you've been dying for but couldn't get because it was either for another rom or phone. And the only thing you wanted was a few things from the theme.
Now extract that zip. Then extract the systemui.apk again from the zip you want your icons to look like. MAKE SURE YOU RENAME THE THE SYSTEM UI TO SOMETHING DIFFERENT SO YOU DON'T MIX THEM UP.
6.
So now that you got the system ui apk with whatever you want to use all you need to do is go into the drawable hdpi of the one with the icons you want in it. Copy them and bring them to your roms stock system ui and replace them.
7.
Thats about it. Now zip your roms stock system ui back up and change the ending to .apk. Then put it in system/apps and replace it. Reboot. And boom. Your modded apk is ready.
Hit thanks if I helped.
for step three rename the. apk to .zip its easier
This can only be used for replacing regular images in the APK. There are many images that are .9 images which require decompiling.
There are MANY guides across xda that go into detail and show you the proper way to modify APK's..... There is much more then images.
This one is even in this forum: http://forum.xda-developers.com/showthread.php?t=1388459
OK so I decided to write a tutorial with some hints on how to make a Sense 3.6 theme. This may also work on Sense 3.5 but I don’t have it to test it. This is done on Windows 7 64bit, but it should work similarly on earlier versions of Windows.
What you will need
M10 Tools
APK Multi Tool
Photo Editing Software – I use Photoshop AND Fireworks but Gimp will also work
Notepad++
Latest java and adb
Patience
Creativity
Please follow the instructions for proper installation of all of these tools on their respective page.
Download my basis theme
Copy the file into the place-apk-here-for-modding folder
Open the script
Option 25 – Set Current Project
Choose the basis theme
Option 9 – Decompile
Go to the Projects folder
Go to the com.htc.skin.rachelm920_basis folder
Go to the res folder
Drawable-hdpi and drawable-land-hdpi have the images. Values has the .xmls
Make any image edits you like. Also make and .xml edits you like.
I typically take the images in this folder and separate them based on the type, making several folders for different things like “pressed”, “focused” , “normal” “black” etc. Then whatever I changed black to I also change any references to 000000 to the color I changed it to. I do the same for the other colors. Make sure you keep the black lines on the .9 images. I usually use the “magic wand” to select the black borders and then do an invert selection so I select the rest of the picture. Make sure you move all the images back when done, and delete the folders.
Choose AndroidManifest.xml and open it with notepad++
Under where it says package=”com.htc.skin.rachelm920_basis” change the rachelm920_basis to what you would like your theme to be titled
Open M10 tools – M10Editor.exe
Click Load file
Browse to Projects\com.htc.skin.rachelm920_basis\assets\rachelm920_basis\drawable
Make sure the file type is m10 file
Choose shared.m10
Click on the m10 files tab
Check the Decode images box
Click Decompile/Show
In the editor tab select textures then texture
You should see a picture on the right
Right click on the picture and choose show in explorer
Make any image edits you like. I do the same process here as I did in the other folders.
In M10 tools click on the start tab
Click Save File
Close the M10 tools
Browse to projects\com.htc.skin.rachelm920_basis\assets
Rename rachelm920_basis to your skin name
In the Image folder, put a wallpaper you would like your skin to have as wallpaper.jpg replacing the one already there
This folder also contains the theme previews which are impossible to achieve unless you have root and a screen print program AFTER you install the theme on your phone.
Go back to APK Tool
Choose 11 - Compile
Is this a system apk? No
Would you like to copy over any additional files that you didn’t modify from the original apk in order to ensure least # of errors? YES
Go to the keep folder
Delete resources.arsc, the rachelm920_basis folder, wallpaper.jpg, and all of the images in drawable-hdpi and drawable-land-hdpi folders
Go back to APK Tool and press any button
Choose 12 - Sign apk
Go to the place-apk-here-for-modding folder. There should be a file called signedcom.htc.skin.rachelm920_basis.apk. Rename it to your theme's name. You can remove the word "signed" also.
Copy to the SD Card on your phone, browse using a file explorer and install.
If you have problems recompiling make sure that all of your .9 images have the black borders. Check the log file, it usually tells you what you did wrong.
Some good websites –
http://www.colourlovers.com where I get my color schemes from
http://www.color-hex.com a good hex site and also gives you color schemes based off of one color.
PS - The basis theme does not look good, it is just a basis to use to create your own.
Open for me
question, does this make a theme or a skin?
Skin sorry I worded it wrong
Sent from my customized Amaze from tapatalk
Guess I'll be giving this a shot other than my typical theming methods, thanks.
Wow I had been looking for something like this for a while. thanks
M10 tools
Can't get M10 tools to install, any direction you can give me?
Calabrese1984 said:
Can't get M10 tools to install, any direction you can give me?
Click to expand...
Click to collapse
You need a net.4 framework installed.
Red.
M10 tools
I do have net.4 framework installed.
Calabrese1984 said:
I do have net.4 framework installed.
Click to expand...
Click to collapse
Then what do you mean it won't install? You have to extract the zip file and run the .exe file inside it.
Sent from my PG86100 using Tapatalk 2
Thank you, I got it!
Thanks for good guidence
Lost
2.Copy the file into the place-apk-here-for-modding folder
3.Open the script
Where can i find the folder? how about the script? Sorry, noob...
cordz said:
2.Copy the file into the place-apk-here-for-modding folder
3.Open the script
Where can i find the folder? how about the script? Sorry, noob...
Click to expand...
Click to collapse
Both the script is at the root of apkmanager. The the folder referred to is the /place-apk-here-for-modding/ folder, also in the root of apkmanager.
Sent from my EVO using Tapatalk 2
why am i getting this(see attachment)
and also in step16 there is no assets file ?!?
How
Help.Bro how do i rename a sense theme and isntall it twice?
the basis theme's download link is gone
please give me a substitution or a solution
New link is up... still had it on my laptop Happy theming!
HELP
please I need your help
I didnt understand step 2
where is this "place apk here for modding after"?
stevenson97 said:
please I need your help
I didnt understand step 2
where is this "place apk here for modding after"?
Click to expand...
Click to collapse
In the apk tool it should have made several folders
Sent from my gorgeous Galaxy S3