yashsingh1/xdaforums huggingface dataset:
[Android Themes] Ticklefish:
There are a few possible reasons why you are having troubles: either your process doesn't work or the mod you're trying doesn't work.

The first thing to check is that you can decompile and recompile your framework-res.apk without making any changes and it'll still work. There's an option in TMA to decompile and instantly recompile an APK. Try using that. If your new APK works OK on your phone, then you know you need to look at the process you're following to do your mod.
[Android Themes] jjr3211:
Ok thank you I will check it tonight when I get home from work
[Android Themes] jjr3211:
Okay so actually got to work on it this morning I cannot get it to install without making any changes. So where do I go from here?
[Android Themes] Ticklefish:
If your modded, unchanged, APK can't run then there's probably something wrong with your process. Are you getting any errors when decompiling? Did you install all the framework files from your rom before you tried decompiling?

If you share your history.txt I can see if I can spot any obvious solutions.
[Android Themes] jjr3211:
Not getting any errors pretty sure I have pulled and installed framework files I used your tool.
[Android Themes] jjr3211:
View attachment history.txt here is history text i think.
[Android Themes] Ticklefish:
You need to install samsung-framework-res.apk before you decompile your framework-res.apk.
[Android Themes] jjr3211:
Do I use your tool to do that or just pull it from my phone?
[Android Themes] porkyhontas:
You can use the tool to pull the frameworks from your phone and install them. It'll ask you if you want to install them after you pull them. Or it used to, lol, I install them differently since I use so many. But I'm sure the tool still asks of you want to install them.
[Android Themes] Teracotta:
I've heard that on the Galaxy S5, it was possible to disable the flipboard full-page widget and restore the cycle through function. It isn't possible on the Galaxy S6, but the flipboard app can be removed by removing the app, disabling it and then ripping it out of system UI.

That said, is it possible to restore the cycle through on GS6? How would I begin doing that?
[Android Themes] Ticklefish:
I've no idea, sorry. I suggest asking in the Galaxy S6 area of the forum.
[Android Themes] tutibreaker:
done working fine now, some missing stuff in win10
[Android Themes] Ticklefish:
Try renaming "tool_files\rewrite\settings\DebugOff" to "DebugOn". Then try it again and let me know what is shown when the program crashes.

If you can share your "user_files\logs\history.txt" that would help as well.
[Android Themes] killbyt:
Hi

The newst Version 15.1.0.1 produces an Error on execution:
[Android Themes] Venom0642:
Question TickleMyAndroid isn't working anymore was there something that got changed everytime i put a app like what i use to do with my samsung themes it worked , but now if i drop the samsung theme in the in folder and hit decomplie it just exit out, am i missing something thanks.
[Android Themes] Ticklefish:
I'll look at this tonight or tomorrow morning. Hopefully it should be pretty easy to fix.
[Android Themes] Venom0642:
Ok thanks appreciate it [emoji106][emoji106][emoji106]

Running On My Samsung Galaxy Note 8 SM-N950U Wicked Venom
[Android Themes] Ticklefish:
I can't replicate these issues, sadly. I've downloaded the latest version onto a PC running Windows 10 and, apart from the usual trouble with Windows Defender, it works perfectly.

So..

Are you still having this issue? It may be that your computer has issues with one of the programes TMA uses.

Can you share your files please? I'll try them on my setup.
[Android Themes] Venom0642:
What i will do try it on my other PC to see if it does samething, will report later.
[Android Themes] JIJOK:
Hello, a little issue I am having ( just doing easy stuff to learn ), even if I just decompile an recompile apk, it doesn't work. When I try to install apk its says "app not installed" what I am doing wrong ? I sign it with original signature
[Android Themes] Thebear j koss:
To install an app to data partition (press to install) app needs to be signed. Only keep original signature when flashing or pushing to system. A lot of apps will not work when you sign it, so depending on the app you may need to do the latter.
[Android Themes] Venom0642:
Ok i sorted it out was apk name was way to long , Totally forgot to rename it so all is working fine.
[Android Themes] iArvee:
Alright, so I'm trying to deodex my stock ROM (Phone: Xperia XZ Premium, 47.1.A.8.49) Android 8.

The deodexing process is currently stuck on am.odex and has been for about 30 minutes now. Does this mean an error has occurred or something? Or should I stop the deodexing process and restart it?
[Android Themes] Ticklefish:
Deodexing is a tricky process. Can you share your files please and I can take a look?

