yashsingh1/xdaforums huggingface dataset:
[Android Themes] Dzepar:
Thanks m8, I'll try it ;)

Xperia M2 D2303 on K.K. 4.4.4
[Android Themes] Azharkanorwala:
I cannot pull files in the shell or in the pull file option in theming menu,my adb drivers are fine,adb running and can also access files through normal terminal and pull files too but only in this program,it gives me error Device not found.
[Android Themes] tdunham:
Does your kernel support it?
[Android Themes] Azharkanorwala:
Hi

I am on stock kernel (LG G2) rooted with twrp,my adb is working fine with cmd,and some commands like reboot into recovery,or reboot are also working fine with this tool,so i guess my kernel must be supported ,otherwise i also wouldn't be able to pull files with cmd. Do not know much about kernel related stuff.
[Android Themes] tdunham:
Not as much as i should.

It was just a thought. Might have to wait for TF to weigh in on this one.
[Android Themes] Ticklefish:
Interesting. So ADB works for you when you type the commands, but not in TMA?

It's possible that this could just be a matter of syntax. With your phone connected (you are using a cable, right?), could you please enter this command on command line:

adb devices

Then let me know what it says.

Oh, and what command do you use to pull files?
[Android Themes] Azharkanorwala:
[MENTION=4315551]Ticklefish[/MENTION]

I obvious :p use a cable,with everything in place.

i have attached all the SS.

I noticed i was not able to pull any files from system/priv-app folder on lolipop LG G2 Stock,but was able to pull build.prop,dont know how.
[Android Themes] Ticklefish:
Neat wallpaper, by the way. ;)

I'm not really sure what's going on here but I've got a few ideas. Do you mind trying a few things for me?

Try replacing the adb in the tool_files\folder with your copy and see if that works. It could be that I need to update adb..

Or, if that doesn't work, try deleting adb in the tool_files folder and see what that does. Maybe there's a conflict with the adb that's already on your system.
[Android Themes] Azharkanorwala:
TMA wont use the system variables for adb??

Thanks for the Wallpaper ;)

Tried Replacing the adb files from SDK,did not work,deleting is not helping either,shell command windows terminates.
[Android Themes] Ticklefish:
It should do, yes. But I was wondering if that was the problem.

Hmm...

What command do you use to pull a file when you use ADB directly?
[Android Themes] Azharkanorwala:
adb pull path.apk
[Android Themes] Ticklefish:
And what happens if you try pulling LGGallery.apk with TMA?
[Android Themes] Azharkanorwala:
shell@g2:/ $ adb pull system/priv-app/LGGallery/LGGallery.apk
adb pull system/priv-app/LGGallery/LGGallery.apk
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found
1|shell@g2:/ $

---------- Post added at 10:18 PM ---------- Previous post was at 10:00 PM ----------

[MENTION=4315551]Ticklefish[/MENTION]

Thanks For Your Help, no matter the problem solved or not.

Thank You Very Much..
[Android Themes] Ticklefish:
Are you trying to pull files from the ADB Shell?
[Android Themes] Azharkanorwala:
[MENTION=4315551]Ticklefish[/MENTION]

Yes.

When I pull from the theming menu,it gives me some error occured,but can pull from system though.
[Android Themes] carl1961:
I have no issue pulling

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

29-04-2015@1410 --- SESSION STARTED

29-04-2015@1410 --- WorkArea Set To "WorkArea5"

29-04-2015@1410 --- Apktool Version Set To "apktool_1.SlimRoms.KitKat.jar"

29-04-2015@1411 --- "/system/framework/framework-res.apk" pulled to "WorkArea5"

29-04-2015@1412 --- "_WorkArea5\__framework-res.apk__29-04-2015@1412" backup created

29-04-2015@1412 --- "_WorkArea5\_in\framework-res.apk" decompile failed, using "apktool_1.SlimRoms.KitKat.jar"

29-04-2015@1413 --- "/system/priv-app/SystemUI/SystemUI.apk" pulled to "WorkArea5"

29-04-2015@1413 --- "_WorkArea5\__SystemUI.apk__29-04-2015@1413" backup created

29-04-2015@1416 --- "/data/appcom.android.chrome-2/base.apk" pull failed

29-04-2015@1418 --- "/data/app/com.android.chrome-2/base.apk" pulled to "WorkArea5" <<<< --------- Manually Pulled from Data/app

