yashsingh1/xdaforums huggingface dataset:
[Android Themes] n0c7:
What do you recommend for this? Samsung Flow?
[Android Themes] n0c7:
I downloaded the latest Samsung Flow for Windows 10 and tried dragging and dropping a recompiled apk. Still the same issue - immediately says "App not installed." I think I may be misunderstanding dragging and dropping as you mentioned zip files? Was this an older technique?
[Android Themes] ooleynich:
Hello, what about mac(osx) version? :rolleyes:
[Android Themes] Ticklefish:
Ah well, I'm old, old-fashioned but incredibly childish. And I'm forever doing unnecessary things!

Framework files, or framework APK files, are files that contain resources that are used by other APK files in the rom. The main one is "framework-res.apk" but some developers like to add their own to the mix as well. Framework files have, or should have otherwise it gets confusing, "res" in their filename.

Framework files need to be installed (via TMA, not your phone) before you decompile your APK. This will ensure that the resources in them will become available. This might be what's happening with your file. A few posts ago I shared a framework-res.apk from an Android 10 AOSP rom. Try installing that then decompiling and recompiling your file. If you still don't have any luck, could you share the file here please? I can give it a try and see what I can come up with.

Interesting. Using the "Copy Original "AndroidManifest.xml" And "META-INF" Folder" option should negate the need for that. If that's not doing the trick there must be something else in the APK that is being affected in the recompile process.

Could you share a system APK please? (And the framework files as well!) I'll see if I can spot what's happening. If I can then I can adjust TMA so dragging and dropping isn't needed.

Dragging and dropping here refers to a process done after recompiling. Essentially you'd open both the original and recompiled APK in 7zip or similar. Then you'd drag the changed files (like the "\res" folder, for instance) from the new APK into the old one. This ensures that the other files aren't touched.

Mainly this ensures that the META-INF folder isn't changed. This holds the key that the file is signed with and has to stay exactly the same (even down to the compression rate) or the new APK won't be installed. Apktool removes the need for this with the option I mentioned above but it seems that dragging and dropping might still be needed for Samsung.

Not the first time that Samsung has caused trouble, to be honest. Long-term subscribers of this thread may remember a few instances in the past where that company has given me a headache or two. Great hardware but not very friendly modder-friendly!

I've spent about 30 minutes using MacOS in total in my entire life, and I don't have a Mac to play with, so I won't be able to make a TMA version anytime soon. It's the same reason that there isn't a Linux version.

I'm more than happy to help if somebody wants to put one together though.
[Android Themes] Ticklefish:
I've just uploaded V16.1 to the Downloads tab.

This has a few bug fixes, a fixed "Pull File From Any Location" option, a snapshot apktool version (thanks go to [MENTION=5346465]Tulsadiver[/MENTION]), another language (thanks to [MENTION=5539344]FunSucker[/MENTION]) and I'm trying something new..

The new version contains both the 32bit and 64 bit versions. There's a batch file ("Tickle My Android.bat") which will work out which version applies to you and puts into the main folder.

Check it out and let me know how it goes!
[Android Themes] Bradco:
Little question how to update ?
[Android Themes] n0c7:
Ok. I downloaded the framework-res.apk file and installed it in TMA. No difference in results. I tried decompiling with Standard options, and recompiling with both Standard options and various Advanced options.

I've attached an apk of Speedtest that installs fine before decompiling/recompiling. Try this one and see how it goes! Thanks Ticklefish!
[Android Themes] Ticklefish:
Weird. It just shows a 404 error when I click on the download button. I've uploaded it again and the download works. For now..

To update, it's normally best to delete the existing "\ticklemyandroid" folder and then download and run the EXE.

Thanks, I'll check it out and get back to you.
[Android Themes] Ticklefish:
This is annoying. I'm having trouble as well..but there's been 28 downloads so it's working for some people. Very strange.

I've uploaded it to my Mediafire account. Try downloading from here: https://www.mediafire.com/file/8qgd9u2fl0l63sq/TickleMyAndroid_-_v16.1.exe/file
[Android Themes] einsteinx2:
Thanks! Was also getting the 404 error trying to download from XDA but the Mediafile link worked great, thanks!
[Android Themes] Ticklefish:
This is annoying. I can't recompile this with apktool 2.4.0 or the recent 2.4.1 snapshot. It's not the APK's fault - I'm getting an conflict caused by the presence of 32-bit Java on my PC. Which is the work PC so I can't do anything about it. Damn.

