yashsingh1/xdaforums huggingface dataset:
[Android] tommytomatoe:
Thanks senor! I'm rocking this wallpaper out :-) I like it

http://ilnanny.deviantart.com/#/d3kov7c
[Android] CleveRuse:
Hey, I sent u a bunch of PM's, LOL, I think two really. Just wanted to say thnks for the help. I haven't tried ur advise on the .9pngs yet but I'm sure if it doesn't work that its still user error;)

The advise on recompiling worked perfectly tho, thnx! ur the F'n man!
[Android] CleveRuse:
Yep, .9's r fixed. Thnx again. My question bout creating different patches that "touch" is one of the PM's I sent u.
[Android] tommytomatoe:
Hey Cleve. I'm at work. But answering a couple pm's right now lol :-)
[Android] sharkie405:
Just wanted to put my little 2 cents in on how great it would be to have a Windows version. :)
[Android] tommytomatoe:
It will be available in the future. I want to Complete all/mist features for Unix before converting sscripts to work on windows. Most likely I will use cygwin which will inky require minor edits. Stay tuned and thanks for your interest. :-)
[Android] wildstang83:
Hey Tommy, I posted on your thread over on the mik. Would it be easier if I posted future questions here? I was still waiting on a response is all. I'm kinda stuck, heh.
[Android] tommytomatoe:
Hey man! I knew there was something I needed to do. Lol. I'm getting off work in like half an hour. I will answer any and all questions then. Also...plan to see v1.0.2 tonight also :-)
[Android] wildstang83:
Oh man thanks Tommy. Can't wait bro.:)
[Android] tommytomatoe:
Hey man. Just got home. Getting ready to work on a couple scripts. Let me know when you're ready for troubleshooting.

tommytomatoe@gmail.com
[Android] marriedman624:
OK Tommy. Got my virtualbox Ubuntu 10.10 up and running. Also set up AndUtil so will give it a go either today or tomorrow. Will let you know how it goes.

One question, when i type andutil in terminal it says command not available. Do i have to move andutil script file to the home directory?

EDIT - Nevermind, typing andutil in terminal works now.

Sent from my Synergized Evo4G
[Android] tommytomatoe:
Sweet! Glad you got it working. Sometimes it takes a reboot/log off to get the PATH going. I use an alternative method to add au to your path. :-)

Let me know how it goes for you!
[Android] fowenati:
For some reason it wont sign this APK, I edit the background to be transparent for the widget and made the icon blue, but when I sign it and then verify it, it wont work.

edit nvm i found out i cant change the APK name before i sign it :P
[Android] marriedman624:
Good News, I was able to get my dual boot set up and my network card works in Ubuntu now.

So I tried the AndUtil but adb isn't working.

Here is the error I get when trying to remount:

Press [enter] or [space] to adb remount, any other key to quit

Initiating...

/home/marriedman624/android-utility/utility/ttadb: line 128: /usr/local/bin/adb: No such file or directory

What do I need to do to fix this?

Edit: If I go to usr/local/bin, I see the adb executable file??
[Android] tommytomatoe:
For Linux you have to do something special. Before running adb there is an option in my adb manger. It is E or I. Run that first. Its for when you get permissions denied or other issues.

in Linux you need to set up adb differently but android-utility uses a workaround. :-)

I'm glad yyou have it working man!
[Android] tommytomatoe:
Sweet!
[Android] Jsmokey:
Hey just wanted to say great little utility you made here tommytomato been looking for some good os-x tools to work with on my hackintosh, snow leopard is my favorite os, things just are so much easier and faster to get done and with ntfs support it saves alot of time in my previous coding projects in Python, Java etc but I've been lacking tools for os-x to help me with android glad to see this and hopefully there is more to come not just from you I mean but the community in general. Again thanks and I will be trying both the mac and linux versions out on my quad booting machine, I'll let ya know what I think and if I notice any problems on either snow leopard, leopard, or ubuntu ill let ya know. I might even give it a go on my Anti-X linux laptop to see how it works out on there as from what I read in here the only other linux distro it looks like its been tested on is ubuntu and mint.