I'd need your framework folder, your app folder, your priv-app folder and your build.prop.
[Android Themes] iArvee:
Sure, files are located here: https://drive.google.com/open?id=14NZ6nY30Q76txX1XidA_oHvHX9_eemxj

I'm not sure, but I noticed that when stuck at a certain file while deodexing, if you press any key, it'll just skip the file. I had to skip a bunch of files, but when deodexing "boot-core-oj", an error occurs. Here's a screenshot:

And from the history.txt:

23-01-2018@710 --- Processing No.8 - "_WorkArea1\_deodex\framework\arm64\boot-core-oj.oat"
out\java\lang\invoke\Transformers$BindTo.smali[113,4] null
out\java\lang\invoke\Transformers$CollectArguments.smali[224,4] null
out\java\lang\invoke\Transformers$CatchException.smali[167,4] null
out\java\lang\invoke\Transformers$DropArguments.smali[145,4] null
out\java\lang\invoke\Transformers$Construct.smali[238,4] null
out\java\lang\invoke\Transformers$Collector.smali[277,4] null
out\java\lang\invoke\Transformers$FilterArguments.smali[228,4] null
out\java\lang\invoke\Transformers$FilterReturnValue.smali[180,4] null
out\java\lang\invoke\Transformers$GuardWithTest.smali[112,4] null
out\java\lang\invoke\Transformers$FoldArguments.smali[211,4] null
out\java\lang\invoke\Transformers$InsertArguments.smali[413,4] null
out\java\lang\invoke\Transformers$ExplicitCastArguments.smali[2224,4] null
23-01-2018@710 --- "_WorkArea1\_deodex\framework\arm64\boot-core-oj.oat" Not Smali'd
[Android Themes] :
How would i decompile framework.jar and services.jar?
[Android Themes] Ticklefish:
Thank you. I'll take a look and sort it out.

Put them in the "_in" folder, install the appropriate framework files and use the decompile option.

Have a look in the instructions in the OP if you're having trouble.
[Android Themes] Cyterafle:
What framework I need for recompile jar
[Android Themes] AmmarGitham:
No... Mine's Samsung Galaxy SL.

And i must say that I use TMA all the time due to its interface and quick options to pull, decompile, recompile and to push well known apks like framework-res.apk, systemui.apk.

Though i dont use the add icons (battery, signal) feature of it. I tend to make my own icons.

Ive been using it since its v4 and been recommending it to anyone who has asked my help to make themes.
[Android Themes] Ticklefish:
That's okay. Things have gotten a lot busier here as well. Share them when you can. Oh, and when you do, remind me what the issue was..my memory's terrible!

sent using the xda app!
[Android Themes] Ticklefish:
Do you? In that case, you may just be my favourite person ever!

If you make your own icons, would you consider me putting them into version 5? Your decision, of course..

About this problem with the manifest, have you tried preparing with version 4.0? I changed the code for 4.1 and it's possible that I might have to change it back.

sent using the xda app!
[Android Themes] AmmarGitham:
Yes I do recommend it. Hmm, I haven't tried on 4.3. Will let you know soon. :good:
[Android Themes] HammDroid:
Ahh, that's right. I did try it, once. It didn't work for me, but may have done something wrong, didn't have much time to mess with it. Well give it a shot again when I have more time.
[Android Themes] AmmarGitham:
Hi TickleFish. I want to thank you for your tool. Your tool helped me achieve my title. It goes without saying that I'll keep using it in future. Thanks Again. :good::)
[Android Themes] Ticklefish:
Hey, that's fantastic! Congratulations!
[Android Themes] androidlover879:
Hi mate I have galaxy s6802 with a custom Rom and kernel running android 2.3.6 And i need to know how to make ICS Settings with your tool. If it is possible please tell me how.
[Android Themes] mzizou10:
I tried to change battery icons sometimes. in cwm recovery and once again pushing into device but both i stopped at bootloop. why?

ICS .587 xperia mini.
[Android Themes] Ticklefish:
I don't know. I need to know more about what you installed, decompiled, recompiled, etc. I also need to know if you had any error messages during the process.

I use this on my Mini Pro, which runs the .587 ICS firmware, so it will work on your phone.
[Android Themes] mzizou10:
I had no error message. i used this on GB and ICS stock. and now i use some MOD in my ICS. always i faced bootloop.