29-04-2015@1418 --- "_WorkArea5\__com.android.chrome-2/base.apk__29-04-2015@1418" backup created

29-04-2015@1418 --- "_WorkArea5\_in\com.android.chrome-2/base.apk" decompile failed, using "apktool_1.SlimRoms.KitKat.jar"
[Android Themes] Azharkanorwala:
[MENTION=3271517]carl1961[/MENTION]

You using a Samsung phone??(guessed by your signature ;))i am on LG one,and on lollipop,so i think i might it is creating some issues..

How To Get full logs in TMA

If i generate a Log cat while de compiling i get only this only

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

and history

Tickle My Android 10.1.0. Theming History

tinyurl.com/ticklemyandroid

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

30-04-2015@014 --- SESSION STARTED
30-04-2015@014 --- WorkArea Set To "WorkArea1"
30-04-2015@014 --- Apktool Version Set To "apktool_2.0.0-35f978-SNAPSHOT.jar"

30-04-2015@023 --- "_WorkArea1\_in\framework-res.apk" installed to PC

30-04-2015@023 --- "_WorkArea1\framework-res.apk" installed to PC

30-04-2015@023 --- "_WorkArea1\lge-res.apk" installed to PC

30-04-2015@023 --- "_WorkArea1\_in\LGGallery.apk" decompile succeeded, using "apktool_2.0.0-35f978-SNAPSHOT.jar"

30-04-2015@024 --- "_WorkArea1\_in\LGInCallUI.apk" decompile succeeded, using "apktool_2.0.0-35f978-SNAPSHOT.jar"

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

30-04-2015@024 --- SESSION STARTED
30-04-2015@024 --- WorkArea Set To "WorkArea1"
30-04-2015@024 --- Apktool Version Set To "apktool_2.0.0-35f978-SNAPSHOT.jar"

30-04-2015@025 --- "/system/framework/lge-res.apk" pull failed
30-04-2015@025 --- "_WorkArea1\_in\LGTeleService.apk" decompile succeeded, using "apktool_2.0.0-35f978-SNAPSHOT.jar"

30-04-2015@025 --- SESSION ENDED

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

30-04-2015@821 --- SESSION STARTED
30-04-2015@821 --- WorkArea Set To "WorkArea1"
30-04-2015@821 --- Apktool Version Set To "apktool_2.0.0-35f978-SNAPSHOT.jar"

30-04-2015@822 --- "_WorkArea1\_in\framework-res.apk" decompile succeeded, using "apktool_2.0.0-35f978-SNAPSHOT.jar"

and

Decompiling "LGTeleService.apk",
in workarea "_WorkArea1", using "apktool_2.0.0-35f978-SNAPSHOT.jar"

With Tickle My Android 10.1.0.
(tinyurl.com\ticklemyandroid)

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

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

Decompile Successful!

where can i get the full log cat of the errors.
[Android Themes] carl1961:
there is no log cat for TMA Log cat is for your phone
[Android Themes] Ticklefish:
I've just updated the logging code to make it a bit clearer what happens when you pull a file. Can you please download TMA again and give this another try? If the file doesn't pull, please share your history.txt. That should hopefully tell me why it failed.

I suspect it's something to do with the syntax I'm using but I want to see what error you get.

Sorry about all this fuss but I do appreciate your patience. I want TMA to work on everything! :D
[Android Themes] Azharkanorwala:
Nothing to be sorry,i should be the one thanking you for the patience,and TMA is the reason i could again theme Lollipop, as it is too hard to theme system apps

---------- Post added at 06:34 PM ---------- Previous post was at 05:46 PM ----------

[MENTION=4315551]Ticklefish[/MENTION]

