[Q] [help]how to resize png - General Questions and Answers

please help me how can i extert .apk and resize png??

Hello @ImRm
To do the following you'll need two types of tools. One being a reasonable image editor and the other being an .apk decompiler.
Firstly you need to know what you want to decompile, where this is a system resource or an average app. Go ahead and download an apk decompiler. There are many on xda but I use Quickmod as its the simplest.
Link to thread to download tool - http://forum.xda-developers.com/showthread.php?t=2536073
Once you've downloaded it, open the tool and installed the required framework and files for it to decompile and compile properly.
Once done, decompile the apk and head into the projects resource folder. It's labelled as "res".
You will then have to find the image you are looking to edit, using an image editor open the .png file and select the full image. Then just make the image larger with the small points at the end. And then just reposition the image into the center. Also you may need to refine the image after the resizing of it as pngs are used for transparency like images.
Sent from my Nexus 5 using Tapatalk

Related

[GUIDE] Newbie's How To: Port Theme's

How To Port Theme's
(Using Apktool, and Theme Porter)
Since there are some people out there willing to learn but not exactly able to with all of the convoluted information on the forums, I decided I'd start putting together a guide similar to other's to aid those trying to learn. Stay tuned as this is under construction!
All credit is due to original creators of the product's used in this process, without them there wouldn't be a reason for this guide . Please be respectful of other's work, sometimes it's best to ask before attempting (if it is an original product) but at very least give credit and a link back.
What is porting?
Porting very basically is taking .png files and XML changes from one theme (typically created for a different model, but using the same resolution) and copying them into deodexed stock rom's such as EC10/EE19 Pick and Pack so that they can be flashed onto our phones and used with our framework and/or updated framework.
Sounds really easy, doesn't it? At first it will be cumbersome and frustrating, but after you've used the processes enough you will be able to snap these out in 30 minutes or less! The problem lies in the way these files are packaged, they are mainly just a .zip file that isn't compressed, however there is another layer to an .apk that you can only see once you've learned how to use tools such as apktool/apkmanager. The other tool we will use to aid us in this painstaking process is an application called Theme Porter, which essentially is a script that has been written that will do all of the legwork for us. Let's get started!
What will I need?
Apktool I currently use an older version of the program, you can download here, this one I know works for sure - last I heard the other has issues.
ThemePorter
7zip (Win rar could be used instead)
Notepad++ (Or equivalent code editing software) which will be used to make the xml changes. If you're not familiar with using something such as this, you may want to take time to research before attempting to port.
How to set up;
Begin by getting ThemePorter setup, you just need to unzip the download and that will be "theme porter" It is basically just made up of a few folders, and has a batch script that you will use to initiate the process. I just place mine on the desktop for easy access.
Secondly, get apktool downloaded and unzipped. place the apt folder somewhere where you can easily navigate to it through a command prompt. C: might be a good place if you want to save yourself some keystrokes.
Next just make sure you have notepad++ or another editor installed for use later.
Lastly, get 7zip installed so that you're able to open .apk and .zip files without actually extracting the files.
Where do I get my source files?
You can use any framework from any rom that can be decompiled correctly with apktool. This means when you decompile it, there are no errors and it generates a folder with the same name. Download the rom of your choice and save it (still zipped) somewhere on your desktop, and make an extra copy in case you mess up and overwrite the wrong files. You will ALWAYS use these in the NEW folder within theme porter, but we will get to that.
As for the theme you're trying to port, I usually use fascinate theme's, because it is basically a direct copy of our phone (Note: As of 2.2 they now have a Data on/off icon in their status pull down, where we have Silence, so this will often need to be taken care of separate from this process.) I've also recently started using Vibrant theme's, as these are also very similar - but there are tweaks with these too and I will try to cover them in the guide at some point. You may find others that will work too, at this point this is all I've had time to mess with. Either way, download the .ZIP file and also place it somewhere easy to access.
This is where it get's sort of difficult.
Stock ROM's have some differences to theme's that theme porter cannot handle for you. These are basically MOD's that may exist in the theme ROM and/or XML changes that have been made to alter text color's to accommodate the theme (black to white, white to black, etc.) These changes WILL NOT be ported over using theme porter and unfortunately also cannot be made AFTER using theme porter, so there is a certain process to go about this.
Now enter's apktool. Apktool is a script brut.all very kindly wrote to assist android developers in decompiling/recompiling .apk files without losing structure that normal compression software breaks. Basically there are two reasons you will need to take this step.
When;
Editing Text Color- When choosing a theme to port you will need to pay attention to the screenshots the original poster has posted, as these will clue you in whether or not this needs to happen.
The Pick and Pack rom is essentially still stock, as far as XML goes - so the text on menu's for example, will be Black text on a white background. If the theme you chose has something different, you will need to take this step so that the text is legible in the final theme.
Adding accurate battery MOD- Also when choosing a theme you will need to take a look at the framework-res.apk file to determine if the themer has added the accurate battery mod. Essentially all this means is the XML and image's have been edited to show you each percentage of battery life vs. the stock one that only shows odd increments of 10/15/20.
Open framework-res.apk with 7zip
Navigate to res/drawable-hdpi (this also may be drawable-hdpi-v4 depending on your theme, I haven't quite figured out why this is)
Scroll down until you see the status_battery icons near the bottom - if there are not images for every percentage - then no mod exist's and you can skip using apktool for this step.
How;
For either change you will follow this process to decompile To gain access to the XML/PNG files that contain these text values, we will need to decompile the framework-res.apk file from the rom.
Copy framework-res.apk from the rom and place in the APT folder created earlier.
Rename this to something shorter such as "FW.apk" for easier command lines
Start a command prompt (in windows 7 type "cmd" in the search bar within start menu)
Navigate to the APT folder, For example;
Code:
CD c:\Users\brandon\Desktop\apt
Type
Code:
apktool d FW.apk
This will decompile the .apk into a folder called FW within the APT folder, allowing you access to the files. I will cover the actual changes in a later post.
At this point you have the files in a folder and they can be edited how you see fit (should you choose to just edit the stock ones vs. actually porting already changed ones).
You'll notice when examining the folder that there are quite a bit more files. Also, you will be introduced to the .9.png file type, which essentially is just a .png file that has some black lines embedded in the file to instruct android how to resize and reuse the image within the framework.
Any edits made to these files must be made carefully, as to not alter the integrity of these black lines. When the file is recompiled, the lines will disappear but will be included (if you tried doing this without decompiling - your photo editor would nix these lines and android wouldn't know how to size them)
If all your edits were complete, you would then recompile the file through apktool. (I will continue with the theme porting guide in the next step, this is just a good reference point for these steps.)
Type this into the command prompt
Code:
apktool b FW framework-res.apk
This would then create the framework-res.apk file in the APT folder, however there is an important step here. During this process the META folder is lost, and the AndroidManifest file is corrupted.
Delete the AndroidManifest.xml file from the new framework-res.apk
Copy the META-INF folder and the AndroidManfiest.xml file from the ORIGINAL framework-res.apk (now named FW.apk in this example) and place it in the new framework-res.apk using 7zip (do not extract the file, open the archive with 7zip.)
At this point, your framework could be ready for replacing in your theme.zip (will be covered later) with the edit's you've made Or if you're learning how to port theme's, continue reading.
Guide Part 2....
Preparing for Theme Porter
Okay now that we have some of the side process out of the way, let's get back to the guide.
Determine if you need to make any XML edit's for battery or text color changes and perform them per the processes detailed below. If you do not need to make them, you may skip this step completely and move on to using theme porter.
Correcting Accurate Battery Mod Animations-
Follow this guide to make the changes to the framework to use the new charging animation images and will allow you to then use theme porter to swap the .png files
Decompile the framework-res.apk from the ROM download (I usually just rename this to EE19.apk or whatever the rom is i'm working with)
Decompile the framework-res.apk (I first rename the framework-res.apk file to NEW.apk (or whatever you wish) Note: It will typcially give you errors (unless it's theme'd correctly) but you're just after some code from a few .xml files so don't worry.
In the NEW folder Navigate to
Code:
\res\drawable-hdpi\
or
\res\drawable-hdpi-v4\
Copy all of the battery charging .png's and drag them to a folder on your desktop. Then open the EE19 folder within APT (the one you decompiled from the rom you're working from) Drag those images into the /res/drawable-hdpi-v4 directory replacing any existing ones.
open the following file in notepad++
Code:
\apt\NEW\res\drawable\stat_sys_battery_charge.xml
Also open the same file within the EE19 decompiled folder
In the THEME xml file select all and copy
In the EE19 xml file, paste this replacing the text. Then save it overwriting the original.
At this point, the battery mod is done and the new .png files exist so that theme porter can do it's work (And the xml is there to make it works when it get's to your phone). If you don't have any text edits to make, you can recompile the apk (as stated in steps in first post) and move on to steps below (skipping the section on changing text).
Changing text colors-
If you have determined that the text in the theme is different from the rom framework (I.E. Text on notifications, menu's, etc.) then you will follow these steps to locate where these changes need to be made.
If you haven't already, decompile the framework-res.apk from the Rom.
Next, determine what text color edit's you need to make and then use this wonderful reference to determine which actual files those edit's correspond to.
Locate the file you need to edit in the decompiled folder, and open it with 7zip.
Typically removing the "inverse" reference on the color line will change it from black to white, or white to black and is the easiest/best way to alter colors in a ROM. (For a quick note, searching for "menu" in the styles.xml files located in /values/ will give you the items you need to change, watch for _bright references for the dividers, change those to _dark instead.
Once you are done making these edits, recompile the folder as stated in first post. And move on to using theme porter.
Using Theme Porter-PAY CLOSE ATTENTION HERE.
Now that you have the appropriate prep-work done, the easy part finally comes. (Hopefully)
Copy and paste the applications & framework-res.apk twframework-res.apk files from the THEME.zip into the appropriate folders within the OLD folder in theme porter.
Now copy and paste the same files that you copied from the theme.zip, now from the rom (EE19 for example) to the NEW folder in theme porter.
Once all files are in appropriate folders, run the Script.bat file in theme porter. Use a selection of "1" and press enter.
Theme porter will now copy all of the .png files from one .apk to the other (where the folder names are an exact match)
NOTE:At this step, you may have issues where the images aren't brought over (This typically only effects the framework files and just depends on how the file was generated/edited). This can be detrmined by opening the .apk in 7zip and pulling out the res folder, where you can view the files (you will see if it's been changed or not) If it hasn't, you will need to make sure the folder within the Themed .apk's are the exact same as the ROM you're themeing and re-run the theme porter script. (meaning you need to add or remove the -v4 ending depending on where the previous themer placed the themed files)
If you're lucky, everything is done at this point and you can move on to packaging a flashable update.zip.
Packaging A Flashable Update.Zip
A flashable package is simply a .zip file (stored as "store" in 7zip, no compression) that is made up of META-INF and System folders. The META-INF folder is very important as there is a big difference between using one from a ROM (pick and pick) and a theme (NeonGT) You will need to download a theme and pull the META-INF folder out so that you can use it in your theme ports. This is to ensure you have the correct script (edify or ammend) typically now we're using edify so use one from one of the H57 theme's via baked_tator The system folder should contain two folders "framework" and "app" each of which will hold the respective .apk files you have been working with. (but could also contain a "Media" folder for changing bootanimation.zip files, basically any files within the folder structure you create (matches the system structure) will be replaced when flashed. So be careful not to include things I haven't listed here unless you know what you're doing. And be sure to test these things before even thinking about a release.
Create the following folder that can be re-used with any new theme port, it's the easiest way to keep things organized and not lose track of files.
Create a new folder on your desktop called New Theme
Within that folder paste in the META-INF folder from another EE19 theme.
Create a new folder called "system"
Open system and create two new folders "app" and "framework" (and "media" if you are including the bootanimation.zip from the theme (which typically will work on our phone)
Place approprate files from the NEW folder within theme porter into these folders, respectively
Back up so that you see the META-INF folder and System folder, select those two, right-click and select "add to archive" in the 7zip menu.
Name the file "EE19 ThemeName VX.zip" and select "Store" for the method
Drag this to your desktop and this will be what you will place on your SD card for flashing.
Test the theme thoroughly to make sure everything ported over and everything still works (make sure to test USB, even color XML edits can cause odd issues) and get help from others to make sure the bugs are out.
If you run into issues, check the next post for possible resolutions.
BE SURE TO CREDIT THE PROPER CREATORS!!! I can't express this enough, I have a format for the way I do release posts, feel free to copy it if you'd like but either way make sure you make it known that it's not your work!
FAQ / Common Issues / Other Resources
Common Issues:
Images do not transfer to new framework.apk files.
(typically the applications all have the same folder names, so no problems occur here.)
As stated in the guide, all folders within each res folder within each .apk file used in theme porter must have exact matching folders/files for the .png to actually transfer. If it's been edited with apktool, it typically has the -v4 extension.
Troubleshoot your issue by opening the resulting .apk file in 7zip and comparing to the downloaded theme file in 7zip. You may have to pull the res folders out and look that way to actually see which images didn't transfer.
First thing to check is the folder names within the res folder, if the rom folder's names are "drawable-hdpi" and "drawable-land-hdpi" and the theme has "drawable-hdp-v4" then you need to remove the -v4 from those folders and run theme porter again.
NOTE: I've also run into situations where both folder's existed in the .apk file, meaning both drawable-hdpi and drawable-hdpi-v4 folders were there, but only one actually had the themed .pngs. In this case it was the drawable-hdpi folder that had the themed ones, but I needed it to be -v4, so I deleted the existing -v4 folders and renamed the others to -v4 - this also slimmed the rom because you really don't need the extra folders/files (nor wan't them!)
Some times icons don't exist on other phones, or they are completely different icons. I.E. with 2.2 fascinate theme's the Silence icon does not exist and therefore would need to be pulled from another theme or created to be fixed. This can be done with 7zip, no need to decompile the file if you're just swapping .png files (in the final framework-res.apk .
[*]Problems after testing theme.
This has happened to me on all sorts of levels;
Problems Restoring - Sometimes after testing theme's you'll go to restore and things will not be right when you boot, FC's and whatnot. Best case scenario you can restore to a vanilla restore (meaning your rom + any app's you wanted, but no theme's) or just flash your rom to fix.
Problems with icon's not being correct on a restore or a flash.
Same as above, sometimes things just go awry when you're flashing theme on top of theme, so i'ts best to start from the rom. Make a restore point with your rom + all your apps, then you can always go back to it and flash your day to day theme - this will give you the least trouble.
Phone stuck in airplane mode, setting is disabled.
I had this happen to me randomly once, no idea why but if you do run into this the only thing that fixed it for me was an odin back to a full build. No restore or flash would fix it. Typically your problem should be solved with a fresh flash of your rom, but sometimes going to a full build with odin is the only way.
FAQ:
Post them and we'll get them answered and edited in here. So far I've tried to cover everything I knew of in the guide .
Reserved
Reserved
Reserved
Other Resourcs:
Great guide by nitsuj17 on how to theme
Hex Colors
Free Photoshop Alternative
XML Color Edit Guide - in case you missed it above - credits to KBanause
wow, you rock bde. thanks for your time and help with this, I will be following it to help you guys out with stuff more.
Sent from my SCH-I500 using Tapatalk
sageDieu said:
wow, you rock bde. thanks for your time and help with this, I will be following it to help you guys out with stuff more.
Sent from my SCH-I500 using Tapatalk
Click to expand...
Click to collapse
Great, and thanks, I'm glad to share what I've learned with the community
Great write up,ive read through it several times. Just wish I hadn't traded my desktop for tattoo work this weekend. ..
Sent from my SCH-I500 using Tapatalk
man you write some good tutorials...
Very thorough and still easy to understand, Great work!!
Very nice! Just fixed the white on white text in my super light port. Big Thanks!
Great write up!
So, I tried using apktool to decompile the framwork-res.apk and it worked fine, recompiled it and everything was good, are these the same steps I would use for other APK's such as in the apps folder (i.e. Settings.apk) because I cannot get them to work I keep getting brut.androlib errors
bwot75 said:
So, I tried using apktool to decompile the framwork-res.apk and it worked fine, recompiled it and everything was good, are these the same steps I would use for other APK's such as in the apps folder (i.e. Settings.apk) because I cannot get them to work I keep getting brut.androlib errors
Click to expand...
Click to collapse
Usually if you get errors in compiling there have been things added or removed after compiling, this is sometimes caused by using theme porter for example.
Apktool works on any apk, but i'ts fussy about what's there before it recompiles. Try decompiling and recompiling with no changes, if it doesn't work then it won't work on that .apk (to my knowledge). You basically will always need to start with one of the deodexed apks from phidelt's pick and pack, then add changes while i'ts decompiled, then run theme porter after it's recompiled if needed.
And glad you all appreciate it
I vote sticky on this how-to...very good write up and it makes my life easier!!!
Definitely sticky
Sent from my SCH-I500 using XDA App
Thanks for the good reading bde. great tutorial.
Hey thanks, glad to share the wealth
Sent from my SCH-I500 using XDA Premium App
I followed this guide and made XML editing for Framework-res.apk to change font colour in the Menu using Notepad++, but after xml edit, cant build the framework.apk, it says sources have changed and does not build the apk. Am using apktool for this. Any suggestions how to go about it. Or somebody can guide, how can I change the menu background so that Menu texts are visible?
trip007in said:
I followed this guide and made XML editing for Framework-res.apk to change font colour in the Menu using Notepad++, but after xml edit, cant build the framework.apk, it says sources have changed and does not build the apk. Am using apktool for this. Any suggestions how to go about it. Or somebody can guide, how can I change the menu background so that Menu texts are visible?
Click to expand...
Click to collapse
As stated in an above post, try decompiling the framework-res.apk you are working with - without any edits and see if it will recompile with no error. If it doesn't then re-read my guide
Ok thanks will check it.
Never mind, I figured it out.
Sent from my SCH-I500 using XDA App
I did some major fixin' on the OP, hope it's more clear!

Modding the sense 3.0 (step by step directions needed)

I love all the beautiful modified skins of Thypancy's intial theme. Is there a post where we could learn to mod these themes. too. I have 4 in mind that I would like to make or have modified, but i would rather learn how to do it myself. Can someone point me in the right direction.
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
mathrania said:
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
Click to expand...
Click to collapse
Thanks for the Info!!!
mathrania said:
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
Click to expand...
Click to collapse
cool man.....
Jst one thing attach the base file that one must use to decompile so that he does not have errors while re-compiling
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package).
2. Res\values\strings.xml (name of theme).
3. Assets\shared(change this to theme name)
Now compile and then edit
lalitsehgal21 said:
cool man.....
Jst one thing attach the base file that one must use to decompile so that he does not have errors while re-compiling
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package).
2. Res\values\strings.xml (name of theme).
3. Assets\shared(change this to theme name)
Now compile and then edit
Click to expand...
Click to collapse
I tried this but instead of pngs, i'm getting dat files in the "\\\drawable\shared" folder? Is anyone else having this problem?
keedog said:
I tried this but instead of pngs, i'm getting dat files in the "\\\drawable\shared" folder? Is anyone else having this problem?
Click to expand...
Click to collapse
no after using m10 editor u'll play with dat files only best part is inverted
lalitsehgal21 said:
no after using m10 editor u'll play with dat files only best part is inverted
Click to expand...
Click to collapse
What???? I'm way confused by that last sentence.
keedog said:
What???? I'm way confused by that last sentence.
Click to expand...
Click to collapse
he means, that the images you would like to EDIT would be inverted(up side down kind of) already...... the way it looks in your android phone...it wd be inverted
keedog said:
I tried this but instead of pngs, i'm getting dat files in the "\\\drawable\shared" folder? Is anyone else having this problem?
Click to expand...
Click to collapse
In the m10 editor, on the second tab "m10files", select "decode images". And then start the process.....
I have attached an .apk file. Install it on your sensation, apply the theme to your mobile. Observe the stuff. Then try to decompile the same file, and edit the images to your choice. It will help you to recognize what files you should change to get your desired result.
mathrania said:
I have attached an .apk file. Install it on your sensation, apply the theme to your mobile. Observe the stuff. Then try to decompile the same file, and edit the images to your choice. It will help you to recognize what files you should change to get your desired result.
Click to expand...
Click to collapse
Thatz a pretty nice one, and i like how u pointed out all the pages with text. thanks again.
mathrania said:
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
Click to expand...
Click to collapse
I have all the pngs replaced and the its back in a apk, but now I don't see a autosign file in the sdk folder. am I looking in the wrong place?
This is the Android-sdk (along with java jdk) that i downloaded. I can't find a autosign file anywhere.
i found the autosign bat fle. but now im getting errors.
question: how/where do i change these?
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package). how do u change this?
2. Res\values\strings.xml (name of theme). how/where do u change this?
3. Assets\shared(change this to theme name) h0w/where do u change this?
---
also when I replaced the background image, and he skin png, they resorted back to the original and didn't keep my background image nor skin pmg.
Sorry to hijack, but how would I change the dock/nav bar?
Sent from my HTC Sensation Z710e

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!

NHA NI2 System APK's Made so you can theme. QMG's, IPT's & PKM's converted to PNG's

NHA NI2 System APK's Made so you can theme. QMG's, IPT's & PKM's converted to PNG's
Once again Samsung has made it so we cannot change the images on our S5 when theming. I have taken several of the System/apps and privapps and I am the process of making them able to theme. I do so by replacing the QMG, IPT & PKM image files with PNG image files. I am not able to do them all, but managed 95% of them. What we need is a program to convert QMG, IPT & PKM to PNG's. Or at least be able to edit the new images. This is very time consuming LOL!!!!
Let me know if I missed any you want done.
Enjoy Themers!!!!
All APK's are Deodexed Only!!!!
Download: Samsung S5 NI2 Framework-res, SystemUI, SecSettings
Download: twframework-res.apk
Download: Keyguard.apk
Download: SecDownloadProviderUi.apk
Download: SecCalculator2.apk
Download: Samsung Camera3.apk
Download: SecGallery2014.apk
Download: SecMms_Blue.apk
Download: SecTeleService.apk
Download: InCallUI.apk
Download: SecEmail_K.apk
Download: ClockPackage.apk
Download: SecContacts_Phone_FLAGSHIP_USA (ASU themed) do not have stock.
Download: SamsungIME.apk
Download: MutliWindowTrayService.apk
I will post more as I finish them.
Please don't forget to hit THANKS!!!!
EMSpilot said:
Once again Samsung has made it so we cannot change the images on our S5 when theming. I have taken several of the System/apps and privapps and I am the process of making them able to theme. I do so by replacing the QMG image files with PNG image files. I am not able to do them all, but managed 95% of them.
Enjoy Themers!!!!
Download: Samsung S5 NI2 Framework-res, SystemUI, SecSettings download Deodexed Only!!!
Downlaod: Keyguard.apk
I will post more as I finish them.
Please don't forget to hit THANKS!!!!
Click to expand...
Click to collapse
Wonderful. Thanks!
Thank you for your hard work!
Sent from my SM-G900V using Tapatalk
Good job and I assume extremely time consuming. What we really need is a tool to convert these files into pngs. Albeit as of right now that is currently impossible without dropping a ton of money to quramsoft.com, but like everything else once a demand is in place a leak usually happens look at IDA pro for example. (Reverse engineering tool)
EMS, you are awesome... Thank you for taking the time to figure this out, then share... Very very kool of you.. Thank you
Thanks EMSPilot these worked wonderfully for the flashlight mod. The toggles match with this where they didn't with the original files. Great job.
@EMSpilot Hey what's up there?
Question, so all these apks were converted to PKM files in Verizons Newest update?
Just asking, that's all! One version back there were only a few apks that were converted to using PKM files. This time around, if they really up'ed the amount, I'm sure we'll see this from here on in. Not happy about that for sure. Appreciate the conversion man. Sure is alotta work!
Sent from my SM-G900P using Tapatalk
This is awesome. Thank you for all the hard work.
yes this is just a d**ck move that samsung made! i have a tab 3 7 inch wifi and when it got kitkat update this september all the images were qmgs instead of pngs. It totally makes want to throw my tablet at the wall but I don't because it is at least better than a piece of crap apple steve jobs product like the iphone. LOL!
Thank You For Doing This!
@EMSpilot, has anything been found that can successfully convert a .qmg back to a .png file, or any of the other file formats?
Our 4.4.4 OTA hasn't quite reached us but we do have a leaked release to play with.
Something for anyone trying to do their own conversion that may help...
1. Decompile your 4.4.4 apk with apktool 2.0.x (1.5.2 doesn't play nice with 4.4.4 files).
2. Make a copy of the decompiled folder so you have the original.
3. Track down any folders than contain image files in the res folder. I've found it's easiest to remove all non-image folders to make things easier. Check every folder. For instance, res/drawables contains a few image files but its mostly .xml files. Delete all folders that do not contain image files. I even went as far as deleting all the extra non-image files that are in folders such as res/drawables.
4. Once we're down to just image files (.qmg, .pkm, .IPT), we're going to bulk rename all of them to .png files.
5. In each folder, press Shift Key & Right Click Mouse, select Open command window here. This is the command to bulk rename:
ren *.qmg *.png
This will rename all .qmg files to .png.
6. Open Winmerge (awesome tool, it's free, learn how to use it) and diff the stock image folder from your 4.4.2 build with the image folder we just converted. See screenshot where I've selected files that are showing as different.
7. Now we are going to copy all files that match but are different.
Right click on the selected area and select 'Copy Left to' (or 'Copy Right to' depending on which side contains your stock 4.4.2 files) and copy the different files to a folder somewhere for safekeeping.
8. Now we have most of the files that match 4.4.4 so we can start doing direct file replacements.
Note:
This does not include .9.png files. You will have to separate out all .9 files from the 4.4.2 and rename them to diff separately.
Now you know just part of what EMSpilot had to go through!
Not Yet
tdunham said:
@EMSpilot, has anything been found that can successfully convert a .qmg back to a .png file, or any of the other file formats?
Our 4.4.4 OTA hasn't quite reached us but we do have a leaked release to play with.
Something for anyone trying to do their own conversion that may help...
1. Decompile your 4.4.4 apk with apktool 2.0.x (1.5.2 doesn't play nice with 4.4.4 files).
2. Make a copy of the decompiled folder so you have the original.
3. Track down any folders than contain image files in the res folder. I've found it's easiest to remove all non-image folders to make things easier. Check every folder. For instance, res/drawables contains a few image files but its mostly .xml files. Delete all folders that do not contain image files. I even went as far as deleting all the extra non-image files that are in folders such as res/drawables.
4. Once we're down to just image files (.qmg, .pkm, .IPT), we're going to bulk rename all of them to .png files.
5. In each folder, press Shift Key & Right Click Mouse, select Open command window here. This is the command to bulk rename:
ren *.qmg *.png
This will rename all .qmg files to .png.
6. Open Winmerge (awesome tool, it's free, learn how to use it) and diff the stock image folder from your 4.4.2 build with the image folder we just converted. See screenshot where I've selected files that are showing as different.
7. Now we are going to copy all files that match but are different.
Right click on the selected area and select 'Copy Left to' (or 'Copy Right to' depending on which side contains your stock 4.4.2 files) and copy the different files to a folder somewhere for safekeeping.
8. Now we have most of the files that match 4.4.4 so we can start doing direct file replacements.
Note:
This does not include .9.png files. You will have to separate out all .9 files from the 4.4.2 and rename them to diff separately.
Now you know just part of what EMSpilot had to go through!
Click to expand...
Click to collapse
Nothing that I am aware of. I am sure it will happen soon!!!
Thanks for the write up.
I wish those out there making Roms would use your stuff as a base. I love some of those Roms out there but you can't change some things that I like to ( namely the toggle background). It works with your systemui but of course that overwrites theirs and of course you lose some things in the transition. Great work by the way.
QMG to PNG
Here is a great tool to help us get this done without all the hassle. I am getting a Verizon Note 4 and will convert and post all soon,
http://forum.xda-developers.com/note-4/themes-apps/app-qmg2png-tool-t2921009
so do u have to recompile the apk using the pc after editing? so i use the app to convert qmg to edit, transfer to pc and edit then recompile? or do i just convert using the apk on the link and push to rom.zip?
EMSpilot said:
Once again Samsung has made it so we cannot change the images on our S5 when theming. I have taken several of the System/apps and privapps and I am the process of making them able to theme. I do so by replacing the QMG, IPT & PKM image files with PNG image files. I am not able to do them all, but managed 95% of them. What we need is a program to convert QMG, IPT & PKM to PNG's. Or at least be able to edit the new images. This is very time consuming LOL!!!!
Let me know if I missed any you want done.
Enjoy Themers!!!!
I will post more as I finish them.
Please don't forget to hit THANKS!!!!
Click to expand...
Click to collapse
@EMSpilot will these apk's work on the t-mobile 5.0 DOB1 firmware.

unpack or repack apk files

Simply u can unpack or repack apk files here are some easy steps:
1) install root explorer
2) Click on that file which u wanna unpack, after clicking perform the action (view ) then select all the files and extract them.
3) After editing or modifying,select that folder and compress to normal zip.
4) Go to the zip file and rename .zip to.apk
Done
Thanks for the info, but I think most here know how to unzip apk files, and this isn't the correct forum.
It should also be mentioned that this method is quick and easy, but is really only useful for replacing images. To make modifications to any xml or smali, you have to decompile the apk.
Morningstar said:
Thanks for the info, but I think most here know how to unzip apk files, and this isn't the correct forum.
It should also be mentioned that this method is quick and easy, but is really only useful for replacing images. To make modifications to any xml or smali, you have to decompile the apk.
Click to expand...
Click to collapse
Yes, this method its only working, when you change the pictures.
The xml, smali etc. file method only working, when you use apktool app (on pc or android).

Categories

Resources