Sent from my Samsung I897 w/ Andromeda 3 & 1.3ghz OC
[Android] marriedman624:
option A is for "no permissions", but I still can't get it to work

Screenshot (I didn't want to post here since it's so big)

Screenshots shows the error and also shows that the file really does exist.

If I try option E: Go to Express menu; I still get the same error.

Any help?
[Android] tommytomatoe:
Thanks for the kind words. Definitely let me know how everything goes!
[Android] tommytomatoe:
Interesting Mr Evans. so have you tried to run option A first? I haven't seen this happen before.

Lets start with some basic troubleshooting.

Open a new terminal.

Type "adb" without quotes.

See what you get. Please post output. We'll get this figured out :-)
[Android] tommytomatoe:
Oh marriedman one more thing...

Type

echo $PATH

Tell me what you get
[Android] absolutzero1906:
Tommy great tool. Now if I could just get it to recompile. I only changed one image in the Rosie.apk. I saw you said put it in the multi folder and use option 3 to decompile and option 5 to recompile, but keep getting no vaild project. Do i still need to put a framework for this or what am I do wrong?
[Android] tommytomatoe:
before you decompile you need to install frameworks with option. Place framework res.apk and com.htc.resources.apk in framework_here. Then use option 1. Then decompile. Then recompile.

When playing with proprietary apks you always need frameworks!!!

Hope that helps.
[Android] absolutzero1906:
Got ya I will give it a shot thanks.
[Android] fowenati:
Getting an Error with Decompiling APKs, heres a screenshot:
[Android] tommytomatoe:
Have you ran the install guide?

Please type this in a new terminal and paste results :

echo $PATH

Also type this:

which apktool

Thank you!

Edit!!! Apks cannot have spaces! Your apk seems to be called "TP signed...apk"

Rename it to something without spaces like "TP_signed....apk"

That will resolve all issues.
[Android] fowenati:
THANK YOU. I always make stupid mistakes.

edit: nvm didnt work.

I think I have the path right but maybe APKTool isnt installed correctly seeing that nothing happens after which apktool
[Android] tommytomatoe:
You're right. After "which apktool" You should get an output "/usr/local/bin"

Do this. I included an apktool installer in AU. Just go to apk re-engineering and select install new apktool.

Let's try that.
[Android] fowenati:
Here's what I get, something else goes wrong.
[Android] tommytomatoe:
So weird. It says you don't have a /usr/local/bin...which operating system and version are you on?
[Android] fowenati:
OSX Snow Leopard 10.6.8

I did a clean install of it less than 2 weeks ago so the sytem's file structure isn't altered.
[Android] tommytomatoe:
What do you get when you type "apktool" in terminal again?

You might have to enable superuser for yourself first. Let me give you a link in a bit. I'm at work.
[Android] fowenati:
Alright, here's what I get when I enter apktool into terminal:

-bash: apktool: command not found
[Android] tommytomatoe:
Okay. Please hit me up on gtalk if you use it. If not its okay. Same as my xda user name.

Next type this

cd /usr/local/bin
[Android] fowenati:
added you on gtalk

also it gives me a not found error
[Android] tommytomatoe:
That is super strange. /usr/ is a necessary directory.

When I get home I will link you to how to get superuser access.
[Android] fowenati:
Would I get that directory from installing the SDK?
[Android] tommytomatoe:
Lol. No sir. That is essential to the file system of the operating system. I'm sorry we didn't get this figured out for you. We will tomorrow. I'm off to bed.
[Android] tommytomatoe:
Hey fowenati

I just had an Epiphany!

You said your Mac OS is freshly install yeah?

That explains all our issues :-)

These are the commmabds you need to run before installing android-utility.

sudo mkdir /usr/local/bin

If that command gives you errors then run these in order:

sudo mkdir /usr/local/
sudo mkdir /usr/local/bin

