yashsingh1/xdaforums huggingface dataset:
[Android Themes] -Rye-:
Support for lge-res.apk

Apparantly the lge-res.apk from my LGG3 decompiles fine via TMA, but fails to recompile (untouched).

I even opened a github case.

https://github.com/iBotPeaches/Apktool/issues/1307#issuecomment-245580333

Any ideas on this ?
[Android Themes] albertmurcia:
Hello, I have the tablet S 10.1 'T805, and just upgraded to android 6.0 system applications carry a folder called SEC-INF and leaves install, either original or not signing anyone knows how to fix this, I have the disabling signatures.

Enviado desde mi SM-T805
[Android Themes] Thebear j koss:
I knew you would know better than anyone else what was going on with the newest sammy builds and would give the best option/advice on how Ticklefish should handle it. Didn't want him to waste a ton of time and have it not work at all. You can go back to being a braniac at smali mods and making other devs look dumb. Lol [MENTION=4315551]Ticklefish[/MENTION] i am hearing google is moving away from vanilla android and will be including their own proprietary OEM in the new Pixel devices come October which will create more havoc amongst the already overcrowded extra hoops to jump through made by other companies. Not sure if nexus devices will be getting this in their Nougat builds at some point or if it will be limited to the newest devices... Should be fun.

Thebe?r'$ NeXu$
[Android Themes] Ticklefish:
Generally when you see a line like this:

W: /home/ibotpeaches/Downloads/Apktool/Bug1307/lge-res/res/values/styles.xml:1682: error: Error: No resource found that matches the given name: attr '@android:attr/APKTOOL_DUMMY_267'.

It's because the APK contained a resource that apktool couldn't process when it was decompiled. Normally I'd suggest making sure you've installed every framework file but I can see that this has been accepted as an issue by iBotPeaches. Hopefully we'll have a solution soon.

I don't understand what the problem is, sorry. :(

Oh yes,I remember something about this in the forum news. We'll have to wait and see what happens.

That'll give me enough time to work out what to do for the next title image. That dancing Android took me ages!
[Android Themes] :
Sorry im trying to change the reboot menu you here to english

Can or anyone tell me what file to edit for this

Thanks in advance?
[Android Themes] Thebear j koss:
It would be a strings.xml in values folder of settings i believe. Are you on a foreign ROM that doesn't support english?

Thebe?r'$ NeXu$
[Android Themes] tdunham:
I think reboot menu items are usually in framework. So the strings would be in framework-res.apk or equivalent. If it is the add-on reboot menu, I think the menu item names are hard coded in smali, Android.policy or services.jar depending on the build of android.
[Android Themes] Thebear j koss:
Shows how long it's been since i modded or themed. Lol. I should have known that since it's a dialog, but for some reason i thought it was a settings thing. And yeah, add ons can be hidden in multiple places, like if you have a multi reboot option, or screenshot, or screen record etc...

Thebe?r'$ NeXu$
[Android Themes] :
I tried framework and android policy

So it must be service.jar

I decompile service.jar

Trying to figer out what smali to edit?
[Android Themes] tdunham:
Use tool like fileseek that will search entire decompiled file for string, keyword, whatever you need. That extended reboot menu you pictured will be in one of the globalaction smali files.
[Android Themes] Thebear j koss:
Samsung S7? TDunham knows where it should be, unless it is different on regional devices...

Thebe?r'$ NeXu$
[Android Themes] Kamy:
Most of Chinse developers don't use string. They usually hardcod smalis. I suggest you look at GlobalAction smalis. If there is GlobalAction$99.smali or SinglePress then compare with any one smali source for extended power mod in development threads and see changes.
[Android Themes] Frankbrazillian:
My guess is, this is the new security provided by Google on Android Nougat called signature Scheme v2. I think Samsung are already using this feature on some firmwares updates to Marshmallow. The workaround is decompile the apk, edit, recompile, open both apk's (modded and original) with 7zip and drag and drop the resources.arsc from modded apk to the original apk.

But this trick only works if you don't edit the AndroidManifest! And you can't zipalign the apk, because it will break the signature.
[Android Themes] albertmurcia:
because I think the Super kitchen zipalign did, and if I retouch smali, also happened to the original the classes.dex?

