yashsingh1/xdaforums huggingface dataset:
[Android Themes] Ticklefish:
Guys, I'm about to release v15 - I just need to do a few things to get the new OP ready. Until then, if you'd like early access, you can download it here: http://www.mediafire.com/file/fssuu0gfa8n0p1k/TickleMyAndroid_-_v15.0.0.exe

I'll go into more detail about what's new later but this has a few features that will make debugging a lot easier, as well as deodexing some of the more troublesome roms. And this fixes the framework installing problem that's recently made itself known.

Let me know what you all think! :good:
[Android Themes] Androidwizzard:
[MENTION=4315551]Ticklefish[/MENTION] thx for this update :good::highfive:

a verrrrrryyyy difficult request if I may :fingers-crossed: more workareas and probably the option to rename or add device name for those of us who support a lot of devices, crossdevice development and such things :victory:

example: Note 8 into workarea 8
[Android Themes] ANDROIDXFOREVER:
Thanks bro i test from last update windows 10 fall creators 1709 e i report[emoji6]

Inviato dal mio SM-G928F utilizzando Tapatalk
[Android Themes] Thebear j koss:
Yeah, i know. But i always try manually doing it if I have an issue to check all angles.
[Android Themes] mikky986:
Thanks for the help :good:

Looks like this time the changes are worked. Followed below steps to modify the framework.

1. Pulled the framework-res.apk

2. Decompiled the apk

3. Pulled the samsung-framework-res.apk

4. Decompiled the apk

5. Made changes in colors.xml file

6. Recompiled the apk with original signature

7. Choose option "Add 'system/framework' file to project"

8. Then created standard zip file

Do I need to pull samsung-framework-res.apk every-time to make any changes in framework?
[Android Themes] zooperaj:
Eager to try it. Downloading now....

---------- Post added at 08:52 AM ---------- Previous post was at 08:32 AM ----------

Thank you for updated version of TMA. Just downloaded and started using it.
[Android Themes] ANDROIDXFOREVER:
now is correct thanks bro
[Android Themes] zooperaj:
Windows 10 v1511_64bit - Samsung Quattor GT-i8552 -Jelly Bean 4.1.2; rooted, deodexed, debloated 82 syetem apps - Android SDK, Java SDK, Java JRE 1.8_update151 installed

Thank you again for v15 update.

Now, frameworks are getting installed in frameworks folder under respective working area folder.:good:

1) Need help in Unzip and rezip images:

a) In "theming menu", I used "unzip image files" to extract images from MyFiles.apk .... unzipping was successful

b) Unzipped folders and files appear in "workarea1\working\MyFiles.apk\res\....."

c) While I enter into "Rezip Image Files" menu, it shows this message "Error! No suitable files found in "_working" folder!" whereas unzipped folders and files are there

Am I doing something wrong?

2) I tried above menu for the first time today because of following reason: (I tried this earlier in v14 also and now with v15)

a) Yesterday, I decompiled ClockPackage.apk.

b) I modified some background image files

c) while recompiling I got lot of errors though I had only replaced total 12 images. I did not even touch any other file like xml / smali etc

d) Then I wiped working folder, out folder

e) decompiled the app again

f) tried recompiling again

without any change whatsoever

g) again I got all those errors

i) I even tried above with the same app extracted from from Samsung Core GT-i8262

j) but still same errors

I tried above app with v15 also, but still getting those errors

log file is attached

interestingly it has happened only with ClockPackage.apk (worked with other apps like digitalclock, musicplayer, myfiles, samsungcamera, seccalculator, seccontacts, secgallery, secmmsds, secphone_ds, secsettings, systemui, framework-res)

I believe that this is not a problem of TMA.

Can somebody help?
[Android Themes] jacomail95:
Will it deodex Oreo ROMs? I don't know If it works with the new odex/vdex format

Inviato dal mio Nexus 5 con Tapatalk 2
[Android Themes] Albe96:
Does it has oreo support and can I deodex a 7.0+ rom with it?
[Android Themes] Ticklefish:
Actually, you can try renaming the Workareas right now. I built in the option to be able to rename them when I first introduced the Workareas years ago, but I never really expanded on it. Just be sure to not have too long a name and don't use any spaces.

Hopefully it should work fine but let me know if there are any issues.

No, you just need to keep it (and any other framework file) installed. Apktool needs the information in the framework files to be able to decompile other system files.

I'll look into the code for zipping and unzipping APK Files. I'm sure those should be fairly easy to fix. :)

As for your recompiling problem, I'd need to see what the actual errors are before being able to give any advice.

Not yet, no. As soon as smali.jar and baksmali.jar are able to handle vdex files, I'll look at updating TMA's code.

You should be able to decompile and recompile Oreo files, yes. And you can deodex a Nougat rom.

However I can't guarantee completely that the deodexing will work. Every rom is different and different developers often put their own twists on things, especially the likes of Samsung. I've added the option to just deodex individual folders in v15, just in case only part of a rom is causing trouble. Just be aware that if you deodex your framework folder on its own, you can't then deodex the app and priv-app folders. TMA needs the framework folder to be odexed in order to deodex anything.

And always, always, always make a full backup before you flash a deodex ZIP!
[Android Themes] Ticklefish:
Oh yes..how many WorkAreas would you need?
[Android Themes] Androidwizzard:
2018 will be the year of S9 and Note 9 so this could be a fine number to be sufficient till 2019 -> 9 :good:

atm I'd need 7 - that's why I asked :fingers-crossed:
[Android Themes] Thebear j koss:
Are you editing 9 patch pngs? If so they need to be decompiled, edited properly and recompiled to work. You can't just colorize them or invert them in any way
[Android Themes] zooperaj:
1) from ClockPackage.apk I edited only png files, replaced orginal and then tried recompiling, but got errors... as i have mentioned in my earlier post, it does not seem to be TMA's problem. as far as I understand, it seems to be a problem with reference styles in xml files..... just wanted to know why is this happening only with this app only..... if originally these references are wrong, how app is working in mobile...... please see the attached log file.

2) alternatively, i tried to recompile it without any modification.... first decompiled and tried recompiling.... but failed

3) from other apps, I have edited many 9patch pngs successfully, replaced original and then tried recompiling.... success (for editing 9patch pngs i use GIMP 2.8, re-scale images 2x2, edit them, and then process them in xultimate-d9pc software to get usable 9patch png...... sometimes if image has indexed colour format, i first convert it to RGB format and then do other steps... it works fine
[Android Themes] zooperaj:
After looking further into unzipping and rezipping images, i found out that there is discrepancy in the name of folders extracted by both methods. Please see the attached file.

Edit: I renamed all folders to look as per decompiled folders... but no success

Getting same message "Error! No Suitable Files Found In "_working Folder!"
[Android Themes] Thebear j koss:
Well decompile and recompile is an apktool issue. Samsung and especially stock clock package apk are notorious for issues since before the galaxy s3. As far ad zip and unzip I am not too sure, the tool may not recognize the folder structure that is being used.
[Android Themes] zooperaj:
But how to modify the app and apply it? Any solution?:)
[Android Themes] Thebear j koss:
Manually pull the pngs you want to edit using 7 zip or winrar. Open the apk as a zip do not extract it. Modify the pngs however you want to, again using 7zip or winrar replace pngs overwriting the originals in the apk, just drag and drop them back into the apk. Flash clock package. Should be good.
[Android Themes] Ticklefish:
The errors you're getting look like this:

W: W/ResourceType( 776): DynamicRefTable(0x02): No mapping for build-time package ID 0x02.
W: W/ResourceType( 776): e[0x01] -> 0x01
W: W/ResourceType( 776): e[0x7f] -> 0x7f
W: E/ResourceType( 776): Failed resolving ResTable_map name at 1812 with ident 0x0204000e
W: W/ResourceType( 776): Attempt to retrieve bag 0x0201002c which is invalid or in a cycle.
W: W/ResourceType( 776): DynamicRefTable(0x02): No mapping for build-time package ID 0x02.
W: W/ResourceType( 776): e[0x01] -> 0x01
W: W/ResourceType( 776): e[0x7f] -> 0x7f
W: E/ResourceType( 776): Failed resolving ResTable_map name at 1760 with ident 0x02040004
W: W/ResourceType( 776): Attempt to retrieve bag 0x0201002b which is invalid or in a cycle.
W: warning: Package not found for resource #0201002c
W: warning: Package not found for resource #0201002c
W: warning: Package not found for resource #0201002b
W: warning: Package not found for resource #0201002b
W: D:\TickleMyAndroid\_WorkArea1\_working\ClockPackage.apk\res\layout-sw320dp-v13\alarm_alert.xml:26: error: Error: No resource found that matches the given name (at 'style' with value '@style/TextStyle_AlertComment').

The warning at the end (the "No resource found" warning) turns up a lot in your log. This is normally caused by the relevant framework not being installed. Your APK uses a style that isn't defined anywhere. Often in this situation, that style is defined in a framework file.

However you've installed both framework files in your rom, which is awkward. The best thing I can suggest here is going into styles.xml and just making up a style called "TextStyle_AlertComment". This should solve this particular issue, but it's worth pointing out that the app might not work properly if it recompiles.

As for the warnings at the beginning of the log, that's a bit more worrying. They seem to be saying that some of the APK's resources can't be decoded. Unfortunately there's not much you can do about this - apktool just can't handle those resources, whatever they are.

I'd suggest posting on the apktool thread with this issue. Include that log and the APK so the developer can take a look at it.

This is odd. Could you share the APK you're trying unzip please? I can try it on my setup and see if I can work out what's going wrong.

Samsung are just notorious generally. They do great hardware but I have to admit that I would never get a phone from them. I've seen their name crop up far too often in this thread with issues..

By the way, your signature's not working. Two of the images are just showing a placeholder from the image hoster..
[Android Themes] zooperaj:
Thank you for your advice. I will try it.:good:

EDIT: Your advice worked. Thank you very much!
[Android Themes] zooperaj:
ClockPackage.apk is attached.

One more thing I forgot to mention earlier. I am using the original update-binary file in place of the one which comes with TMA.

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

I will post the errors to apktool thread as suggested by you. Let's see what solution we get.
[Android Themes] Ticklefish:
That's fine, the update-binary is used when you create a ZIP file.

Thanks for sharing the APK, I'll take a look at it now.
[Android Themes] Ticklefish:
I'm sure I can add another 3 for you. I'll look at it over the next few days.

By the way, I'm sorry to say that my earlier post was wrong. You can change the names of the WorkAreas...but you won't be able to create any flashable ZIP files and the logs won't show the installed frameworks correctly. It was a while ago that I introduced WorkAreas and I'll be honest - I'd forgotten where I'd gotten to with that part of the code!

I'll work on a way to change WorkArea names soon. :good:

Oh, for those who're wondering...WorkAreas were introduced to the code for v9.1. Which was 3 and a half years ago!! (https://xdaforums.com/showpost.php?p=53126228&postcount=2618) One of these days I'll get used to just how long I've been doing this..

The unzip/rezip error has now been fixed and the corrected EXE uploaded. Thanks for letting me know about it. :good:
[Android Themes] nguyentankiet:
TMA Version 15.0 on Windows 10 1709 64 bit
[Android Themes] Ticklefish:
Oops. Can you rename the "_test" folder to "_WorkArea1" please? Then the tool will be working properly.

That was my fault. I'll fix it when I'm at the PC again tomorrow.
[Android Themes] nguyentankiet:
I go to settings and changed to workarea1 no issue. But you should'n default mouse select

Thanks very much for keep TMA up to date
[Android Themes] zooperaj:
You are most welcome!:good:

I must appreciate that you have been very prompt in responding our queries. I must admit that it is only because of you and TMA that I am now able to try some modifications to my phone running jelly bean 4.1.2 and see some different colours of my choice.
[Android Themes] Ticklefish:
Updated version of v15 available here: https://www.mediafire.com/file/fssuu0gfa8n0p1k/TickleMyAndroid%20-%20v15.0.0.exe

I'm not putting this on the OP just yet as I have two features to add that people have been asking for. Hopefully I should have the code for those done by this time next week and then I can finally release this officially.. :eek:

You may need 7...but I'm giving you 8. ;)

TMA can theoretically have 100's of WorkAreas but I'm going to call it quits at 8 for now. Partially to avoid the folder looking too busy, but mainly because I'm using custom image files for the folder icons..and I only have 8!

TMA now starts at WorkArea1 and isn't mouse-controlled by default. Sorry about that, I was testing the mouse code and forgot to turn it off!

I try to respond as quickly as I can. People who choose TMA for their modding needs are awesome people and I want to look after them. :highfive:

I'm happy that you're able to modify your phone the way you want it. Don't forget to pay it forwards though - if you've made some mods you're proud of, start a thread and share them with the forum!

Oh, and if you want to show your appreciation for TMA by putting one of the banners in the OP in your signature, I really wouldn't mind. :D
[Android Themes] Albe96:
Yo Boy [MENTION=4315551]Ticklefish[/MENTION].Keep up updated,you've been doing so great.Thanks for V15..
[Android Themes] kramer04:
Hello,

I'm on Win10 and can't install TMA V15.

SmartScreen block it and if i force to install Win10 says this app can't execute on my pc.

Do you know this issue ?
[Android Themes] zooperaj:
Even I faced this issue. I dont remember, what I had exactly done, but you can try this:

Turn off smart filter..... right click on TMA.exe ........ on compatibility check run as administrator....... click ok......

Again turn on smart filter with first option ......... "get administrator approval...."

Even you may have to include TMA as an exception in your anti-virus software. It may detect TMA as virus or malware.
[Android Themes] Ticklefish:
Last time I replied to these, the answer was "No - TMA can't deodex Oreo yet".

But I've been doing some researching and experimenting the last few days and I think I'm going to have to change my answer to "Actually...it might be able to, after all".

For Android 8.0, Google have introduced VDEX files. These are Verified DEX files that are in the same folder as the ODEX files. At first I though we needed to deodex those as well and I was waiting for the relevant tools to be updated to do so.

But I don't think I was right.

The whole point of verified DEX files is so that Android can read those when you first load the rom, or when your rom updates, and it saves having to stare at the "Android Upgrading.." screen we've all seen before. They don't appear to contain any relevant information that's not in the ODEX file. So I wonder if we actually need to deal with them at all. Maybe we can just delete them, deodex the ODEX file as normal and we'd be good.

I've tried deodexing an Oreo ROM from a folder dump I found and TMA doesn't appear to have any issues doing just that. Every file was processed without any errors reported and a ZIP was made.

Unfortunately I don't have a device running Oreo so I can't test it but it looks like we might be in luck.

Could somebody with an odexed Oreo rom give it a try please and let me know what happens? You'll need to make a backup before you start just in case it doesn't work. But if it does, it'd be very good news indeed!
[Android Themes] Albe96:
Glad To Hear.And Yeah,I've Been Seeing These VDEX Files From Some Week.I'm Like What's This Now...

I'll try to deodex as soon samsung release a stable build for oreo.The Oreo Beta Looks Quite Dissappointed To Me(Well,It's Beta Though).

Thanks For The Reply Man.You're The Best!
[Android Themes] starbucks2010:
Mate, is impossible to install v15 on windows 10. I even put off the Windows SmartScreen but still the message: "This app can't run on this PC". Any idea how to fix it?

Thank you.
[Android Themes] Ticklefish:
Hmm. Can you run v14.4?
[Android Themes] nguyentankiet:
Me too. You can open TMA via winrar or 7-zip then drap and drop file to Disk C
[Android Themes] zooperaj:
Did you re-enable smart screen with first option?
[Android Themes] nhan1411:
Can I pull and modify framework and systemui of Android Oreo with Version 15?
[Android Themes] Ticklefish:
In theory, yes. Give it a try and see what happens. If you have any trouble, you can share your history.txt which will tell me what the issue is.
[Android Themes] kramer04:
[MENTION=4315551]Ticklefish[/MENTION]

The only way i've found is to decompile the .exe with 7z and install all files manually

then authorized Tickle My Android.exe in SmartScreen, else it always block by Windows even you put off SmartScreen.

Edit : With v15 I can't decompile/recompile if i use an other directory than _WorkArea1. don't work with other directories.

It says Framework "None Installed" even if i install it again
[Android Themes] Ticklefish:
Strange. I can't see why Windows 10 won't let the EXE run. Unless it's being really keen and thinks the file is potential malware or something. If you can get into the EXE with 7z and extract the files manually, that helps. I'll have to look into this and see if I can find a solution..:confused:

About your decompiling issue, I've just been doing some work on v15 and I think I know what was causing that. Try downloading it again and let me know if you're still getting that issue.
[Android Themes] starbucks2010:
Yes, 14.4 is running fine. I downloaded the "new" v15 and now is installing fine.

Thanks.
[Android Themes] Albe96:
[MENTION=4315551]Ticklefish[/MENTION] I think I got a small problem with V15.0.After opening the application I can't able to decompile from option 2 menu(quick menu).But I could decompile from option 3 menu(theming menu).
[Android Themes] Ticklefish:
What's happening when you try the quick menu?
[Android Themes] Albe96:
It's not decompiling and says an error message.I'm not at home.So will report tomorrow
[Android Themes] purian23:
Simply fantastic work! It's successfully decompiled my Nexus Android Oreo 8.1 Framework-Res/SettingsUI and others on the latest Windows 10 FCU 64bit update. Thank you for all your hard work!
[Android Themes] EXA Lab:
This is truly awesome, I have search for it long time ago, and finally found it here, thanks a lot.
[Android Themes] HammDroid:
deleted

16character
[Android Themes] HammDroid:
Also, I started over from scratch to make sure I wasn't missing something simple, and noticed this:

Not sure if that is an issue, and I'm not positive that I didn't have this before.
[Android Themes] Ticklefish:
Wow..haven't seen that error before. Do you still get it after you reset TMA and install that file again? It may be have been a one-off..

As for the new apk not working, which resource files did you install before decompiling? On your rom, there may be others than just framework-res.apk..

sent using the xda app!
[Android Themes] AmmarGitham:
Just guessing but maybe the number of zeroes in those hex values look a bit more than normal. That maybe causing the error?
[Android Themes] HammDroid:
Yeah, I reset all folders in TMA and uninstalled all framework files and started from scratch again. It gives me that error every time I try to install framework-res.apk.

I had com.htc.resources.apk installed before resetting everything.
[Android Themes] HammDroid:
I tried a 'closer' to stock framework-res.apk and it installs correctly to the pc no issue. I'll test that file later to see if it recompiles and works on the phone.

I'm thinking that because the framework-res.apk in the rom I'm using is heavily modified already, I cannot decompile it properly, & is probably why it wouldn't install to pc using your tool. Not sure if there's anything at all I can do with it actually, unless I can get the original decompiled source from the dev.
[Android Themes] Ticklefish:
That may be the problem. There's no way of guaranteeing that the apk was built in the usual way. Let me know if your closer-to-stock apk works. If so, then you may be best served by contacting the developer.

sent using the xda app!
[Android Themes] HammDroid:
I got some assistance from another xda member. Apparently, Tickle (or maybe its apktool, since other tools that do this as well) are incorrectly signing the framework-res.apk.

What he helped me figure out was, after recompiling the framework-res folder, do not sign/prepare system files, delete out the build folder that is created during recompiling (where the system file signatures are configured). Then copy the original working meta-inf from the original framework-res.apk (working signatures) folder using 7zip or other compression program, into the newly recompiled framework-res.apk

Just figured I'd let you know in case anyone else has this issue, or if you think you might know a way to automate that with your program somehow. Might be something specific to ICS + HTC, not sure. It also could be an apktool issue of how it signs system files, so there may be nothing you can do about it.

Oh, and the install errors actually ended up having no effect. I had some decompile errors related to a .9.png too, but just copied & pasted back in the correctly named .9.png (I think it was for the title_bar_medium.9.png if I remember correctly).
[Android Themes] Ticklefish:
Well, I'm glad you've got it working. This is actually part of the tool though..

'Preparing' the file copies the META-INF folder from the original apk into the new one, which ensures it's signed correctly. Did you use the 'Sign' option previously? That should only be used if you're making your own apk from scratch.

sent using the xda app!
[Android Themes] HammDroid:
No, I used option #11 I believe it was. The one specifically for preparing system apps to push. Does it pull the signature (meta-inf) folder from the framework installed to the pc? If so, that would explain the issue, since the framework-res.apk that I was decompiling, working on, & recompiling was the one that wouldn't install to the pc. That was when I got those errors in the pic I posted previously.
[Android Themes] Ticklefish:
No..the Prepare option copies the META-INF from the apk in the _in folder. The installed apk is just used for de- and recompiling files.

I'm a bit puzzled by this, although it may be something to do with HTC. I have an idea though. Could you share your framework-res.apk, com.htc.resources.apk and your working, recompiled framework-res.apk?

I know it's a bit of a chore but it will help me work out what's going on. Oh, and have you tried using the zip file option?

sent using the xda app!
[Android Themes] HammDroid:
Yes, I will share those with you. Give me a little bit, as I have to sort through them. A bit of a mess at the moment lol. Also, what is the zip file option? Do you mean zipalign file option? I have not used that on system files no.