Tried But the same results :( but there is nothing shown in history.txt besides

Tickle My Android 10.3.1. Theming History

tinyurl.com/ticklemyandroid

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

30-04-2015@1829 --- SESSION STARTED
30-04-2015@1829 --- WorkArea Set To "WorkArea1"
30-04-2015@1829 --- Apktool Version Set To "apktool_2.0.0.jar"

30-04-2015@1831 --- "/system/framework/lge-res.apk" pull failed

also generated a log cat but i dont think it will be useful..
[Android Themes] Ticklefish:
Damn. What version of Windows are you on, by the way?

So I might be right about the syntax. Can you go into your command line, navigate to the TickleMyAndroid folder and enter this command:

tool_files\adb -d pull /system/framework/lge-res.apk _WorkArea1\_in\lge-res.apk

Then can you let me know what happens?

In fact, do you mind trying this code as well please?

tool_files\adb -d pull /system/framework/lge-res.apk _WorkArea1\_in\lge-res.apk >tool_files\rewrite\settings\temp 2>&1

The above line is basically what TMA is doing when you try pulling that file.

I'm actually hoping it doesn't work. If it does, I've got a lot of fun to figure out what's going wrong in the code! lol
[Android Themes] Azharkanorwala:
[MENTION=4315551]Ticklefish[/MENTION]

ROFL :p:laugh::silly:

Got It Working

Windows 8.1 64 Bit with 2 SLI Titan Z:D

I havent seen other lollipop roms yet but i think all the apk are in folder specified for them,so i changed your code,see in SS,that might be the problem.
[Android Themes] 22sl22:
[MENTION=4315551]Ticklefish[/MENTION] I was wondering if you could help me, for some reason my Apktool is just broken, not just in TMA but anywhere. I normally just use normal apktool or TMA because I just switch between the two normally

The logs don't show anything, the apps just fail to recompile, with or with out any editing. I am editing MIUI but I don't think the problem is MIUI related because I changed my workspace to my normal Lollipop mods and the problem is the same, it just won't re compile. Java is fine, I even tried downloading the latest apktool but nothing.

Even when you check the TMA logs they just say recompile failed, that's it. The same with normal APK tool, the command line doesn't show anything. I din't do any updates to my laptop, no new installations or nothing, everything was just normal one day and broken the next when I tried to do some mods. Really weird :confused::confused::confused:

Running Windows 8.1 if that helps :good:

Any ideas?
[Android Themes] Ticklefish:
Hmm..I wondered about that. I have an AOSP Lollipop ROM on my old phone and both the system/app/ and system/priv-app/ folders have APK files in separate folders, but not system/framework/.

Trust LG to be problematic! lol

TMA will let you pull files from anywhere, as long as you know the correct address, so you should be fine from now on.

Could you try the second code I gave you please? It seems like there's something about Windows 8.1. that doesn't let batch files output to text files like they used to. Which would explain why there was no error in your history file. It'd be handy to know if there's an error message for that second line of code.

Well, Windows 8.1. might be causing issues with the logs (see above) but there's no obvious reason in what you said as to why your files won't recompile. If you want, I can try them out on my setup and see what happens?
[Android Themes] Azharkanorwala:
Second command isn't showing anything,takes about 10 seconds, and nothing shows up.
[Android Themes] Ticklefish:
Okay. What if you try running the command prompt as an Administrator?
[Android Themes] 22sl22:
Yeah, I might send you my files :good:

But what was so weird was that recompiling just stopped working suddenly. Yesterday it was fine but today it wasn't. If I just take an apk, decompile it, and make no changes it won't let me recompile it for some reason, exact same files, exact same setup.

So what would be the command line input to get the logs for recompiling with TMA then?
[Android Themes] Azharkanorwala:
Same result!!

But it does it take time Between(It Must Be something cooking behind)..

By the way what does this command do
[Android Themes] Ticklefish:
Do you still have your resource files installed? That might cause this to happen..

There isn't a command line input to get the logs. They're just standard text files. I am wondering if TMA needs administrator permissions in Windows 8.1. to get the logs to output. I suppose outputting to a text file and not the screen could be considered a potential security risk..:eek:
[Android Themes] 22sl22:
Yeah, the resource files might be installed, I'll, have to double check

I'll also try with admin permissions and see what happens :good:

---------- Post added at 06:48 PM ---------- Previous post was at 06:11 PM ----------

[MENTION=4315551]Ticklefish[/MENTION]

Still Nothing :(

Tried running with Admin Rights. still the same, no logs. Also, by resources you mean framework files yeah? Because I tried clearing that too, see this:

I did no mods whatsoever to the apk. I also get the same thing with normal LP/KK files

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

30-04-2015@1843 --- SESSION STARTED
30-04-2015@1843 --- WorkArea Set To "WorkArea6"
30-04-2015@1843 --- Apktool Version Set To "apktool_2-Mod.jar"

30-04-2015@1844 --- All "WorkArea6" frameworks uninstalled
30-04-2015@1844 --- "_WorkArea6\_in\framework-res.apk" installed to PC

30-04-2015@1844 --- "_WorkArea6\_in\framework-miui-res.apk" installed to PC

30-04-2015@1845 --- "_WorkArea6\_in\framework-res.apk" decompile succeeded, using "apktool_2-Mod.jar"

30-04-2015@1845 --- "_WorkArea6\_working\framework-res.apk" recompile failed with original signature, using "apktool_2-Mod.jar"
[Android Themes] Ticklefish:
Damn. There must be some reason why Windows 8.1 won't let the output of a command be sent to a text file. Hmm...

In the meantime, if you wanted to share your files, I can certainly try de/recompiling them myself and see what happens.

Where did you get your "apktool_2-Mod.jar"?
[Android Themes] 22sl22:
Apk Tool mod is just the name I gave to the newest APK Tool 2.0 (official). For the record I also tried older versions too.

Here's the files, there's nothing wrong with TMA because it was working fine yesterday, decompiling and recompiling. It was only today I had issues for some reason

Anyway, here are the files, Framework res and MIUI framework res. You will probably have to install both to get framework-res to decompile :good:

Rom/device info:

Nexus 4

MIUI 6

KitKat 4.4.4

https://drive.google.com/file/d/0B35dv8DCRfo-SnROM2hHX3VJTGM/view?usp=sharing
[Android Themes] 22sl22:
[MENTION=4315551]Ticklefish[/MENTION]

Tried again with normal APK tool and whilst it still doesn't work, I did get a log.

Most of the errors appear to be because of setup issues but I have already checked everything I can think of. Java dev 7 is installed and working including paths, aapt is in the correct folder. Any ideas?
[Android Themes] MaFiBoSS:
This tool (TMA) is very nice and powerful, thanks Ticklefish :D

I have successfully decompiled, edited (Mod - Remove Sfinder and Quick Connect) and recompiled the file SystemUI.apk (not deodexed). :)

So I have some questions:

1 - It is normal in the original file (SystemUI.apk) has the size: 13.832 KB and after recompiled has: 13.828 KB? (used the option: "2 - Recompile App With Original Signature")

2 - What is the best way to recompile the original .apk file from stock rom 5.0.1 - not deodexed?

2.1 - After recompiled the .apk file with option 2, it's better also use the option: "17 - Zipalign App"?

3 - In this tool it's possible edit .apk file with odexed files and keep them?

3.1 - Because after decompiled the .apk file, I not found the folder smali (need for another mod) and from the research I did, this folder is in odex files (SystemUI.odex.art.xz and SystemUI.odex.xz).

Sorry for the nobs questions and thanks ;)
[Android Themes] Thebear j koss:
To edit smali you would need to deodex the apk. If you are going to be modding things I suggest you switch to a deodex rom. It is just easier and running an odex rom is not really quicker or better on battery than a deodex. It:'s basically just a slightly quicker boot time.