Thanks.

Enviado desde mi SM-T805
[Android Themes] Frankbrazillian:
The same for the smali edit... Just drag and drop the classes.dex from modded to original apk. I don't use the kitchen to decompile apk's, so I can tell you for sure, but I think there's some option to choose if you want to zipalign or not.
[Android Themes] albertmurcia:
ok, then I say no to zipalign option, thank you very much'll try so.

Enviado desde mi SM-T805
[Android Themes] gvmiguez:
I'm doing this trick on Samsung Marshmallow for SytemUI and SecSettings and works ok, with zipaligned too. I dont know if in future updates zipalign will brake signature
[Android Themes] Frankbrazillian:
You're welcome!

---------- Post added at 07:22 PM ---------- Previous post was at 07:17 PM ----------

If the apk already have the new signature, you can't zipalign the apk. This is already described on android sources related to the Scheme v2. Is necessary to zipalign before the new signature become applied, after that, you can't zipalign.

---------- Post added at 07:25 PM ---------- Previous post was at 07:22 PM ----------

Take a look at this description about the new signature....

https://source.android.com/security/apksigning/v2.html#apk-signature-scheme-v2-block
[Android Themes] Ticklefish:
So v2 signing has started already, eh? I'll update the code so it will drag and drop for you if it discovers that SEC-INF folder. The next update should be ready in a day or two.

Can you share your SystemUI.apk and framework-res.apk please? It'd be handy to look at this folder
[Android Themes] albertmurcia:
https://www.dropbox.com/s/2b0ozjdj8bxtjfx/system.zip?dl=0

Enviado desde mi SM-T805

---------- Post added at 02:22 PM ---------- Previous post was at 02:00 PM ----------

however with the other does not pass, launcher or chocoeukor.apk

Enviado desde mi SM-T805
[Android Themes] albertmurcia:
I tried to put the classes.dex and resources in the SystemUI unretouched, but the classes.dex not work, if I delete the SEC-INF folder and install a part if it works, is not it can be.

Enviado desde mi SM-T805 mediante Tapatalk
[Android Themes] albertmurcia:
[MENTION=4315551]Ticklefish[/MENTION], you have seen something, with the files you spent. Thank you.

Enviado desde mi SM-T805
[Android Themes] orgulloso4202:
I'm new to rom development. Like just starting. I downloaded Tickle my android to make a rom for my Verizon S7 edge but it doesn't recognize my device and isn't able to pull files. Is this not supporting s7 yet. Or I'm just doing something wrong?
[Android Themes] gvmiguez:
Hi, Tickle My Android is a powerfull tool, but its not a kitchen to create roms. You can decompile, recompile, deodex, change icons,etc....but its more a tool to work with apks. Building roms needs an android kitchen, here on XDA there is various kitchens like Assayyed Kitchen(for Windows) and SuperR Kitchen (for Linux)
[Android Themes] Ticklefish:
Thank you for sharing your files. I have made some changes to the code and I am testing it right now before I upload the new version.

Since I do not have your phone, I can not guarantee that a recompiled APK will work. V2 signing is still very new. Also this is Samsung here - they have a habit of doing strange things to their files..

It's true that TMA is more for modding APK's than creating entire roms. I might look at making a kitchen in the future but I'd have to see if I can offer something that the existing ones don't..

Anyway, the important thing here is that your phone isn't being recognised. This is down to adb. That's a tool made by Google that TMA uses to interact with your phone. You need to make sure you've installed adb drivers for your phone and that you're giving permission for adb to access your phone on your phone's screen.
[Android Themes] albertmurcia:
ok, I'll comment when testing, thank you very much.

Enviado desde mi SM-T805 mediante Tapatalk
[Android Themes] orgulloso4202:
Thanks for the info. I have adb set up correctly. I needed it to root my phone. Will play with it and see if I get it to work. Thanks.
[Android Themes] Ticklefish:
If your adb that you used to root can see your device, then TMA's adb should be able to as well.

