yashsingh1/xdaforums huggingface dataset:
[Android Themes] scrappy610:
I'm still new to this so, I'll try to help anyway i can. So far, I have been using apktool to decompile apks, although presently having problems getting one of the resources to install.

The required frameworks, for KitKat, are : com.htc.resources.apk, framework-res.apk,SystemUI.apk, and framework-res-htc.apk. Wether both framework-res and framework-res-htc are required, I'm still unsure as this is the first time I've tried decompiling 4.4 with sense. With 4.3 and below there is only the framework-res.apk. I will get back to you with my findings. Thanks for taking the time to look into it.
[Android Themes] djdarkknight96:
I haven't theme sense in forever but it's Rosie.apk a resource anymore?
[Android Themes] scrappy610:
Not as far as stock goes. I really just started learning. Image editing is relatively easy, but now most of it is through the xmls. Figured this batch editing could come in handy, instead of one at a time. Now if I can just get the frameworks installed properly. Having to use two different apktools to install and still not decompiling right.
[Android Themes] djdarkknight96:
Yeah that's why I went to AOSP, so much easier to theme. But sense has so many great features. It was a tough choice!
[Android Themes] scrappy610:
I miss my CM. But, new phone, the OneMax, and its not out yet so here I am. Sense has a smooth integration that I like.
[Android Themes] Kdio:
Hey djdk

Hope it fits your needs too or is there any adaptation that could be done to do it better ?

In fact, did you tried the 'Reverse'? I'm still trying to get a green light to release it.

Nice regards.

.
[Android Themes] pas2001:
Thank for support . I will test and report mate
[Android Themes] djdarkknight96:
I haven't tried the newest one yet because I have to replace my laptop tomorrow. I'll give it a go on my other pc though...brb

Sent by my Klearkat Nexus 7

Free TBO Updater App

Status Report
[Android Themes] Kdio:
Hummm .. .this one could be trick.

For the different frameworks needed for each platform, you've helped me solve it as from next release, every apk inside 'Framework Folder' will be installed as framework. if there is only framework-res or not, they will all be installed. This one was easy. EDIT: At this moment the tool REQUIRES twframework-res.apk existence.

But having different apktools ... can you link me to a GUIDE of some sort ?

Thank you.

.
[Android Themes] djdarkknight96:
Ok this is what I did so you can see if I screwed up somewhere

I made these folders:

apktool - aded the latest apktool.jar

Compiled - An apk I want to theme

Decompiled - Empty

framework - This was tricky "had to add twframework-res.apk and framework-res.apk which is the same apk just renamed

Stock - I use this for stock Images

Themed - this for output for Themed Images

I selected create theming workspace

Got this Error:

WindowsError: [Error 2] The system cannot find the file specified

Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Admin\.gimp-2.8\plug-ins\KThemeDecompile.py", line 102, in themeProcess
return_code = subprocess.call(['java', '-jar', apkTool, 'd', '-s', '-f', '--frame-path', output_folder, inputFile, decompilePath])
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 711, in __init__
errread, errwrite)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 948, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Did I miss something?
[Android Themes] pas2001:
Not sure do right things? I make folder name" 9png " inside " in "folder then drag 9png 3 pieces that extract out from apk into this folder

open gimp and select the last choice reverse... select folder in out jar then it show log like this I may mis understand?
[Android Themes] coldmethod:
[MENTION=2147860]Kdio[/MENTION] Wow, I'm not a gimp user, I've always used Photoshop. But after reading through this thread it looks like I've been doing things the hard way; when I get a chance I will install Gimp with all of your tools and give it a whirl. You may have inspired me to come over to the dark side...:D

Thanks for all of your work dude.:good:

+1 for Kdio

Recognised Contributor.
[Android Themes] Kdio:
Hi D.J.

I'm quite sure you are riding a 32-bit Gimp ... could you please do the below edition?

I'm not understanding it too Pas. The log didn't provide any light.

Just to standardize the procedure could you please:

Download apktool.jar 1.5.2 just to be sure of the version.

Re-download the View attachment 2687869 and overwrite the existing

Download this example View attachment 2687958 and extract to anywhere you want.

Re-run the tool giving the above in/out paths.

Thanks dude.

.
[Android Themes] talkingmonkeys:
I'm in for this one too. Hes an unsung hero right now. Keep it up man!

I haven't had a chance to test it yet either. Actually just finished the bulk of what I was trying to theme.
[Android Themes] Kdio:
New Release + New Tool

Hi ALL

New release at OP

