yashsingh1/xdaforums huggingface dataset:
[Android Themes] brainvision:
Thanks for replying. I'm going to read the thread you linked, seems really useful.. But I have a basic question, if you please, about smali files: shortly, if even possible, when do I need to work on XML and when on smali? Could it depends from odexed and deodexed ROMs? Or it just depends from what I needed to achieve?

In my case I think (pretty sure I'm in error) I have to work on XML to remove the battery percentage at the left of the battery, and on smali to add and move the quick settings tile.. is it totally wrong, isn't it?

Again thank you for your kindness!
[Android Themes] Ticklefish:
It really just depends on what you want to do. Generally XML affects where something is and smali effects how it works.

You will need a deodexed rom to mod smali though.
[Android Themes] Thebear j koss:
Your mod is most likely in statusbar.xml in layouts in systemUI. Probably just need to find the line that points to the battery % and change the dpi to [MENTION=2281583]0.0[/MENTION] or [MENTION=283679]null[/MENTION] if memory is correct. It may point to a value in 1 of the xmls in the values folder like [MENTION=3592815]statusbar[/MENTION] icon or something, but just change it in the layouts so it doesn't affect other icons in your statusbar.

Support Team Blackout and show your Darkside pride- https://teespring.com/team-blackout-android#pid=2&cid=2397&sid=back
[Android Themes] Ticklefish:
Guys, there's a new version of apktool available!

For those who don't know, apktool is the programme that this tool uses to decompile and recompile. Without it, TMA would be completely useless.

To download the new version of apktool, check out the thread here: http://xdaforums.com/showthread.php?t=1755243

But there is a problem. The developer has removed one of the options from the programme and Recompiling With Original Signature won't work with it.

I know how to change the code so it does but I don't have the time to make that change today. I'm away from my PC all day. Hopefully I'll be able to tomorrow and I'll release an updated version as soon as I can! :cool:
[Android Themes] brainvision:
mmmm.. so I started with a very simple mod, I changed the horrible Clear all Recents images of my SystemUI: perfect! :D

Now I would like to deodex my ROM (it's a stock ROM, I flashed this one this morning after removing the de-odexed one that was not specific for my device): my CPU is an Intel x86_64 and the odex files are stored in a folder structure like that

/sytem/
/system/app/
/system/priv-app/
/system/priv-app/GoogleLoginService/
/system/priv-app/GoogleLoginService/GoogleLoginService.apk
/system/priv-app/GoogleLoginService/x86/GoogleLoginService.odex.gz

so, there's no a "real" odex file, but it is compressed into a gzip archive :(

And looking at the log file hystory.log I see that:

18-10-2016@2107 --- "BasicDreams.ode*" Not Found In "_WorkArea6\_deodex\app\BasicDreams\arm*\"
18-10-2016@2107 --- "Browser.ode*" Not Found In "_WorkArea6\_deodex\app\Browser\arm*\"
18-10-2016@2107 --- "Calculator.ode*" Not Found In "_WorkArea6\_deodex\app\Calculator\arm*\"
18-10-2016@2107 --- "CertInstaller.ode*" Not Found In "_WorkArea6\_deodex\app\CertInstaller\arm*\"
18-10-2016@2107 --- "DeskClock.ode*" Not Found In "_WorkArea6\_deodex\app\DeskClock\arm*\"
18-10-2016@2107 --- "DocumentsUI.ode*" Not Found In "_WorkArea6\_deodex\app\DocumentsUI\arm*\"
18-10-2016@2107 --- "DownloadProviderUi.ode*" Not Found In "_WorkArea6\_deodex\app\DownloadProviderUi\arm*\"
18-10-2016@2107 --- "Email.ode*" Not Found In "_WorkArea6\_deodex\app\Email\arm*\"

The provided output zip file is actually a zip archive of all the file I copied from device, no changes at all.. It has the same files odex.gz and the same structure..

What do you guys think about that? I thought I have to extract every single odex file but I fear it's not the right way to do that..

Also, I would like to report a bug: when you use the mouse into TMA and deodex feature it fails creating the final zip file because (from what I have been able to understand) a tag for the mouse label is missed, or something like that.. It could also be related to missing translation string from Italian that I'm using. When I disable the Use mouse option it worked fine, btw.. ;)
[Android Themes] Ticklefish:
Your odex files are stored in a gz archive? Oh good, yet another way that OEM's do things. I'm so happy that I need to update the code again...lol

I'll take a look at that in a few minutes. I've just updated the code to allow for the latest version of apktool and I'm about to experiment with the latest betas for baksmali.jar and smali.jar.

If I can get that working, I'll look at the mouse control buy you mentioned. It's a busy day today!
[Android Themes] brainvision:
Thanks, you rock!

Also, if you need some missing Italian translations of new stuff recently added I'll be happy to help ?
[Android Themes] Ticklefish:
Guys, I'm in the middle of writing code for v14.2 to cope with the new baksmali and smali files available here: https://github.com/JesusFreke/smali

They're beta so things could change but so far they seem to be faster and they can cope with files that the previous versions couldn't. I can now deodex the Touchwiz "telephony-common.jar" for example. Which is awesome.

Unfortunately the syntax for using these files has changed so it's taking me a bit of time to update the code. Hopefully I should be done by today. :cool:

Help with translations is always appreciated, thanks! Have a look at the 14.2 version I mentioned a few posts ago. There's a batch file in "USER_FILES\LANGUAGES" with all the strings in.

Could you share one of those .GZ files please? I want to be sure the tool will be able to extract them properly.
[Android Themes] brainvision:
sure, I uploaded a bunch of APK and gz from both /system/app both both /system/priv-app on Mediafire, this is the link: https://www.mediafire.com/folder/bw8qenll4tazn/Stuff

Also, I would like to take advantage of your kindness (hope you don't mind :D ) and ask one more question: once I will deodex my ROM, new applications I'll install (as user but also to /system) will be odexed or deoxed? I mean, is there any special setting I should change in my ROM for that?

Ok, now I have to work for a few hours then I'll be back to look for news! thanks again, see you soon
[Android Themes] Ticklefish:
Thanks for your files. I've updated the code so TMA should automatically extract these .gz files as it finds them.

I'm doing a trial run with a Touchwiz system dump I found on xda (many thanks to [MENTION=4014506]ksr007[/MENTION] for sharing) and everything seems to work so far. If these new baksmali and smali files can deodex everything then I will almost be ready to upload a new version of this tool. Hopefully it should be ready soon.

To answer your question, a deodexed rom is one in which all your pre-installed system apps will have their classes.dex files inside them. This won't affect what happens to any new apps you install. They'll normally be deodexed. Normally they'd only be odexed if you've made them odexed.
[Android Themes] Wyzp:
Guys, I'm having problem in recompiling a framework-res. I have a Galaxy S6 and I can normally recompile another frameworks from another ROMS, but that one in particular isn't been possible.

I won't post the error here cause it's too big, but I upload the History and Recompile.txt.
[Android Themes] Thebear j koss:
Need to change all those qmg files to pngs i believe. Those qmg files are encrypted samsung images that are not recognizable.

Only 1 day left to show your support for Team Blackout and show your Darkside pride- https://teespring.com/team-blackout-android#pid=2&cid=2397&sid=back
[Android Themes] tdunham:
I think your problem is this:

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

It is trying to process too many files in the apktool.yml file.

Try a different version of apktool and if that doesn't work, zip and upload the apktool.yml file from the work folder for framework and I will show you which lines to remove.
[Android Themes] Wyzp:
Thanks to everyone that answared me. The problem was that someone had recompiled it wrong , getting the stock framework and recompiling it worked normal, sorry guys :eek:
[Android Themes] Ticklefish:
NEW VERSION NEARLY READY!​

I've been working on v14.2 the past few days. This will cope with v2 signing, work with the latest apktool and deodex more files than ever before. It's taken me a while as it involves a lot of coding and, sadly, I don't get paid to do this so I had to fit that coding around my job.

Oh, and my card reader decided to wipe the file earlier today. 17,000 lines of code obliterated in an instant. You can imagine how pleased that made me...

I've finished writing the code, I just need to test it to make sure I haven't made any silly mistakes or typos anywhere. If you'd like to try the untested version out, you can download it from here: http://www.mediafire.com/file/9spnt939x2du9cm/TickleMyAndroid+-+v14.2.0.exe

If something doesn't work, or if something does, please let me know and I'll fix it as soon as I can. If everything works perfectly, I'll release it properly tomorrow. :)
[Android Themes] brainvision:
Great! I'll test in the morning until lunch, (at the moment here is 00:25), see you soon! ;)

EDIT:

hi [MENTION=4315551]Ticklefish[/MENTION]

first time I tried your tools, a few days ago, I used it with an unpacked system image by moving my relevant folders to working space folder I was in TMA. Now with your beta I wanted to try with the intergated Pull Relevant Files from the Deodex menu. The problem is that it doesn't copy nothing at all, don't know why!

23-10-2016@1458 --- Pulling Files From "system/framework/" To "_WorkArea1\_deodex\framework\"

pull: building file list...
adb: error: failed to create directory '_WorkArea1\_deodex\framework\': File exists

23-10-2016@1458 --- Pulling Files From "system/app/" To "_WorkArea1\_deodex\app\"

pull: building file list...
adb: error: failed to create directory '_WorkArea1\_deodex\app\': File exists

23-10-2016@1458 --- Pulling Files From "system/priv-app/" To "_WorkArea1\_deodex\priv-app\"

pull: building file list...
adb: error: failed to create directory '_WorkArea1\_deodex\priv-app\': File exists

23-10-2016@1458 --- Workspace Preparation Complete

I tried to check the output of

adb devices

of the adb integrated ito TMA and it see my device.

I also launch

adb pull system/app

using my system adb and it pulled all the files correctly.

Last but not least I found that when I pick Deodex Menu, then Pull Relevant Files and TMA asks for confirmation: Do you want to continue? even if I choose no (n) it continues opening the cmd.exe windows (can't say if it really copy files because - as said - it doesn't work for me anyway)
[Android Themes] Ticklefish:
Curious...the above is all that the forum will let me quote...:confused:

I've made some changes to the code. Please download the latest version and try again. I can't use adb on my setup at work but this [should]/I] be working...
[Android Themes] brainvision:
sorry but what version did you mean? The two issues I reported were on the last beta..

EDIT: same happens with the stable version

EDIT2: also, I unpacked the system.img manually and copied priv-app, app and framework folders to he deodex folder of TMA, latest beta available. Again, it doesn't deodex my x86 odex.gz! :(

I'll attach two log files to the post: the the 2- Deodex is using the option 2 from the Deodex Section (the 1 is Pull), while the other one is using 3 - Deodex (Android 5.0.x).

It seems to me that it simply doesn't care about my x86 folder. It always search for arm directory.

Also for app in priv-app it doesn't scan subfolders: I have app in that folder in tree like that:

priv-app/
priv-app/Contacts/
priv-app/Contacts/Contacts.apk
priv-app/Contacts/x86/
priv-app/Contacts/x86/Contacts.odex.gz
[Android Themes] Ticklefish:
It's still not pulling? Odd, I thought I'd fixed that. Could you try downloading the attached file, decompressing it and saving it in your tool_files folder please? It might make the pulling from the framework folder work. I think Google changed how adb worked recently, which would explain a lot..

And you're right, it isn't looking for your x86 folder. I didn't know that odex files were in any other folder than arm and arm86. It makes sense, but I just didn't realise it. I'll update the code to look in the x86 folder as well. Shouldn't take too long, in theory.
[Android Themes] brainvision:
no attached files.. ;)

oh well, it seems you missed one fo my first post where I told you about my x86 folders.. :(

so, I'll have to find another tool to deodex my Android :( :(

thanks you for your work btw
[Android Themes] Ticklefish:
I've attached the file to the previous post. :)

I didn't realise that x86 files would be in a different folder. Silly mistake but easy enough to fix. I should have that taken care of tomorrow :cool:
[Android Themes] brainvision:
weird, could not see the attachment a few minutes ago..

Ok with the new file it pulls the framework apk and its subfolder x86 so I guess it's correct that way..

Do you need me to send an apk and a subfolder of each main folder (priv-app, app and framework) to help you? I can upload on MediaFire if you wish..

Also on a side note, the same stuff I guess happens on x86_64 and x64 archs but cannot be 100% sure
[Android Themes] Ticklefish:
Okay, so it looks like the syntax for adb did change then. Now I know what to change, it should be pretty quick to do it.

As for the whole x86, x86_64 and x64 business that shouldn't take me too long either. It's just going to be a case of copying, pasting and editing.

Hopefully I should have this done early tomorrow.

Deodexing was sooo much easier back in the Gingerbread days!

The good news is that the latest baksmali and smali files are handling every file I've tested them on, including ones that couldn't be deodexed previously. So, by this time tomorrow, we should have a much more powerful deodexing tool on our hands! :cool:
[Android Themes] Ticklefish:
(This is the 2nd time I've quoted this post but this time the forum will let me quote the whole thing. Weird...)

Okay, so I've been going through the code this morning and I've uploaded a new version. This has updated code for pulling files from your phone, taking into account the small syntax change that Google made in the latest versions of adb. I've also updated the code for the "Deodex Rom [Android 6.0.x]" option, to allow for x86, x86_64 and x64 files.

From what I understand of the x86 project, it starts from Marshmallow upwards and isn't likely to be on any Sony or LG device so I haven't changed the code in those options.

TMA should now deodex files from a Marshmallow rom as long as they have this sort of folder structure:

priv-app/
priv-app/Contacts/
priv-app/Contacts/Contacts.apk
priv-app/Contacts/[color="red"](arm\arm64\x86\x86_64\x64)[/color]/[color="red"](Contacts.odex\Contacts.odex.xz\Contacts.odex.gz)[/color]

I'm sure somebody will come up with yet another way to layout things at some point so I'm bound to have to change the code again in the future. But, for now, I think I'm on top of everything. Hopefully...

Download the latest version of 14.2 from here: http://www.mediafire.com/file/9spnt939x2du9cm/TickleMyAndroid+-+v14.2.0.exe and let me know how it goes!
[Android Themes] brainvision:
err.. my device is Android 5.1_r1, not Marshmallow :(

should I tried even if that version difference or it would bring to a fail?
[Android Themes] Ticklefish:
Damn. Guess I'd better do some typing then! lol

Give me a few minutes..
[Android Themes] Ticklefish:
New, new version uploaded just now. It's the same link. (http://www.mediafire.com/file/9spnt939x2du9cm/TickleMyAndroid+-+v14.2.0.exe) This should now look for files in the x86, x86_64 and x64 folders in a Lollipop rom.

According to the Android-x86 site (http://www.android-x86.org/), they're working on porting Nougat. It's going to be a while before this tool can handle deodexing Nougat - I'm sure that Google will have changed how the odex files work again. But, once a solution becomes available, you can be sure that TMA will include it before long!
[Android Themes] Hamidreza2010:
[MENTION=4315551]Ticklefish[/MENTION] bro i downloaded v14.2.0 but i think sign of this tool has problem

because i edit some apk ( just edit androidmanifest.xml to remove launcher line to hide these apk from launcher )

then sign it but after installed its not work correctly and get fc

but do this steps again , then just sign with Advanced ApkTool 4.2.0 and evrything was ok

i think 2 or 3 last version of this tool has this problem too

really this tool is great and i love it and use it a lot

hope fix this problem

and kaspersky internet security 2017 detect it as trojan and removed it :( ( i should disable it when i want to work with this tool )

thanks a lot
[Android Themes] Ticklefish:
Hmm..I haven't changed the signing code for a while. Curious.

Do your files contain a SEC-INF folder perhaps? That might explain it..

TMA uses a file called signapk.jar to sign its files. It's not impossible I might need to change that to testsign..
[Android Themes] Hamidreza2010:
yes i saw signapk.jar in your tool ( and i compare to another tool which work fine for me and diffrent from hash code and size )

i test it for example this apk ( xposed installer v3.1 ) :

http://xdaforums.com/showthread.php?t=3034811
[Android Themes] Ticklefish:
I've just updated the 14.2 version with a newer signapk.jar. Give it a try and let me know how it goes. :highfive:
[Android Themes] Hamidreza2010:
thanks dear

would you please give me a link?
[Android Themes] dacorsa:
i have note4 , last 5.1 samsung rom , with the last .smali files in smali/com/android/systemui/statusbar/policy folder.

i have try to use Tickle my android to mod systemUI.apk but when i try new file i see only the original icon of the battery and the app of 3minit doesn't works...

someone can help me? i have modded the system_icons.xml and add the 3 file smali...what else??

this is how i edited the file xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/status_bar_icon_alpha" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="@dimen/signal_cluster_gap">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_gap" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/battery_text_margin_top" android:alpha="@dimen/status_bar_icon_alpha" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginStart="@dimen/battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="@dimen/battery_icon_start_margin" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

thanks
[Android Themes] brainvision:
sorry don't wanna bother you, I think I'll try another way to deodex because it still doesn't work :( maybe there's something more deep to do, I can't say because I'm a totally newbie in coding, but using option 2 - Deodex (android 5.0.0.x) (but my version is Android 5.1_r1, don't know if it matters) still produces a zip file with the same identical files inside. It just "seems" to deodex apk from the framework apk, maybe it could help..

really, i feel very sorry about that

EDIT: sorry, my fault, it doesn't even work with apk from framework folders
[Android Themes] Ticklefish:
I know it's a big ask but could you possibly share your framework, app and priv-app folders please? I'm determined to get this to work! :laugh:

Oh, and it's not a bother, I'm always happy to help. I'm just sorry it's taken so long!

Here you go. http://www.mediafire.com/file/9spnt939x2du9cm/TickleMyAndroid+-+v14.2.0.exe
[Android Themes] Ticklefish:
Does the XML in your modded APK have the changes you made?
[Android Themes] brainvision:
sure I already asked you yesterday if need to share.. Do I have to share all the files from all the folder? Or just a few from each folder? Could I directly share the system.img file?

EDIT: also noticed that now the zip file created by deodex feature has errors in the tree structure, like that

app/
app/app/
app/app/Camera/etc
priv-app/
priv-app/priv-app/
priv-app/priv-app/some_app
etc

same for framework..

guess copy and paste error ;)
[Android Themes] Ticklefish:
I need all three folders with their contents, if you can. I appreciate it's a lot of files though.
[Android Themes] brainvision:
I have the system.img file, stored it a week ago, if it's not good I will upload only folders.. the system.img is here https://mega.nz/#!YBdw1bIT!GibOWLBNyXAhwEiEdXIV3JKKdMM9gXzLIYvppKn0Bgs

MD5
7-system.img	1812be775e55a25903cbf9541570b187

MD5 1812be775e55a25903cbf9541570b187

also I edited my last post, I'll paste below for your convenience

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

also noticed that now the zip file created by deodex feature has errors in the tree structure, like that

app/
app/app/
app/app/Camera/etc
priv-app/
priv-app/priv-app/
priv-app/priv-app/some_app
etc

same for framework..

guess copy and paste error
[Android Themes] Hamidreza2010:
[MENTION=4315551]Ticklefish[/MENTION] now sign is perfect :good:

i compared hash code again with another tool which work fine for me and both are same :good:

wait for final version ;)

thanks again
[Android Themes] Ticklefish:
Thanks very much for sharing your files - they've been invaluable. I've done a lot of code-editing and I think I've got it mastered now.

I've uploaded a ZIP for you which should deodex your rom: http://www.mediafire.com/file/v33xy60m2222ml7/tma_DeodexLollipop-25-10-2016%401737.zip Make sure you do a backup first!

There are two files which couldn't be deodexed though, which might be an issue. I couldn't deodex either GMSCore.apk or Phonesky.apk.

The first file seems to be for putting Google Play Services on your phone. You should be able to download the deodexed version and install it on your phone separately.

The second file is an old version of Google Play Store. Again, you should be able to put this onto your phone separately.

My stock Sony rom had the same sort of problem. There was one file I couldn't deodex, no matter what I tried. Handily, Sony had made it available through the Google Play Store so I just installed it through that instead.

That's always good to hear. Thanks for your support!! The final version has just been uploaded to the same link as before. I'll give it a few days then, if there aren't any issues, I'll release it properly.