If it doesn't, could you please share your adb file? It's possible yours is more up-to-date than mine..
[Android Themes] orgulloso4202:
Here is the guide I used to root my S7. It contains the adb installer. http://xdaforums.com/showthread.php?t=3410624
[Android Themes] Ticklefish:
Thanks, the adb in that link is v1.0.31. TMA uses v1.0.36 so should be able to see your phone. :)
[Android Themes] orgulloso4202:
Then maybe I'm just doing something wrong [emoji28]
[Android Themes] Ticklefish:
I wonder if there's a conflict with the other adb. There shouldn't be but..

Try deleting the adb.exe in the tool_files folder. If that doesn't work, try copying your other adb.exe into that folder.

I was thinking about this earlier. V2 signing is a bit different to V1 signing. If you make

any

changes to the APK, the signature will be invalid and the file won't work.

You have to use a Superuser mod for the file to work.
[Android Themes] albertmurcia:
I do not understand this, I am root 2.78

Enviado desde mi SM-T805
[Android Themes] Thebear j koss:
In the adb folder on your computer in the Tickle My android directory

Thebe?r'$ NeXu$
[Android Themes] Frankbrazillian:
Looks like you're right! Pushing the modded classes.dex to the original file, not will work.... And if you delete the SEC-INF, you will invalidate the signature.

---------- Post added at 07:13 AM ---------- Previous post was at 07:03 AM ----------

Even deleting the SEC-INF folder, signing with another signature and with superuser mod, not will work, believe me. The trick to push the modded resources.arsc to original apk, looks like don' t work for all apk's. I already tried making an entire rom, doing this "trick", but i got a lot of fc's after reboot. I think the only way will be disabling the signature verification and resign all apk's with the same signature. I'm working on it now, but i don't have finished yet.
[Android Themes] albertmurcia:
also tried it and it does not work, I was without status bar and I was black wallpaper, I think there must be something more

Enviado desde mi SM-T805
[Android Themes] Frankbrazillian:
Any news i'll let you know! :)
[Android Themes] albertmurcia:
however other applications such as framework.jar, services.jar, launcher.apk etc ... do not give problems, so I think you have to link that folder with smali code.

Enviado desde mi SM-T805
[Android Themes] Ticklefish:
There was a discussion about this on the apktool thread a few days ago. Annoyingly I hadn't remembered it until earlier today. Guess that shows how distracted I've been with work. Sorry guys!

If an APK is signed with the new v2 method, removing the SEC-INF folder will only cause it to FC. Also, the new signature is based on the contents of the stock file so any changes, any changes at all, will cause the signature to be invalid.

The only way is to use the superuser mod and disable the signature verification. That way Android won't notice that the v2 signature no longer matches.

Or, to quote apktools developer (sorry, but you explained it better than I could!)..

V2 is still new so there's bound to be a bit of experimentation needed to get around it. For now, keep the SEC-INF folder, drag and drop the modified files from the new APK to the old one and use the superuser mod.

Then we'll see what happens.

I'm going to release v14.1 soon. That will automatically process files with SEC-INF folders in that way, I just need to add a warning message so people know about the superuser mod.
[Android Themes] Frankbrazillian:
Thank's! I'll give an try to see if works in this way. As soon as i finish the test, i'll post the results here! Got a lot of work to do....
[Android Themes] gvmiguez:
When you talk about superuser mod you are talking about disabling signature checking on services.jar?? Because on the new September patch for my S7 Edge Sec-inf folder is present too
[Android Themes] Ticklefish:
Yes. If signature checking is still enabled, any changes to the APK file will make the signature invalid.
[Android Themes] -VampireX-:
I can't deodex my note 7 firmware with this tool it crash at telephony-common.jar file here is the log:

17-09-2016@2200 --- Processing "_WorkArea1\_deodex\framework\arm*\boot.oat - /system/framework/telephony-common.jar"
test
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;

17-09-2016@2200 --- "/system/framework/telephony-common.jar" Not Deodexed From "_WorkArea1\_deodex\framework\arm*\boot.oat"

How could i solve it?
[Android Themes] Hiraethic:
can it be used to change notification icons of individual apps that appear on status bar when their notification arrive?
[Android Themes] albertmurcia:
[MENTION=4315551]Ticklefish[/MENTION], solved, you have to drag folders, res, resources and classes, have or not disabling signatures

