yashsingh1/xdaforums huggingface dataset:
[Android Themes] Ticklefish:
Try this out: http://www.mediafire.com/file/9spnt939x2du9cm/TickleMyAndroid+-+v14.2.0.exe

This should delete the SEC-INF folder when you choose to recompile with a new signature. If it works out, I'll update the OP with it.
[Android Themes] Lmax579:
Awesome, and option 4 which is Android 6.0x right?
[Android Themes] Ticklefish:
If you're using Marshmallow, then yes.
[Android Themes] Lmax579:
Why is this happening? Damn it
[Android Themes] Frankbrazillian:
Thank's Ticklefish! I'll give an try and let you know!
[Android Themes] Thebear j koss:
Share your log and history.txt, upload them to a cloud site like dropbox or gdrive and share the link, or hide the logs on xda.

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
OK hold on

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

Quick question, I see Systemui doesn't have smali folder but resource manager apk has it, so if I'm putting the 3 minit battery smali files, would I just put them in res manager apk folder?
[Android Themes] Thebear j koss:
Nooooo. Those smali files have to go into the smali of system ui. If you have no smali folder then you don't have a deodex system ui. The easiest way to do this is to flash a deodexed rom. Odex roms are useless nowadays, they haven't had any purpose since ICS days IMO. The speed betwen odex and deodex is null nowadays with how android handles things now. If you want to mod or theme android the best and easiest way is to flash a deodex rom. If you just want stock and you don't care about mods then it doesn't matter. Whoever says odex is better is lying and living in 2012.

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
I care about it, but nobody has created a deodexed rom for the note 7 snapdragon
[Android Themes] Thebear j koss:
There you go. This can be your baby. Take the stock rom and make a deodexed version and be the hero. Usually deodexed roms are released 1 to 2 days after stock is released. And once that is done then the customs get built. I haven't been on a stock rom in almost 6 years. Stock roms are just pure boredom...

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
Hell yeah they are, I'm gonna try
[Android Themes] Thebear j koss:
Some of the top devs started out just deodexing roms in android kitchen. Having a stock based deodex rom is key to all further development. No mods or themes can be done without a deodex rom to start from. Good luck!!

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
I think u asked me for the Log earlier but I couldn't find it. I only found logs for decompile G but not deodexing
[Android Themes] Ticklefish:
I like stock roms, just because it means all the mods on it are done by me. Although I'm always using smali files created by other people so that doesn't really make sense, I guess..lol

There isn't a separate deodexing log, it's all inside history.txt. You'll find that inside the "user_files\LOGS\" folder.

Your screenshot is showing that a particular file couldn't be deodexed. The log will give a better idea of exactly what the problem is, but it could be tricky to fix. Try deleting the matching JAR file from the framework folder and running the process again.

This tool is designed to deodex an entire rom so if a file doesn't deodex properly, the whole process won't work. But, if you continue to have problems, I could possibly put in an option to 'skip' a file if it doesn't deodex. Tricky but not impossible.
[Android Themes] Lmax579:
I appreciate that... I'll look into it and try again, if it doesn't work, I'll let you know... It'll probably be late tonight, I have so much to do during the day.
[Android Themes] Lmax579:
I tried doing the Java path like in the op but no luck Idk what the value would be
[Android Themes] Thebear j koss:
Yeah, but when you're done it is no longer a stock rom. Stock is a good base to start with, but my point was if you are going to do any modding or theming, always use a deodex rom. Deodexing seems to have become a nightmare especially on newer samsung roms. Having a good deodexed stock rom is the key to any dev making his own stock based custom rom. Not saying an already custom rom is better than stock, each uaer will have their preference. I don't have the time anymore to mess around like i used to, so running a good custom like DU or Pure Nexus is fine by me. After switching from samsung to nexus, i will never go back to proprietary roms like touchwiz again. CM or AOSP base for me. Lol