So I had to try this with apktool_2.3.4.jar. This resulted in a new APK with a curious "/res" folder..

​

The original is on the left and the new APK is on the right. The suffixes denoting different version numbers (-v17, -v21,etc) has gone. Which means the "/layout-v16" folder seems to have merged with the "/layout" folder.

I wouldn't be surprised if this causes a problem in installation..but I don't know if that happens with the more recent versions of apktool. So the issue might not be related to this at all.

It's worth opening the original and recompiled APK files in 7z and just visually comparing the two. There will always be some minor size differences but the same folders and files should be in both.
[Android Themes] n0c7:
Hi Ticklefish,

Yes, I'm getting similar results. There is a definite change to the structure of the recompiled .apk. I'm definitely willing to assist you with this - just let me know what you would like to me to try.
[Android Themes] Ticklefish:
What changes are there? Are we missing any files or folders?
[Android Themes] n0c7:
Hey Ticklefish. I'm back on my feet. I've switched computers and I'm trying to download the latest version to get back to you on the difference between the files/folders but the download link isn't working. The downloads counter goes up when you attempt to download it but each time its error 404.
[Android Themes] Tulsadiver:
See post 7843
[Android Themes] Ticklefish:
I'm having some trouble with the download tab for some unknown reason. I've just uploaded the file again and it seems to be working. So far, anyway..
[Android Themes] n0c7:
That link is infected with Trojan:Win32/Tiggre!plock

---------- Post added at 03:55 PM ---------- Previous post was at 03:54 PM ----------

The counter has reset but still error 404. Also, the other version you uploaded to the other site is being flagged as having Trojan:Win32/Tiggre!plock.
[Android Themes] n0c7:
Ok, I had a chance to do this and gather some information.

Steps taken:

1) Decompiled using Tickle My Android with Standard options

2) Recompiled using Tickle My Android with Advanced options seen in photo #1.

3) Compared the original .apk and the recompiled .apk. The following differences were noted (photo #2):

- Change in packed size to kotlin, lib, and META-INF folders

- Change in packed size to AndroidManifest.xml

- Change in size and packed size to res folder

- Change in size and packed size to classes.dex

- Change in size and packed size to classes2.dex

- Change in size and packed size to resources.arsc

4) App will not install. logcat states it's a certificate issue.

If I recompile and turn OFF 1 - Copy Original "AndroidManifest.xml" And "META-INF" Folder and turn ON 5 - Sign With New Key, I can get the app to properly install.
[Android Themes] Hamidreza2010:
[MENTION=4315551]Ticklefish[/MENTION] hi

Link of last version was broken.
[Android Themes] Ticklefish:
​

(I'm not normally one to put GIF's in my posts but this just encapsulates my feelings perfectly..)

I've uploaded the file to my AndroidFileHost account for now: https://androidfilehost.com/?fid=1899786940962600106

This is only a temporary thing as it's so much easier for me to upload to the downloads tab. I've reported the issue and hopefully it'll be working soon..
[Android Themes] Ticklefish:
Interesting. Using the original META-INF folder shouldn't stop it from installing. Although I know that apktool's dev is due to remove the option soon.

Oh well, at least you can get it running now. Thanks for letting me know! :highfive:
[Android Themes] jututt:
Hey [MENTION=4315551]Ticklefish[/MENTION] how apk zip recompiling is handled? I found .png and .jpg archived with deflate, which there's no need of (being those filetypes already de facto compressed), while resources.arsc as store, which on the other hand could deflate nicely.

Some deflated packed .pngs are even slighty bigger than original, due to compression overhead.
[Android Themes] n0c7:
:highfive: If you need me to test anything else let me know. Cheers!
[Android Themes] Ticklefish:
This is down to the way that apktool itself works, not TMA. The "resources.arsc" file in the olden days had to be at store levels of compression or the resulting APK wouldn't install. I don't think it's such an issue now but I could be wrong.

