yashsingh1/xdaforums huggingface dataset:
[Android Themes] Sean_Seany:
Hi,

Just installed TMA ( Latest version) Extracted to C:\ and the went to run it.....

Thing is , I have Java version 7 update 7 installed ? Windows 7 x64 HP.

Any ideas as to what is wrong please ?
[Android Themes] Jamieb88:
You have jre and jdk installed?
[Android Themes] Sean_Seany:
Feel a total noob now ( OK i am one i know), Installed Jdk and all is well. Thank you Jamieb88
[Android Themes] Kamy:
decompile error

would u please help me out? i cannot decompile the SystemUI.apk file.

Tickle My Android

By Ticklefish

tinyurl.com/ticklemyandroid

**ALWAYS Backup Your Device Before Modifying It!!**

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

Now Pulling "/system/app/SystemUI.apk"

From Android Device Into "_in" Folder

--This Will Overwrite Any Existing File--

Enter 'x' To Cancel Or Any Other Character To Continue: r

3707 KB/s (1040363 bytes in 0.274s)

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

Would You Like To Backup This File? (y/n)

This Will Overwrite Any Existing File: y

1 file(s) copied.

SystemUI.apk_Thu-09-13@1139 Created In "BACKUP" Folder

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

Would You Like To Decompile This File? (y/n)

(This Will Open Another Window)

This Will Overwrite Any Existing Files: y

The system cannot execute the specified program.

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

Decompiling In Progress

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

Press any key to continue . . .
[Android Themes] Ticklefish:
That's high praise indeed! I've had a look at your tool and it looks very well put together. :good:

I hope you enjoy TMA but if you need any help or have any queries just let me know!
[Android Themes] Ticklefish:
I've been thinking about this whole situation. Could you try something for me please? Recompile your APK as you would normally then, using 7zip or similar, delete both the META-INF and SEC-INF folders from the new file. Then use the "Sign Non-System App" option in the Theming Menu and see if your APK now works with the signature checking turned off.

The META-INF folder contains information that tells Android that the APK should be v2 signed. So my thought was that could be causing your app to FC, even with the signature checking disabled. Signing the file will replace that META-INF folder.

It might not work, I might have got it completely wrong, but it's worth trying!
[Android Themes] Frankbrazillian:
No problem... But i just can do this on this weekend, ok? After test, i'll tell you!
[Android Themes] gvmiguez:
I´m seeing diferent Samsung roms with the V2 Sign( at least have sec-inf folder on their apks) that dont have signature verification disabled. I dont know how they do it, but the roms works
[Android Themes] evildog1:
I found a bug. When i try to install TMA in the folder that have space, it won't run.

I also have same problem while i develop my own tool but i fixed it by putting

" "

in path strings

Can't it be fixed with

" "

in your tool?
[Android Themes] Ticklefish:
Thanks!

Ah, but are the APK's modded? ;)

Possibly. I'll take a look at the code. There are a lot of references to the path in there so I'll have to check that wouldn't be any problems. :good:
[Android Themes] gvmiguez:
Yes Ticklefish, the roms were modded on apks.....systemUI mods,etc....
[Android Themes] Thebear j koss:
Yes they are modified, but all signatures in the rom itself all match, so it is verified. When you pull the apk and mod it, it is breaking the matching signature of all the other apps in the rom, thus it won't work even with the signature verification blocked. There are people that must know what to do, because there are a ton of samsung modified apks with the v2 signature verification... Check [MENTION=1042140]tdunham[/MENTION] 's touchwiz modifications thread for some help. http://xdaforums.com/showthread.php?t=2799050

?'s neXus
[Android Themes] gvmiguez:
I'm trying to make some mods on SystemUI with latest TMA and 2.2.0 apktool, one of them is a power button on statusbar, modding statusbar.xml and adding a png on res/drawable-xxxhdpi. When I compile the apk its sucessfull without errors. But if I open the compiled apk with 7zip for example, the power button png I added on the res folder iss missing. Logs are clean. I have made the same mod a lot of times, and with the previous update and always see the png on compiled apk
[Android Themes] Ticklefish:
From what I understand, and I could be wrong, the signatures in system app's only have to match with the original, v1 style of signing. With v2, the signature is based on the contents of the APK/JAR file. So when the contents are changed, the v2 signature is no longer valid and the app is rejected.