Thebe?r'$ NeXu$
[Android Themes] Frankbrazillian:
Hi [MENTION=4315551]Ticklefish[/MENTION]... I tested your tool today and i come here to tell you, the option you have enabled are not working... But.... Just now i see, i did an mistake. I was thinking, when i choose the option to recompile without signature, your tool will detect and delete the SecInf folder. But...for this, i need to recompile with an new signature... :( Sorry! My bad! Tomorrow i will test again and post the results here.

But one thing i noticed is, even i choose to recompile without signature, the recompiled apk, still have the original signature. ?
[Android Themes] :
I decompile file a marshmallow note 7 systemUI it was 26.62mb size after I recompiled it and change the size to 26.17mb is that normal ?
[Android Themes] yash92duster:
Yes its normal only
[Android Themes] Lmax579:
Idk if it's me but I can't install the app, like when I extract the zip, all I see is tools, nothing else.
[Android Themes] Thebear j koss:
This isn't an app on your phone. This is for a computer, it is a tool that modifies apps. After extracting onnyour PC run the TMA.exe file to run the program and set up your stuff.

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
That's what I'm saying, the exe file doesn't populate, it's with windows 10,with my windows 7 it does work, but I have another problem
[Android Themes] Thebear j koss:
Look in OP for troubleshoooting TMA on windows 10. Need to disable antivirus. Also make certain you are downloading full version and not just add ons.

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
I'll check into it
[Android Themes] Frankbrazillian:
Test

Hi Ticklefish... Did the test again today, this time choosing to recompile with new signature, but unfortunatelly not worked. The recompiled app still have the SecInf folder inside. :(
[Android Themes] ANDROIDXFOREVER:
also problem
[Android Themes] Ticklefish:
Damn. Okay, I will check the code. Can you share your files please? It'd be very helpful. :)
[Android Themes] Frankbrazillian:
Test

Sure Ticklefish.... Here are the files! The zip contains the original resources, the original apk and the modded apk inside. Anything else, just let me know.

https://drive.google.com/file/d/0ByRhPVyCuK60Q1FsV25TT1o5VVE/view?usp=drivesdk
[Android Themes] s.sunfeihu@gmail.com:
I have encountered this problem!

Hello buddy! I deodexed rom for the note 7 snapdragon, encountered notice column storage deficiencies, the application is optimized for each restart! You can help me solve it, if resolved, I will donate!
[Android Themes] Lmax579:
I actually stopped, I flashed the tmo firmware and flashed a custom recovery
[Android Themes] s.sunfeihu@gmail.com:
Hello buddy! Do you know where it is caused? Have you used the latest SuperR tool to test it?
[Android Themes] Lmax579:
No, I haven't... But I ended up turning my Verizon note 7 into a tmo note 7 and flashed a custom rom
[Android Themes] gvmiguez:
You can also give a try to Assayyed Kitchen , on my S7 edge Marshmallow deodex without issues all apks, roms boots ok too
[Android Themes] Kamy:
Compilation failed report:

Hi [MENTION=4315551]Ticklefish[/MENTION]. I have been using this amazing tool for a quite awhile and enjoying the all-in-one pack experience. Coding, debugging and well user friendly interface in a such tool cannot be joyful and easier than this :good:.

But since there is a signature v2 even on a new Samsung lollipop 5.0.1 firmware I have some trouble using this tool. The problem is although it can compile my apk but when I check the apk it is still the original and non-modified version on both new signature or original signature choices. This only happens on apks that contains SEC-INF. Although I can use the original apktool to edit my apk, I am just so spoiled using this very tool. I was trying to find a donation button and send you some beers as support and courage then couldn't find. Please if possible and when got enough time look into it. I can provide any log or info if needed.

Thanks again for this utility and have a nice day.
[Android Themes] Ticklefish:
Thanks for your files, Frank! I've been working on the code today and should have an update ready tomorrow.

V2 signing is proving to be a bit of a problem but TMA should be able to deal with it soon!

Well, thanks for your feedback! It's always great to know that people enjoy using this little program of mine and it makes me even more determined to make sure it's the best it can be. :good:
[Android Themes] s.sunfeihu@gmail.com:
Hello buddy! I deodexed rom for the note 7 snapdragon, notification bar prompts the storage is insufficient and each restart are optimized 300+ applications! You can help me solve it, if resolved, I will donate!
[Android Themes] Ticklefish:
I can add a line of code that compresses the classes.dex files further but I suspect this may not be the problem. It shouldn't make that much difference. And if the Dalvik cache is being rebuilt every time you reboot, there's probably something else going on.

Unfortunately I've no idea what could be causing this. In theory there shouldn't be any issue at all but this is Samsung we're talking about. They're known for doing odd things in their rom's and I'm sure they'll continue to do so.

I suggest asking some of the Recognized Developers in your devices forum. There's something your OS doesn't like about having a deodexed rom, hopefully they'll be able to work out what that could be.
[Android Themes] thereassaad:
Well ,

Mate i always deodexing Note7 newer fw not only me but with too much devs that doing it with every new releases base so , for ur issue insufficient space , im sure its something wrong in ur framework.jar , try to revert ur editing there or at least play with a locales in ur editing in the methods , only this things can fixed the issues with insufficient space issue ,,.

Good luck ,,

[MENTION=4315551]Ticklefish[/MENTION] could u add option to ur tool , that's when we recompile editing any system apks that its will keep original androidmanifest & meta-inf & SEC-INF files when its recompiling , only this way will solved our issues with SEC-INF & signature v2 or too when we recompile apks , that make an options to delete other files & keep original androidmanifest & meta-inf & SEC-INF ?

NOTE : only by this way we will use modifications in system apks with the newer signature ,, at least for now ,,
[Android Themes] s.sunfeihu@gmail.com:
Thank you friends, in the data/dalvik-cache/arm64 is empty, but data/dalvik-cache/arm not empty, you can tell me that the code? I can test it! I do not have any way, please help me!

---------- Post added at 02:29 PM ---------- Previous post was at 02:21 PM ----------

Thank you friend! I used the superr and SVADeodex tool, have issue insufficient space and each restart are optimized 300 + applications, you know which is wrong, in framework.jar. I should do, I have no way, please help me!
[Android Themes] Ticklefish:
It would seem that modded v2 signed APK files can only work if the SEC-INF folder is deleted, the file is signed with a new signature and signature verification is disabled on the device.

That's what I'm making TMA do when you sign with a new signature. If you try to recompile with the original signature, you'll get an error message saying that it won't install.
[Android Themes] Ticklefish:
Thank you for all your hard work! :highfive:

Unfortunately, because it's not a PDF, Chrome won't let me download the file. Can you upload it as a .TXT file please?
[Android Themes] FunSucker:
Yes, sure. I'm sorry about that :D

Take it this, please
[Android Themes] thereassaad:
I suggest what i have done here , its an option with apk-multi-tool & worked fine even without disabled signature verification check ..

Something messed with tool try to updated oat2dex.jar ( from github) & see if its same or not
[Android Themes] Ticklefish:
So, do you have files with v2 signing that work when you use the same SEC-INF and META-INF folders? Even when you make changes to the APK?

V2 is supposed not to work that way. Any changes to the APK should stop the app from installing.
[Android Themes] thereassaad:
Ok my last trying with ur tool on n7 systemui that use SEC-INF i have to to add the mod there after recompile & push it to system nothing changed so i decided to try it with apk-multi-tool that have the options to keep what files/folders when u try to compile then i do it there with delete all folders from keep folder & kept only meta-inf / SEC-INF / androidmanifest then after finalise compiling push it to system & voila its worked fine without signed ,.. That's what's i have done here
[Android Themes] Ticklefish:
Thank you. I'll add it to the main EXE file as soon as I can. :good:
[Android Themes] Ticklefish:
Boy, this is confusing..lol Some people say keeping the SEC-INF folder won't work, some say it will.

I think what I'm going to do is make a special version of TMA, just to get a final answer on this thing. I'll add two more options to the recompiling menu. One will make a copy of the original file and use 7z to add the res folder, resources.arsc and classes.dex to it. The other will recompile as normal but will wipe the META-INF and SEC-INF folders, replacing them with a new signature.

The options will be temporary but I think it'll be interesting to see what success people have with each one. I need to properly establish how we get around v2 signing, once and for all!

I'll start work on the code tomorrow. It shouldn't take too long, as long as I don't have too much else going on.
[Android Themes] thereassaad:
Ok later once im on pc will post what i do exactly with screenshot by keeping SEC-INF folder in my ui with original sig so only by this way u can get the exact answered ok
[Android Themes] Ticklefish:
Thanks, that would be helpful.

I understand the process you describe, and it's very simple to put into code. I just don't quite understand how it'd work.

The whole point behind that SEC-INF folder is it should stop modded apps from working. Any changes to the APK should make the information inside that folder invalid, so the file doesn't install.

I wonder if Samsung are doing something unusual again. Maybe they're using v2 signatures but the rom doesn't actually check them properly..? It's a puzzle..
[Android Themes] Ticklefish:
I think I've made a silly mistake here..

I've been reading Google's documentation about v2 signing again. I was right, it does stop modded APK files from installing..but only in Nougat!

In Marshmallow and below, the v2 signature is ignored. The SEC-INF folder still has to be in the file but it isn't used as a check.

Whoops.

I'll update the code tomorrow and I'll add an option for recompiling Nougat files.

For the rest, recompiling with the original signature will result in the META-INF and SEC-INF folders being reused. Recompiling with a new signature or with no signature will delete the SEC-INF folder.

Thinking about it, the answer was staring me in the face all along. I was being too stupid to see it.

Sorry for the confusion, everyone.
[Android Themes] s.sunfeihu@gmail.com:
I have tested the latest oat2dex.jar, the same problem!
[Android Themes] pharmdeon:
Trying to Deodex

Hello,

I was trying to deodex a sprint s5 stock pca rom (it is rooted). I copied all files and it fails to process the file /system/framework/telephony-common.jar.*

I removed this file and it still failed.

I then removed everything from the framework except an ARM folder, an OAT folder and the framework.apk and twframework.apk and it still fails.

I attached the history.txt, can anyone tell what the issue is?

thank you
[Android Themes] Tulsadiver:
Sir, I just downloaded a fresh copy of Tickle My Android. I do not see an option for Nougat.
[Android Themes] Ticklefish:
So this is the error:

org.jf.dexlib2.analysis.AnalysisException: Could not resolve the method in class Lcom/google/android/mms/pdu/GenericPdu; at index 21

at org.jf.dexlib2.analysis.MethodAnalyzer.analyzeInvokeVirtualQuick(MethodAnalyzer.java:1836)

at org.jf.dexlib2.analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1030)

at org.jf.dexlib2.analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:210)

