yashsingh1/xdaforums huggingface dataset:
[Android Themes] Ayazbharde827:
Error while decompiling

Hi tickle fish i tried decompiling but it was unable to decompile it was showing error.

For my unite 2 ( MTK6582 ) framework.apk.

The error was:-

Decompiling "framework-res.apk",

in workarea "_WorkArea1", using "apktool_2.0.2-dirty.jar"

With Tickle My Android 11.1.0.

(tinyurl.com\ticklemyandroid)

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

java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

at java.lang.ClassLoader.defineClass(ClassLoader.java:616)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Could not find the main class: brut.apktool.Main. Program will exit.

Exception in thread "main"

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

Decompile Not Successful!

&

This is history log:-

Tickle My Android 11.1.0. Theming History

tinyurl.com/ticklemyandroid

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

15-09-2015@1730 --- SESSION STARTED

15-09-2015@1730 --- WorkArea Set To "WorkArea1"

15-09-2015@1730 --- Apktool Version Set To "apktool_2.0.2-dirty.jar"

15-09-2015@1730 --- Java Present In PATH Variable - "java version "1.6.0_20""

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

16-09-2015@837 --- SESSION STARTED

16-09-2015@837 --- WorkArea Set To "WorkArea1"

16-09-2015@837 --- Apktool Version Set To "apktool_2.0.2-dirty.jar"

16-09-2015@837 --- Java Present In PATH Variable - "java version "1.6.0_20""

16-09-2015@837 --- "_WorkArea1\_in\framework-res.apk" decompile failed, using "apktool_2.0.2-dirty.jar"

java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

at java.lang.ClassLoader.defineClass(ClassLoader.java:616)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Could not find the main class: brut.apktool.Main. Program will exit.

Exception in thread "main"

please solve my problem.
[Android Themes] tdunham:
No worries, we'll get it figured out.

The only version I can use for this is 2.0.1. The 5.1.1 systemui I'm working with does not play nice with any of the other versions of apktool, even the 2.0.2 dirty that was just released.
[Android Themes] Ticklefish:
No...can you you share your history.txt please?

Try using apktool 2.0.1.

2.0.2. still has a few bugs in it, sadly. That's why there hasn't been an official release of it yet. But it is constantly being worked on, so it won't be long before there's a fix I'm sure. :)
[Android Themes] tdunham:
[MENTION=4315551]Ticklefish[/MENTION]

Ok, spent a little more time with apktool 2.02 dirty version.

As it stands, it wont touch my 5.1.1 systemui.apk so I went a little further and discovered that it was released with a different apktool.bat file.

Additionally, I update the aapt.exe to the latest from the android sdk and now it decompiles and recompiles without issue.

I did try this same setup with your older aapt.exe and the file decompiles fine, however it will not recompile. I've attached the latest aapt.exe extracted from the android sdk I just installed with the latest api updates.

For anyone that wants the full apktool 2.02 dirty for the new batch file, I found it here:

http://xdaforums.com/showpost.php?p=62801825&postcount=234
[Android Themes] Ticklefish:
Hey, that's great! Thanks!

I'm busy sorting some code out for 11.1.1., which will fix a few issues with the deodexing menu. I'm hoping to release that later today and this will come in very handy!
[Android Themes] carl1961:
[MENTION=1042140]tdunham[/MENTION]

apktool 2.02 dirty on your posted thread is slightly different to ticklefish apktool_2.0.2-dirty.jar which copy did you test with?
[Android Themes] tdunham:
The jar included with this app, only replaced aapt.exe and apktool.bat and now it works fine (for me ;) ).

BTW, the filesizes for the jar are identical from within the zip I posted the link to so I am assuming it is the same file, that is why I didn't bother replacing it.
[Android Themes] Ticklefish:
SLIGHTLY NEW VERSION AVAILABLE!!

​

Version 11.1.1. of everyone's favourite theming tool, Tickle My Android, is now available to download!

This features some improvements to the deodexing menu, as well as a newer, 'dirty', version of apktool 2.0.2 (thanks to [MENTION=1042140]tdunham[/MENTION]). There has also been some minor, behind-the-scenes, changes as well.