That should do it! Because you have a clean install you haven't had apps that utilize the "/usr/local/bin/" directory yet. That directory is mainly for binaries and scripts that are user specific that don't affect the enyire ccomputer. Also...please be careful with "sudo". It is safer than "su" but if you mistakebly run a destructive command it is hard to recover. But if you ran the commands exactly as I posted you are good to go. Then after you run those commands, you need tto reinstall android-utility. That should solve all your issues!
[Android] fowenati:
Ahhh thanks! Worked like a charm!
[Android] fowenati:
Agh I seem to be having every problem possible, now it's saying my APK was not decoded properly in the decode log. I'm trying to edit Google Maps to edit the widgets text color in the XMLs.
[Android] marriedman624:
Did you install the framework files first?

What phone are you working on?

Sent from my Synergized OG Evo
[Android] tommytomatoe:
Perfect! At least now you can decode and actually use android-utility! So those instructions worked?

When I get a chance I will update the FAQ.

As for Google maps. You need to install framework-res.apk from the rom you got maps from. Actually to be correct you just need an updated framework-res.apk from a gingerbread rom (aosp or sense).

Place it in "framework_here". Run option 1 Install framework first. Then decode.
[Android] fowenati:
evo3d supra rom
[Android] marriedman624:
Open AndUtil and Select option 1) adb tools

Then pull the following apks

/system/framework/com.htc.resources.apk
/system/framework/framework-res.apk

Then open android-utility > working folder > mod-here-multi, and copy the two apk files into android-utility > working folder > framework-here

Then back in AndUtil main menu, select 6) apk Re-engineering

Then select 1)Install framework first

You should then be able to decompile correctly.

****NOTE: This is what I did for the OG EVO4G, so I am assuming those file are in the same location on the EVO 3D.
[Android] tommytomatoe:
Thanks Mr Evans. I will update the FAQ later today.
[Android] marriedman624:
No problem, just doing what I can to help out.
[Android] tommytomatoe:
I've added a FAQ. Thanks to all those who reported issues. and Fowenati...I used your screenies :-) Thanks.
[Android] fowenati:
Ahah no problem, just wondering though, the apks iv edited, and signed (with a test key) wont install.

EDIT: I found out there was some discrepancy with an image I edited in the apk. Don't know how would I fix this, you got any idea?
[Android] tommytomatoe:
I'm not sure but will help. Please answer these questions.

1. What apk?

2. Third part app or system/app

3. Are you sure apk Decompiled properly?

4. What did you modify? Pleas be specific

5. Are you sure apk recompiled property?

6. If signed what was the message when you choose the option to sign with testkeys?

7. How are you installing new apk? Ie. Via adb or sdcard+astro?

8. When you say it won't install...what is the error message? There are numerous ones.

Btw you're awesome! You keep giving me ideas. I think I might use those questions as template for all future troubleshoiting :-)
[Android] fowenati:
1. GO SMS

2. Third Party App

3. I didnt decompile, I edited the APK with better zip, it worked on other APKs for me.

4. All I modified were some PNGs

5. N/A

6. It said it signed the APK, but when I went to verify it it wouldnt install and said that an image was causing it

7. Via SD Card + Dropbox and also via root explorer

8. It just said APK not installed, normally I get this with unsigned apks, which i think the APK wont sign because of the image for i dont know what reason.

Gonna try decompiling so that when it recompiles maybe it will rewrite the apk so it accepts the new images (possibly because they are different resolutions).

btw thanks for helping me so much, glad im giving you ideas and helping out!
[Android] tommytomatoe:
Okay. I have some ideas. Try one at a time.

1. Delete the original "META-INF" folder in the apk before signing. Sometimes if there is an existing signature it won't sign.

2. Are you 100% sure the new png has the same name as the original png?

I don't think resolution should affect the signing. I think the first method will resolve your issues.

Oh and one more thing, are you extracting the entire apk? If so...please don't. You need to only pull out the drawable folders. Change pngs. Place back. Save. That's my method when I theme png. I will incorporate this process on the future of AU. So that peeps don't need to purchase betterZip to do this. :-)
[Android] fowenati:
Decompiling and Recompiling Worked for me! So glad! Heres the edited APK if you want to check it out, I edited the Notification icons to Gingerbread SMS icons and then added some color to it