at org.jf.dexlib2.analysis.MethodAnalyzer.<init>(MethodAnalyzer.java:141)

at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:463)

at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:371)

at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:238)

at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:327)

at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:113)

at org.jf.baksmali.baksmali.disassembleClass(baksmali.java:225)

at org.jf.baksmali.baksmali.access$000(baksmali.java:55)

at org.jf.baksmali.baksmali$1.call(baksmali.java:149)

at org.jf.baksmali.baksmali$1.call(baksmali.java:147)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

opcode: invoke-virtual-quick/range

code address: 935

method: Lcom/google/android/mms/pdu/PduPersister;->persist(Lcom/google/android/mms/pdu/GenericPdu;ILandroid/net/Uri;IILjava/util/HashMap;I)Landroid/net/Uri;

I'd suggest talking to some of the devs in your devices forum. Unfortunately I have no idea what's causing this issue, although it's not the first time that Samsung have caused trouble.

I haven't put one in yet. Work has become very busy lately and I haven't had the chance to update the code. Hopefully I'll be able to do it this weekend.
[Android Themes] Tulsadiver:
Thank you sir. I thought maybe I did something wrong ( which is usually the case, lol).
[Android Themes] Ticklefish:
I was planning to get it done at the start of the week but my job had changed a little. Not much but enough to make it very busy right now.