As for the image files, you can change this yourself if needed. When the APK is recompiled, the individual files are stored in the "_working\appname.apk\build\" folder. There's nothing to stop you from manually putting them into the new APK at whatever compression rate you wish. As far as I'm aware that won't cause any problems with the app.
[Android Themes] jututt:
I edited the generated apktool.yml in parent dir, it has a 'do not compress' section, I removed - arsc and added - png, bingo!
[Android Themes] Tagdu17:
[MENTION=4315551]Ticklefish[/MENTION], after I dowloaded your latest tool version (v16.1) and double clicked on it, it seems I haven't any .exe file but a .bat file.

What am I supposed to do with that plz ?

Thx for answer !
[Android Themes] Ticklefish:
Just run it. It'll load up the correct EXE file. :)
[Android Themes] Tagdu17:
I already did that : a command prompt pops up and closes imediately but there isn't any .exe created :confused:
[Android Themes] Ticklefish:
I've just uploaded an updated version to the Downloads tab. This definitely works as I've just tested it while writing this post.

The download might not work though... I've been having a bit of trouble which is why I used Android File Host for v16.1.

Can you give it a try please and let me know what happens?
[Android Themes] Tagdu17:
Thx for your quick reply, anyway it seems it doesn't want to work on my laptop...

I downloaded latest version from "Downloads" XDA tabs though, any idea ? :mad:
[Android Themes] Ticklefish:
Possibly. It depends what isn't working. Is the EXE that you download not working? If it is, does the batch file not work? If it does, does the new EXE not work? If that does, is something else not working?

That's the problem. If I don't know what's not working, I won't know how to fix it.

The batch file, "Tickle My Android.bat", works by checking if you have a "c:\Program Files (x86)" folder on your PC. If you do, then you have a 64 bit system and it copies "ticklemyandroid\tool_files\TMA_64.exe" as "ticklemyandroid\Tickle My Android.exe".

If that folder isn't on your PC, then the batch file copies "ticklemyandroid\tool_files\TMA_32.exe" instead. The batch file then runs that EXE file and deletes itself.

Can you let me know what actually happens in your case please?
[Android Themes] FunSucker:
Try checking your antivirus. I have experienced the same problem. Installed several times, still failed. For my case, TMA.exe entered into the "quarantine" of the antivirus.

If TMA.exe is blocked by antivirus, you must exclude the TMA folder from antivirus protection.

I have tried Re-Download from "Download" tab, Re-Install, and everything running smoothly.

Little update for language, sir. Have a nice day :cowboy:
[Android Themes] Ticklefish:
That's great, thank you! I've added this to the EXE file and uploaded it to the downloads tab. :highfive:
[Android Themes] Bradco:
hello,

I just tried to download version 16.2 I have an error: 410 Gone

if my memory is good to update TMA I must have uninstalled the version I have before installing the new one?

i see the post 7843 but it's 16.1 version.
[Android Themes] Ticklefish:
Grr..that's annoying.

I've uploaded the file to a cloud storage site and the link's in the OP.
[Android Themes] Bradco:
Thanks :good:

Works good
[Android Themes] Ticklefish:
Version 16.3 has just been released! It can be downloaded from here: https://www.androidfilehost.com/?fid=4349826312261650333

This features the latest version of apktool (2.4.1) which was released just a few hours ago. This has a lot of fixes and improvements, including being compatible with 32 bit Java again! There's also a new decompiling option that lets you only process the DEX files in the root of the APK. If you know what this means, you know how useful this can be. If you don't know what it means, you don't need to worry about it yet.

The full list of updates to apktool are available here: https://xdaforums.com/showpost.php?p=81056995&postcount=5864

While you're there, don't forget to give [MENTION=3924617]iBotPeaches[/MENTION] a thanks for all his hard work. The guy deserves it!

This latest version of TMA also now includes the option to decompile then immediately recompile files. Very handy if you're testing whether a file can recompile without modding.

To go with that, there's the option to recompile then immediately decompile. Extremely useful if you're modding smali and you need to get new references from "public.xml".

Download from the link above, or in the OP, and let me know how you get on!
[Android Themes] SammyTRK:
[MENTION=4315551]Ticklefish[/MENTION]

In the next update will you please add the -b option when decompiling? It really helps when diffing files.