GO SMS Colored GB Icons
[Android] fowenati:
Yeah I think deleting the meta-inf would have probably fixed that, I'll keep that in mind next time! Hey another thing you can add to the FAQ! That's the same method I use, I wish there was a free program that could do this, but there isn't, really looking forward to the new version of AU !
[Android] tommytomatoe:
Awesome! Glad it worked! Will definitely try your mod. :-)
[Android] tommytomatoe:
Hey fowenati is that go SMS pro a paid app? If so..please remove the link. I understand yyou just wanted to show me your changes (and I like them :-)). But I don't want apktool or android-utility to be associated with pirating. Thanks man! But if it is a free app than please let me know so I can remove this post.
[Android] erickwill:
Problems to decompile/recompile

This tool seems to be really awesome, however, somehow I am not been able to use it successfully. I mean for decompile and recompile I got the following errors:

Decompile:

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: /home/erick/apktool/framework/1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.

Comment: The framework-res.apk was installed successfully.

So probably I will have problems to recompile as follows..

Recompile:

Android Utility did not find a valid project

Please press [enter] to continue

Please... any advice?
[Android] tommytomatoe:
Please answer tthese questions.

1. Which apk are you modifying?

2. Did you read the FAQ?

3. Which rom/device are you on?

You are halfway there. Besides framework-Res.apk you need one more framework. If it is a Sense rom you need com.htc.resources.apk also.

Here is your error:

Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.

Framework-res is id: 1.

You have that.

But you also need id: 2. It is either com.htc.resources or twframework.

Let me know how it goes :-)

And if it won't decompile, android-utility won't waste your time....It will tell you that can't recompile.
[Android] erickwill:
Hey buddy,

Thanks for your promptly reply. Let me answer according your questions:

1. I am trying to modify settings.apk, conversation.apk and phonebook.apk

2. Yes I already read the FAQ but there is no answer for this specific question, since my phone is a Xperia X10, I have no idea about which apk shall be the one for my phone.

3. Xperia X10

Thanks and Regards,

Erick
[Android] tommytomatoe:
Sweet. I will add your device in the FAQ. Here is what I think you should do.

Open your rom up and look in the folder "system/framework". There should be two files that end in .apk. Framework res and another one, specific to the X10. Please tell me the name of it. Unfortunately android-utility does not have support for it yet...

But I can give you directions when we get there.e
[Android] tommytomatoe:
Awesome man! Glad you found it.

Android-utility is only written to handle two different files (framework res and com.htc.resources). Reason is I own htc and haven't had anyone with a non htc device before. Glad I have you though :-)

The next version will for sure include support for " SemcGenericUxpRes.apk".

But...it doesn't mean you can't use au right now. ;-)

Do this and au will be able to decompile your apks.

Place both frameworks inside framework-here.

Run these commands :

cd $HOME/android-utility/working-folder/framework-here
apktool if SemcGenericUxpRes.apk
apktool if framework-res.apk

Now run andutil. Just run the apk re-engineering suite. Decompile with Option #3 .

Should work :-)

Again, version 1.0.2 will add support for x10 devices as well as touchwhiz if I can get a hold of a Samsung user.

PS. I'm not 100% sure if it is "framework-here" or "framework_here". I can't remember which one I used. Lol.change my commands above accordingly. I'm out of town.
[Android] CleveRuse:
alright Tommy, i havent bugged u in a while,lol! this is the error i get when trying to recompile framework-res.apk:

first this:

Android Utility found these Projects:

framework-res

Would you like to build all the projects? [Y/n]

Building framework-res

W: Could not find sources

I: Building resources...

then this:

ework-res/res/values/public.xml:3339: error: Public symbol drawable/stat_sys_r_signal_1_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3340: error: Public symbol drawable/stat_sys_r_signal_2_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3341: error: Public symbol drawable/stat_sys_r_signal_3_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3342: error: Public symbol drawable/stat_sys_r_signal_4_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3343: error: Public symbol drawable/stat_sys_ra_signal_0_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3344: error: Public symbol drawable/stat_sys_ra_signal_1_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3345: error: Public symbol drawable/stat_sys_ra_signal_2_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/r.................