Deodexing, by the way, is getting more and more complicated with every generation of Android. I try to stay on top of it but even I can't guarantee 100% success. As ever, make a backup first and let me know if there are any problems.

Head to the OP now to get 11.1.1. now!
[Android Themes] Ticklefish:
I think I need to revisit what Tickle My Android does when it comes to deodexing.

I've always been of the belief that there is no point deodexing an entire ROM, as most people only want to edit the smali of a few APK's and JAR's. And being able to do so is the entire point of deodexing, there's no other advantage.

TMA is designed to deodex a single file, creating a collection of smali files which can then be added to a decompiled APK in the _working folder. However, I'm seeing a lot of people on xda calling for an entire deodexed ROM and it's about time that TMA got in on the action.

The deodexing menu is cumbersome as well. It doesn't really work as smoothly as I'd like it to.

With that in mind, I'll be starting work on v12 over the next few days. The question I have for you guys is...what would you want the deodexing menu to do? Is there any feature you'd like me to add? Is there anything you'd like me to remove? If you use another utility to deodex, what is it that stops you from using TMA?

And, of course, is there any other feature you would like me to add to the rest of TMA? Remember, this tool is made for you!

In other news, I'm looking for translators. If you feel like helping to translate Tickle My Android, and getting your name in the credits, get in touch!
[Android Themes] tdunham:
While you're in there...

My terminology probably isn't correct but I would like to change the way apktool decompiles smali in 'verbose' mode.

Typically from the commandline I would use the -b switch to strip smali of all the unnecessary code (ie. .line .parameters and a ton of really useless code that clogs up smali when it is decompiled straight with apktool d appname.apk).

Not to make this more difficult, but I think it should be added as a feature since users having been using it the other way for so long it would create a lot of issues diffing files with all the extra code so this is more designed for someone that wants to have a purely clean smali to work with as a choice.

Just my two pence. ;)

Tnx - TD
[Android Themes] Ticklefish:
That's an interesting idea! And it certainly shouldn't be too hard to implement. I'll definitely add this to v12!
[Android Themes] Ban Dan:
How about back porting to run on Android?!

No need to Shlep the heavy PC around. :)

Show Java is a very promising start in that direction, with the great AIDE to close the loop!

Thanks!
[Android Themes] devadip:
Tickle, a great challenge to you ...:)

what do you think about a portable version ( no need to install in c:\ )

I explain my problem: on my office's p.c. I can't install anything ( company policy )

but i'd like to use TMA also in my office :D

Thank you anyway for your great tool!!! ;)
[Android Themes] Ticklefish:
I do most of my modding at work (shh...) so I have a similar issue. That's why I run TMA from the phone's SDCard.. ;)

You don't have to have TMA installed on the hard drive, you can run it from anywhere. The only problem is that, if you're running it from anywhere other than 'c:\', the WorkArea folders won't be in different colours.