I'll get coding as soon as I can. :highfive:
[Android Themes] Tulsadiver:
Family, work, time for anything else is gravy.

You've made things so easy for everybody. It wasn't long ago I was doing everything at command line level. Thank you so much for all you have done.

Nougat has made things difficult for a simpleton like me. I just can't get the systemui on my Nexus 5X to mod without fc. It'll all come out in the wash eventually. Thanks again.
[Android Themes] Ticklefish:
Some of you may be aware that TMA has trouble recompiling files signed with the new 'v2' method. These are files that contain a folder called "SEC-INF".

After realising I wasn't reading the Google documentation correctly (I only have a small brain) I think I've now mastered what the tool needs to do and I've updated the code.

Because I don't have a Nougat rom to test this on, or a Samsung rom with v2 signed apps, I'm not releasing v14.2 properly yet. Here's the link to download it: http://www.mediafire.com/file/9spnt939x2du9cm/TickleMyAndroid+-+v14.2.0.exe

Give it a try, let me know what happens and, if everything works, I'll release it officially.

V14.2 treats v2 signed apps like this..

RECOMPILING WITH NO SIGNATURE - The tool recompiles the file and deletes both the META-INF and SEC-INF folders.

RECOMPILING WITH ORIGINAL SIGNATURE - If a SEC-INF folder is present, the tool recompiles the file then makes a copy of the original. That copy then has the "classes.dex" file, "resources.arsc" file and "res" folder copied into it. The "res" folder inside the copy is deleted first to make sure you don't keep any files you've removed. This copy is then placed into the "_out" folder. The META-INF and SEC-INF folders will be the same as the original.