Using the wonderful power of Mentions, I'll summon someone... [MENTION=1042140]tdunham[/MENTION], could you shed some light on this? How do we cope with that SEC-INF folder?

That's odd. Can you share your files please? I'll try it on my setup and see what's going on.
[Android Themes] gvmiguez:
Yes, of course, I will send you the files in a half of hour, when I can use a pc
[Android Themes] tdunham:
It is possible the png is not detected as a usable image by apktool and is therefore omitted from the recompiled final project.

Are you pulling an already compressed png out of an existing/old apk? Once upon a time, it did not work with already compressed png (from a compiled apk) and would not add it back in if the png was already compressed.

Just for experiment, rename png extension to jpg and see if that works. Apktool tends to ignore jpg files and will not attempt to compress the file.

---------- Post added at 12:48 PM ---------- Previous post was at 12:40 PM ----------

I have not had the pleasure of dealing with sec-inf yet so I cant say for certain.

I do think that the current method for disabling signature is no longer doing its job like it used to so that may be contributing to the issue with the sec-inf folder too. Maybe some logcat's of defective apk trying to gain permission would shed some light on this, but it is difficult to say.
[Android Themes] gvmiguez:
Thanks tdunham, i will try on this way
[Android Themes] tdunham:
What method are you using to disable signature verification? This method has multiple edits to two framework files. I do not think modifying services jar alone is enough.

Remove the signature verification application completely.

Android Lollipop & Kitkat
[Android Themes] gvmiguez:
I tried to do the same process with another tool to compile / decompile and PNG is inside of the compiled apk, then It´s not caused by png or apktool I think.... Anyway I send you the files, thanks for your time and your help Ticklefish

https://mega.nz/#!c1szQAIY!0zVPAVfaNf7_8joa3VISnBk864uNlHJCGdJctqezMlE
[Android Themes] Frankbrazillian:
I'm using an method to disable the signature verification only on services.jar, provided by the dev Serajr to another user, on his thread.

Replacing the whole method for..

const/4 v7, 0x0

return v7

.end method

I already have see another threads related to disable the signature verification, but the methods don't matched with mine.

I already have modded the core-libart.jar when on Lollipop, but on Marshmallow haven't tried yet. I'll try on this weekend and post the results here, after that. Really thank's!
[Android Themes] Thebear j koss:
I hate constantly tagging him over here, so i figured his touchwiz mods thread would have more users that have dealt with this and may have a workaround. I know of like 4 or 5 people that know touchwiz inside and out, tdunham, rompnit, daxgirl and wubby, and 1 or 2 others that are not really friendly to deal with. But if there will be a workaround or a fix, you can be sure that it will make it to tdunham's thread at some point.

Thebe?r'$ NeXu$
[Android Themes] Ticklefish:
Thank you very much for your files. This bug has now been fixed. It turns out I had made a rather basic error in the code. Please download the file again and it should now work.

Sorry about that. :crying:

I can see that this is going to get complicated.. I'll ask on the Touchwiz modding thread when I get home later tonight and I've had a chance to have some beer.

They do some amazing stuff on that thread, it's well worth a look for anybody interested in advanced modding, whether they're on Touchwiz or not.

Thanks to everybody on their input, hopefully we'll have a definite answer soon.
[Android Themes] Thebear j koss:
Yeah, for anyone running touchwiz and can follow easy step by step directions, that is the thread to just bookmark and keep in mind. They have been continuously picking apart touchwiz for years. For amateur developers that do stuff in their spare time and share their work, they are geniuses from another planet trying to decipher all that nonsense in smali. I haven't a single clue about smali, but even just following simple mods from tdunham and rompnit back on the s3 was a huge sense of accomplishment for me. They were always above and beyond helpful and patient with noobs like me, especially when most of the other "Big touchwiz" devs were all kind of jerks and either couldn't be bothered or were part of some "team" that pretty much did mods and patented them and would only let a select few in on their changes. I am all for giving proper credits were they are due, and there will always be kangers and trolls that steal code and mods, but some teams were almost more like a giant company protecting their mods instead of amateur devs sharing and helping others learn. Everybody has to start somewhere... TDunham's thread is a great 1 to check out, even if you are still not entirely comfy doing smali mods. Someone is always willing to help and point out any mistakes you may have made or need help with. I'm just happy i am not on touchwiz anymore. Lol