That's the only problem and it's not a particularly big one. (It's also easy to fix if it bothers you).

TMA will create folders in your 'User' folder, which is worth being aware of. You can safely delete the '.android' and 'apktool folders once you've finished modding.

I don't know a great deal of Java at the moment. I certainly don't mind making a Tickle My Android app, but it's going to have to sit on the "To Do" list for now.
[Android Themes] devadip:
So i can install tma on a usb pen and work on a pc ?:confused:

EDIT:

try now with my usb pen, everythings works well !!!!

Tomorrow will be the first thing I do at work ( shhhh don't tell to my boss ) :)

thank you very much Tickle!!
[Android Themes] matambo777:
Once again, tickle is my hero ?

Thanks sharing your good knowledge to us

Keep on the good work
[Android Themes] devadip:
bad new... antivirus block tma ( mcafee ):(
[Android Themes] carl1961:
Go to virus app and make exception rule for tma folder
[Android Themes] zelendel:
Easiest fix is to ditch virus blockers. They are mostly just scareware and alot of the time they are false. No need really
[Android Themes] carl1961:
Devadip's virus program is doing it's job, it detected a standalone app who's bat file is wrapped in a exe. We know tma is safe so we except it
[Android Themes] devadip:
I know TMA don't contains any type of virus.... But I can't handle McAfee cause is company antivirus, and I'm not the administrator, so I can't allow TMA to run.

Thanks to all anyway [emoji2] [emoji6]
[Android Themes] starbucks2010:
deleted
[Android Themes] Ticklefish:
Oh. That's annoying. Sorry about that, my friend.
[Android Themes] devadip:
Don't worry my dear,

I got a lot of happy hours with TMA at home [emoji3] [emoji3] [emoji3] [emoji106]

Inviato dal mio LG-D802 utilizzando Tapatalk
[Android Themes] FunSucker:
how to dedexing OS 5.1 using TMA, sir ? i got error bootclasspath (when TMA trying to used alternative method, lollipop method).

boot.oat file already extracted. and all of required files already in "_deodex" folder.
[Android Themes] Ticklefish:
TMA has a few issues deodexing 5.1. right now. I'm busy writing the code for v12, which should resolve those issues, and that should be ready for release soon.

Sorry for the inconvenience, Lollipop deodexing is giving me a bit of a headache!
[Android Themes] FunSucker:
Headache? Nice lol :D

But im sure TMA v12 can handling deodex for lollipop :thumbup:
[Android Themes] Mr_Happy:
When I use TMA to decompile SystemUI.apk (from OxygenOS) it works, but I get no smali-files.

Am I doing something wrong or is it an odex rom and I need to do some additional things?
[Android Themes] Dzepar:
You need to deodex SystemUI first to have smali. Don't forget to remove SystemUI.odex file in your system before you try moded one or you'll have FC.

Good Luck.

Sent from my D2303
[Android Themes] Mr_Happy:
Did that, now I have 2 jars, baksmali.jar and oat2dex.jar, but no smali's

Is there manual for this what to do next?
[Android Themes] Dzepar:
Read 3 post on how to deodex, deodexing will make SystemUI to have both res.arsc and classes.dex in your apk so when decompile it decompile res and smali together.

Good Luck.

Sent from my D2303
[Android Themes] Mr_Happy:
Tried to deodex SystemUI.odex, but I get this error:

Exception in thread "main" org.jf.util.ExceptionWithContext: SystemUI.odex is not an apk, dex file or odex file.
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:123)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:62)
at org.jf.baksmali.main.main(main.java:259)
[Android Themes] FunSucker:
Your ROM running on Lollipop, sir?!
[Android Themes] Mr_Happy:
Yes.. Oxygenos 2.1
[Android Themes] FunSucker:
Boot.oat files already extracted, sir ?!
[Android Themes] Mr_Happy:
Have done option 2 (from deodex menu - prepare workspace), pulled systemui.apk & framework-res.apk.

Installed framework.

Tried to deodex systemui.odex, but it didn't show in the list (probably because it wasn't in the root, but in SystemUI/arm64 folder), copied it to the root. After that it saw the odex, but when I tried to decompile it it said it couldn't fiind SystemUI.dex (and later on Input file not found: SystemUI.odex.dex)...

Had to update the adb.exe also btw... otherwise I couldn't copy the apk's from my phone
[Android Themes] Ticklefish:
TMA has trouble deodexing Lollipop APK's right now. I'm writing the code for Version 12 right now, which will be able to do it, and that should be ready for release in the next few days.

Sorry about this. Deodexing LP is noticeably different than previous versions of Android and it's causing a few code issues. I'm basically rewriting the whole deodex menu from scratch to accomodate it. That's not too hard but I don't get a lot of time in which to do it.. :(
[Android Themes] Mr_Happy:
Thanks for your reply.

If you need help testing let me know ;)
[Android Themes] rizla3066:
Hello people, before we start i am new to android so i am not up to speed with everything yet. I need some help trying to change the settings background from white to either a picture or transparent.

I am using using this Xtrestolite rom for my G925F but would like to change the settings background. I have used various xposed mods to try to achieve this but non seem to work, wanam xposed, xbackground, gravitybox.