I use v4.3 and i pulled framework-res and SystemUI then decompile - - - > change battery icon - - - > recompile - - - > prepare system app for pushing

but while recompiling framework in new window it says:

W: Could not find sources

I: Building resourses . . .

I: Building apk files . . .

is this error recompiling?

and also the program will put icons into framework and SystemUI.
[Android Themes] Ticklefish:
I know what's happening here. You're using a stock Timescape rom so you need to pull and install SemcGenericUxpRes.apk before you try decompiling framework-res.apk. You didn't have to do this on GB or earlier.

However, if you're just changing icons, you might not need to bother. Pull and install framework-res.apk, but only pull and decompile SystemUI.apk. It's the icons in there that the phone will be using on your rom.

Mod SystemUI.apk on its own and you should be fine.

sent using the xda app!
[Android Themes] mzizou10:
I pulled framework-res.apk and SystemUI and only decompiled SystemUI then i put SystemUI into system/app with root explorer and changed permission to rw-r-r- . after reboot i lost status bar.
[Android Themes] Ticklefish:
Well, that's not what what I mentioned to do in the OP. Replacing a system app while the phone's running is a bit like replacing part of a car's engine while you're still driving it. It can work for some things but I really do not recommend it.

After you recompiled SystemUI.apk, did you prepare it? The recompiled app won't work if you don't.

sent using the xda app!
[Android Themes] mzizou10:
Yes, I prepared it then replaced into system/app and then reboot.

And once again i created zip file from SystemUI and flashed in recovery.

Status bar hide in both method.
[Android Themes] Ticklefish:
Curious..it should work. Can you share your SemcGenericUxpRes.apk, framework-res.apk and SystemUI.apk please? And tell me what mod you're doing. I'll give it a try on it my end and make a zip file for you.
[Android Themes] mzizou10:
I am now using this and this and a xperia s walkman.

But i tested on stock ics too.

Make zip file with this battery icon: 41. stencil battery by itiskonrad.

files are in attachment
[Android Themes] hypnos17:
FIXED :D
[Android Themes] Ticklefish:
Here you go. Try this out. ;)
[Android Themes] Ticklefish:
What was the problem?
[Android Themes] Thebear j koss:
Framework from your device if the jar is also from your device.
[Android Themes] Cyterafle:
Ok thanks but I can install framework.jar and decompile it after ?
[Android Themes] Thebear j koss:
Yes. But you need to install framework-res.apk, the jar file would probably not be necessary for decompiling. Maybe deodexing but not decompiling. When they say install framework, it means framework res and any proprietary frameworks like tw framework res if on Samsung device for example.
[Android Themes] Ticklefish:
Guys, I'm working on an idea for 15.2. Could somebody with a Samsung rom please share their SystemUI.apk, framework-res.apk and twframework-res.apk (or samsung-framework-res.apk if applicable)? I have an idea for something and I need to test it out.
[Android Themes] Androidwizzard:
Here you go -> LINK

it's Note 5 N920C Android 7.0
[Android Themes] iArvee:
Awesome. Just let me know if you need any other files.
[Android Themes] killbyt:
Yes, I still have the issue. I've also disabled Windowe Defender completely. I've also done a bit of research and the problem seems to be related to the batch-processing: See bottom of this link

Maybe this behaviour is also somehow related to windows localisation, my system language is German.
[Android Themes] Ticklefish:
Thanks for the link but I don't think that's where the problem is. If it was, this wouldn't be working on any PC at all.

And I doubt that it's to do with your system language - that shouldn't affect it. But I suppose it's not impossible.

Could you do me a favour please? Open a command prompt, navigate to where your "TickleMyAndroid" folder is and enter this code:

tool_files\bg33 DateTime

If it works, you'll see the current date and time being displayed.

If so, then can you please try this code?

tool_files\bg33 DateTime>tool_files\rewrite\settings\DateTime

This will, if it works, write the date and time to a file in the tool_files folder.

Then, if that works, please try this:

tool_files\bg33 DateTime>tool_files\rewrite\settings\DateTime
set /p DateTime=<tool_files\rewrite\settings\DateTime
echo.%DateTime%

This should read that file in the tool_files folder, create a variable with the contents and display it. Or, to put it another way, it should display the current date and time again.

The above is essentially what the code in TMA is doing and I can't see any reason why it shouldn't work on your particular system. Unless there's something inside the "bg33" program being used that your PC doesn't like..