-b,--no-debug-info don't write out debug info (.local, .param, .line, etc.)
[Android Themes] Archangel:
Thanks for the update brother, def a lot faster! Is the ability to change the background color and text still there?
[Android Themes] Ticklefish:
I can do that, sure. The question is when do you need it for? Are you happy to wait for me to code in the below ability?

No...but it can easily be reintroduced. It'll take me a few days if that's okay?
[Android Themes] SammyTRK:
No rush. I am happy to wait. :good: Thanks.
[Android Themes] Archangel:
LOL of course brother was just asking thank you!
[Android Themes] Ticklefish:
All done. Version 16.4 is available here: https://www.androidfilehost.com/?fid=4349826312261651996

Let me know what you think!
[Android Themes] SammyTRK:
Very nice, thank you. I like having the color options again too. :D

Also, the link in that post is borken it takes me to a 404 error. The link in the OP works though.
[Android Themes] Archangel:
You are the man, thank you!
[Android Themes] Thebear j koss:
This is essential for late night themers and modders. Besides ease of use, theme colors of TMA was a favorite.

Thanks for keeping this updated and for the quick colors option return. Hopefully things have been getting better for you and the new year brings you health and happiness.

Sent from my OnePlus 7T using Thebear Blue XDA Labs
[Android Themes] Ticklefish:
I'm always happy to help, folks. TMA is made for you, after all. So if there's something you need me to add/change/remove, just let me know!

And thanks for your kind words [MENTION=4916750]Thebear j koss[/MENTION]. Life hasn't improved much but I'm able to deal with it a bit better now. And it's hard to be sad with Xmas music relentlessly assaulting me everywhere I go! :D
[Android Themes] zooperaj:
Can we modify Android for PC operating systems like Remix OS etc with this tool?
[Android Themes] Thebear j koss:
Does it use apks? Then yes. If they use something different, then no.

Sent from my OnePlus 7T using Thebear Blue XDA Labs
[Android Themes] Ticklefish:
I'm a little confused (which happens easily). Are you hoping to modify Remix OS's apps? Or did you want to modify Android so it works on a PC?

If it's the first, then TMA should be able to do it as long as the apps are constructed in a standard way. The developers may have done something to stop people from decompiling their files.

If it's the second, then TMA can't really help. This isn't for creating roms.
[Android Themes] msubhani:
Thanks OP for such an amazing tool. Once i read in thread you have plan to make this tool for linux. Is it in pipe line or you dropped the idea?
[Android Themes] Ticklefish:
Officially TMA Linux is on hiatus.

That's a fancy way of saying that I don't have access to a Linux environment so I can't do anything. I'm more than happy to help somebody if they wanted to try making it themselves though..
[Android Themes] Er. Aditya:
TMA is almost 95% reason why i can stick to windows and rest 5% comes from gaming :D:D
[Android Themes] Ticklefish:
Aw, I'm flattered! Although..only 95%?! I need to improve the code!!! :crying:
[Android Themes] Er. Aditya:
lol if u improve more then we will be able to decode alien language via TMA
[Android Themes] Ticklefish:
Sorry, the government prefers that I don't do anything with alien languages anymore. They want to avoid a repeat of the whole Forgotten Earth-Mars War of 2016.

You don't remember the Forgotten War?

Well, that just proves it really happened!
[Android Themes] zooperaj:
I am hoping to modify apps.

Remix OS (like Bliss, Phoenix, Android-x86,, Prime) is already a Marshmallow version specifically to run on PC. So, i wish to either convert system apps to data apps or to delete some system apps.
[Android Themes] Ticklefish:
TMA is for decompiling and recompiling APK and JAR files. You can't use it to delete apps. You might be able to use it for convert system apps to data apps, if you can do that to a decompiled file. I'm not sure why you'd want to move apps from one partition to another but that's your business.
[Android Themes] Thebear j koss:
Be careful moving system apps, most are on there for a reason and may not function if moved to another partition. Anyhow, just sign apks to make them data apps and keep signature and flash to system partition path to overwrite the original on system path. TMA can even create flash able zips for you. Just always have a good backup in case things go awry. Keep in mind also anything tied to framework or play services will need to keep signature and flashed to system.

Sent from my OnePlus 7T using Thebear Blue XDA Labs
[Android Themes] Venom0642:
[MENTION=4315551]Ticklefish[/MENTION] thanks for the update :good:
[Android Themes] Ticklefish:
And thank you for your thanks! :highfive:
[Android Themes] starbucks2010:
Hello,