Recompiling system apks should be built by keeping original signature unless following a guide that may tell you different and you have signature verification disabled. I don't zipalign after recompile, I don't believe it is necessary.

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Themes] Ticklefish:
So I'm getting the same error you are.

invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res values-mcc9460-mnc9000
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res values-mcc9466-mnc9999
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res values-mcc9724-mnc9999
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res values-mcc9998-mnc9999

This isn't the fault of your setup or apktool or anything that you're doing...this is the fault of MIUI themselves.

They're added some folders that aren't part of the usual Android setup so apktool doesn't know what to do with them. Because MIUI isn't open-source, this sort of thing can sadly happen a lot.

Personally I'd recommend just deleting those folders and trying again. The chances are that you'd never be in a situation where your ROM would use the files in these folders anyway..

Thanks for your thanks! That's very appreciated. :highfive:

I'd answer your questions but I think [MENTION=4916750]Thebear j koss[/MENTION] got there first. lol
[Android Themes] MaFiBoSS:
So, what better way to deodex a lollipop ROM (already installed on the smartphone)? This tool not support, right?

Thanks :)
[Android Themes] Ticklefish:
This tool does support deodexing of Lollipop files.. ;)

Lollipop is still relatively new so I can't guarantee that you'll be able to deodex every single file but you certainly should be able to deodex those whose smali you want to mod.
[Android Themes] 22sl22:
Yeah I know MIUI always has to be difficult, it is actually open source now, Mi Code on Github :good:

I found this MIUI Apktool but it still fails:

http://en.miui.com/thread-21467-1-1.html

Actual download link:

https://www.dropbox.com/s/a89wd1c09x8wqws/MiTools APK Decompiler.tar.gz?dl=0

It has the same error or --------------------------------------------------------------------------