it goes on like that for a while.

Im placing framework-rres.apk in the 'mod-here-multi' folder, then using option 3. i edited some colors in some xmls, fixed some 9patches, then chose option 5 and thats wut happens every time.

note: i do have both framework files uploaded if it makes a difference to know.
[Android] tommytomatoe:
Hey Cleve! Did you install framework files with option #1 first?
[Android] erickwill:
Hey buddy,

Thank you very much for your assistance!

I will try to use your tool.

Once more, thanks!

Keep up the nice work!

Regards,

Erick
[Android] tommytomatoe:
Okay. So we are good and up to date. Good to know it is beginning to decode. :-)

Your first error has nothing to do with android-utility. The apk has bad 9.png. there is no clean way to fix them. The best way is to get the original 9.png (all that are listed in the error) and place them in apk before decompile.

Your second apk is settings.apk. That one is fun! That can be resolved by using a different apktool version. AU gives you option to choose between 1.3.1, 1.3.2, and 1.4.1. Try them all. Settings apk has always given me trouble also.
[Android] fowenati:
hey tommy saw u were looking for a samsung user and i happen to have quite a bit of friends with the vibrant/sgs4g im actually helping them root theirs this week so if you need the two frameworks from the phones i could get that for you :)

edit: or i just remembered you may be able to extract the frameworks from a touchwiz rom from the sgs / sgs2 forums.
[Android] CleveRuse:
lol ....NO (insert BIG DUMB SMILE) i thought i only did that when it was first opened up and theyed just sit there ....yeay, that maeks much more sense ....guess thats why its option #1 ...and says to install framework-res first!;)

alright, well, just wanna keep u on ur toes. that was a good answer ...U passed my test;) :)
[Android] CleveRuse:
k, framework installed. then i place a copy of that same framework in 'mod-here-multi', then choose option #3 (also choose to decompile the META-INF), then i choose option #5 just to see it will work .....it does not. this is wut i get:

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

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

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

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL9089442367504211404.tmp, -x, -S, /home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res, -M, /home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/AndroidManifest.xml]

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

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

... 6 more

lic symbol drawable/stat_sys_ra_signal_1_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3345: error: Public symbol drawable/stat_sys_ra_signal_2_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3346: error: Public symbol drawable/stat_sys_ra_signal_3_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3347: error: Public symbol drawable/stat_sys_ra_signal_4_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3348: error: Public symbol drawable/stat_sys_secure declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3349: error: Public symbol drawable/stat_sys_signal_0_cdma declared here is not defined.

/home/ab/android-utility/working-folder/mod-here-multi/Projects/framework-res/res/values/public.xml:3350: error: Public symbol drawable/stat_sys_signal_1_cdma declared here is not defined.

.......

Edit: oh, and here is the last part of the error

of the error:

`framework-res.apk' -> `original_apps/framework-res.apk'

cp: cannot stat `framework-res/dist/*.apk': No such file or directory

Please check build_log for apk with errors

Please press [enter] to continue

i just rebuilt 'resources.apk' no problem. its definitely the framework-res.apk ....i think. i dont know wut "area is undefined" means when its talking bout the xml's. the error goes on for a while. the numbers for the specific files listed seem to be in perfect succession so i think its every xml from /res/drawable

hey, when do i install framework? Cuz i wasnt doing that for other apks, cept for SystemUI.apk. Is that only for framework apps? should i do it everytime i wanna re-build an app?

and it goes on and on. i can post the whole thing if u like.
[Android] fowenati:
Hey tommy just letting you know that deleting the META INF Folder did work for letting it sign, thanks!
[Android] tommytomatoe:
That's odd.

You want to install framework before decompile. Also you usually need both (com.htc.res and framework res).

Try installing both then run option 3. Also, try another apktool.

And one more thing. Post your apk here. Against I think you might need com.htc.res installed also and also try a different apktool (Option a).
[Android] tommytomatoe:
Sweet! I will add this to FAQ when I have time to update. Lol