yashsingh1/xdaforums huggingface dataset:
[Android Themes] raynan:
Just out of curiosity, is there a way to make this run properly from a directory of your own choosing? I would like to run this on my flashdrive since I tend to develop on different computers depending on where I am.
[Android Themes] Ticklefish:
Well, it's certainly possible.

Essentially, it would just be like deodexing in reverse. You would need to have decompiled versions of every apk and jar you'd want to odex, Tickle My Android could odex each one in one go, then you'd need to put them into the appropriate folders on your device.

A long process, but it is something I could code in.

However, I'm not quite sure why you'd want to do it. Having an odexed rom won't make your phone any faster or give you a better battery life. The only advantage you'd have is that the first boot of your device after you reodex would be a bit faster than normal.

Only the first boot, though. Not the second, third..or any others.

Apart from that, there is

no

performance difference between a deodexed rom and an odexed rom whatsoever.

There's a neat guide here that might explain it a bit better: http://xdaforums.com/showthread.php?t=2224570

Yes, there is. It just involves a little bit of work on your side first.

You need to change the properties of the shortcut to point to the right address first. At the moment, it points to 'c:\ticklemyandroid\tool_files\rewrite.bat'. You might need to change it to 'e:\myfiles\ticklemyandroid\tool_files\rewrite.bat', for example.

You may also want to change the icon addresses of the shortcut and the WorkAreas as well.
[Android Themes] princemouli:
but iam experiencing a huge difference of speed and battery life in my mobile ....

i took a rom and made a odexed and deodexed versions and flashed one after another and checked performance there is a huge change..... i used each version for a weak ( is it not enough )
[Android Themes] Ticklefish:
Curious. That suggests an issue with your dalvik cache. It's worth finding out what's going on here as that shouldn't be happening.

What changes did you make after you deodexed?

I can implement an odex function in TMA, but it will take some time. If your need is urgent, I suggest you look at this: https://code.google.com/p/smali/

That's the actual program that Tickle My Android uses to deodex (and odex) files with.
[Android Themes] princemouli:
when i testing i didnt made any changes in deodexed one...

i used same rom with out any changes but of different types ( deodexed and odexed )......

and i will wait for your update take your own time....:D
[Android Themes] Ticklefish:
So which files will you be changing?
[Android Themes] princemouli:
framwork.jar , framwork.apk , services.jar ,Phone.apk, Settings.apk ,SystemUI.apk and mms.apk

also added gapps pre installed which are also to be odex...
[Android Themes] Ticklefish:
And those are the only files that you deodexed?
[Android Themes] princemouli:
ya...
[Android Themes] raynan:
Thank you, that is the answer I was hoping for :good:
[Android Themes] Ticklefish:
I've put together a beta for version 9.2. that I'd like you to try.

There's still work to be done, but I was wondering if you could try the 'Odex All Files' option and let me know what happens.

This should create a collection of odex files in the '_out' folder, ready to be added to a zip file. It works but I'm not convinced that the odex files generated are correct.

Could you do me a favour please and try it for me?

If anybody else wants to try v9.2, they're more than welcome to click on this link here: https://www.mediafire.com/?eyrpm38dmmj7aef :cool:

Work on Tickle My Android X is progressing nicely..but slowly. The elite beta-testers will know what I'm talking about when I say that it's quite different from the usual TMA, so it's taking some time to code!
[Android Themes] princemouli:
thanks and sure i will try it now...
[Android Themes] Hamidreza2010:
[MENTION=4315551]Ticklefish[/MENTION]

i edit setting.apk.but when in want to recompile it get this error.i attach for you the log.

i cant set a correct id for in lines 3677 and 3678 and 3679 in public.xml and line 60 in settings_headers.xml

can you please set a correct id in 3 lines in public and line 60 in settings_headers.xml for me bro?

see in log to find out my problem.

thanks before dear

http://p30up.ir/images/slrn0mgdz2fmz1rdfj7.rar
[Android Themes] princemouli:
brother where is the " Odex All Files" option....???

i didn't find any option to reodex files......

---------- Post added at 11:20 PM ---------- Previous post was at 11:12 PM ----------

why did u added those three lines in public.xml ???:confused:

remove them and recompile ur apk

id's in the public.xml will come by default we dont need to add them...

u should compile ur apk and again decompile it and then find ur new ids in public.xml and then change them in smali files according to the guide you are following..
[Android Themes] Ticklefish:
So we've got two problems here:

For the first, we need to look at the relevant lines in 'public.xml'. Lines 3677, 3678 and 3679 look like this:

The error message says that the 'id' attributes aren't integers. And it's right..they're not.

These id's need to be in hexadecimal. And in hexadecimal, 'g', 'h' and 'i' don't exist. So these aren't real, hexadecimal numbers.

Or, to be more technical, they aren't integers. If you're putting your own id's into public.xml, they need to be hexadecimal only.

However, I actually recommend

never

editing public.xml.

At all.

Ever.

Why?

Well, there simply is no need, that's why. Apktool will automatically do it for you when you compile.

If you add some strings to your apk, they will be automatically placed into public.xml with the correct id attributes.

Which saves a lot of time trying to work out what the right attribute should be.

Short answer: Either ensure you use hexadecimal id attributes...or just don't bother and let TMA take care of it for you.

Next, we have the problem with 'settings_headers.xml'.

The error message says you have a mismatched tag at the very end of the file.

This is what's called an open tag:

While this is what's called a closed tag:

If you use formatting on your xda posts through the website, you'll probably see quite a lot of these.

If we've got a mismatched tag at the end of your xml, it suggests that we have an open tag without a closed tag somewhere in the text.

And we do. It's on line 31:

<header android:icon="@drawable/ic_launcher" android:title="@string/cpu_setting_header">
<intent android:targetPackage="it.sineo.android.noFrillsCPUClassic" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPUClassic.activity.MainActivity" />
<header android:icon="@drawable/ic_nav" android:title="@string/nav_title">

Notepad++ is a very helpful program for writing xml, as it can highlight this for you.

So, just add a closed tag and this problem is solved:

<header android:icon="@drawable/ic_launcher" android:title="@string/cpu_setting_header">
<intent android:targetPackage="it.sineo.android.noFrillsCPUClassic" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPUClassic.activity.MainActivity" />
</header>
<header android:icon="@drawable/ic_nav" android:title="@string/nav_title">

Hope this helps!
[Android Themes] Ticklefish:
In the 'Deodex Menu[/u]'. You should have 'V9.2.Beta1' in the top-left of the window..
[Android Themes] princemouli:
check the attachments ..
[Android Themes] Ticklefish:
Interesting...the strings didn't load. I'll have that fixed soon. In the meantime, you can use option 6 to odex the files. It will still work, it'll just be missing some bits of text.
[Android Themes] princemouli:
brother u also missed to add smali.jar file in the tool_files folder

i managed it. by adding smali.jar in that folder....
[Android Themes] Ticklefish:
lol I'm doing well today, aren't I? I'm uploading a new version right now..
[Android Themes] princemouli:
brother please add some more changes ...

in this version i need to decompile every apk which i need to reodex ....

can u skip the step of decompiling apk's ( make it automatic as manual decompiling takes lots of time to reodex files )

and also add a folder in work area for reodexing.....
[Android Themes] Ticklefish:
The apk's need to be decompiled for them to be odexed. Smali.jar takes all the smali files and collects them together into one, single file.

It's a pain but there isn't much I can do about it.

Do the odex files work on your rom?
[Android Themes] Code4U:
I don't want to ruin any possible new features. But there's a ton of odex scripts/zips that work perfectly. It seems like a lot of work for [MENTION=4315551]Ticklefish[/MENTION] to code this into a windows program. Simple solutions have been around for a very long time. If I might suggest searching for [MENTION=4944549]MatrixDJ96[/MENTION]. He has a nice universal batch odexer. At least until the OP finishes his new project,that way no one has to keep asking about odex for now. Really though how many of you have actually done performance measure's between odex/deodex. I guarantee you will not be that impressed after re-odexing. If your apk's are compressed and zip aligned the ram footprint is about as low as you can get it,without shrinking png's which is a p.i.t.a and very annoying. If you want to get really down to it my deodexed apk's are definitely faster then their odex counterparts and the ram utilization is actually lower,I do take a few extra step's though. It's important to remember that after cache has built most people would not be able to tell the difference between the two. Just a thought!
[Android Themes] princemouli:
brother all those scripts only works in side my phone i want to odex my rom in my PC as it skips many errors ....

and it was clear in this thread that odexed roms work faster...

and this reodexing option also allows me to create mods for both odexed and deodexed versions....
[Android Themes] Code4U:
Yes odex would be faster, if you did not maximize the apk's abilities. I stated what has to be done to the deodex first. Ill bet if you monitor resource usage both ways. You will in fact see what I'm talking about.
[Android Themes] princemouli:
odexed files seems to be worked perfect in my rom....

brother did u made any new changes to TMA 9.2 i want try the newer version....

and you should add folder for reodexing like the deodex folder ... let the whole process of reodexing takes place inside this folder ( from decompiling to getting .odex files )

and that folder should contain some sub folders like " apk's to odex " and " Reodexed apk's "

and also its better to add decompile all apk's option ...

---------- Post added at 09:17 PM ---------- Previous post was at 09:09 PM ----------

brother as you are using a branded Samsung phone it doesn't make difference between odexed and deodexed versions of rom you using...

and i can guarantee you that you can see almost no difference between both versions ...

if you use a very low budget phone from mediatek or other you can see a visual difference....
[Android Themes] Ticklefish:
I've got to be honest, I can see that getting very complicated. TMA needs to be easy to understand for experienced modders and newbies alike.

If you're deodexing a file to make changes to the smali, that file is going to have to be decompiled. You can't deodex it if it's not decompiled and you can't edit the smali if it's not decompiled. And it has to be decompiled to correctly remove the smali files when it's odexed.

If all this happens in a separate folder, you'd have to pull a file, wait for it to be decompiled into the _odex folder, wait for it to be odexed, wait for it to be recompiled, push it back to your phone, pull it from the phone and decompile it into the _working folder before you can edit it.

I appreciate that you want to automate the whole process but I can see this starting to cause confusion.

As it stands, you can pull your deodexed file, decompile it, change it, odex it (I'll update the process so it deletes the smali files from the _working folder once the odexing is complete) and then recompile it. Then you'll have your odexed apk or jar file in the _out folder as well as the relevant odex file.

You can recompile more than one file at the same time, by the way.. ;)
[Android Themes] Ticklefish:
I've been having a think about this. I think what you want to do isn't going to work with Tickle My Android's ethos...

...but I hate to say no to people. I think I can make a separate tool that will do precisely what you need. It will automatically decompile all the files you provide, odex them, recompile them without the smali files and present you with two folders. Folder one will have the odex files, folder two will have the odexed files.

All of which will happen automatically once you press the button, you don't need to do a thing.

It shouldn't take too long to code up. If I get any time over the weekend, I'll sort it out for you. :thumbsup:
[Android Themes] princemouli:
ok brother don't get trouble ...

i am learning java using some guides... so i will try to create my own tool for re-odexing and if i need some information i will pm you ....

and thank you very much for spending lots of time on this ...
[Android Themes] Ticklefish:
Give this a try. Download the exe file from here: https://www.mediafire.com/?8modnx7onj7ev51 and extract it to the root of your c:\ drive, just like TMA.

Copy the files you want to odex into the 'Files_To_Odex' folder and double-click on the 'OneTouchOdexer' shortcut.

This will extract the classes.dex from your deodexed apk and jar files and rename it to something.odex (SystemUI.odex, SecSettings.odex, etc).

The odex file and the now odexed apk/jar file will be then moved to the 'Odexed_Files' folder.

Simple, really.

Let me know how it goes!
[Android Themes] princemouli:
not working brother...

tool saying that " system cannot find the path specified "

and iam getting .odex files in Files_To_Odex folder

and when i flash those apk's and .odex files they are not working

and Odexed_Files folder is empty..
[Android Themes] Ticklefish:
So the SystemUI.odex didn't work, no?
[Android Themes] princemouli:
ya and also settings app also
[Android Themes] steha:
Hi all.I successfully decompiled my framework-res.apk and system ui. The problem now is compiling it. During the process, it says W: Could not find sources. What should i do? I imported as framework, my systemUi.apk, twframework-res.apk and framework-res.apk, already btw. Also deodexing dosent work it pulls all the files but when i try deodex it says no files to deodex any help would be great
[Android Themes] Ticklefish:
I'll make some changes to the code, then pm you to keep the thread clean.

The message 'W: Could not find sources' isn't that unusual and is normally nothing you need to worry about.

It's a warning, not an error, so it won't stop the apk from compiling. And, as long as the apk still works, you can safely ignore it.

As for your problems with deodexing, can you share your history.txt please?
[Android Themes] Ticklefish:
It's a lovely day today.

The sun is shining, the birds are singing...it's time for a new version of Tickle My Android!

Head to the OP to pick up Version 9.2. now!! :D
[Android Themes] carl1961:
Thank's [MENTION=4315551]Ticklefish[/MENTION] this helps when testing newer versions and at the same time you can use the older version (I just rename old version TickleMyAndroid9.1 and point Tickle My Android of that folder to c:\TickleMyAndroid9.1)
[Android Themes] Ticklefish:
If you're doing that, you need to make sure you change the 'Start In' location as well.
[Android Themes] carl1961:
good eye Ticklefish thanks I fixed that...
[Android Themes] Ticklefish:
Anytime. :)
[Android Themes] Ticklefish:
Okay, so the release yesterday of Version 9.2. wasn't quite right. There were a few bugs to do with the mouse control.

These have been fixed and the .exe file has been updated. Sorry about that, guys.

Thanks to [MENTION=3271517]carl1961[/MENTION] for highlighting it!
[Android Themes] steha:
When deodexing after pulling certen apps im asked directory or file ( i think it was file) what should i type ?
[Android Themes] Ticklefish:
Hmm...can you share a screenshot please?
[Android Themes] steha:
I reset TMA and it seems to work now thanks
[Android Themes] Ticklefish:
Cool. I like the problems that are easy to solve! :highfive:
[Android Themes] Chia Pet:
Battery Icon

Hi, first of all, I am really appreciate your work and a big fan of TMA. Just one noob question... Are we going to be able to change the battery icon on kitkat 4.4.4 with this new build? I remember I read something somewhere in this forum that there is a way to change battery icon on 4.4.4 but I can't seem to find it again.
[Android Themes] Ticklefish:
Not really.

Or, at least, not without doing some work first.

Before KitKat, the battery icon was just a collection of image files controlled by two xml files. All you needed to do it change the icon was change those files.

For 4.4, Google changed things and now the battery icon is drawn by code. No image files are involved. Which makes it much harder to change.

For Xperia KitKat, Sony have done something different and that's quite simple to mod. In fact, I've done a tutorial showing people how to do just that.

But for stock KitKat, it's not so easy. I did find a tutorial that explained how to re-use old smali from 4.3 to make the battery icon use image files again, but it was for TouchWiz only.

If you can find a way to do that on your rom, then Tickle My Android will be able to change your battery icon. You just have to find that way first..
[Android Themes] Chia Pet:
Battery Icon

Thankz for the quick reply. I am using the the CarbonRom KitKat for the GS2 (It is a Great ROM BTW). TouchWiz or not, I don't know because I am a noob LOL. I am able to change the signal icons, wifi icons, bootanimation and thats it. I've been searching searching and searching for a way to change the battery icon but NO luck. I really miss the custom battery icon on my phone. :crying:
[Android Themes] carl1961:
go here and Use TMA to code your SystemUI.apk or upload your SystemUI.apk, framework-res.apk and twframework-res.apk, and someone will help you then you can have many battery's to choose from.
[Android Themes] Chia Pet:
Battery Icon

Wow thankz, never seen this before, I will give it a try. Many thankz.
[Android Themes] Ticklefish:
I am working on a way to make people easily change the battery icon on a any KitKat rom. But I'm not quite there yet.
[Android Themes] princemouli:
hello brother [MENTION=4315551]Ticklefish[/MENTION] there was a gift for you see attachments
[Android Themes] Hamidreza2010:
[MENTION=4315551]Ticklefish[/MENTION] v9.2 hasnt apktool_2.0.0-RC1-848f0d6b5f ?

yes? why ?

apktool_2.0.0-RC1-848f0d6b5f isnt last version?
[Android Themes] carl1961:
It was in the the tools folder and I copied it to the apktool folder.
[Android Themes] Hamidreza2010:
HHHMMM

Thanks I,ll look at it
[Android Themes] carl1961:
If not in the last 2.0 update then grab it from the last update.
[Android Themes] Hamidreza2010:
ok thanks

i will do it ;)
[Android Themes] carl1961:
yes the first copy of TickleMyAndroid 9.2.0 had apktool_2.0.0-RC1-848f0d6b5f.jar in the tool_files

the fixed TickleMyAndroid 9.2.0 does not have that apktool_2.0.0-RC1-848f0d6b5f.jar so they may be a reason. we have to see what [MENTION=4315551]Ticklefish[/MENTION] say's

but I know if you copy apktool_2.0.0-RC1-848f0d6b5f.jar or any version of apktool to the user_files/APKTOOL folder that the