I was trying to dl the latest 16.2 TMA from OP but I get 404 page. Is there another link?

Never-mind, I found 16.4 :)

Thanks.
[Android Themes] Ticklefish:
​

It's that time again. The nights are getting longer, the days are getting colder and my credit card bill is getting bigger...it must be Christmas time!

I have a retail job and I'm likely to be very busy from Boxing Day until the end of January. The store closes tomorrow and I don't have internet access at home (I know! What a horrifying thought!!) so I won't be online for a while. If you have an issue with TMA, or you're having trouble de/recompiling a file, hopefully the awesome people who also use the tool will be able to help.

How do I know they're awesome? Because they use TMA! Easy! :D

I want to take this opportunity to thank everybody for sticking with this little program of mine and helping to make it what it is. You really have no idea how much it means to me.

Whatever you're all doing this December, whatever this time of year means to you, I hope you have a great time and I'll see you on the other side!

Ticklefish
[Android Themes] Er. Aditya:
May santa take away all ur bills :D
[Android Themes] ninestarkoko:
You're one of the best themers and code modders here on xda, so thank you for updating and supporting your tools also for recent android versions.:o

(i've been following you since the Xperia Z days and learnt a lot thanks to your contributions)

Now a question:

I have a Galaxy S10 and i'd like to disable some SystemUI notifications that cannot be disabled from the notification menu in Settings (they're grayed out as shown here for the low battery one Source: https://piunikaweb.com/2019/04/24/s...sound-cant-be-turned-off-possible-one-ui-bug/ )

I fiddled a bit into the systemui code, found the notification channel tied to the low battery notification, but i can't find anything strange in the code that creates the channel.

Do you know what's the code trick that is used by android (in systemUI? in Settings? other system file?) to prevent user from editing notification settings for a particular notification channel?

Not only Samsung but also aosp/google roms have some systemui notifications grayed out to the user and this is obviously not available to third party apps so the "API" is not explained in the official documents.

I know that Autonotification app can block these notifications but i'm rooted and i like doing this kind of things myself editing the code.
[Android Themes] Ticklefish:
I always admire people who like to mod things, especially those who like to dig into the code. Apps that do things for you are very useful, and things like Xposed are incredibly clever, but there's something very satisfying about doing it yourself. Plus, the more people experiment, the more mods they come up with. Which is good for everybody!

Unfortunately I can't help too much with this. I've no idea how Android stops people from editing particular settings. It's got to be in the smali, but which smali file inside which APK/JAR I've no idea.

Normally I'd find the hex reference for the string used in the notification and search for that in the smali. Hopefully that'd give me a start which I could then build on. Have you tried that? I know you've found something in the code but I'm not sure if that's what you found.

I had a Samsung Galaxy Tab back when the first one came out. Everytime it booted up the device played a happy little sound which was great...unless you'd just rocked your infant son to sleep and you couldn't put him because the little bastard angel would wake up as soon as you did and you just wanted to do something for an hour while he dozed and that stupid little sound woke him up so you had to rock him back to sleep again and that took ages and he still doesn't go to sleep easily now but that's because he's too busy reading Harry Potter or something so he's not actually being naughty so you can't really get angry with him but you just know he's going to be tired in the morning and you're just so tempted to spike his dinner drink with vodka but you're not really because you're just joking but deep down in your heart you know there's a kernel of truth..

Er...

Sorry about that. I quit caffeine for New Year's and clearly I'm not coping well.

Anyway. I couldn't find out how to stop that sound from being played in the code so I eventually just tracked down the sound file itself and deleted it. It wasn't a great fix but it worked.

If you're looking to get rid of the low battery notification sound, rather than the notification itself, that might be worth a try. I know it's cheating but if it works it works!

And thanks for your kind words. It's always good to know that the stuff I do here actually makes a difference. :highfive:
[Android Themes] ninestarkoko:
Must be quite a hard time for you with your sweet Home Works:D

However i already disabled the sound but wanted a more elegant way to disable the notification.

The workaround i found is to change the low battery notification threshold (using a home-made systemless magisk module with an overlay apk for framework-res) from 15 to 1. Now when i get the notification my phone is really going to die in a few seconds!:p