Just though I'd take the time to update apk_manager_4.9 and call it apk_manager_4.9_Honeycomb_Edition. I've modified a few tools inside apk manager to now work with honeycomb apk's. Hopefully this will come in handy for you all.
Credits:
All credits go to the prior developers of APK MANAGER 4.9 HERE. I just took the time to update it for Honeycomb. Please refer to this link for instructions as well.
Thanks to Daneshm90 for giving me the okay to release this version so hopefully all you themers/developers out there will take this and run with it.
Changelog:
aapt - (From updated SDK)
apktool - (From updated SDK & MAD Industries)
zipalign - (From updated SDK)
Here is the download
APK_Manager_4.9_Honeycomb_Edition
Mirror_1
Mirror_2
MAC USERS:
Please click HERE for everything you need for APK Manager for a MAC courtesy of MAD Industries
Updated 08/18/11
Changelog:
Cleaned up script to and compile settings and systemui apks
Code:
echo Building Apk
IF EXIST "%~dp0place-apk-here-for-modding\%capp%" (del /Q "%~dp0place-apk-here-for-modding\%capp%")
java -Xmx%heapy%m -jar apktool.jar b -f "../projects/%capp%" "%~dp0place-apk-here-for-modding\%capp%"
if errorlevel 1 (
echo "An Error Occured, Please Check The Log (option 21)"
PAUSE
)
(Lines 489-495 if you're using Notepad++)
You can either re-download the APK-Manager_4.9_Honeycomb_Edition.zip from above or you can download the new Script.bat HERE
Just extract the Script.bat and replace the old one.
Some Extra Instructions:
To do this U MUST make a new folder in C:/users/<yourname>/ and call it apktool and a sub folder within it called framework. If you have this there already YOU ROCK!!
Mine reads:
Code:
C:/Users/Thomas/apktool/framework
Now within that framework folder you need a copy of a complete stock framework-res.apk and you need to rename it to 1.apk
You also need a copy of a complete stock twframework-res.apk and rename it 2.apk
So it should read:
Code:
C:/Users/<yourname>/apktool/framework/1.apk
and
Code:
C:/Users/<yourname>/apktool/framework/2.apk
Remember any apk you are attempting to decompile MUST BE COMPLETE STOCK to do so.
I have done all of this and tested over and over again and I am getting no errors whatsoever. If you do get some errors please make sure all your paths for SDK are setup correctly including setting a path for Java JDK as well.
PM me with any questions or concerns regarding all this. I will do my best to respond within a timely manner.
reserved for future
this one too hehe
Nice tool, will be useful.
PhantomHacker said:
Nice tool, will be useful.
Click to expand...
Click to collapse
Just hope more people will use it to it's fullest potential. And this tool does a lot of different things. Thanks PhantomHacker.
Very nice, thanks
Makes work easier
Thanks Doc I found this tool to become very handy when I did some things for the Samsung Epic 4G. I had to be able to use it for the Tab lol. Thanks again. Keep up the fantastic work yourself.
works like a charm Asus eee pad
depulle87 said:
works like a charm Asus eee pad
Click to expand...
Click to collapse
Awesome depulle87 glad to hear
Sent from my Nexus S 4G using XDA Premium App
I was to early with that, it seems to ''shrink'' my framework-res.apk so I can't use it.
It was 6.506kb and after a decompile and than compile it is 4.082kb, no changes made.
I didn't see it yesterday and I ended reflashing my TF
depulle87 said:
I was to early with that, it seems to ''shrink'' my framework-res.apk so I can't use it.
It was 6.506kb and after a decompile and than compile it is 4.082kb, no changes made.
I didn't see it yesterday and I ended reflashing my TF
Click to expand...
Click to collapse
Try after you select your project (Option 22) select (Option 19) Set your compression level and change it to 0.
That shouldn't shrink it at all.
Sorry about that let me know if that works as well so I can update OP
sorry man, it still shrinks my apk
Okay let me look into it. Sorry man.
Thanks man, should I upload my apk file so you can test it ?
yeah pm me with the link
Updated 8/18/2011
I've updated the OP a ton so please read away.
Well, that was easy
One small nitpick: What is the rationale behind overwriting the original files when compiling? Just curious.
And, for us antiquated old geezers building on something like a Windows Server 2003, framework-res.apk and twframework-res.apk should be present as
C:\Docume~1\<username>\apktool\framework\1.apk and 2.apk respectively.
Edit: Which sort of happens automagically, if you ...
java -jar other/apktool.jar if place-apk-here-for-modding/twframework-res.apk
... on that sort of platform.
what's the function of this app?
denis_sianto said:
what's the function of this app?
Click to expand...
Click to collapse
It's not an app
Sent from my MB855 using xda premium
denis_sianto said:
what's the function of this app?
Click to expand...
Click to collapse
It makes creating a theme fairly easy. It allows access to xml's, smali files(****ed up java files lawl!(i know what they are, i just like that version better)), and all the images in whatever apk you put in it. SO you can put in your new images, edit old images, edit xml files, edit smali files.
Related
hello to all of you....
How to make the dialer (contacts.apk) fit for 240x320 120 dpi
i know that : firstly if the dialer is built from source it can be adjusted to properly fit 320x240, if not then run a 320x480 kernel which will fit dialer and htc_ime properly.
But how....??
Anyone can help me...?
thanks and kind regards...Alex
This dialer fits pretty well for 2.1 at 240x320 120
http://www.mediafire.com/?2rzmlbz1ccj
incubus26jc said:
This dialer fits pretty well at 240x320 120
http://www.mediafire.com/?2rzmlbz1ccj
Click to expand...
Click to collapse
maybe but i think only on eclair...if i install the update....the phone app crashes....
I´m right with only on eclair...?
[email protected] said:
maybe but i think only on eclair...if i install the update....the phone app crashes....
I´m right with only on eclair...?
Click to expand...
Click to collapse
yes i should have specified 2.1 sorry
incubus26jc said:
yes i should have specified 2.1 sorry
Click to expand...
Click to collapse
no problem..anyway thanks for this try
are you going to be building from source? If so it's just a matter of editing the values in /res/layout-finger/dialpad.xml
This is the same for both eclair and donut builds.
then theme it with whatever png's you like
pretty easy to test after making it just ./adb remount
./adb push contacts.apk /system/app/contacts.apk
Or feel free to take the dialer from my last build, I'm fairly sure that was sized properly for qvga.
Once you understand how the layout files work it's easy to adjust any aosp app to whatever sizes you like.
Something handy, assuming you have your build environment all setup,
mkdir ./vogue
cd vogue
repo init -u git://androidhtc.git.sourceforge.net/gitroot/androidhtc/manifest.git -b android21r2
repo sync (wait.. a long time, it's like 2.5gb)
than make
mssmison said:
are you going to be building from source? If so it's just a matter of editing the values in /res/layout-finger/dialpad.xml
This is the same for both eclair and donut builds.
then theme it with whatever png's you like
pretty easy to test after making it just ./adb remount
./adb push contacts.apk /system/app/contacts.apk
Or feel free to take the dialer from my last build, I'm fairly sure that was sized properly for qvga.
Once you understand how the layout files work it's easy to adjust any aosp app to whatever sizes you like.
Something handy, assuming you have your build environment all setup,
mkdir ./vogue
cd vogue
repo init -u git://androidhtc.git.sourceforge.net/gitroot/androidhtc/manifest.git -b android21r2
repo sync (wait.. a long time, it's like 2.5gb)
than make
Click to expand...
Click to collapse
big thanks for the info...but i need a little bit more....what editor you use for android xml....
i tried a few but no xml editor work with the file...
can you post your apk...i only have found your eclair buld and if i copy out the dialpad xml it do not work also if i make a androidupdate from the contacts.apk...because of eclair i think
mmhhhh...hope you can help me
edit: also i tried to exclude it from a old *.sqsh system but i can not find a way to extract...
Thanks Alex
As I said this is building from the source. You cannot edit an xml that's already been compiled.
My contacts.apk is in my download for my build, just open the androidinstall.tar file and pull it out.
mssmison said:
As I said this is building from the source. You cannot edit an xml that's already been compiled.
My contacts.apk is in my download for my build, just open the androidinstall.tar file and pull it out.
Click to expand...
Click to collapse
I was able to edit XML in compiled apk's by using apktools. it baksmali/smali's and recompiles into an APK.
myn said:
I was able to edit XML in compiled apk's by using apktools. it baksmali/smali's and recompiles into an APK.
Click to expand...
Click to collapse
a nice tool..
Please be patiend be with me....but i´m a german user and its not so easy for me with the commands in this tool...
so can you give me as Example you commandline started with :
apktool decode............apk ....dir...
That would be wonderful....thanks...Alex
myn said:
I was able to edit XML in compiled apk's by using apktools. it baksmali/smali's and recompiles into an APK.
Click to expand...
Click to collapse
good call, I forgot about apk tools
Not sure if this has been mentioned / is common knowledge but Enoch Dialer fits perfectly for me on Warm Donut.
berardi said:
Not sure if this has been mentioned / is common knowledge but Enoch Dialer fits perfectly for me on Warm Donut.
Click to expand...
Click to collapse
thanks for the tip with Enoch Dialer...it fits .....but not 100%
So it would be nice that myn can give me this line
as Example your commandline started with :
apktool decode............apk ....dir...
Please be patiend be with me....but i´m a german user and its not so easy for me with the commands in this tool...
That would be wonderful....thanks...Alex
[email protected] said:
thanks for the tip with Enoch Dialer...it fits .....but not 100%
So it would be nice that myn can give me this line
as Example your commandline started with :
apktool decode............apk ....dir...
Please be patiend be with me....but i´m a german user and its not so easy for me with the commands in this tool...
That would be wonderful....thanks...Alex
Click to expand...
Click to collapse
Place all of the files into a directory including the windows apktool.bat file.
=== To decompile/decode an apk ===
1) place apk in this dir
2) open cmd
3) run apktool.bat d Contacts.apk ./out
4) an out directory will be created
=== To compile/build an apk ===
1) apktool.bat b -f -d out
2) the apk file will be placed into /out/dist/out.apk the translated source will also be in /out/build
You then must sign the apk.
Use AutoSign or RightClick Sign.
With all of this said. I think there may be an issue with the workflow or decode/build process. Please give it a try yourself and see if you get different results. I would love for this to work.
Please read my experience here starting at post 247.
I was actually trying to resize the dialer to work in 240x320 by editing the Contacts.apk in Warm Donut --> http://forum.xda-developers.com/showthread.php?t=640592&page=25
myn said:
Place all of the files into a directory including the windows apktool.bat file.
=== To decompile/decode an apk ===
1) place apk in this dir
2) open cmd
3) run apktool.bat d Contacts.apk ./out
4) an out directory will be created
.................
QUOTE]
Big thanks for this instruction...thanks...
Click to expand...
Click to collapse
solved...look here
http://forum.xda-developers.com/showthread.php?t=676658
[email protected] said:
solved...look here
http://forum.xda-developers.com/showthread.php?t=676658
Click to expand...
Click to collapse
Nice work
So what did you do to get Contacts.apk re-built correctly?
I was having all kinds of problems with apktools and that signing tool.
Thanks
myn said:
Nice work
So what did you do to get Contacts.apk re-built correctly?
I was having all kinds of problems with apktools and that signing tool.
Thanks
Click to expand...
Click to collapse
i follow your instructions...i decode the apk... edit the xml....rebuild the apk...extract the new apk...open your original apk...delete the xml...and add the new...save all....
i need 8 time´s to get the perfect values
The other way... So i have to say thanks too
[email protected] said:
i follow your instructions...i decode the apk... edit the xml....rebuild the apk...extract the new apk...open your original apk...delete the xml...and add the new...save all....
i need 8 time´s to get the perfect values
The other way... So i have to say thanks too
Click to expand...
Click to collapse
Ahh so you didn't need to sign it? You just used the compiled XML from the rebuilt Contacts.apk and place it into the original apk?
myn said:
Ahh so you didn't need to sign it? You just used the compiled XML from the rebuilt Contacts.apk and place it into the original apk?
Click to expand...
Click to collapse
yes...
with kind regards..Alex
READ THIS FIRST:
The original post is here alot of questions have been answered, here browse around there first.
UPDATE 9 PATCH TWEAKS:
This new version will port your favorite hdpi theme to an mdpi rom... yes 9 patch resizing. I want to be the first to say this is not 100% and it probably never will be, and over the next couple of days we can discuss this.
What it will do is resize every 9 patch in a rom and move it over to the mdpi theme. Yes this is the same method I used for all my hdpi ports.
What it might not get is the 9 patching data correctly, which means that it might get stretched incorrectly, most times you won't noticed but others it will be obvious. This will happen anywhere from 1% to 30% of the 9 patch pngs in a port, but all you will need to do is redraw them using the 9 patch draw tool in the adb folder.
My next version will have this included along with some instructions, along with font and boot animation porting.
Please respect other peoples work. If you port a theme using this and repost it don't just link back to the op... mention the author and give them props.
Also want to say I spent a looooong time trying to figure this out, and I tried many different ways, and I'm open to others suggestion on making this better
Oh and don't forget to to install Image Magick, its included and the HDPI to MDPI will not work without this.
This tool will take your favorite theme and inject it into your favorite rom... provided they are compatible with each other (might work if they aren't but thats for later). I did this cause alot of themers and people who like themes are always waiting for the nightly theme to get applied, well this will do it for you.
You can think of this as almost a theme installer.
INSTRUCTIONS by Norm12:
1. Download and extract.
1.5 Install image magick from the image magick folder... just run the installer and its ready to go. This is important the hdpi to mdpi will not work without it.
2. Copy both the theme and rom into the 1 click folder---the extracted one.
3. Open the 1-click folder and you should see your theme, rom, lib folder, and the injector script.
4. Doubleclick on the injector script----if you did everything correct it will open a cmd prompt
5. Enter the names of the rom and theme when asked...I did use the exact names and added ".zip" to the end.
5.5 Answer y if this is an hdpi to mdpi port otherwise n.
6. Hit enter and wait. When it is really done it will auto-close the cmd prompt. This may take 15 minutes.
7. Your newly themed rom will be in the same folder as the unthemed rom and theme zips. If it worked it should be slightly larger than the original rom. Enjoy
!!!IMPORTANT... BECAUSE 7ZIP SHOWS OUTPUT IGNORE THE "EVERYTHING IS OK" LET THE SCRIPT FINISH WHEN ITS DONE IT WILL CLOSE ITSELF IF YOU DOUBLE CLICKED IT OR IT WILL RETURN TO COMMAND PROMPT!!!
Ignore any errors your seeing while it runs, this is normal like before let it run completely through till it closes out.
Run time could be up too 20 minutes (60 with HDPI to MDPI) on a big theme/rom, but faster that waiting!
You must now install Image Magick if you would like to use the hdpi to mdpi resizing!
ISSUES:
There also seems to be an issue with the gallery3d.apk and the differences in the mdpi and hdpi version. For now remove this from the theme your porting otherwise it won't come out right.
Update 4:
HDPI to MDPI porting!!!!!
Update 3:
Removed verbose but added optopng verbose just let it run. It works but you have to let it finish, the cmd window will close it self.
Update 2:
Added verbose output so that you guys will know to close it out before its done...even tho 7zip says everything is ok... just let it do its thing.
Update 1:
Had the optimization stuff commented out... sorry its back on.
Script will clean up now after it finishes.
JAVA CLASSPATH:
Its needed for the signer to work properly goto a command prompt and type in java -version. if you get and error back java is not in your classpath and needs to be.
just right click on my computer, then goto properties, then click on the advanced tab, at the bottom click on the "Environment Variable" button.
Now click on the new button... the one on the bottom for system variable and put in this
variable name: JAVA_HOME
variable value: C:\<path-to-where-java-is>
Now click ok and select the path system variable and then click edit. IMPORTANT only append to the end of the value this... ;%JAVA_HOME%\bin
then click ok and ok out of all those windows and open a new command prompt and type java -version you should get no error if you do your path to java was wrong follow the steps above again and make sure the path is correct.
WHAT THIS WON'T DO:
It won't port over xml or smali edits.
It wont port over what it can't find... so if your theme has a facebook widget or something but the rom does not then it will ignore that.
It will not port over fonts or anything other than the framework-res.apk and all the themes apks in the system/app folder. If this is popular Maybe other stuff can get included.
WHAT THIS WILL DO:
Shrink a 9 patch from HDPI size to MDPI size.
Push over all the themes pngs from the apk with it to the roms matching apk.
Optimize every png in the theme you are porting over.
Zip align all the apks in your newly themed rom.
Sign the newly themed rom.
Give me feed back.
I might make this easier and make the injector steal the apks for injection right from your phone and then inject and make a flashable to put right back on... tell me what you think.
New HDPI to MDPI version with 9 patch porting download
reserved 10char..
Nice work
Sent from my HTC Desire using XDA App
TheRedDrake said:
Nice work
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Thank you. hasn't caught on in this forum yet i guess.
I'll try this out now, this seems easier than the theme porter that's already on the forum.
Looks promising! I will try it out right now!
dl and try after work
will this work for porting themes to the HTC Tattoo?? does it rescale the theme to suite the phone?
vura said:
will this work for porting themes to the HTC Tattoo?? does it rescale the theme to suite the phone?
Click to expand...
Click to collapse
This will port any theme to any rom... provided they are compatible. So while you can go from a sense theme and inject it into a AOSP rom, it probably won't catch everything since it works off of matches. It also does not have any scaling included.
The biggest thing with this is that the theme and rom have to have a same file structure so all rom come and the have the system/app folder and the system/framework/framework-res.apk, this is what the injector looks for. So honestly you could build a theme from a buncha different apks from other themes it will inject that into your rom and give you back a flashable zip. So a good theme structure example would be Gommarah's Black Mod in the HERO CDMA forum.
I do however have a way to port HDPI theme to and MDPI ROM but its not 100%... if I get enough request I'll put it in its just the process I use to accomplish this is very complicated and requires some extra software, its also adds a significant overhead to the script run time (and 3x longer to run) It works in the since the it will shrink the HDPI 9patch png but the 9 patch data is wrong about 10-20% of the time. This won't cause the roms to force close but will just make some of the 9patch pngs to stretch wrong and would require a simple edit in the 9patch draw to fix it.
+1 for hdpi to mdpi scaling!
Any others want the hdpi to mdpi scaling? I've considered releasing it.
Sent from my PC36100 using XDA App
Just curious if I did this right as I am still fairly new to this whole scene and this whole process seemed to work way to easy. But basically I got both the rom and theme converted and then signed both zips. Does that mean that I can now successfully flash the new theme? Thanks in advance!
theu2621 said:
Just curious if I did this right as I am still fairly new to this whole scene and this whole process seemed to work way to easy. But basically I got both the rom and theme converted and then signed both zips. Does that mean that I can now successfully flash the new theme? Thanks in advance!
Click to expand...
Click to collapse
There is no need to sign anything, the injector will sign the final output zip. Take your theme zip and your rom zip and place it in the folder next to the script. Then just run the script when its finished you will get a a new zip called themed-<roms-name>.zip.... this is ready to flash (optoed, align and signed).
ASimmons said:
Any others want the hdpi to mdpi scaling? I've considered releasing it.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Can I vote multiple times?
Ill try and get it ready for this weekend and see what you think.
Sent from my PC36100 using XDA App
First of all,great software worked as a charm...
I subscribe to the resizing,all the best themes are for HDPI...would make this the best theming tool out there for android
thanks that did it!
what if the rom needs has a seperate gapps.zip with it? thanks!
theu2621 said:
what if the rom needs has a seperate gapps.zip with it? thanks!
Click to expand...
Click to collapse
Just put the gapps system/app files into your ROM's system/app files. Then inject your theme, the tool does the rest
thanks again for the help! yall really helped, and rather quickly too!
I'm asked all the time how to theme; what's the best way, the best tools, etc. Well, I'm going to compile the best resources that I think will get you up and theming. It's a process, and you'll need to have time and devotion, but these tools and tips will help
A general guide (MOD Info: The document seems to have been removed and there is no possibility to recover it)
This is the best guide that I know of out there for theming; it is comprehensive, and if you use it, you should give a big thanks to the makers of it.
Apktool or apk manager
I find both of these to be great; I have apk manager (windows and linux) on my pc, and apktool (windows, mac, and linux) on my mac. APK manager will likely be best for beginners due to its simplistic and user friendly UI, and it offers some more features then apktool, like zipaligning, optimizing, etc. Both are fantastic, and absolutely a huge help for theming and decompiling apps.
The android SDK
It's always helpful to know how to use the SDK for adb, zipaligning, and other tasks. Remember, even if you have other tools like apk manager to zipalign, it's always good to know how to do it by hand And you'll need tools in it like draw9patch for those pesky .9pngs
Notepad++ or TextWrangler
You will use this all the time. Editing files like decompiled XMLs on this is a breeze
A nice website for Hex colors
You'll use this every time you do XML edits; you'll need these color codes to tell the XMLs what color you want to show up
Photoshop or Gimp or Paint.net
Want to go all out? Go photoshop. Want a great, free tool to theme with? Gimp is the way to go. Either way, you'll want to use one of these tools for png edits when theming. Paint.net is also another good free tool for edits.
Hex Fiend
For you mac users like me, Hex Fiend comes in handy if you ever need to edit binary (non readable or decompiled) XML.
Update Zip creator/modifier
Fabulous tool on windows to create and modify elements of updates zips
ADW Themes
Want to make an ADW theme? This is a great tool to get you started on that
Knowledge
You'll want some general knowledge with terminal or windows cmd prompt. Because you will use it. Also, you'll need to know what to edit in a theme to change aspects of color and such correctly. Well, this is a great tool to find out what you need to edit
I'll be adding to this guide as needed. Please, feel free to ask any questions, and I'll be here to answer them Hope this helps everyone!
In Depth Look: XMLs
For the first in depth look, I'm going to focus on XML edits, as they are a major component to having a complete and thorough theme. Image edits are easy enough, but many don't know where to go when it comes to XMLs. Well, here's where I'll tell you
What is an XML?
Here's is a nice read on XMLs and what they are.
What do XMLs have to do with Android?
XMLs can control many functions in android apps. For the scope of this thread, we'll be changing binary XML into a readable XML file to make our edits, which will usually result in color changes in apps.
How do I edit an XML?
Make sure you have apktool or apk manager correctly set up. They'll make XML edits a breeze. If you need help setting them up, wither ask me or see their manuals.
Take the apk you want to edit, and decompile it with one of those two tools. Make sure if it's dependent on Sense resources or TW ones that you have those set up. (Again, either ask me or see instructions for apktool and apk manager)
Once decompiled, open the XML you'll need/want to edit. See the link I have above under knowledge for finding out what XML you may need to edit
For Windows, use Notepad ++ to edit, and for Mac, use TextWrangler (just suggestions, others work as well)
Use the Hex Color code link I have listed above in the OP to find the suitable code for the color you'll want if you;re making a color change. Remember, the color codes will be 6 digits, but there'll be 2 digits in the XML before the color code. 00 is transparent, and FF is the "regular" color for lack of a better term.
When done with the XML changes, recompile the apk
Sign if needed, and install to see if the changes you've made are worth it
In Depth Look: Using Apktool or Apk Manager.
What are they?
Apktool and Apk Manager allow you to decompile, reengineer, and compile apks after making changes to files in the decompiled apk.
Why would I need them?
These tools allow you to edit XMLs, edit smali files, and change many other aspects of the apk that you wouldn't be able to do without decompiling the apk.
Setting up apktool on a mac
If you have a mac like me, remember that apk manager doesn't work on macs. So, you must use apktool, which is absolutely fine, as in my opinion apktool is better than apk manager. To set up apktool, you must have root mode enabled on your mac. To do that, simply follow these steps:
Open system preferences
Open accounts
Go to login options
Hit join next to network account server
Select open directory utility
Click the lock at the bottom of the window that pops up and enter an admin password
Then, go to the top bar on your mac, hit edit, and select enable root mode
Once you have root mode enabled, you're ready to set up apktool:
From the apktool website, download apktool1.3.2.tar.bz2 and apktool-install-macosx-2.2_r01-1.tar.bz2
Next, open terminal
su
tar -C /usr/local/bin -xvf <zipped file name>
tar -C /usr/local/bin -xvf <zipped file name> (for the second file)
Now to confirm it worked, type "apktool" no quotes
You should get a help menu for apktool
If so, you're good to go!
Now, once you have it set up, you're ready to go! After typing apktool, you'll see the help menu which'll give you the commands available for apktool, but I'll go over the basic ones here.
apktool d "apk path here" will decompile the apk
apktool b "decompiled apk path here" will build an apk from a previously decompiled one
apktool if "framework-res.apk path here" will install a framework res or any app really to allow you to work with dependent apps. For example, if you want to modify an HTC sense apk, you'll need to install the htc.resources.apk first through this method before decompiling the sense apk.
What if I have windows?
The steps will be very similar. See the apktool website I have listed above for a bit more info, but as I said, it's not too far off minus the having to get root access part.
This seems to complex, and I hate using commands! I wish there were another way....
Oh, but there is! *ends cheesy infomercial voice* Apk manager will give you a simplified setup, and all of the same features plus more; all you need is windows or linux.
Great! How do I get that?
Download Apk Manager
Extract the zip
Open up the enclosed script
The rest is pretty self explanatory
Now, even will apk manager, you'll need to make sure you know how to set frameworks up and such, but it makes it much easier with its convenient scripts. If you have any questions, ask them here and I'll certainly do my best to answer them
Helpful Hint!
Remember, once you have an apk decompiled with apktool or apk manager, you have the best chance to correctly edit .9pngs!
If you open the .9png in the decompiled app and edit it with gimp or photoshop while leaving the pre-drawn boarder there, you'll be able to recompile the apk with a properly edited and themed .9png
Advanced Decompiling
Sometimes, you have that pesky app that just won't decompile correctly. Usually, it's an app related to others, like a proprietary system app based off framework-res.apks.
When this happens, you need to ensure that the frameworks are there to have the app's recourse tables properly compile.
For either apktool or apk manager, find a folder on your computer called "apktool."
The should be a folder in here called "framework," and inside that, a 1.apk.
For an app that is dependent on the framework-res.apk in a specific phone/rom, take the framework-res.apk for that rom and rename it 1.apk.
Replace the default one in the folder with yours.
If there's a second one, like the twframework-res.apk for Samsung phones, rename it 2.apk and place it in the "framework" folder.
Now, decompile like normal, and everything should be good
Editing Smali
Right here, thanks to Yorzua
Cool, so what about theming market apps. I mean like changing the icon. I know how to change them individually but what about changing them in bulk. Where would one put them inside of an update.zip?
Sent from sweet G2
smoochiezz24 said:
Cool, so what about theming market apps. I mean like changing the icon. I know how to change them individually but what about changing them in bulk. Where would one put them inside of an update.zip?
Sent from sweet G2
Click to expand...
Click to collapse
Changing them in bulk would require you to theme each icon you'd like, and then you could do one of a couple things:
Make them your custom icon with ADW or LP (easiest way)
Install them over the apps you have on your phone to get your custom themed app
Make a flashable zip to add the apps to system/app, resulting in a themed set of apps, now in system/app
I should probably add a bit to the guide on making zips, yes?
Added update zip tool to the guide
Section 6. ZipThemer: an alternative theme installer with MetaMorph compatibility and advanced features.
Ken
kellinwood said:
Section 6. ZipThemer: an alternative theme installer with MetaMorph compatibility and advanced features.
Ken
Click to expand...
Click to collapse
Or that'd work too from a phone I'm targeting computer usage, but that's a nice app, well done
Thanks for this resource! *tagged*
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
user7618 said:
Thanks for this resource! *tagged*
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
Click to expand...
Click to collapse
No problem! I'll be adding to it as well, and I'll go more in depth to version elements in my reserved posts
Sent from a truly Epic phone!
theimpaler747 said:
No problem! I'll be adding to it as well, and I'll go more in depth to version elements in my reserved posts
Sent from a truly Epic phone!
Click to expand...
Click to collapse
Good, because I'll probably be getting a new laptop soon, so I will need to download all of this stuff again.
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
user7618 said:
Good, because I'll probably be getting a new laptop soon, so I will need to download all of this stuff again.
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
Click to expand...
Click to collapse
Ah yeah, that'll be a pain... good thing I have all the links in one place now!
theimpaler747 said:
Ah yeah, that'll be a pain... good thing I have all the links in one place now!
Click to expand...
Click to collapse
Indeed.
-----
Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
Thank you for this. This is just what I was looking for
Sent from my DROIDX using XDA App
Dxblade said:
Thank you for this. This is just what I was looking for
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
No problem! Glad you liked it, and check back, as I'll be adding more and going more in depth with XML edits and such
I'm sure many people will find this extremely useful. There are a lot of resources out there, but finding them can be difficult.
Apart from system-level theme creation, there's a great guide to creating ADW.Launcher themes here. I would know - I created the icon naming video haha.
Vazguard said:
I'm sure many people will find this extremely useful. There are a lot of resources out there, but finding them can be difficult.
Apart from system-level theme creation, there's a great guide to creating ADW.Launcher themes here. I would know - I created the icon naming video haha.
Click to expand...
Click to collapse
Very nice! I'll add that to the OP for you
Awesome! Hopefully this will inspire more people into creating the themes of their own!
Vazguard said:
Awesome! Hopefully this will inspire more people into creating the themes of their own!
Click to expand...
Click to collapse
Agreed! I'm looking at publishing ADW themes of my own
Well, i actually cook the ROM MIUI for the SGS I9000 at miui.es and i was having a little fight with themes a few months ago. I allways stop at the same point, its so esay to compile previously decompiled .9.png, but what happens with compiled ones?
So here it's my solution, based on the grat idea of @tommytomatoe and his tool forMac OS X. It's called 9patchPngSuite and it let's you decompile, compile and launch draw9patch without the need of install android SDK.
How it works?
Easy, for every one in miui.es teamwork its not new its similar to other scripts i made, for the rest:
Windows
unzip 9patchPngSuite.zip in your prefered folder and double click on menu.bat
Linux
Unizip 9patchPngSuite.tar.gz in your prefered folder
give execution permissions (usually chmod 777)
type ./menu
Will show us 4 options
****************************
9patchPngSuite
v1 Windows edition
---------------------------------
by kakomalo...
thx @Xxfoc miui.es
and @tommytomatoe xda.com
****************************
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
2.Launch draw9patch (drag and drop files)
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
4.Info on draw9patch
x.Exit
Select option:
It's no so hard to understand but...
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
Decompile all .9.png in compiled folder, don't care if it's other kind of png or file, only works with .9.png.
2.Launch draw9patch (drag and drop files)
Launch draw9patch, drag & drop files on it to edit. It's no needed to be installed android SDK tools, it's on tools folder
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
Compile all .9.png in decompiled folder, don't care if it's other kind of png or file, only works with .9.png, and let the new compiled ones in output folder.4.Info on draw9patch
Open thefault browser and goes to http://code.google.com/p/android-apktool/wiki/9PatchImages
You have seen it's no difficult to use, i hope you like it.
Special thanks to @Xxfoc from miui.es for give me the idea, @tommytomatoe for his Mac OS X tool and brut.all for the work.
Download - Windows
Download - Linux
Spanish thread on miui.es or htcmania.com
Thanks for this! Can't wait to try it out when I'm back at my laptop
Sent from my Nexus S 4G using Tapatalk
Thank brutha
Excellent! Thanks.
Thanks i get a error on compile system cannot find file or folder.
ngagephone said:
Thanks i get a error on compile system cannot find file or folder.
Click to expand...
Click to collapse
Im not sure what do you try but, if its an error compiling .9.png make sure you have the descompiled & patched files in "decompiled" folder, before use option 3 in the menu.
Big thanks !
Very fast to edit .9.png now
This is a huge help, thank you.
The download links are down.
From where I could download?
Un saludo
Interested in working links aswell, as that tool sounds like the solution to my current problems
Link not work. ;(
Sent from my GT-S5830 using xda premium
Found a working link here if the author doesn't mind.
EddieFAF said:
Found a working link here if the author doesn't mind.
Click to expand...
Click to collapse
Thanks!!!
Enviado desde mi GT-I9100
Just like to say a big thanks for the 9patchPngSuite - it's saving me loads of time.
I had no problem recompiling edited .9.pngs using xUltimate-d9pc but it was a pain to have to decompile an apk just to edit a couple of .9.pngs
Working link please
Someone, please give working link to download this tool. Thanks!
NOTE: Samsung has blocked the way i used to download the theme editor so i will now have to search for another method. till then no update
Hey guys,
Below are the links to download the Samsung Theme Editor. All credits goes to @adfree for finding the secret method
Unleash your creativity.
PS: it does not need anything like samsung account etc. for making the themes
Windows edition (Updated):
Changelog v3.00.21
Minor Bugs Fixed
Code:
http://www47.zippyshare.com/v/tyi376MU/file.html
Mac Edition:
Code:
http://www47.zippyshare.com/v/UsBdgScE/file.html
@wajiman
thank you. installed on windows without any problem..
just an info.. is possible to use a theme taken from samsung store as base?
if yes, how? XD
thanks ^^
erghetto said:
@wajiman
thank you. installed on windows without any problem..
just an info.. is possible to use a theme taken from samsung store as base?
if yes, how? XD
thanks ^^
Click to expand...
Click to collapse
Unfortunately no, but there is a long method by which you can use some stuff from the theme you want to use as base. The steps are:
1) Extract every qmg file from each apk within a theme and rename the extracted apks to zip.
2) using command prompt run the following command:
Code:
ren *.qmg *.png
it will auto change the extension from qmg to png.
3) Transfer the pngs to mobile phone and look at the images you want to use
4) create your theme and individually replace the qmg which you identified from pngs with the base themes qmg. That's it.
I know its a tiresome task
nice:good: i made my first theme
Thanks, this is something..
wajiman said:
Unfortunately no, but there is a long method by which you can use some stuff from the theme you want to use as base. The steps are:
1) Extract every qmg file from each apk within a theme and rename the extracted apks to zip.
2) using command prompt run the following command:
Code:
ren *.qmg *.png
it will auto change the extension from qmg to png.
3) Transfer the pngs to mobile phone and look at the images you want to use
4) create your theme and individually replace the qmg which you identified from pngs with the base themes qmg. That's it.
I know its a tiresome task
Click to expand...
Click to collapse
First, thank you for posting this tool.
I'm still old skool in terms of theming, hard coding the system and adding/changing images to my preference.
It seems the the overlay themes are the direction it been headed for sometime so if the tool is easy enough and less time consuming, I suppose I could switch, plus the compatibility for many more devices and users is quite nice!
As far as converting/viewing qmg images install this to your phone and within the app select the apk of which you wish to view the qmg images and bam! It's all done, converted to png's viewable on pc and everything!
Anyways, thanks again!
stangdriver44 said:
First, thank you for posting this tool.
I'm still old skool in terms of theming, hard coding the system and adding/changing images to my preference.
It seems the the overlay themes are the direction it been headed for sometime so if the tool is easy enough and less time consuming, I suppose I could switch, plus the compatibility for many more devices and users is quite nice!
As far as converting/viewing qmg images install this to your phone and within the app select the apk of which you wish to view the qmg images and bam! It's all done, converted to png's viewable on pc and everything!
Anyways, thanks again!
Click to expand...
Click to collapse
I also found out one more way as this alp was not working for me on s7. Further, the above mentioned method is not working as the tool requires you to sign the apk with a certificate which you create with this tool itself and changing the files i think damages the signature. Nevertheless the 2nd way is to rename the qmg files to png. Transfer them to phone and then through the phone edit them. Add a small difference so that you can save it. Once you do, it will save it in png format.
Sent from my SM-G935F using Tapatalk
I am making a theme, but the APK it creates si a paid theme, and when i choose my theme, i can only choose the trial option. Is there a way to make the APK free? I cant found it.
Greetings
carasd said:
I am making a theme, but the APK it creates si a paid theme, and when i choose my theme, i can only choose the trial option. Is there a way to make the APK free? I cant found it.
Greetings
Click to expand...
Click to collapse
No install a package disabler and then disable theme service and center and then clear its data
Sent from my SM-G935F using Tapatalk
but this has no sense xD there has to be a way to make free themes.
erghetto said:
but this has no sense xD there has to be a way to make free themes.
Click to expand...
Click to collapse
Yes there is that is by uploading it to samsung thene store and then downloading it frm theme store
Sent from my SM-G935F using Tapatalk
there is a new version out please upload the version 4.0.11. ;P
Can't do anything bc I keep getting prompted upon opening the app to update to v4, but can't -_- Please upload v4 asap, thanks!
JoeFCaputo113 said:
Can't do anything bc I keep getting prompted upon opening the app to update to v4, but can't -_- Please upload v4 asap, thanks!
Click to expand...
Click to collapse
Same for me here!
acristescu said:
Same for me here!
Click to expand...
Click to collapse
you can still use it . disable network connection before opnening the editor, and after that you can enable it back
can I apply for partnership request by uploading a theme created using this software in the partnership request form ?If not can you please suggest me what should I do to apply for the partnership? I don't have any previous designs.
Hi... Guys Theme editor 5.0.20 is released, somebody please provide download link for it... Thank You..
sadanandk said:
Hi... Guys Theme editor 5.0.20 is released, somebody please provide download link for it... Thank You..
Click to expand...
Click to collapse
If you find it let me know lol . Thx
hi))I made a theme, and it's in the status of "only for developers", what should I do?sorry of bad english,im russian))
sadanandk said:
Hi... Guys Theme editor 5.0.20 is released, somebody please provide download link for it... Thank You..
Click to expand...
Click to collapse
hi have you found it ?
regards