Thebe?r'$ NeXu$
[Android Themes] Ticklefish:
It is a good thread to be subscribed to. I'm not a smali expert so some of the posts go over my head but there is a lot there.

I can understand that some developers don't like to share how they mod things and I have to confess that I'm pretty protective of TMA's code. This place is all about learning though. I'm more than happy to help with any sort of modding that I know how to do - I even have a thread devoted to XML coding. I came here because I didn't know how to mod my phone and it's only because that somebody shared a method that I was able to start. If it wasn't for people sharing their knowledge I would have abandoned the whole thing and got an iPhone.

Talking of Touchwiz, my wife has recently changed from a Samsung phone to a Sony and she's so much happier. Now I just need to convince her to let me mod it!!
[Android Themes] FunSucker:
[MENTION=4315551]Ticklefish[/MENTION]

updated, sir. Dont worry about extension :p
[Android Themes] Thebear j koss:
I am a for guys getting proper credits and being the "first" at implementing. Most guys hide stuff in their mods anyhow that most don't even realize so they can tell if their code was used. But when i was just getting into theming and modding, only for my personal use as i am no dev nor care to be 1, there were a lot of guys that were very overprotective of their stuff or wouldn't even give a nod in the right direction. Most mods on touchwiz then were usually controlled by a rom control app of some kind which is still used now. But some people could never accept that someone may have something better or improve upon their stuff. There seemed to be a lot more infighting and alliances between "teams" at that time. There should always be a level of competitiveness as it will always push the limits of development further, and in no way should code ever be used without permissions for public use, and everyone who creates something deserves a sense of ownership of their stuff. Just in general, there was a lot of guys who treated others that were even trying to get a start off point to start learning as dirt and just kept any sort of knowledge to themselves. A lot of people don't realize XDA is a development site and since some apps have gotten their start here, like Nova launcher, and has gone on to huge success, it has attracted more user minded people instead of development. People trying to get free stuff, quicker updates, their requests filled. There seems to be a lot less actual developing or people trying to learn development going on. They usually just ask if someone has it done for their device already. Everyone wants, wants, wants, but they don't wanna do the work. I always felt if i did it myself, even if i was just following a guide or asked for help, i got a sense of accomplishment. I always liked trying something new to see if it worked, only way to learn is to see and do it yourself. ??

Thebe?r'$ NeXu$
[Android Themes] gvmiguez:
Ok, [MENTION=4315551]Ticklefish[/MENTION] I have finished my own rom and i have to say that its not a real V2 apk signing because using the guide to disable signatures posted by tdumhan and doing the old method of drag from the modded apk and dropp to the stock app all mods and apks works ok. I think real V2 will be present on Nougat, now Samsung is using something..... of Samsung [emoji28] .
[Android Themes] Thebear j koss:
I thought that also at 1st, but i'm not sure what junk samsung adds to their stuff anymore under the guise of "security". But samsung is usually at least 6 months behind on latest android builds and usually longer as they take forever to update their proprietary apps and code to work on newer android versions.

Thebe?r'$ NeXu$
[Android Themes] KingRaheel:
Hey guys..can anyone tell me how do I apply a theme by default in my custom rom? I mean the themes which we download from theme store on Samsung phones. I am making a themed rom but for that I need this theme thing implemented first. Any help will be appreciated.

Regards
[Android Themes] Lmax579:
I'm using 14. 1 to decompile systemui.apk but I don't see the smali folder anywhere it's for 3minit battery on my galaxy note 7 rooted Verizon... Any help please?
[Android Themes] Thebear j koss:
Need to deodex the system ui. In the system directory where you pulled your system ui from there should also be a dex file. Need that as well. And follow the directions in the op on how to deodex using TMA.