RECOMPILING WITH NEW SIGNATURE - the tool recompiles, deletes the SEC-INF folder and adds a new META-INF folder

RECOMPILE [ANDROID 7.0+] - This is the same as recompiling with a new signature but the tool displays a message that you must disable signature verification for the app to work.
[Android Themes] bleros:
Hi [MENTION=4315551]Ticklefish[/MENTION] can u check my logs at end of text. Error! Unable to process file: telephony-common.jar

Thanks
[Android Themes] Ticklefish:
I suggest asking somebody in your devices forum. Maybe one of the developers there knows why baksmali can't process that file.

Or you could try replacing the smali.jar and baksmali.jar in the tool_files folder with the latest versions from here: https://bitbucket.org/JesusFreke/smali/downloads

I'll update the tool with these tomorrow.

I can't guarantee they'll be able to handle this file but it's worth trying!
[Android Themes] bleros:
Hi Ticklefish thanks for the help mate, after downloaded latest smali and baksmali from url, deodex was not even started error at first app.

But i just give i try to version TMA 13.4.1.0 it was on my download folder i just tried with old version and wow worked without error i really dont know what the problem, in tma 13.4.1.0 apktool was 2.1.1 and used same way number 4 for deodex android 6.0.x
[Android Themes] Kamy:
Thank you very much for the update.

Got very busy with work today and couldn't get back to my android hacking till now. But since I asked for the fix then I thought I just make a quick decompile and recompile and see how 14.2 could handle it.

On the previous version those APKs that had signature v2 could not be modified. But good news is that v14.2 can handle it very nicely. I couldn't expect less from you [MENTION=4315551]Ticklefish[/MENTION]. This tool is the one for me and quite sure for many others too who are messing around in android. :good:
[Android Themes] brainvision:
hi guys..

I would like to mod my ROM by removing the battery percentage next the battery icon in status bar and add a few more tile in the notification bar.. My ROm is a basic stock 5.1 with few OEM mods..

I installed the framework apk, de-compiled framework.jar (not sure if I needed to do that) and de-compiled SystemUI.apk, but there are a few things I don't understand, in particular if I have to work on smali files or just editing the layouts xml in /res/layouts to achieve my goal..

Do you have any tips for me, please? Also, could you please point to some very useful how-to and guides about mods and smali files or everything else I got to know before going on that?

Thanks a lot for paying attention and a big thanks you to OP for his great work!

See you!
[Android Themes] Ticklefish:
I started this post about 9 hours ago..then work got crazy and I've only just been able to return to it! Phew...it's just as well that work pays me...

13.4.1.0 may have said that it deodexed without error...but did it actually? Some of the older versions weren't so good at spotting errors...

Have a look through the history.txt and see if it was able to process that file.

I've taken a look at the latest smali and baksmali and it looks like the developer has changed the commands. So they might be able to process those files but I'll need to rewrite TMA before it can. I'm spending some family time tomorrow but I should be able to take a look at this in the next few days.

Unless 13.4.1.0 really did deodex the rom correctly. In which case, I've got some head-scratching to do to work out why.. :eek:

Excellent! I'll release it officially soon then. Good to know it works, thanks for letting me know! :highfive:

Well, thanks for your thanks! If you want to show appreciation by putting a banner in your signature, I really wouldn't mind at all. ;) lol

To answer your question, this may be fairly simple. I have a thread that talks about how to modify XML over here: http://xdaforums.com/general/xda-university/xml-101-xml-modding-easy-t2929816

Have a look through the OP's and see if that helps you.