mitool_3.0 alpha |01/05/2015 -- 14:45:12.10|

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

'mitool_3.0' is not recognized as an internal or external command,

operable program or batch file.

---------- Post added at 01:41 PM ---------- Previous post was at 01:12 PM ----------

[MENTION=4315551]Ticklefish[/MENTION]

It works :)

Thanks for your help. After switching to MIUI Apktool files and deleting the folders and some other ones it compiles now. Just got to change the signature and it should be OK

Now it's just a question of seeing whether those deleted files will affect the rom when it runs. Fingers crossed it will work, i'm gonna test tomorrow :good: :good:
[Android Themes] Ticklefish:
It's open-source now? Oh good. :)

I've tried the apktools from your link and they both come up with the same error. In fact, they produce an even bigger error. This tool uses a modified version of apktool 1.5.2. so it doesn't recognise one of the new folders Google came up with...

invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res/values-largeui-xhdpi
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res/values-mcc9460-mnc9000
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res/values-mcc9466-mnc9999
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res/values-mcc9724-mnc9999
invalid resource directory name: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res/values-mcc9998-mnc9999

I think your best bet here is really to delete those "values-mcc*" folders and try it. The worst that will happen is your app will FC and you'll get a bootloop.
[Android Themes] Ticklefish:
Oops..didn't realise you'd edited your post! lol

Let me know what happens! :highfive:
[Android Themes] 22sl22:
lol that's fine.

MCC files may be something to with location/region in MIUI 6 based off a quick google search

I've got to go work in a bit so i'll test tomorrow and let you know what happens :highfive:
[Android Themes] MaFiBoSS:
Yep, I agree with you. :p

I trying use your tool for deodexing the next file "SystemUI.apk", following the steps on the first page (How To Deodex Your ROM).

I managed to successfully copy all folder/files (odexed) from my device to my pc and doing the backup file "SystemUI.apk ("TickleMyAndroid\user_files\BACKUP\_WorkArea1").

but the backup odex files, go to: "TickleMyAndroid\_WorkArea1\_deodex.

Its normal?

In this moment, I'm stuck in this step after selecting the file i want to deodexing:

Saying: [thinking] (more of 40 min.) :confused:

And the folder is empty.

You can help, please?

Thanks :o
[Android Themes] Ticklefish:
Hmmm...if you're seeing this screen:

...then TMA isn't doing anything. I'm not quite sure why it's saying THINKING when it isn't, I'd have to see what you did to get there.

Can you share your history.txt please?
[Android Themes] carl1961:
You seen this

https://github.com/BMc08GT/scripts

https://github.com/BMc08GT/scripts/blob/master/deodex-lollipop/README.md
[Android Themes] Thebear j koss:
[MENTION=2385676]MaFiBoSS[/MENTION] Why not just use an already deodexed rom instead of fighting with deodexing files and causing yourself more headaches? Is 1 not available for your device? And if you are following guides on how to do something, chances are it has already been done which makes life easier for you as well.

Thebe@r'$ G@L@XY

Support TBO and the continuation of inverted and transparent apps and look as cool as your phone with a TBO t shirt- http://teespring.com/teamblackout
[Android Themes] Ticklefish:
Oh dear, it looks like I made a mistake in the code..

2-02-2015@1522 --- "_WorkArea1\_deodex\[COLOR="Red"]ActiveFilename[/COLOR]" not deodexed

That ActiveFilename is the name of a variable, you shouldn't be seeing it in the logs. That might not be helping. Can you try downloading TMA again (or even just the .EXE file from the OP), try deodexing again and share the new history.txt please?
[Android Themes] Ticklefish:
Interesting... I think I might need to do a bit of recoding.

Bearing in mind what I have going on over the next few days, I should be able to get this done by Monday/Tuesday. In the meantime, can anybody link me to an odexed Lollipop ROM? The biggest problem I have here is that I don't actually have an odexed Lollipop ROM on any of my devices to test this on. So any help would be much appreciated. :highfive:
[Android Themes] 22sl22:
What devices do you have?

For my device, the nexus 4 I created a stock flashable ROM based off factory images (5.1) which should be odexed right ?
[Android Themes] Ticklefish:
Xperia Z (no stock LP ROM yet) and Xperia Mini Pro (only a deodexed AOSP ROM)..

That ROM should be odexed, I would think. If so, I need the system/framework/, system/priv-app/ and system/app/ folders.