Next i used Tickle my Android to decompile the framework, systemui and tw_framework apks from the rom. From the threads i have read i think i should be looking for tw_background_holo_dark.xml but i cant find this file anywhere or a .png version (i guess these guides are for older android versions).

So i have edited various other files that i think relate to the settings background, active_background.xml, active_background_holo_dark.xml and a few others to transparent and solid colors but nothing affect the settings background. I also tried deleting the xmls and replacing them with .pngs of the same names and in different drawable folders.

I used Tickle my Android to make zips to flash and also put the edited framework apk back in to the rom folder and flashed the full rom but nothing works.

So before i waste a few more hours i will ask for a nudge in the right direction if anyone can help. Thank you
[Android Themes] DUHAsianSKILLZ:
In lollipop, settings apk background should be in res -> values -> styles.xml that's where you'll be making your edits. I recommend using notepad++ when editing styles.xml

Now, there are a few other folders with styles xml from what I've saw I guess. I only edit TouchWiz lollipop apks for tablets so it's quite more different. Anyway there could be some more styles.xml in values-swxxx (xxx= a certain number. usually 3 digits).

To be able to use custom backgrounds, you'll need to insert a line at a certain spot. Ermm, I lost all my notes when updating to windows 10 so I'll try and probably find the line of code to add if I can.

(To be continued)

My notes for settings apk.

http://xdaforums.com/showthread.php?p=60536102

Background of settings apk is style name="SettingsTheme" parent="@android:style/Theme.DeviceDefault.Light"&

Add this below that text

<item name="android:windowBackground">@drawable/your_background_image</item>

Now place an image into the drawable folder of settings apk and name the image your_background_image
[Android Themes] rizla3066:
Thanks for the reply m8.

I take it this is the styles.xml from framwork-res.apk? The other styles.xml from tw_framework and systemsui have no references to name="SettingsTheme" parent="@android:style/Theme.DeviceDefault.Light" or even close to that.

Neither does the styles.xml from framework-res.apk 'but' it does have the following references

<style name="Theme.DeviceDefault.Settings" parent="@style/Theme.DeviceDefault.Light" />

<style name="Theme.Material" parent="@style/Theme">

<item name="colorForeground">@color/bright_foreground_material_dark</item>

<item name="colorBackground">@color/background_material_dark</item>

<item name="backgroundDimAmount">0.6</item>

etc

etc

<style name="Theme.DeviceDefault.Light" parent="@style/Theme.Material.Light">

<item name="colorBackground">@color/tw_background_material_light</item>

<item name="textAppearance">@style/TextAppearance.DeviceDefault</item>

<item name="textAppearanceInverse">@style/TextAppearance.DeviceDefault.Inverse</item>

<item name="textColorPrimary">@color/tw_primary_text_material_light</item>

<item name="textColorSecondary">@color/tw_secondary_text_material_light</item>

etc

etc

Which one should i edit?
[Android Themes] DUHAsianSKILLZ:
Styles.xml in secsettings.apk
[Android Themes] 32dave:
Will that work for any app I am thinking mms.apk ? Also I am trying to change the black text from the screen shot I have changed almost every text_color in framework-res in styles and colors and have started to go through layout any advice is greatly appreciated as I am on my fourth day straight of trying to figure this out .

Device: Note 4 910w8 OS: 5.1.1 stock rom other then visual changes

Ok so I figured out the title problem its in values-sw360dp-hdpi-v13/styles if anybody else runs into that problem
[Android Themes] rizla3066:
Cheers M8, finally got somewhere.

It wasn't the line you posted

<style name="SettingsTheme" parent="@android:style/Theme.DeviceDefault.Light" />

But the following line

<style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:windowBackground">@drawable/Settings_Wallpaper</item>
</style>

Now my next question is how can i get this to reflect the current wallpaper? So if i change wallpaper through Wallpaper picker it also shows in settings. Would this be done through setting transparency in styles.xml or to point to the current wallpaper selected through wallpaper picker?