+ Most options are now persistent between GIMP sections as requested by [MENTION=5282154]pas2001[/MENTION]

+ When decompiling, you define the platform being worked with in order to the tool select and use the appropriate framework files. [MENTION=2126467]djdarkknight96[/MENTION]

+ Reverse Engineering .9.png's files.

+ Code sanitation

+ Install instructions at OP revised.

Thank you all

.
[Android Themes] djdarkknight96:
Sorry I was busy with the new CM11 theme chooser but will test this out tonight and process a few theme skins.

Thanks again for this awesome tool!

DJ

Sent by my Klearkat Nexus 7

Free TBO Updater App

Status Report
[Android Themes] pas2001:
thank
[Android Themes] Kdio:
Hi my friend.

Thank you for finding my errors.

Took me some time but finally got what was wrong but, before my confession could you please test it?

Please:

1) Extract the content of View attachment 2691103 to the same folder of apktool.jar ... it is the aapt.exe.

2) Extract the content of View attachment 2691104 to the Plugins folder replacing the existent.

3) Run again the tool as expected.

Thanks my friend and sorry the inconvenience.

Regards.
[Android Themes] pas2001:
Be glad to have alittle part in this tool . I will try again asap. Now I'm outside.
[Android Themes] pas2001:
HI mate let me conclude again since this is my office pc. so I should start again from install GIMPS

I must include all from post 1 or use only above mate thank
[Android Themes] Kdio:
Hi P

Install 1st post them overwrite with new one.

Tks
[Android Themes] pas2001:
Thank #83 and 88 or only 88

---------- Post added at 12:15 PM ---------- Previous post was at 11:55 AM ----------

HI K just want to say errrrmmmmm.... Perfect , flawless , complete jobs ... I know only these 3 words to say in english( if in thai will have more words to say).

You make the tool that I ask for many and never get reply.So the above post suggest you are deserve to be recognized themer I dont think so. Cos the term " recognized dev. " more suitable for you. But I will call you this in my new place you know where.

The other things I want to ask from your skill is about the optimizing tool for png you know it?

regards
[Android Themes] Kdio:
New Release - 7 Tools

Hi ALL

Someone please help me stop ;)

New release at OP

+ Flashable ZIP creation

+ apktool.jar and aapt.exe are now packed inside Resources folder to overcome some installation issues and you no more need to provide its location. Current apktool version is 1.5.2 and, if needed, just replace it with yours.

+ More code sanitizing, now under Python standards.

If you installed any previous versions, please remove all and re-install. You may preserve yours saved options by copying all *.cfg files that are stored inside KTheme.Resources folder before deleting.

Please, share your experience and needs.

Would be an honour trying to translate them ... Thank you newer older friend. :victory:

Pas ... I never used one so my knowledge on this field is quite shallow. :rolleyes:

If you mean this, it won't be hard to create a tool for it but you will have to point me out the command line options needed to accomplish your needs.

Nice regards and thank you for supporting this project. :good:

.
[Android Themes] pas2001:
Want to stop is easy...unplug your pc. mate.

Thank , Iwill try more . Now slightly busy with some project .
[Android Themes] Kdio:
I will still have the device on and that will remember me that you guys are still here ;)

Nice regards.

.
[Android Themes] youcef29:
thank you so much
[Android Themes] F4bioo:
Great, great job.
[Android Themes] Kdio:
Thanks F4bioo

Coming from you is an honour.

Thanks for the inspiration dude.

-=-=-=-=

BragadÃO F4bioo

Vindo de você é uma honra!!!

Muito obrigado pela inspiração!!!

Valeu!!!

.
[Android Themes] Kdio:
Little update to Decompilation Tool

Hi All

Just did a little improvement to the

Decompilation Tool

to best fit different purposes:

You may just extract the updated code from View attachment KThemeDecompile.zip or download the full package from OP.

Nice regards.

.
[Android Themes] coldmethod:
You Sir, are a genius, I finally got around to trying this out, and I must say these tools have to be the best thing since sliced bread.

I am seriously considering using Gimp over PS thanks to you.;)

Thanks for the good work.:good:
[Android Themes] Kdio:
Dude ... don't do that. You still need P$ as it it's your habitue tool.

When Paint no more fitted my needs, I've first found GIMP and it fulfills. I've never used PS and can't say a thing against it (neither in favor of) but I believe that every Pro-Drawing tool will share similar functions. Colorify, for example, probably is the same between them and that's all the knowledge needed :D