Thebe?r'$ NeXu$
[Android Themes] gvmiguez:
Are you on stock rom? You need a deodex rom or deodex SystemUI to decompile and modify smali
[Android Themes] Lmax579:
I deodexed the rom, but where would I find the file for it?
[Android Themes] gvmiguez:
I dont understand your question, sorry
[Android Themes] Thebear j koss:
The dex file gets incorporated into the system ui apk. Now you can decompile system ui and you will see a smali folder. Drop the files in the directory in the 3 minit tutorial and recompile and do whatever their guide says...

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
If I deodex system UI it should only be priv app folder, right?
[Android Themes] Thebear j koss:
Not sure what you mean. Inside the priv app folder there should only be a system ui apk. Using 7 zip or winrar open the apk and look inside. There should be a dex file inside instead of having the odex out of the apk. Then it is deodexed.

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
I put the private app which has SystemUI apk, do I deodex it?
[Android Themes] Thebear j koss:
Is there an odex file inside it with the system ui apk?

Thebe?r'$ NeXu$
[Android Themes] Lmax579:
Yes there is
[Android Themes] biglil1:
Use a root explorer on your device. Navigate to system/priv-app/SystemUI (should be a folder). Inside the folder you'll have SystemUI.apk(if deodex) and another folder oat/arm(if it's an arm system)/ SystemUI.odex (if your on an odex rom). All the odex Roms I've been on since lollipop had this file structure. Using that structure tells me if my rom is odex or deodex. From there you'll know if you need to deodex your systemUI. Once you do you can place the deodex SystemUI.apk back into system/priv-app. You can place it in a folder ( SystemUI) or let stand alone. Also make sure you delete the oat file after you deodex the apk.

Hope this helps
[Android Themes] Lmax579:
I can't deodex the systemui only, right? I have to include the framework as well?
[Android Themes] Frankbrazillian:
Finally i got everything working properly [MENTION=4315551]Ticklefish[/MENTION]. I think, on my previous tests, i have full deodexed the rom and without check if everything are ok, i started modding the files.

I was relutant to use the Windows, only for deodex part, so i was trying to find some tool that will deodex the TW marshmallow rom without issues on Linux, since i already do everything on this platform. But the only tool i got to deodex the entire TW marshmallow rom, without any issues, was on Windows platform. After that, i checked if everything are working properly and start decompiling the entire rom, to add languages. I did everything in the same way... Decompile, edit, recompile without sign, zipalign and after that, drag and drop the resources and the classes(in some few apps that i have modded) from the modded apk to original apk. I have modded some apk's that require the AndroidManifest edit too. In that case, i decompile the apk, edit, modify the AndroidManifest accordinly, delete the "unknow" folder that contain the SecInf folder, recompile, sign with another signature and zipalign. Working everything ok now! I like to say thank you to everyone who contribute and helped to find an workaround for this!
[Android Themes] biglil1:
Hopefully one more knowledgeable then i can correct me but if you're just modding the SystemUI.apk with smali edits then no but if you're looking to do a complete theme or more involved mods then yes. It takes along time to deodex a complete rom which is why most "deodex" Roms only have the main apks deodexed (mostly for theming and modding)
[Android Themes] Lmax579:
I just wanna add 3minit battery
[Android Themes] Thebear j koss:
Shouldn't need to deodex anything else. Just systemUI. Just follow the directions in the op.

Thebe?r'$ NeXu$
[Android Themes] biglil1:
You don't have to deodex framework but in order to decompile everything properly you're gonna have to set the resources using your framework apk ( using apk tool: apk tool if framework). I haven't had the opportunity to use TMA yet but I believe this helps automate the process
[Android Themes] Lmax579:
I'll try it

---------- Post added at 05:09 AM ---------- Previous post was at 05:08 AM ----------

So when I go to deodex menu, I should have only systemUI in the deodex folder, then which option do I choose?

Deodex rom

Deodex rom ???*

Deodex rom marshmallow
[Android Themes] Thebear j koss:
TMA does that automatically when you install framework in TMA. 3 minit battery mod doesn't use or require anything from framework. Should be good after the apk is deodexed to make changes.

Thebe?r'$ NeXu$
[Android Themes] biglil1:
Thanks, without using this tool I could only speculate. I was speaking on the fact that when you decompile using apktool you need to install framework then decompile. If I understand you correctly though the way I take it is that rather it be apktool or TMA framework still needs to be installed in order to decompile the apk and odex file so he can place the 3mint smali files into there respectful place.

For he still needs to deodex his systemUI to get the smali files; right

Sent from my Nexus 6
[Android Themes] Thebear j koss:
Yessir. With TMA there is an option to install framework and you can choose from any framework file you have in there. Or if you pull framework i think it asks if ykh want to install it directly into TMA as well.

