yashsingh1/xdaforums huggingface dataset:
[Android Themes] DoctorQMM:
Gmail v4.6 recompile errors

T-Fish... hoping you can root-cause a compile issue. App is the newest Gmail update from Google (v4.6)... seems like it's giving many themers fits (it is thought that google used a new aapt tool). I took the new Gmail v4.6, and successfully decompiled... then immediately turned around and tried to compile it.. .and got the following (attached) log errors. Any insight... or are we just out of luck? . Here is the information you requested for analysis. Any assistance/insight you can provide is greatly appreciated:

What phone/tablet are you using?:

AT&T Samsung Galaxy Note 2

What version of Android are you running?:

4.1.2

What version of Tickle My Android are you running?:

V7.1.0

What sort of rom are you on? (I need to know about OEM roms as well. Things like Sense, Touchwiz, etc)

TouchWiz

What are you trying to decompile/recompile?

Gmail.apk v4.6

What resources apps have you installed?

framework-res.apk

twframework-res.apk

Are the files you're using odexed or deodexed?

deodexed

What mod are you trying to do?

at this point, just trying to recompile this apk without errors... decompiles fine... will not recompile.

Do your files work if you decompile, recompile and prepare them without changing anything?

No

What problems are you having? (Give me some detail here, don't just say "It doesn't work.")

Recompile errors (see log)

Please also copy and paste the log files for the files you're modding as well as the history.txt logfile.
[Android Themes] Ticklefish:
TMA does use a modified aapt by ibotpeaches, apktool's developer. I can always replace it with another one if there's something better out there..

In this case though I think it's an issue with how the apk was originally made. There are references to styles that don't seem to exist.

Sadly I didn't get a chance to look at it yesterday thanks to children who don't sleep. But hopefully I will today.

Well, if Google have done something different with this apk then you could be in for a wait until someone comes up with a version of apktool or aapt that gets around it.

What it's worth trying though is installing your resource apk's before you do your decompiling. That might make the difference here.
[Android Themes] Ticklefish:
I'll need your resource files as well... ;)
[Android Themes] DoctorQMM:
Thanks for taking the time to look at this... I tried multiple things.. all unsuccessful. Tried:

1. installing resource apks before decompiling... same errors

2. tried the "modified" aapt.exe (from post# 1683)... same errors

3. started over... re-installed TMA 7.1... pulled framework-res.apk and twframework-res.apk from phone...re-installed framework on PC... decompiled (up to this point, no errors)... then, immediately tried to recompile, same errors. see attached logs... not sure if that is enough for you to ascertain problem. Can provide my dropbox link to gmail_v46.apk file if you feel it would do any good.
[Android Themes] Ticklefish:
If you can share your files, that would be great. Then I can take a look and see what I can do. Although I suspect Google might have done something horrible here.
[Android Themes] princemouli:
while decompiling Gallery2 apk iam getting this error (see attachements )...............:crying::crying:

can any one help me..............................................................................

and iam using Tickle My Android v7.0

about my mobile iam using celkon A97i android version 4.0.3

*************************************************************************************************************************************************************************

********************************************************** Thanks In Advance ***************************************************************************************

*************************************************************************************************************************************************************************
[Android Themes] Ticklefish:
Please fill in the form from the op and include your logs. Then I can see what I can do to help you.
[Android Themes] Ticklefish:
I'm not completely certain because you haven't filled in the form like I asked you, you've just repeated your previous post, but it looks like you need to install a resource file to be able to fully decompile your SystemUI.apk. Have a look in your system/app and system/framework folders for any file with 'res' in its name. Pull it, install it, then try decompiling your SystemUI.apk again.
[Android Themes] princemouli:
iam not decompiling systemUI.apk iam decompiling Gallery2.apk ........................................

and iam getting this error......

Decompiling "Gallery2.apk"

With Tickle My Android

(tinyurl.com\ticklemyandroid)

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

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\narendra\apktool\framework\1.apk

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x02050062

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x02050062

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x02050062

I: Decoding values */* XMLs...

I: Done.

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

Decompile Not Successful!

and what to fill in the form from op i didnt understand.....:confused::confused: as iam new to xda.....
[Android Themes] Ticklefish:
You're right, I did say SystemUI.apk. I've been dealing with nothing but people with SystemUI.apk problems lately and I must have just been used to typing it! Lol

Anyway, 'op' means 'original post'. It's the very first post in this thread. If you look towards the bottom, you'll find a small form I created a while ago to help me help people with compiling problems. It, and the logs you provided, should give me enough information to work out precisely what's wrong and how to fix it.

Have you tried what I said in the previous post about pulling and installing other resource files before decompiling?
[Android Themes] princemouli:
i tried but again got same error.......
[Android Themes] princemouli:
brother her is the Gallery2.apk iam getting this error........( see attachments )
[Android Themes] adamslast:
I can not change toggle icons on stock maguro_JRW66Y_deodexed_rooted rom. Tickle scans framework and system ui files and says none of four kinds of toggle icons found. In which file should app. search toggle icons to change?
[Android Themes] Ticklefish:
I'll need your framework-res.apk and any other 'res' files as well if you want me to look at this for you.

Please fill in that form we've been talking about as well. I do need that information.

Hmm...it could be that you do need to decompile another apk...or it could be that your rom uses a different set of filenames for its toggles than those I've met before.

Can you share your files please?
[Android Themes] adamslast:
Firstly, your app. is great. Thanks. And then here the files are below.

btw, are there prewievs of your softkey icons in anywhere?
[Android Themes] princemouli:
brother [MENTION=4315551]Ticklefish[/MENTION] did you got any solution for my problem...............:rolleyes::rolleyes:
[Android Themes] Ticklefish:
No, that's why I haven't replied. I'm not at home yet so I haven't been able to take a look at your files. When I have I'll let you know. :)

Thanks, I'll have a look as soon as I can.

There aren't any previews yet, although you can see the icons in your USER_FILES folder.

Previews are a problem. There are now so many icons available in TMA that this forum won't let me show them all easily. There's a limit on how many images you can show in a post and I'm over it.

I'll find a way though.
[Android Themes] adamslast:
At last, I succeded to make all the changes but status bar transparency and toggles icons dont work. I choosed black for %100 transparency. Maybe i should choose white ? Anyway. it is a great job. :good:
[Android Themes] Ticklefish:
I had a look through all your drawable folders and you don't appear to have any toggle icons in them at all. Which suggests there might be another file you need to pull and decompile. What sort of device and rom do you have?

The transparent status bar only works if your rom is compatible with it. If you're using a version of Android above 2.3, which your icons suggest you are, you may have to do something different to get your transparent status bar. Best to ask in your devices forum.

Glad to hear you're enjoying TMA!
[Android Themes] DoctorQMM:
Thanks.... I'll pm you my dropbox links for my resource files and gmail 4.6 apk
[Android Themes] cowsquad:
Tickle fish, have you heard of xposed framework and its modules. That is a really neat tool that makes modification to any aosp ROM without dealing with decompiling and all that.
[Android Themes] Ticklefish:
Yeah, I'm unable to decompile this as well. It looks like you need a particular resource file for this..and you haven't got it. For the moment, it doesn't look like I can help here. I'll ask the dev of apktool and see if they can come up with something. Sorry about that.
[Android Themes] Ticklefish:
I have indeed. And I'm running it on my XZ. It is very cool...but I still prefer to make my own modifications if I can. But there's no reason why people can't do both! :D
[Android Themes] :
Brother,

Check your tw_status_bar.xml at line no. 35 is saying mismatched tag. So that's causing error. TMA is my favorite tool and so it never given me any error and till date I built around 42 mods and more than 70 systemui.

Thanks a ton to [MENTION=4315551]Ticklefish[/MENTION] for this great tool.
[Android Themes] :
Try with this status_bar.xml. Extract the zip and try to recompile. If errors comes again then show the screenshot of the error again here.

I will be waiting for the results.
[Android Themes] MR.Volkf:
WORKK!!! :D and can you help me to move the clock from right to center? and you now how to change background transparency?:o
[Android Themes] iPusak Gaoq™:
Hmmm...sometimes the best way to recompile apk without having those error is to delete public.xml first....TMA will automatically recreate that public.xml for you....what ever modified you have make the best way is always to delete public.xml....

now after deleting public.xml and error still appears while recompiling, then there something wrong with you apk not TMA...
[Android Themes] :
Yes ofcourse I know these things. But I can do this by tomorrow. Currently in office and escalation have started. so please.... Understand.
[Android Themes] nendoroid:
SystemUI.apk recompile error

TickleFish,

I believe the issue regarding my error is due to my environment. Could you specify what Java runtime environment you are using along with OS and any other programs that I may be missing? I have deducted this because even with the stock ROM for the S4 .
[Android Themes] princemouli:
brother [MENTION=5473421]nendoroid[/MENTION] you should use jre7 and be sure u edited the environment variables ............

and also u should first install your framework-res.apk in ur pc to do any thing.............
[Android Themes] Ticklefish:
Wow...that's a lot of mods! Glad to know you're liking the tool!

Want to know how to move the clock into the center? Have a look at my tutorial! It's a lot easier than you may think!

I generally recommend not deleting public.xml..or touching public.xml at all, to be honest. The problem is, TMA will make a new one but there's no way to ensure that the hex references inside it will all be exactly the same. They might...they might not. And if they're not, your smali will refer to the wrong things and the app will misbehave.

Thanks!
[Android Themes] MR.Volkf:
of course i was do that tickle fish but not work :crying:
[Android Themes] Ticklefish:
What didn't work?
[Android Themes] :
No Sir,

Actually I didn't like this tool. Cause it deserve more than the liking. I am praising this tool. And even it deserve more than praising as well.

At first I was using Apk Tool by Sir @rizal M Lovins (Re-packed by him).

Then Apk Multi-Tool replace it, then I found VTS (Virtual Ten Studio) that replaced Apk Multi-Tool.

But then suddenly I found TMA and it replaced All others from my lappy. And Now from 8 months Never found any tool that can really replace TMA.

Its the easiest & most innovative and updated tool for noob like me.

So Hats-Off to you Sir. :good::good::good:
[Android Themes] hokage20xda:
"device not found when using tickle my android"

"device not found when using tickle my android"

can anyone help me?

im running window xp and have already installed jre......?

trying to decopile my galaxy y system ui.apk using

tickle my android but everytime trying to pulled and install systemui

an error occured saying device not found

newbie here
[Android Themes] :
thanks for this amazing tool.

it replaces apktool and works great

keep up this wonderful work :good:
[Android Themes] Maurice5813:
so will this work for CM10.1 and cm10.2?
[Android Themes] :
Talking about TMA then yes its working for CM10.1 and AOSP 4.2.2.

Just got my small Apps port for my device. Thanks to TMA.

About 10.2 I can't confirm you on this.
[Android Themes] dbgt87:
Hi man Tickle...

with the newest version i can't create standard zip file...any idea?
[Android Themes] :
tell us about your steps using TMA and we can help maybe.

look at this video on youtube HERE

after looking everything should work for you too :D

p.s. the Theming-Menu is self-explaining
[Android Themes] Ticklefish:
Well, that's awesome to know! TMA takes up a lot of my spare time (it's quarter to three in the morning right now) and it's nice to know that it's appreciated. :good:

Well, the first question to ask is have you been able to pull any file from your phone?

If not then it could be down to one of the following:

You don't have the right drivers for your phone installed on your PC.

Your phone doesn't have USB Debugging enabled.

Your phone is in the wrong mode. If you're in MSC, swap to MTP. If you're in MTP, swap to MSC.

Your phone isn't connected. Sounds silly but it does happen.

Your USB port isn't working as it should.

Have a look at the above list and see if any of those fix your problem. It may also be worth turning off the PC, turning off the phone, turning on the PC again, connecting the phone and turning that back on again.

Let me know what happens!

I will do! Thank you for thanking me!

I haven't had a CM rom in a long time and I've lost track of their version numbers. But if 10.1 is based on 4.2.2., then TMA should have no problem with it. 10.2 seems to be based on 4.3 which is still a little new for apktool. But give it a try and see what happens.

What I could do with knowing is what precisely you mean by you can't create it. Does TMA give you an error message? Does it give you no error message but also no zip?

What actually happens?
[Android Themes] hokage20xda:
recompile error

Hi there Mr. Tickle

just want to thank for the time and effort

to answer those question.....anyway...

simehow i manage myself to fix the error i had

before......but new error arises when trying to recompile

back my systemui....

i dont have any idea what to do

after editing those .xml file with notepad and save/ overwrite

those existing file and tried to recompile an error occured

what am i missing?
[Android Themes] Ticklefish:
You're missing the form from the op. :)

Have a look in the first post. There's a form there that you can fill in if you're having compiling issues. Don't forget your logs as well!
[Android Themes] dbgt87:
TMA give me an error that say " Error! ZIP file not created!"

Im on XPeria z stock .67 rom,

i installed systemui and SemcGenericUxpRes

i decompile it and tried to recomplie without changes.

recompiling done but not created a standard zip file
[Android Themes] Maurice5813:
Could I use this without my device, just the needed apk files?
[Android Themes] Madaditya:
So just take the apk from output folder

And create flashable using Tma's old Universal flasher?

I guess Ticklefish gave us 2 flashable zip options as he updated.

So try that

Or use this

http://xdaforums.com/showthread.php?t=2187344

I find it pretty handy

Of course,i Never connect my device :p

You need framewor-res.apk,framework2.apk(like SemcGenericUxp.apk for xperias) systemui.apk for installing in apktool

And the apk you modding
[Android Themes] Ticklefish:
Curious. What address are you trying to make zip files in? It may be worth setting the tool to make zips in 'C:\' just in case it's a connection trouble.

Yup!

First of all, thanks for your post. That's the perfect way to report an error!

It looks like your zip isn't flashing correctly. Is it possible you can share what your phone says when you try flashing it?

It's possible that you might need to make a standard zip, instead of an advanced one.
[Android Themes] DigHayter:
Thank you :D creating it as a standard zip worked. I'm not sure why I convinced myself that it should be advanced.

Thanks again and keep up the excellent work :good:
[Android Themes] dbgt87:
done.....it was output folder the problem...only one thing

how can resize the battery icons?

and change the clock color from withe to ics blue
[Android Themes] shiroanduchan:
Could TMA change android smiley / emoticon codec ..

My problem is my android has a nose in it's smiley :( and it really bothered me, since my wife using blackberry :( and I'm using Android,

My intention is to having the same icon as my wife does,

Beg you plizzz help me:crying:

My phone is samsung galaxy young GT-s5360
[Android Themes] badtreep:
Recompiling "SystemUI.apk"

With Tickle My Android

(tinyurl.com\ticklemyandroid)

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

I: Smaling...

I: Building resources...

C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\res\layout\msim_status_bar.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/statusbarleftside').

C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\res\layout\msim_status_bar.xml:15: error: Error: No resource found that matches the given name (at 'id' with value '@id/statusbarrightside').

C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\res\layout\msim_status_bar.xml:16: error: Error: No resource found that matches the given name (at 'id' with value '@id/statusbarinsiderightside').

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\DOCUME~1\badtreep\LOCALS~1\Temp\APKTOOL6847555012234710527.tmp, -I, C:\Documents and Settings\badtreep\apktool\framework\1.apk, -S, C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\res, -M, C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)

at brut.androlib.Androlib.buildResources(Androlib.java:283)

at brut.androlib.Androlib.build(Androlib.java:206)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

at brut.apktool.Main.main(Main.java:79)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\DOCUME~1\badtreep\LOCALS~1\Temp\APKTOOL6847555012234710527.tmp, -I, C:\Documents and Settings\badtreep\apktool\framework\1.apk, -S, C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\res, -M, C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\DOCUME~1\badtreep\LOCALS~1\Temp\APKTOOL6847555012234710527.tmp, -I, C:\Documents and Settings\badtreep\apktool\framework\1.apk, -S, C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\res, -M, C:\Documents and Settings\badtreep\My Documents\Downloads\Programs\TickleMyAndroid\_working\SystemUI.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)

... 6 more

what seems to be the problem here?
[Android Themes] Ticklefish:
The problem is that you have three id's in your xml that aren't declared in the apk file. Or, to put it another way, they aren't in the apk's public.xml.

All you need to do is replace '@id' on those three lines with '@+id'. This will make the compiler realise they're new and it will put them into public.xml.

I had a feeling it was.. :)

If you want to change any of the icons, all you need to do is change the png files. You'll find them in your 'user_files\ICONS' folder.

To change the clock colour is pretty easy. Have a look on my profile for a tutorial I made about it.

TMA can change emoticons, yes. There are some already supplied with the tool. If these don't look quite the way you want them to, you can either edit them yourself (see higher up this post) or you could even try making your own.

The advanced zip is great..but not every recovery will work with it. I have a Mini Pro and it works on my phone..but I bet I have a different recovery than you!
[Android Themes] drganbds:
Ticklefish first I want thank for this awesome friendly program it's mind blowing...

Now my request is please add 'change icons' support for touchwiz.then it will be a complete theming program.

Thanks in advance.
[Android Themes] badtreep:
ok, i successfully recompiled my SystemUI. but the problem is that it shows an error that it isn't prepared for flashing. what should I do? thanks!!
[Android Themes] Slicc98:
Having some problems...

Before I get flamed for not reading through all 175 pages, I didn't have the time to do so. I'm on a break from writing three college papers and I am trying to get to a 5x6 TW layout on my rooted N900A. But to do that, I'm reading that I should get TMA.

In clicking the icon in the unzipped folder, it says I am missing the .bat file. I assume that's a batch file.

Can anyone point me in the right direction? I would greatly appreciate it.
[Android Themes] :
Brother,

Copy the whole TickleMyAndroid Folder to "C" drive like this --->> c:/TickleMyAndroid

If you get more problem do let me know.
[Android Themes] Ticklefish:
I'm always happy to add new features if I can. Which icons do you want to be able to change?

When do you get that error?

Somebody asks about this about once a month. I guess I need to rewrite the installation instructions in the op to make it clearer.
[Android Themes] Madaditya:
Samsung Devices possibly have the icon names starting with

tw_stat_sys_*.png

Unlike our standard naming

Mayb he's asking for the prefix support if we modding a tw systemui?
[Android Themes] Ticklefish:
Really? There would have to be one company that does things differently, wouldn't there? :rolleyes:

Oh well, if that's the case, I can fairly easily program in support for that. It would help if the previous poster (sorry but I'm using the xda app so I can't see the post while I'm writing a reply so I don't know your name) could share their apk files. Then I could see precisely what Samsung do with their filenames.
[Android Themes] Madaditya:
My mistake !

just scrolled few samsung threads

they are normal

saw here

making 1% battery animations part

http://xdaforums.com/showpost.php?p=39469031&postcount=1

Mayb launcher icons?

Dunno what [MENTION=2067729]drganbds[/MENTION] wants to request? :confused: