yashsingh1/xdaforums huggingface dataset:
[Android Themes] Ticklefish:
Thanks for your kind words - I'm getting there slowly but surely.

I wasn't sure about removing the option to decompile a single file. You still can with V16 but it's slightly more involved. This was a deliberate decision to streamline the menu but I can always reintroduce the option in a later version if enough people want it...and if I make another version.

As for the WorkAreas, I see where you're coming from but I might not implement that. The different WorkAreas have different colour folder icons (if installed straight to "C:"). This isn't something that can be done by code, at least not the type of code I'm using, so I'm keeping the WorkAreas as they are for now.

Of course, if enough people want this option then I'll bow to public pressure and see about putting it in. TMA is made for the users, after all!
[Android Themes] Tulsadiver:
I personally wouldn't mind having 10 folders, LOL!
[Android Themes] Ticklefish:
You're tempting me now. I can never resist the siren call of a coding challenge..

I'll look into adding this to v16.1. If I ever make a v16.1, that is.
[Android Themes] JimzFreebies:
Trying to decode modded app as i don't have original app but its giving error while decompiling. i have tried all apk tools in the list of TMR. Please help
[Android Themes] Ticklefish:
Intriguing. This would seem to imply that your apk is missing a "res" folder. Which isn't impossible if it's already been modded.

Could you share the file and your framework files please? I'll take a look and see if I can come up with something clever.
[Android Themes] JimzFreebies:
Sir I sent you the apk in pm. Please check
[Android Themes] Ticklefish:
Thanks for sharing your APK. It looks like apktool isn't able to decode the entire res folder. Some of the subfolders (or the files in them - I can't tell) are showing as having a bad address. Don't ask me how this happened - the best answer I can think of is that the APK got corrupted at some point.

You can decompile the APK if you select the option to not decode the "resources.arsc" file (in the advanced options) but I can't guarantee that the recompiled APK will work properly.

This is the problem you can get when you're modifying an already modified APK. I'd suggest either modifying the stock APK, or speaking to whoever modified the APK that you're trying to use.
[Android Themes] JimzFreebies:
Thanks bro for checking it. I'm confused how the modder of app recompiled it without any problem and but its working fine without any issue. So, is there any another way to Decompile it with resources by ignoring the errors?
[Android Themes] Ticklefish:
Well, this could be a faulty download. Please check that you have a file called 'adb' in your tool_files folder. It's possible that it's missing.
[Android Themes] Ticklefish:
Well, you haven't filled in the error form like the poster above you but at a guess I would say that you haven't installed the right resource apk's. Because you're using a Timescape rom, you need to install SemcGenericUxpRes.apk before decompiling anything.
[Android Themes] funiewski:
sorry for not reading carefully :o
[Android Themes] allan1313:
The only thing in the tools folder was a folder called systems. I will redownload and try again. Thanks.
[Android Themes] Ticklefish:
New Version Released!

Tickle My Android has been featured on Android forums in at least five different languages, has had thousands of downloads, contains over 10,000 lines of code and....has now been updated!

That's right, Version 5.0 is available to download right now! Head to the op to check it out!

I was originally going to give this to beta testers first but v5 has taken so long to do, that I thought I'd let everybody get it straight away. The people who kindly volunteered to beta test are still credited though.

I'm still working on updating the original posts. There's a lot to write and I've got more images than you're allowed to have in a single post, so it'll take a little while.

Download, read the op as that's changed a little, and..enjoy!
[Android Themes] Doeyourthing:
I'm gonna try this. Thanks
[Android Themes] allan1313:
Fill out this form here:

What phone/tablet are you using? ASUS TF700

What version of Android are you running? 4.1.1

What sort of rom are you on? (I need to know about OEM roms as well. That's things like Sense, Touchwiz, etc) OEM Based ROM

What are you trying to decompile/recompile? Trying to recompile SystemUI.apk

What resources files have you installed? Just your toolkit and my tablet was already set up for adb

Are the files you're using odexed or deodexed? deodexed

What mod are you trying to do? Clock, wifi, battery color change

Do your files work if you decompile, recompile and prepare them without changing anything? I can't get that far

What problems are you having? (Give me some detail here, don't just say "It doesn't work.")

Please also attach the log files for the files you're modding (use Option 1 in the theming menu)

See attached log:

I: Smaling...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Allan\AppData\Local\Temp\APKTOOL8412062973687332790.tmp, -I, C:\Users\Allan\apktool\framework\1.apk, -S, C:\TickleMyAndroid\_working\SystemUI.apk\res, -M, C:\TickleMyAndroid\_working\SystemUI.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)

at brut.androlib.Androlib.buildResources(Androlib.java:269)

at brut.androlib.Androlib.build(Androlib.java:192)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:188)

at brut.apktool.Main.main(Main.java:70)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Allan\AppData\Local\Temp\APKTOOL8412062973687332790.tmp, -I, C:\Users\Allan\apktool\framework\1.apk, -S, C:\TickleMyAndroid\_working\SystemUI.apk\res, -M, C:\TickleMyAndroid\_working\SystemUI.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)

... 6 more

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

Recompile Not Successful!

I only changed a few colors in the SystemUI.apk.
[Android Themes] Ticklefish:
When I ask about resource files, I mean the apk's that you've installed before you started decompiling, as mentioned in the op.

I hadn't noticed that you're using a Asus Transformer. I think there's an issue with the stock SystemUI on that device and it's impossible to recompile because Asus did something odd with it.

I'll dig through the archives here to get more info but, in the meantime, try TMA v5.0 first. If that doesn't work, then please share your SystemUI.apk and all your resource apk's here. Then I can try on my setup and see what's going on.
[Android Themes] allan1313:
I tried v5.0 when it didn't work with v4.3, but it still didn't work. I included the link to my working files in ticklefish.

https://www.dropbox.com/sh/ig0ln1e7admh7cy/w20HjMvR0o

Thanks for all your help.
[Android Themes] allan1313:
Ticklefish I got it working. Asus borked a file. Once corrected it re-compiled fine. Thanks.
[Android Themes] paslanmaz:
here we go again

ı have tryed to mod systemUI for center clock with apktool ,and apkmultitool last none of them worked

first ı have windows 7 64bit version ı have installed android bondle and jre and jdk and java update 10 ı cant decompile framework and ıcan compile bur cant compiles same systemUI apk without any modding also ticklemyandroid dont find my device too :(
[Android Themes] Ticklefish:
Well, I have my suspicions about why you're having problems. But I really need more information.

Please fill in the form in the op, otherwise I won't be able to help you.
[Android Themes] paslanmaz:
soory

soory again it my mistake ı missed it

What phone/tablet are you using?:its an houmble huawei u8110

What version of Android are you running?: android 4.0.4

What sort of rom are you on? (I need to know about OEM roms as well. That's things like Sense, Touchwiz, etc) CM9 by alberto

What are you trying to decompile/recompile? both tom mode status bar for center clock maybe chaning battery icon too

What resources apps have you installed?jusr framework-res because its the only one ı could find

Are the files you're using odexed or deodexed?ı think deodexed

What mod are you trying to do? battery icon change at the begining

Do your files work if you decompile, recompile and prepare them without changing anything? not working and cant prepare withour change

Have you tried the Mini Menu and, if you did, what happened? noo

What problems are you having? (Give me some detail here, don't just say "It doesn't work.") ı can not decompile and recompile

Please also copy and paste the log files for the files you're modding (use Option 1 in the theming menu)
[Android Themes] Ticklefish:
That's ok, I probably need to make it more obvious. The thing is, I need that form otherwise we'd waste 10 posts just getting all that information.

Right, your framework-res.apk.. This has been themed by somebody before and they've done a really bad job on it. You have a lot of .9.PNG's which have had their 9 patches overwritten. That won't stop the apk from decompiling, but will stop it from recompiling.

That's easy enough to fix but there are other files in there that the tool is complaining about and it looks you're missing a resource file. I know you said you can't find any so that's not a good sign.

My initial suspicions are that these files are, to use a technical term, dodgy.

Try the Mini Mode for me. It's designed for this sort of occasion. Then post the log, you'll find that in the same folder as the rest.
[Android Themes] paslanmaz:
mini

ı opened mini mod and started workspace and it is hanging at

Please ensure iyour android device is connected

ı am afraid like adb shell mini mod see my phone neither

---------- Post added at 12:39 AM ---------- Previous post was at 12:27 AM ----------

thanks for the answers but its little late here 00:38 and ı realy feel sleepy :) ı am going to offline thanks again
[Android Themes] Ticklefish:
Oh yes, you said TMA couldn't find your device. When you can try this again, try going into recovery and mounting the /system partition. This works with my tablet.
[Android Themes] paslanmaz:
hello :)

ı am using rz recovery at recovery as you said ı have mounted system than ı tryed again mini mod

this time it is hanging at

daemon not runnig starting it now on port 5037

daemon started successfully
[Android Themes] Ticklefish:
So it's definitely not finding your device even then. I think this is more the fault of your phone but that's not much help really.

If you definitely don't have any more resource files on your phone that can be installed, I think it may be worth contacting whoever made the rom and showing them your logs.
[Android Themes] kcls:
Hey ticklefish, did you use the latest beta apktool that supports 4.2 apk's? I know I keep bothering you about this, sorry :)
[Android Themes] Ticklefish:
I sent you a pm about this.
[Android Themes] Ticklefish:
I've no idea what they did so I can't comment. It's possible that the app is working because you're not using it on a device that would use those folders. Dunno.

As for decompiling it, apktool is the only tool I know of that can decompile an entire APK. You can try decompiling without decoding the resources.arsc, then recompling without the assembling the resources.arsc. TMA has options for this in the advanced settings. The worst thing that'll happen is that the app won't work. I'm guessing this is a modded version of WhatsApp. In which case, it won't stop your phone from working so there's no harm in trying.
[Android Themes] JimzFreebies:
Ok bro. I will try. Thanks
[Android Themes] JimzFreebies:
Thanks bro. As you told to try apktool 2.3.2, I tried with it and it worked. No 9 patch images error while recompiling apk.
[Android Themes] JimzFreebies:
I sent same apk to my friend who's friend decompiled it and did some changes, then recompiled and sent to me. But he did't tell me what changes he did.

There are thousands of files in it inclusing smali and xml. Its impossible to check and compare all. So, is there any way to check in which file he made changes?
[Android Themes] Tulsadiver:
There is a program called diffmerge that takes files or folders, compares them, and points out the differences.
[Android Themes] jds3118:
Looking for some help. I have a log for my attempt to recompile an apk. I made no modifications to the app just decompile then trying to recompile to confirm process before attempting any changes.
[Android Themes] jds3118:
Ok let's do this a different way lol

Edit I think I need to research more lol it's been a long time since I've used this :laugh:
[Android Themes] Ticklefish:
Try using apktool 2.3.4 to decompile and recompile your APK. Apktool 2.4.0 has been known to throw that ".9.png" error.
[Android Themes] jds3118:
Thanks for the tip my friend. Will try when I get home from work. :svetius:
[Android Themes] JimzFreebies:
Thanks. I tried diffmerge to check the difference in 2 apk files but both are 100% same. No change at all.

Don't know what the modder did with the apk which i sent him(that was crashing in between). Each and everything is same but size showing 4mb more than of my apk.
[Android Themes] Tulsadiver:
2.3.2 if that doesn't work. Else you will need to edit the apktool.yml taking out all of the png.9 files
[Android Themes] jds3118:
Awesome thanks so much for help I'll let you know how it goes. It gives me something to do while I wait for hurricane Dorian to hit me lol
[Android Themes] jds3118:
I don't see 2.3.2?
[Android Themes] Tulsadiver:
Here you go! Rename it taking off the .zip
[Android Themes] jds3118:
Neither one work for the OPsytemui.apk they work for frameworkres.apk though
[Android Themes] Bradco:
Hello is it possible to ad the tips and link in the first page ?
[Android Themes] Tulsadiver:
That is weird. I use 2.3.2 on OPSystemUI.apk.with no problems. I mod both the oneplus 6 and oneplus 6t. Which one are you working on? What firmware? Maybe your Java jdk needs updated?
[Android Themes] jds3118:
OP6t I'm using the beta 16 software
[Android Themes] Tulsadiver:
I believe the last beta I did for the 6t was OB9 ota41

Okay. I just downloaded the 6t beta 16 software and extracted the framework and OPSystemUI.apk. I don't mod the framework, just the OPSystemUI and services.jar. I didn't have any problem decompiling, modding, and recompiling the OPSystemUI.apk using 2.3.2 but I was using my automated system instead of ticklemyandroid. I have a separate ticklemyandroid for the Oneplus 6. I noticed I was using a apktool that I had compiled myself. 2.4.1 snapshot. You are welcome to try it.
[Android Themes] jds3118:
Thanks I'll give it a try
[Android Themes] Tulsadiver:
Sorry to keep hammering here. Not trying to be a pest but baksmali and smali are up to 2.3.1 now. Just trying to think of possible problems. Apktool was just integrated to smali 2.3.0 18 days ago so I also just compiled a new Apktool 2.4.1 for those that want it. Just rename it minus the .zip
[Android Themes] Ticklefish:
I just did. The FAQ post has been updated. :)

Your automated system...is there anything it does that you need me to add to TMA?

This is half me being helpful and wanting the tool to be as useful as possible...and half me being greedy and wanting TMA to be used for everything!

Thanks for the snapshot apktool! Very cool indeed! :good:
[Android Themes] Tulsadiver:
What I called my automated system is just a series of decompiling, editing, and and recompiling that I chain together. Enclosed is a small crude example. One is a mod for 5 column QS and one is for a center clock. If you unzip the enclosed contents into a folder on your c drive called 3CustomQ4script, opened a command window that is capable of running bash script you could copy and paste the cmd from the readme.txt file ./SystemUIModsO c:/3CustomQ4script it would kick off a series of decompiling, editing, recompiling and then zipping into flashable zips, those two mods. These are for the Pixel 2 XL. The results end up in the "done" folder.

https://www.androidfilehost.com/?fid=1899786940962575984
[Android Themes] Bradco:
Thanks ?

Little question I already successfully use TMA with Android 7 but with Android 9 or 10 under miui it works well? no special case?
[Android Themes] jds3118:
[MENTION=5346465]Tulsadiver[/MENTION] [MENTION=4315551]Ticklefish[/MENTION] I'm still trying to figure out this recompile problem. I've checked and updated my java, I've rebooted laptop, and tried again with no luck.
[Android Themes] Tulsadiver:
Could you post your log again? Also, what version of ticklemyandroid are you using and what options when recompiling, with aapt2 support, original signature, etc.

Try replacing your apktool.yml in your working folder with this one before recompiling.

Also, are your environment variables updated as well and pointing to the correct Java jre and jdk?
[Android Themes] Tulsadiver:
It works well on my phones on both 9 and 10 but they are Google pixel phones.
[Android Themes] jds3118:
Been trying to upload the log but xda is being a pain lol. I have tma v16.003

As for options I don't change anything I use standard setting

---------- Post added at 05:15 PM ---------- Previous post was at 04:58 PM ----------

The apktool.yml worked to recompile OPsystemui.apk using tool 2.3.2
[Android Themes] Tulsadiver:
Are you using 32 bit Java? Can you use 64 bit instead or at least have it as the first entry on the path in environment variables? Seems to be a problem with Apktool determining which aapt version to use on 32 bit Java (exit code 1073741515)
[Android Themes] jds3118:
I'm using 64 bit I believe that's what my laptop uses.
[Android Themes] Bradco:
Thanks :)

I just tried, it's ok for the framework.apk but for the systemui small problem

for me it is here /system/priv-app/miuisystemuimiuisytemui.apk using the systemui extraction command it does not work.

So I try with the command: 13 extract any file from any location

TMA tells me very quickly :) : the system can not find the command file : pullanyfille

an idea ?
[Android Themes] Tulsadiver:
Android version 9?, 10?
[Android Themes] Bradco:
Android 9 Miui rom from xiaomi.eu ( not official ) xiaomi mi mix 2s
[Android Themes] Ticklefish:
Neat. I'll have to take a look when I've got a bit more time. I still have (very) vague plans to make a Linux version of TMA one day and I should get to know how bash script work.

That would make sense. This error with the .9.PNG files does seem to be dependent on whether aapt2 is used or not. I'm guessing this hasn't been fixed yet - I didn't spot any mention of it on apktool's github.

I'll have a look in the code and see if I can fix it over the next few days.
[Android Themes] Bradco:
Thanks really cool :good:
[Android Themes] Ticklefish:
Some of the recent compiling issues I've seen have been because people needed a framework-res.apk from Android 10 (which should have been called "Queen Of Puddings", don't you think?).

Now, thanks to [MENTION=7638319]SagarMakhar[/MENTION]'s AOSP thread (found here: https://xdaforums.com/asus-zenfone-max-pro-m1/development/rom-aosp-10-0-t3964820), that APK is available.

Just download it from here: https://www.mediafire.com/file/0ueipvfnek2j7ak/framework-res.apk/file
[Android Themes] n0c7:
Hi everyone,

I'm trying to learn how to decompile and recompile apps using Ticklefish's Tickle My Android. For a basic test and learning purposes, I simply have taken an original .apk, ran it through decompile with Standard options, and simply recompiled with Standard options without modifying ANYTHING myself. When I attempt to install the app on a Samsung Galaxy S9+(running 9 Pie) the installer prompts "Do you want to install this application? It does not require any special access." I tap Install and I'm immediately met with "App not installed." and must press Done to exit the screen.

I've tried other .apk's, a myriad of different Advanced decompile and recompile options to no avail. I'm always met with the same warning even if I regenerate the key. If I manually run apktool decompile/recompile commands, I can get the "unmodified but recompiled" apk to install fully but it crashes on startup.

I'm running the latest Windows 10 w/ updates, jdk-12.0.2, and Tickle my Android 16.0.0.3.

PS: I love your script Ticklefish. It reminds me of my BBS and scripting days ;)
[Android Themes] Tulsadiver:
I'm not familiar necessarily with Samsung anymore but you are probably going to have to install it via a magisk module.

You may be able to copy it to system but what you have to do is use the original apk as the one used to copy to your system. Unzip both the original and the recompiled apk. Copy the modded portion from the recompiled apk to the original. Zip the original one back up and install it. Since you didn't actually change anything, just pick anything.
[Android Themes] Ticklefish:
So when you say you're using an "original" APK, I assume that this is one that you've made yourself? In that case I do have to ask the obvious question..does the APK install before you try decompiling it? (I mean no insult by that, it's just one of those questions I have to ask.)

I made an app a few years ago that was a basic 'Hello World' thing, following directions on Google's developers website. It was incredibly simple but I could de/recompile it without any trouble installing it.

In your situation, I can think of two likely solutions. First, is your APK signed using the V2 method (https://source.android.com/security/apksigning/v2)? If so, decompiling and recompiling it will break that key.

Failing that, did you install any framework files before you decompiled? It's possible your recompiled file is missing essential resources.

PS: Thank you! That's kind of you to say. I was looking at becoming a software engineer before my career took a massive change. I've forgotten pretty much every bit of C++ I learned but I like to think I can still design a good program..
[Android Themes] Ticklefish:
Damn...you're faster at replying than I am! :eek:

Dragging and dropping from one ZIP to another shouldn't be needed now. This is to keep the META-INF folder untouched and keep some of the other files at the same compression ratio - all of which V16 can do.
[Android Themes] Tulsadiver:
You da Man, Ticklefish!

I'm old, and old fashion, not necessarily in that order?. I habitually do some things, unnecessarily, manually, lol!
[Android Themes] n0c7:
Hi Ticklefish,

I've tried a handful of different apks mostly from apkpure.com. One well-known app that I tried to decompile/recompile was Speedtest by Ookla_v4.4.17_apkpure.com.apk. I did rename the file to speedtest.apk as either Windows or the script doesn't seem to like spaces very much. I'm not sure how to tell if an apk is signed using the V2 method but I will read that link you provided.

This apk will install fine prior to decompiling, but once decompiled and recompiled, no go. I haven't installed any frameworks files at all. I followed your original guide and took note that framework files were mostly required when modding system-related files and apps and that the framework directory is the least used of the four of the WorkArea structure. I may be misinterpreting this as this thread does have ~800 pages that I haven't been able to read through yet :)

---------- Post added at 11:32 AM ---------- Previous post was at 11:28 AM ----------

Thanks for the reply Tulsadiver. I haven't heard of magisk so I'll read up on that. I've been able to transfer over other people's modded apks using either adb or Google Drive fairly easily and they do install on the Samsung without intervention.
[Android Themes] Tulsadiver:
I mis-read. I thought you were modding a Samsung system app and replacing it.
[Android Themes] porkyhontas:
Dragging and dropping system apps is needed on Samsung devices starting around Nougat. Data apps such as Dropbox, Facebook and Pandora can be signed with a new signature and will install.

Sent from my Note 9 using AnaKonda Tapatalk