Theming changed my needs and I've found built into GIMP a high level script programing tool (Python-Fu) that allowed me do all that repetitive work with one click ... Greate!!! ... But I always use GIMP first to inspect and here and there doing a more careful editing, As so you should use your beloved P$ because it's where you find yourself more comfortable. Just that.

Let GIMP handle the hard loads :D ... I start considering using the tool when there are more than 10 images with identical editing profiles. Less than that I do by hand.

Anyway, it has only 80Mb ... worths the installation for the Tools purposes only ;)

Nice dude.

.
[Android Themes] Kdio:
New Tool

Hi Guys

Introducing new Tool:

7 - Build, Sign and ZipAlign APKs

As it requires some new resources, please download the full package from OP and overwrite your current installation.

Nice regards.

.
[Android Themes] xxmrgreenxx:
You'r f*cking Genius :fingers-crossed:
[Android Themes] coldmethod:
After you said this I got to thinking, then researching, and you are right; I haven't been using PS to it's full extent. There are a lot of batch processes that can be automated. Thanks for the inspiration to look into this.

And yes, this will be the plan, You have done the hard work now I will take advantage of your awesome work:D.

Thank you.

Ditto...:good:
[Android Themes] Kdio:
Advise request

To: All Dear Theme Tool Customers

[MENTION=2126467]djdarkknight96[/MENTION] , [MENTION=5064082]joehanh88[/MENTION] , [MENTION=4303103]LeftyGR[/MENTION] , [MENTION=1799973]Obartuckc[/MENTION] , [MENTION=4607905]xxmrgreenxx[/MENTION] , [MENTION=4412122]Bubbajoe40356[/MENTION] , [MENTION=4726059]gp545[/MENTION] , [MENTION=5266065]talkingmonkeys[/MENTION] , [MENTION=4915946]Akhilendra Gadde[/MENTION] , [MENTION=5684506]CustomerWindow[/MENTION] , [MENTION=806556]GadgetFreak[/MENTION] , [MENTION=4894137]jlmvc[/MENTION] , [MENTION=5282154]pas2001[/MENTION] , [MENTION=5716188]*wii360*[/MENTION] , [MENTION=5726720]mochingnawy[/MENTION] , [MENTION=4223026]coldmethod[/MENTION] , [MENTION=4521340]aki-saar[/MENTION] , [MENTION=5432718]SkywalkerZ[/MENTION] , [MENTION=5132813]andrewwright[/MENTION] , [MENTION=2564710]fkfmfz[/MENTION] , [MENTION=5034103]jayOOMjay[/MENTION] , [MENTION=5537766]Modding.MyMind[/MENTION] , [MENTION=4367200]pierx[/MENTION] , [MENTION=5007793]Sammydaskroko[/MENTION] [MENTION=4939520]Shaftamle[/MENTION] , [MENTION=3538923]wingg[/MENTION] , [MENTION=2911187]wis3m0nkey[/MENTION] , [MENTION=5437191]ZettaHertz[/MENTION]

From: Derailed Mind

Subject: Advice/Suggestions/Stones Request

First, just let you know that I'm working now in adding support to:

- *.jar Decompile/Build

- Flashable ZIP with built in Sign/ZipAlign features

- Sign/ZipAlign whatever you want (9th tool)

( Why there is always something left to be done :confused: )

While doing so, I've realized that this is not anymore just an Android Theming set of Tools and I'm about to request a replacement to Android Software Development where, I think, is now more appropriete to what it has become.

This will necessarily require a Thread Title change that now got me uninspired... plain naked of ideas ... Could you please suggest some from your brilliant mind? :cool:

The winner of the "Best Title Ever Contest" will receive

FOR FREE

an amazing and wonderful mention for his rights over it !!! :victory: :victory:

Thank you all dudes for supporting this project.

Nice regards.

EDIT: there are 3 pending request too ...

- [MENTION=4657272]scrappy610[/MENTION] for Sense decompiling (waiting for successfull details)

- [MENTION=2126467]djdarkknight96[/MENTION] for 9 patch resize (whating for command line arguments)

- [MENTION=5282154]pas2001[/MENTION] for image optimization (starting to read right now)

Never forget. Never surrender.

.
[Android Themes] Sammydaskroko:
Hey , much appreciated but i currently paused theming because my thread was closed down by using some icons bobcat claims as his , so i moved to another forum but when i start again i will instantly give feedback .. regarding the title what about "Android Toolbox" ? :)
[Android Themes] LeftyGR:
KAAT Toolbox.

KAAT being an acronym for Kdio's Android Application Transmorpher.