Thanks
[Android Themes] SnakeFist:
I pulled the framework and systemui files from my tablet. Followed everything to a T. When i compile the framework file i get an compile error. When i compile systemui it compiles fine. When i flash the zip i made from the systemui file the battery icon stays the same. Was using the one battery icon with the flames in it that you provided. What did i do wrong? Also what is the battery percent on the nexus 7 go by 1% 5% or 10%

I'm using a nexus 7 (2013) with CyanogenMod 4.4.4. Using the ElementX-N7 v2.15

Thanks for any help.
[Android Themes] Er. Aditya:
hi , while simple decompiling / recompiling 5.1.1 system ui

i am facing errors
[Android Themes] Ticklefish:
I confess I don't know, this isn't a mod I normally bother with. But it may be worth trying to change that Settings_Wallpaper to something transparent..:confused:

KitKat doesn't use the old style battery icons, it renders the icon using code. Which is annoying.

You can use TMA to replace your battery icon but you'll need to mod the icon first so it uses image files again. And the best way to do that is by visiting this thread by my friend [MENTION=4485836]Erhany[/MENTION] here: http://xdaforums.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361

We've been PM'ing about this. It looks like we'll just need to wait for the next version of apktool to come around. :(

----------------------------------------------------​

Version 12 of Tickle My Android is coming along nicely. I'm about 3/4 of the way through coding the new deodexing menu and should be able to release the tool in the next few days.

I do need translators though. There are a lot of new strings in this version and anybody who doesn't speak English is going to have a hard time. If anybody can help , let me know!
[Android Themes] Er. Aditya:
i have been trying to make it work... but like as you said great one...all we gota do is wait
[Android Themes] tdunham:
Ok, apktool v2.02 dirty, trial by fire with android 5.1.1 and SystemUI.apk.

This error:

Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long

Is somehow being caused by the apktool.yml file and the REALLY long list of what not to compress that are listed there.

To get around this, manually edit the (decompiled) apktool.yml file and remove everything below this line, I think you can even remove the line too:

doNotCompress:

Then try to recompile.

---------- Post added at 06:01 PM ---------- Previous post was at 05:57 PM ----------

And you might need that latest aapt.exe too. I can't remember.

---------- Post added at 06:04 PM ---------- Previous post was at 06:01 PM ----------

I'm getting that error in a bunch of apks, you should use 2.01 for everything else, but don't forget you have to reload framework when you switch between apktool versions.
[Android Themes] Er. Aditya:
you sir are a super hero

amazingggggggg this thing finally worked after screwin my brain for over 5 days...thanks alot sir

and one more thing is this safe any issue cause by remove either all the lines or just DoNot Compress ?
[Android Themes] tdunham:
I would stick with just that area of the yml, removing that entire section only and all the associated lines below it.

And the fun isn't over yet for SystemUI. I would also work from the recompiled version and ONLY using 2.02 dirty apktool. You may run into some other issues but we can work through that later on. Try decompiling and recompiling the new SystemUI.apk too to make sure you're good to go from here. Even if the error comes back with the recompiled version, you now know how to fix it and I'd still stick with that as your working copy and keep the original for comparison later on down the road.
[Android Themes] Er. Aditya:
noted sir.... Nd once again this tip is awesome... very very handy .... now i can start o work on note 5

thanku again for your help n guidance to the whole community
[Android Themes] Ticklefish:
Grrr..Samsung and their need to make a non-Android Android causing trouble yet again.

It sounds like ibotpeaches has a plan to fix this for the official release of apktool 2.0.2. but we'll have to wait a while for it.

I can make TMA edit the apktool.yml automatically but it'd just delete the doNotCompress section every time. I suspect that'll be more of a problem than a solution.

I'll be putting ibotpeaches' latest aapt.exe in v12, along with updated adb, smali and baksmali files. It's almost done, I may even be able to release it tomorrow.
[Android Themes] Er. Aditya:
and we are ready to grab this tool as soon as its released :D

lets hope you guys can pull this off once and for all
[Android Themes] kirito9:
Best tool to make theming easy just like the OP said [MENTION=6897465]PillzP[/MENTION]