'Change Apktool Version shows it as a option to pick, and it also shows it picked.
[Android Themes] Ticklefish:
Very nice, thank you! :D That's really appreciated!

You're right....it hasn't.

Tickle My Android comes with apktool 1.5.2., 2.0.0b9, two modded SlimRom versions and the latest build of apktool 2.

It's moved on from RC1..

Absolutely correct. As mentioned in the FAQ's, users can import any version of apktool they like into the APKTOOL folder and TMA will automatically make it available to choose from.
[Android Themes] porkyhontas:
[MENTION=4315551]Ticklefish[/MENTION] -- I must confess, I do enjoy using your tool! It makes decompiling and recompiling apks a pleasure; as a matter of fact, it kind of feels like one is cheating a little because the tool does everything for you. Anyhow to the point: I've been fighting this one apk, SecBrowser_SPR.apk, which is the Sprint Browser for a SGS3 running a Kit Kat ROM. I can't get it to decompile with apktool 1.52, but can with apktool2 and the apktool RC on TMA v9.1. One version of the apktool2 won't recompile it while the other cannot find the specified file. Either way I cannot get a recompiled apk, which brings me to you for some assistance.

View attachment history.txt.txt
[Android Themes] lacoursiere18:
Interesting log there.. are you sure your installing both frameworks from the rom you pulled this from? Framework res and tw framework-res..

It seems somehow arrays xml is borked..
[Android Themes] porkyhontas:
Yeah, and that is what is killing me -- pardon the expression -- about this one apk because I do have the frameworks installed from the ROM. I've easily decompiled/recompiled nearly everything else without any problems. In the end it's not that big of a deal if I have it themed or not but it would be nice figure it out for my own knowledge. Thanks.
[Android Themes] lacoursiere18:
Understand.. would you mind posting the apk here..

Would like to try.
[Android Themes] porkyhontas:
Here you go, and don't embarrass me too awfully bad. Lol. I know most of you guys that have been theming for a while can do these apks that are a pain for us novice themers.

View attachment SecBrowser_SPR.apk
[Android Themes] Ticklefish:
Making decompiling and recompiling a pleasure is what TMA is all about! [emoji2]

Looking at your history.txt, it does look like there's something wrong with the arrays in your apk.

There's an issue with some xml and lots of arrays that are in the public.xml but not anywhere else in the apk.

Either there's a resource file that wasn't installed, or you need to do a lot of editing...
[Android Themes] porkyhontas:
Thanks for looking at the apk. I'll start from scratch again and see if maybe I missed something.

Sent from my Wicked SGS3 using Wicked Green Tapatalk
[Android Themes] Ticklefish:
Awesome signature. :)

Have a look for any files with 'res' in the title in system/framework and try installing them before decompiling.

Let us know how you get on!
[Android Themes] princemouli:
why don't you use this image as your signature or in your thread .... if you like it
[Android Themes] porkyhontas:
Thanks, and I will let you know.

Sent from my Wicked SGS3 using Wicked Green Tapatalk
[Android Themes] lacoursiere18:
No luck with that SecBrowser either.. Might want to give another one a go from a different Rom.

I tried the one in mine and it also does the same thing..
[Android Themes] carl1961:
what or you trying to theme in the app?
[Android Themes] porkyhontas:
The whole app.

Sent from my Wicked SGS3 using Wicked Green Tapatalk
[Android Themes] carl1961:
I know you do not have to decompile to change the png's,
[Android Themes] porkyhontas:
Yeah I know, I was just wanting to do some color changes with the xmls.

Sent from my Wicked SGS3 using Wicked Green Tapatalk
[Android Themes] Ticklefish:
Looks like you might have to fix those errors that were being generated. If I remember correctly, there was a line of xml that was causing problems and a few public.xml entries.

It's a bit of work, sure. But once it's done, you'll be able to mod that apk as much as you like!
[Android Themes] szunyi77:
Hello

I'm trying to download the v9.2.0 TickleMyAndroid., But we could not manage to MediaFire! :eek:

No may mirror file ?!
[Android Themes] Ticklefish:
Which sites can you download from?

--------------------------------

Sent via Tapatalk

--------------------------------
[Android Themes] Ticklefish:
Version 9.2.1 is now available to download!

This isn't a massive change to 9.2, it just fixes a few bugs that were annoying me. I'm quite the perfectionist, you know!

Oh, and there's a new battery icon by my good friend [MENTION=5364308]XxZombiePikachu[/MENTION] so that's always nice! :D