<Note3>
[Android Themes] Kdio:
Hope that will be soon.

Great idea but I would have to pay some royalties for it. ;)

Thanks dude.

Hi LeftyGR

Dude ... this one was awesome. I knew they would come!!!

But only if I had a XXL ego :p

:good:

(sorry .. thanks already depleted)

.
[Android Themes] Sammydaskroko:
oh damn ... what about "Trabajo de la Bruja" or Witchcraft Tools or "Hexenwerk" :)

because it can transform like wizardry ( btw watched the Hobbit 10 minutes ago ) :D
[Android Themes] djdarkknight96:
"K-mods" tools for gimp :)
[Android Themes] pas2001:
errm as I see all in frame that you must learn before do my wish I want to withdraw my wish from this genie ...You use your time too much for the things that may be me only will use it

Thank mate my GENIE
[Android Themes] Kdio:
Before you withdraw your wish, could you please test the below new Tool?

View attachment KPasOptimize.zip

1) Extract it with those others

2)

Input Folder

: place there all the PNG images you want to optimize. Even .9.png's but they should not have been compiled yet. Raw .9.png's only.

3)

Output Folder

: you know ... and click OK

4) Compare their sizes

5) Compare the image qualities between this and your other optimization tools

6) If you could, flash the result and evaluate its quality inside Android.

Only with your confirmation I will be releasing it.

I'm anxious to see the results.

Nice regards.

EDIT: obviously I've tested it but with no background on the optimizing field, I can not evaluate its efficiency.

.
[Android Themes] Kdio:
Hey Guys

With the proper permission of the author, I would like to

suggest

just a little adjustment to the idea:

KAAT Kit

Even being XXL, sounded cool :cool:

Anyway, the customer shall be listened :D

,
[Android Themes] LeftyGR:
It must be fate. I just finished eating a Kit Kat! LOL

<Note3>
[Android Themes] pas2001:
Thank surely test my friend
[Android Themes] pierx:
How about

- Android Theming Processor (ATP)

- Kdio Theming Tools (KTT) or KiTT

Kaat Kit is okay though. ;)
[Android Themes] pas2001:
Kaat Kit +1 if want vote

---------- Post added at 06:39 PM ---------- Previous post was at 05:41 PM ----------

HI K I try by extract this to folder plugins it right? Then use which command
[Android Themes] pas2001:
Hi I may miss somethings but it show this while choose folder to work
[Android Themes] pas2001:
Hi again K

I may have real problem

It crash every time and every choice I choose folder

I delete all in plugins and download new zip from post 1 plus with Kpasoptimize then extract both in plugins folder

It show all menu add optimizer but when I choose and select folder it show as attach above

I think I miss some thing

This is my home pc while my work tool is in my office pc mate

Or I must have some more file in plugins folder?

Thank
[Android Themes] Kdio:
Hi P

Very strange indeed.

To appear in the menu, the plugin should had been compiled yet so, there is no code error (logic may be)

You've said that the error appears when you 'select a folder' ? The 1st screenshot error should be raised when you click OK. And I've never seen that second message in life.

Does the tool creates the Output Folder ?

I'm really out of ideas as it is working flawless here and seems doing what you've asked for.

Someone else could check that new Tool ? Just run with a random PNG.

Thanks.

.
[Android Themes] Kdio:
Almost Ready to Go

Hey guys

All the pending features are already built and I'm just waiting for the Optimization to be tested.

At the moment this is what we have:

Nice regards.

.
[Android Themes] pas2001:
Now I in office and open the work tool but not add optimize yet

I will try now optimize plugin

B4 this I said that can select in and out folder

---------- Post added at 09:26 AM ---------- Previous post was at 09:04 AM ----------

It can work can choose in and out folder mate but I want you to see result sir. Will send via pm
[Android Themes] Kdio:
Hi P

You were right. The optimization method built into GIMP seems not quite good at all.

I've got good results with PNGOUT and will be submitting it to appreciation later today.

Thanks for your time on this.

.
[Android Themes] pas2001:
Thank my question is why my home pc cant work. If I delete all in plugins folder and extract content again. What files I should download please point sir thank.
[Android Themes] Kdio:
Hi P

You may indeed delete all and download again from OP the entire package (only from OP ... nothing more or less).