Oh, and you said your system language is German?

Does that mean you speak German?

If so, did you know that TMA comes in different languages?

And that I'm always looking out for translators?

And that anybody can do it without having to understand a word of code?

And that TMA translators have been scientifically proven to be the most awesome human beings in existence?

Something to bear in mind if we can get this working.... ;)
[Android Themes] Ticklefish:
Well, the good news is that I've fixed the code so the program doesn't hang when deodexing anymore.

The bad news is that there isn't much I can do about your boot-core-oj.oat. It looks like there's a reported issue similar to this on the baksmali site. Hopefully we'll get a solution soon.
[Android Themes] killbyt:
I've found the root of the problem...It is indeed related to my link but in a much more simple way: my username contains a space and so my homedir folder-name...

To prove this, I've created a user named "test" and voilà TMA works fine :)

Thany you for your support!

##Edit

Yes I speak German (and French) :)

And...I can help to transelate TMA :) :)
[Android Themes] iArvee:
Awesome news!

That is totally fine. I can wait. For now, I guess I can just have a semi-deodexed ROM. :D
[Android Themes] Ticklefish:
Excellent, that is good news! I was going crazy trying to think of a way around that issue..:crying:

If you'd like to help translate TMA, you will be doing me a huge favour!

In the "user_files\LANGUAGES" folder are a few ".bat" files. These contain lines like:

set string_error0001= Error! Java ist nicht auf dem PC installiert!

This looks like this in English:

set string_error0001= Error! Java Not Installed On PC!

When you select the language option in the settings menu, TMA automatically detects which languages are available and lets the user choose which one they want to use.

Unfortunately the code has changed quite a bit since the last time these batch files were updated and there are a lot of untranslated strings in them.

To translate them, just edit the file in Notepad or similar. It's not the most exciting task in the world but, sadly, it's not one I can do myself. I barely know how to speak English correctly, let alone anything else!

If you're up for the challenge, please share the file you've translated and I'll add it to the EXE file so everyone can use it.

This goes for anybody else who's reading this and can help out with translating. TMA can let people choose from up to 400 different languages so there's a lot of potential here!
[Android Themes] JT1510365:
Hey ticklefish can you please help me I keep getting settings fc in my CyanogenMod 10.2 ROM when I tried removing the whole additional options section as shown in the first screenshot but I keep getting settings fc when I click on screen security I believe I did everything correctly I removed the proper strings in strings xml and public xml and deleted the security settings CyanogenMod XML is there something else I am missing I used apktool 2.0.0rc4 if that helps thanks buddy hope to hear from you soon! I can also upload my decompiled settings folder if you want if that helps:)
[Android Themes] Thebear j koss:
Need to post a logcat which will show the error. I am presuming you missed something, taking out things is a lot harder than adding in. Is there a reason you are removing this section?
[Android Themes] ahmed_ais:
Problem with Facebook apk

Hello everyone,

I'm using v15.1.0 of the tool and I'm having a problem to

properly

decompile the latest (at the moment) Facebook APK (157.0.0.38.97). The tool decompiles the file without complains but then it fails to recompile because of problems during decompilation phase. Specifically, decompiling resources does not go right where folders like drawable2, drawable3 and drawable4 appears in res folder. In addition, application icon that is found in some mipmap folders is named (name removed).png with brackets included which is invalid and hints to decompilation a problem.

Later beta (158.0.0.18.95) features the same problem as well. I guess it is something to do with apktool itself but I'm not sure. Any idea about that??

I have attached the log of recompile process which failed.

PS: I just need to know the location and name of the launcher icon within the apk to theme it using a substratum theme I'm developing.
[Android Themes] Thebear j koss:
Just extract the res folder using 7zip or winrar. No need to decompile if you just need name and location of an image. Also, need more info, what framework did you install? Facebook is usually a troublesome app, not too many themed Facebook apps out there.
[Android Themes] Ticklefish:
The errors are saying that there are invalid directory names in the APK - "drawable2, layout2, etc". I haven't seen these folders with numbers on the end before, I don't think that's a standard Android naming procedure. Which would explain why Apktool doesn't like them.

Maybe Facebook did that on purpose to stop people from modding their apps?

Anyway, we could try and overcome this if you really wanted. It'd be difficult and time-consuming. And probably impossible.