Thebe?r'$ NeXu$
[Android Themes] biglil1:
You responded as I made my edit, lol! Thanks for clarifying. I'm waiting to deodex myself before I give this ago. I'm on the DP5 odex with a Windows machine so I have to wait for the baksmali to be updated
[Android Themes] Lmax579:
OK so on work 1 under deodex put which folder?
[Android Themes] haifish9999:
- System folder if you want to deodex whole rom.

- Or app folder (depend of which app you need to deodex) if you want to deodex just 1 apk.
[Android Themes] Lmax579:
I just wanna deodex SystemUI but is there a certain version of apk tool I gotta use?
[Android Themes] haifish9999:
Which device and Android version did you have?
[Android Themes] Lmax579:
I have a Note 7 on 6.0.1
[Android Themes] haifish9999:
So you can use this TMA tool ( with Apktool included already) for decompile and recompile your SystemUI....
[Android Themes] Lmax579:
When I decompile systemui.apk I see everything except smali folder
[Android Themes] evildog1:
Hi,

I have an odexed file of decrypted classes.dex that i dumped from memory. Can i use this method to deodex .dex file?
[Android Themes] Ticklefish:
TMA is designed to deodex entire rom's, not individual files. It was back in the days of Gingerbread and ICS, but Lollipop changed things too much. And some OEM's make their roms in such a way now that you

have

to deodex the whole thing or it won't work at all.

With a Touchwiz Marshmallow rom, you can deodex just the one file though. You just need to trick the tool into thinking your rom is really small..

Copy your "framework/b]", "app" and "priv-app" folders to the "_deodex" folder as it says in the OP. But delete all but one of the folders in "app" and do the same in "priv-app". (The folders on the PC, not your phone!). Make sure the folder you keep is the one for the file you want to deodex.

In the "framework" folder, delete all but one of the ".odex" files in the "oat/arm" or "oat/arm64" folder.

This will give TMA all the files it needs to do the deodexing, while ensuring it doesn't take hours doing so.

Once you're run the tool, you'll end up with a flashable ZIP to use in your recovery. Do

NOT

flash this as it will bootloop your phone! Instead, just open it up with 7z or WinRAR or similar. Inside there, you should find a deodexed SystemUI.apk.

Copy that to your phone, making sure you get the permissions right, and delete the "arm" or "arm64" folder that's in "system/priv-app/SystemUI/".

MAKE SURE YOU MAKE A BACKUP FIRST!!!

.

I appreciate this seems like a lot of hassle, which I apologise for, but it's relatively simple. TMA won't have the ability to deodex individual files for a while. Not until Google simplify how the odexed roms are constructed..

I know it will take longer but you might want to consider getting the tool to just deodex your whole rom for you...:)

No...but you'll find a copy of smali.jar, baksmali.jar and oat2dex.jar in the "tool_files" folder. You could try using those.

You''ll also need a copy of various files from your framework folder. Unfortunately there's a different method for deodexing files from different versions of Android. The "tool_files" folder contains all the files you'll need but you might to do some research to work out exactly how to use them.

Or, as I mentioned above, you could always just let TMA do the work for you and deodex everything..

Have you got the signature verification disabled?

If you do, I think we may have a solution for v2 signing..

Currently, when you recompile with the original signature, TMA will detect the presence of the SEC-INF folder and will copy the res folder, resources.arsc and classes.dex into a copy of the original APK. Which, apart from the zipaligning, seems to be the same process you mentioned.

I can edit the code so it deletes the SEC-INF folder if you're signing with another signature.
[Android Themes] Frankbrazillian:
Yes Ticklefish! I have the signature verification disabled.... and this time i have modded the core-libart.jar too. About the zipalign.... I zipalign the modded apk, after recompile and before push the modded resources.arsc and classes.dex to original apk. Great news! This will help a lot of people..... I'll give an try on your tool, after updated.
[Android Themes] Ticklefish:
Presumably, if you're recompiling with a new signature, all I need to do is just delete the SEC-INF folder from the recompiled APK. I'll get to work on the code now and should be able to upload a new version later today. :good:
[Android Themes] Lmax579:
Now for deodex in, it's the priv app, app, and framework folder, right?
[Android Themes] Ticklefish:
That's correct, yes.