Do you mean that NONE tool is working at your home station or just Optimization ? If none, I would be speechless :(

Does your Windows User has administrator rights? If doesn't, please right-click GIMP shortcut and select "Run as Administrator".

If you've downloaded GIMP from gimp.org, could you try a build from partha.com or the other way around ?

Please, after uninstall, delete the folder c:\users\pas2001\.gimp-2.8 before re-install. After re-installing, copy the tool back to its plugin folder.

Let me know your progress.

Nice regards.

.
[Android Themes] pas2001:
Thank will do as u say
[Android Themes] :
[MENTION=2147860]Kdio[/MENTION]

I haven't tested your program yet, but I have had my eyes on it for some time now. Mainly because if offers the ability for me to work on certain apps such as com.htc.resources.apk which if anyone here is familiar with should know that dealing with nine patch images can be very painful for such an app due to compilation issues. So to compile the nine patch itself is beautiful. I normally use aapt commands to do it but a GUI would make it less painful haha.

As for a name.... Hmmm, I must think on that one. Cant really say what I would call it at this point. Though, I can say it is a valuable asset to any themer running linux and GIMP.

---------- Post added at 12:47 PM ---------- Previous post was at 12:43 PM ----------

[MENTION=2147860]Kdio[/MENTION]

I must ask this though... Does your program offer the ability to compile xml files as well so they may be used as raw files for something such as a vrtheme? Very important for me to be able to do that. I have the ability to do it manually if such a concept is not being implemented at the moment.
[Android Themes] Kdio:
Hi Modding.MyMind

Thanks for contributing ... every mind counts !!! :D

Not yet dude ... I'm finalizing the HTC build/decompile tests in order to deliver them too.

I've already successfully:

- installed all framework files

- Decompiled and re-built SystemUI

- Decompiled SecPhone (had to go to sleep before re-building it) (EDIT: sorry for that)

Just stay tuned and with your help they will come.

Not yet too. I'm very concerned with this and as soon as some pending features are completed, I have to start the porting to Linux. Still to see what to use instead of: aapt.exe; zipalign.exe; 7za.exe; and now introducing pngout.exe.

Think won't be so hard to find their Linux binaries ;)

At this moment, you should use Tool "7 - Build Apk" and extract from it the XML's you need.

Do you think that the compilation process should preserve 'apk\build' folder for an easier access to these resources?

Thanks dude.

.
[Android Themes] :
[MENTION=2147860]Kdio[/MENTION]s

I currently decompile the apks on my Linux distro (Ubuntu 13.10).

When I make my modifications to certain xml files and/or nine patch images I rebuild it with the help of aapt. I use a skeleton layout of a so called "apk" imitator on my computer when compiling nine patch images and xml files so I can use them as raw resources.

This is extremely useful for the com.htc.resources.apk since trying to compile it without issues is difficult. And in a lot of cases it helps to not have to hex edit it lol.
[Android Themes] scrappy610:
Just a quick thought. With HTC sense 5.5 and up, on 4.4 kitkat, they moved systemui to priv-app. Unfortunately it is a neccessary framework to decompile some of HTC apks and is almost as much a pain as com.HTC.resources. I have tested the batch tool and it works awesome with already recompiled apks so if nothing else you can point gimp to that folder and wala. [MENTION=2147860]Kdio[/MENTION] your tool makes mundane tasks a breeze. Changed all the pngs to the color I wanted in minutes. Keep up the great work.

Sent from my Venomized HTC One Max
[Android Themes] :
It will be very easy to find linux binaries as you listed above. Heck, you could pull most by calling them on the linux machine. Otherwise, github will be a very resourceful place to look for such things.
[Android Themes] Kdio:
I'm driving the same Ubuntu here right now (work) and this will be my test station when porting it. :good:

You probably had already noticed that's the same I do to Compile and Reverse the .9.png's.

I just don't see how to do it to XML's as they may refer (point) to resources that are not there at compiling time ... Am I missing something here ?

Hummm ... there is an option in Tool "1 - Create Workspace" >> "Decompilation Type:

Resources Only

" that may address yours com.htc.resources.apk issues. It uses '-s' command line argument to NOT decompile smali ... Will give it a try later.

Hey scrappy610

Thanks for that. I was not installing SystemUI as framework but will add it. :good: Can you please point me any HTC apk that requires SystemUI as framework? At least Phone didn't asked for it :cyclops:

I've being using, for my 'blind' tests, this ROM files and as said, I've successfully decompiled and rebuilt SystemUI.apk.

So I ask you: I'm on right track ?

You've got the Tool fully!!! :victory:

Thanks dude.

Yep .. I've thought so too ... Will just get all the logic flowing right and them the port will be no pain :D

Thanks.

.