But, if all you want is the location and name of the launcher icon, you don't need to recompile at all. Once you've decompiled, look in the AndroidManifest.xml. Somewhere in there it will say what the icon filename is. Then you just need to look in the various drawable folders for that filename.
[Android Themes] ahmed_ais:
Extracting is not possible as the resources are bundled into resources.arsc file which I don't know how to extract aside from decompilation. For framework, I used the ones from the ROM I'm using: Ultimate Nougat Rom v4 by Enes (if you want to look at them I might be able to attach them).

I don't think they did that on purpose. I tried to create a test app renaming the launcher icon to (name removed) but it didn't accept it requiring the first letter to be character so simply Android Studio won't accept that.

Yes I don't need to recompile. I just did that to make sure that it won't recompile because of the naming conventions of the folders which I too see it for the first time ever. And here's where it gets interesting: after decompilation, this is what I have in AndroidManifest.xml file application tag:

As you can see, the tag hints the launcher icon location at mipmap/(name removed) which is invalid to Android AFAIK. Frankly, the images exists in such locations with the same name (name removed).png which doesn't make sense to me. I also noted the android:theme="@style5/(name removed)_APKTOOL_DUPLICATENAME_0x7f1e004f" part which does say that apktool didn't finish its job very well here. Something is wrong at decompilation time and it seems apktool-related.

---------- Post added at 07:42 PM ---------- Previous post was at 07:30 PM ----------

And let's add more bits here. I just tried to decompile the apk using apktool alone (without TMA) and unsurprisingly the process had problems decoding resources although it finishes to the end. This is why decompilation finished just fine in TMA without errors but the problems will surely be logged somewhere. Here's a pastebin containing the whole process: https://pastebin.com/edit/rHKMqygQ. TMA is not the problem but apktool needs to be updated I guess.
[Android Themes] Thebear j koss:
Images are not resources. You don't need to decompile to see the mip map folders and images inside. The icon name is most likely ic_launcher.png
[Android Themes] ahmed_ais:
Take a look at the structure of the apk file before you judge please (attached).
[Android Themes] Ticklefish:
Curious. No res folder..

I'll be honest, I'm not sure what Facebook have done here. It does look like they've constructed the APK in a non-standard way and that's why apktool is having trouble.

Is there a folder in mipmap/ that looks like it could be this '(name removed)'?

Although..if that's where the launcher icon is and you can't get to it in the pre-decompiled APK, that's going to cause you a problem with your theme anyway.

Tricky..
[Android Themes] ahmed_ais:
Yep. No res folder if the apk is viewed as an archive because all the resources (including the launcher icon/image of course) are encoded into the special file resources.arsc. The only way to decode such file is through apktool and its part of the job while decompiling an apk. I have seen such arrangement before so I'm not surprised with the lack of res folder here.

Once the apk is decompiled, the arsc file is decoded and res folder appears as you can see in the attached picture.

There are three mipmap folders: mipmap, mipmap-xxhdpi and mipmap-xxxhdpi and each of them contain an actual image with that specific weird name '(name removed).png' !! a picture of that is attached as well.

I agree. I also share your thoughts that Facebook started to use some special way to package their app which apktool wasn't updated to support handling them so far. I have filed an issue on apktool's github and I hope it gets the developers attention.
[Android Themes] Thebear j koss:
See apktool thread by ibotpeaches. I am guessing it is something with aapt2
[Android Themes] ahmed_ais:
Yea I just checked his thread and read the info. It seems very related so nothing to do but to wait, fingers crossed.
[Android Themes] :
I am having Trouble with recompiling SecSettings2.apk with new signature after making changes in the manifest. The Output apk is an empty zip (0 Bytes).

The changes in manifest are necessary for the "gesture anywhere" mod (https://xdaforums.com/crossdevice-dev/sony-themes-apps/guide-gesture-t3481469).

The changes are:

<activity android:name=".kryp.gestureanywhere.GestureAnywhereBuilderActivity"/>

<activity android:name=".kryp.gestureanywhere.GestureAnywhereCreateGestureActivity"/>

My device is a Samsung s6 SM G920F on Marshmallow.

The log is attached, says recompile sucessful.

Any idea or hint would be very much appreciated.
[Android Themes] zelendel:
Don't sign system apks. If the sign doesn't match everything else in system then it will not work.
[Android Themes] porkyhontas:
System apps don't get signed with a new signature, just the original signature.

Sent from my SM-N920P using AnaKonda Tapatalk