Enviado desde mi SM-T805
[Android Themes] Dryka Silva:
[MENTION=4315551]Ticklefish[/MENTION] link version 13.30 please..

Version 14.00 not compile some modifications.. :(
[Android Themes] thereassaad:
Its not related to ticklemyandroid versions mate ..
[Android Themes] Dryka Silva:
In version 13:30 compile without error, the version 14:00 error...

I have no more version 13:30 here on pc,so I'm asking :/
[Android Themes] thereassaad:
Post the log mate , that u seen it when its error
[Android Themes] Ticklefish:
Essentially there's an issue with that JAR file - there's a bad method inside it. You could try talking to Samsung but I doubt you'd get too far. It's worth asking some of the developers in your devices forum. They might know how to fix that file, or they might have a working file you could use instead.

Yes. Most of the time, notification icons are stored as PNG files in a drawable folder somewhere inside the APK. This tool will let you browse through all the folders, so you can find the icon you want and replace it with something else.

The only real challenge is finding a nice image to replace it with!

No problem. That's what v14.1 does. I was hoping to release that a few days ago but I accidentally cracked the screen on my phone (which was disturbingly easy to do) so that's put me back a bit.

Hopefully I'll have it released in the next few days.
[Android Themes] albertmurcia:
ok, thank you very much and sorry about the phone, and tell you how it works, sure perfect.

☆ POWERED BY REBEL ROM RS ☆
[Android Themes] Ticklefish:
VAGUELY NEW VERSION AVAILABLE!!

​

I've just uploaded v14.1 to Mediafire and put the link in the OP. For those who haven't been following the recent discussion, this update now processes v2 signatures automatically. Essentially, the tool copies your res folder, resources.arsc and classes.dex to a copy of the original APK. This should, in theory, work back on your phone. Just don't zip align it or it definitely won't work!

I've also updated the deodexing code and added an option for lg Marshmallow roms. This is going to be a constant battle, I feel. OEM's keep changing the way they deodexing their roms and I keep having to work out what they did and how to undo it!

My phone is currently broken (in fact, this is being written on my elderly iPad!) but I'm still here to answer any questions or cries for help as soon as I can.
[Android Themes] kirito9:
:o This is brilliant!! Thanks again [MENTION=4315551]Ticklefish[/MENTION]
[Android Themes] gvmiguez:
Thanks for the update master!!
[Android Themes] serch826:
Yes i know, but right now it is possible to deodex N with oatdump so it can be added to TMA.
[Android Themes] Ticklefish:
That doesn't seem connected to the post you quoted.. But can you provide a link to this oatdump you mentioned? I can take a look and see if it's something I can add.
[Android Themes] serch826:
In SuperR Kitchen I usually deodex N with oatdump method and works fine.
[Android Themes] Ticklefish:
It looks like oatdump is a tool that's part of AOSP and only runs on Linux. TMA runs on Windows so won't be able to use it.

The developer of baksmali is working on a solution for Nougat so we should be able to deodex on Windows soon.
[Android Themes] biglil1:
Well that saves me HOURS of research as well as the whole trial an error method. I thought I needed to update the aapt.exe file in apktool.
[Android Themes] glfsd:
thanks for all your time!

you should know that, without your tool, probably, i never would have done modding ;)
[Android Themes] Ticklefish:
Oh, if only it was as that easy! Lol

That is high praise indeed! Thank you very much!
[Android Themes] biglil1:
One could of only hoped. I know how to use it but I don't know the behind the scene stuff like that. So much to learn!
[Android Themes] Yoanf_26:
Hi.

Work perfect. Thanks
[Android Themes] Frankbrazillian:
I did'nt have finished the tests yet, that's why i don't have posted anything here. But looks like you guys already finded some way to bypass the new security. Just one question? Already tried to factory reset the phone, to see if everything still work? On one of my previous test's, i used the trick to drag the modded resources and classes.dex to original app, and everything are working ok, but after reset the phone, i got an bootloop.
[Android Themes] Ticklefish:
If your APK is signed with the v2 method,you will need to disable the signature checking for a modded file to work.

V2 creates a signature based on the contents of the stock file, so any changes will stop the signature from being valid.
[Android Themes] Frankbrazillian:
Oops.... I forget to say. I already had the signature verification disabled since the first test. But maybe I have did something wrong. I need to do some tests again... But I need to finish something first. If I find something helpful, i will post here again. Thank's !
[Android Themes] gandolf007:
Thank you for your amazing tool . but phone factory reset or clean rom install contacts and dialer app not showing in menu. please help

my device g920p 6.0.1

this is orginal AndroidManifest.xml of SecContact_M.apk g920p 6.0.1
[Android Themes] Ticklefish:
V2 signing is still quite new, and Samsung have a history of doing things differently anyway, so it's not impossible there is something else going on with your rom.

Unfortunately I don't have a device or rom I can experiment on right now. In fact I am currently using an old handset that is stuck on ICS!

Certainly, I would be very grateful if you find out anything extra about all this. :good:

If you are having problems with app's not showing when you install a clean rom, I suggest asking in your devices forum. This tool can be used to modify APK files but I wouldn't know what you would need to modify.
[Android Themes] Frankbrazillian:
Yes, you are right! I will keep an eye on this thread too, in case someone find something helpful. Thank's again!
[Android Themes] evildog1:
wow. this tool is better and more advanced than mine. i'm gonna try it
[Android Themes] DiegoTriches:
Hi man, can you add to your toll this battery icons. Then i will try mod on your next tool update. I try now and give me a error wich not happen with your battery icons. Thanks
[Android Themes] Ticklefish:
I could....

Or I could just solve your error by pointing out what's causing it. :D

The XML in that zip of yours isn't right. I'm guessing it's compiled code. So when you try to compile something that's already compiled..it goes wrong.

Either replace that XML with non-compiled code or you could try first changing to the 'ICS Circle by nbeebe' icons. Then, once it's done, change to your icons. This will give you the right XML.
[Android Themes] Ticklefish:
So..do you want this as a battery icon?
[Android Themes] Ticklefish:
No, thank you! :D
[Android Themes] DiegoTriches:
ok, i put (replace) the icons over the 'ICS Circle by nbeebe' icons and compile ok but does not show the notification bar and button on dock wich open the apps its a little down, i restore backup systemui.apk and come same way. Until that systemui.apk that you compiled for me does not work after that. Strange. I will make a restore from nandroid backup of system.

---------- Post added at 02:28 PM ---------- Previous post was at 02:23 PM ----------

Over the backup i can update to mod wich you make for me and works again this 'ICS Circle by nbeebe'.

---------- Post added at 02:49 PM ---------- Previous post was at 02:28 PM ----------

i forgot to say, if i change to new framework-res.apk compiled too, i get boot loops.
[Android Themes] hugoqueiroz94:
This is the problem, i found on a random pic on XDA, but i liked of this battery icon, can you make a icon like these?
[Android Themes] Jamieb88:
Found an easy transparent status bar thought it would be cool to be added to your tool

http://xdaforums.com/showthread.php?p=27547687
[Android Themes] hugoqueiroz94:
Ticklefish, the battery icon is from CM10
[Android Themes] saeedlf:
hi i have installed the tickle android i do all thing for changing the battry status but when i rebot it at the end after booting boot animation it rebot again and it continue for ever

idont know what wrong

but in step 2 when i want to push file the program ask if i want to decompile it or not, i accepted was i right???

and one more i didint andersand the step 16 its just fun??

thanks
[Android Themes] saeedlf:
and one more thing and when i want to recompile it writes

: could not finde source

building resource

but i have decompiled it befor
[Android Themes] Jamieb88:
Have you installed the framework to your system?
[Android Themes] saeedlf:
no it wasnt in the guaid
[Android Themes] Никола:
Thanks for sharing, I'll give it a try :) :good:
[Android Themes] Jamieb88:
Did it work for you?
[Android Themes] saeedlf:
i have installed the tickle android i do all thing for changing the battry status but when i rebot it at the end after booting boot animation it rebot again and it continue for ever

idont know what wrong

but in step 2 when i want to push file the program ask if i want to decompile it or not, i accepted was i right???
[Android Themes] Jamieb88:
i find it easier to make a flash-able zip

but that's just my preference.