yashsingh1/xdaforums huggingface dataset:
[Android] tommytomatoe:
Lol. Each apk has languages built in. They're packed in resources.arsc. They are the values-xxxxx folders, where xxxxx are the languages.

It's okay to get the strings errors. It just means, most of the time, that there are no default translations for the apk. Like I said before you can usually ignore them.

tapatalk signature here. lovely.
[Android] CleveRuse:
Ok, well I know ur prolly busy, but I'd like to send u these two apks to see if u can get them to recompile. It's tough for me to fix errors without getting warnings (cuz the above error is the only errors I'm getting) As always, I have all the time in the world so if it takes a wk or two that's fine. I'd really appreciate it ...lemme know.
[Android] tommytomatoe:
Post your files man. I just need the usual, frameworks et cetera. I'll find time to hook you up.

tapatalk signature here. lovely.
[Android] CleveRuse:
...removed...

Wow, I just switched out apktools n aapt and all is gravy ...so far

I'm such a noob! Lol, don't even pay attn to my posts.
[Android] llohcyoing:
hi tommy....great works...congrats...

i decompile apk without touch anything i receive an error when i recompile apk...

the error:

/home/llo/android-utility/working-folder/mod-here-solo/Settings/AndroidManifest.xml:1: error: Error parsing XML: not well-formed (invalid token)

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7082741192152939699.tmp, -I, /home/llo/apktool/framework/1.apk, -S, /home/llo/android-utility/working-folder/mod-here-solo/Settings/res, -M, /home/llo/android-utility/working-folder/mod-here-solo/Settings/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)

at brut.androlib.Androlib.buildResourcesFull(Unknown Source)

at brut.androlib.Androlib.buildResources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7082741192152939699.tmp, -I, /home/llo/apktool/framework/1.apk, -S, /home/llo/android-utility/working-folder/mod-here-solo/Settings/res, -M, /home/llo/android-utility/working-folder/mod-here-solo/Settings/AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)

this is a kang CM compiled by me...
[Android] tommytomatoe:
Lol. Glad you got it.

In light of cleve's experience I recommend changing apktool and aapt versions. The options are available under apk re-engineering.

Settings.apk is a tricky one. From the looks of your output you might have had an error when decompiling. But try building with a different apktool and see if that helps.

tapatalk signature here. lovely.
[Android] llohcyoing:
thanks mate... i'll try...
[Android] qv775219:
Hello,

Love how this Utility has everything pulled into one single location. Developers Dream! I just have not been able to get it to work on my machine. Ubuntu UE 2.9 = Ubuntu 11.04. Made sure JDK was up to date and tried all options of APK Tool and aapt. I can Decompile .apk fine but recompiling I always get errors. 2 different .apks I have tried and still same error persists. Heres a little bit of the error.

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

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

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

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/APKTOOL8101166176566708432.tmp, -I, /home/jon/apktool/framework/1.apk, -S, /home/jon/android-utility/working-folder/mod-here-solo/MiuiCamera/res, -M, /home/jon/android-utility/working-folder/mod-here-solo/MiuiCamera/AndroidManifest.xml]

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

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

... 6 more

Seen it posted before but thought I would share. In addition, I tried manually recompiling through terminal with apktool itself and still get the same error. Didnt know if you could shed some light on this.:)
[Android] tommytomatoe:
Hey there.

While I am the author of au, I am not the author of apktool.jar. That credit goes to Brut.all. That said, I can still try to help you a wee bit.

So, what apk is this? It would help to know that much. Based on the log above, either some resources are missing or the current version of aapt is not correct, but you mentioned that you changed that. Let me know which apk this is for and we can get you on your way.

tapatalk signature here. lovely.
[Android] qv775219:
MiuiCamera.apk and Launcher2.apk (both from latest Miui build)
[Android] tommytomatoe:
Did you install the miui framework res.apk? I'm not sure if miui roms have a secondary framework apk.

tapatalk signature here. lovely.
[Android] qv775219:
Must of skipped that step:o
[Android] syl3nt:
thank you very useful
[Android] tommytomatoe:
Let me know how it all goes for you.

You're welcome and thanks.
[Android] tommytomatoe:
Gave you your first thanks :-) Congrats.
[Android] Jsmokey:
Finally tried the new version tommy, great work on the new features; it almost makes me feel like I'm cheating on my work having everything done for me.

@Cleve we all have to start somewhere man and some of your posts have been very helpful to me with a few problems I've ran in to. Anyways glad you got it to work I've had to switch apktool and aapt on a few things, rare but it happens.

Maybe we should all get together the little tricks we've found to working on certain tricky apks and other parts of the tool and make a cheat sheet or something to add to the op to help people new to the utility.

On a different note has anyone had issues with some .9's breaking when editing and others being perfectly fine after?

Just curious, I have no problem doing my own patches, and sometimes I like to modify the patches anyways cause google borked some of the patches and they don't stretch quite right or could look a little better stretched a little different with my changes.

Sent from my cappy running my kh3 Anteres Darkcloud beta and my custom boog kernel at 1.3ghz
[Android] CleveRuse:
Hey tommy, how do u wipe AU's memory again? ...guess I shouldve paid attn when u explained that, LOL.
[Android] CleveRuse:
Btw, that'd be a great option to have as a number option. -U know wut I mean? (eg: option

#13. 'Wipe AU's memory')
[Android] CleveRuse:
....removed.....
[Android] DutchDanny:
I do a lot mod on Android 9patch png's

I optimize them to, but none have broken down here yet...
[Android] tommytomatoe:
Lol. Good idea. I'll add that to v1.0.8.

But in the meantime...from the main menu, select the installation guide. Then from there do first time install. And also run the create working folder option. Those two will start au from scratch.
[Android] Jsmokey:
Strange, I've only had a handful break but still its annoying and its made me get in the habit of loading all my .9's up into drawn9patch to make sure everythings good to go before recompiling.

Also had a few break after just color rotating a specific hue and in drawn9 the patches look untouched, I erase them and put them back exactly where there were and all is well.

Oh well guess thats just some of the headaches invoked in modifying .9's.
[Android] tommytomatoe:
Dear AU users:

I want to make a list of all the projects/themes/ROMs that AU helped make/optimize/perfect. If you all could be so kind as to post a link to your projects and I can put in op.

The goal: (a.) to demonstrate the scope of AU, and (b.) to show off all of your ideas and projects.

I would appreciate your help with this.

Sincerely yours,

Tommy
[Android] CleveRuse:
Haha, well too late. Wut i did was run au.installer thru terminal again (which I guess is the same thing)...but like a dummy I didn't backup:) So now its compiling properly but I'm no longer getting the auto-zipalign or auto-sign-inject options. Wutcha think I'm missing?

......LOL, I'm sorry T. I'm always screwing stuff up, huh!;D ;D ;D
[Android] tommytomatoe:
Lol you're all kinds of goofy bro!

That I'm not sure. Which version does it say at the au home screen?

What I would do, is delete Android-utility completely. Then download the latest install script from my op. Then do it again.
[Android] Jsmokey:
Will do as soon as I get my beta ready to push. I themed quite a few apps for personal use with au but never released them. After I contact the authors I may put them out in a separate .zip since they're all themed to match it.

Great idea tommy and I'm sure everyone appreciates the help pushing our work out there and getting it seen.
[Android] k0sh:
when you wanna decompile SystemUI.apk files , you just rename them as

framework-res.apk and it will do the trick ;)
[Android] Jsmokey:
That was a random post, lol. And I've never needed to rename systemui or any apk to decompile them.
[Android] renzo.olivares:
Thnaks for this utility Tommy!!!
[Android] tommytomatoe:
Thank you man. Glad to be of help :-)
[Android] Lozone:
This has helped me out a lot.

I can't wait for M10 tool implementation.

Thanks a bunch.
[Android] CleveRuse:
+1 on that

BTW, here's a link to 'Synergy Blues' as per request:

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

(Made entirely by AU)

...but it doesn't help that all screen's were accidentally erased from Photobucket! ....also, my OS is completely fried ....and I no longer have root on my bolt! ...yeah, I'm in pretty bad shape these days, lol.
[Android] s2d4:
4YS31818U8645670V

Thank you very much for the Mac version.. Keep the updates coming tommy!
[Android] tommytomatoe:
Thank you so much man. :-)

tapatalk signature here. lovely.
[Android] rayford85:
Man I just found this Thread. Sounds like an awesome tool. I can't wait for the windows version.
[Android] CleveRuse:
Yeah, tell tommy to stop neglecting u guys, lol
[Android] absolutzero1906:
Donation sent 3X985092G99011923.

As I continue to learn things the manual way and then use your tool I definitely appreciate your hard work. It saves time and makes life alot easier. Just wanted to show some love thanks for the tools have a beer or two on me.
[Android] tommytomatoe:
Wow. Thanks man. Posts like this makes it all the more worthwhile to out time into this. Thanks a lot :-)

tapatalk signature here. lovely.
[Android] Jsmokey:
So how has things been going tommy, haven't seen much activity in here for a while. Any new plans or ideas for au? Been working with the new version the past couple weeks and I have to say this is one clean piece of scripting you've put out this time around.

I actually still use dsixda's kitchen by itself along with the built in one just so I can have two separate environments to work in so if things go hay wire in one it leaves me a backup.

Anyways my rom is getting closer to completion everyday all thanks to you and I just wanted to drop back in and say thanks and here's a link to a teaser for my rom's custom theme made with a ton of help from au.

xdaforums.com/showpost.php?p=19065808&postcount=82

Sent from my I897 w/Antares Darkcloud, Red Nebula kernel, & 1.3Ghz OC using Tegrak.
[Android] tommytomatoe:
Nice man! It's funny because I do the same. I use the kitchen inside au as well as one on my desktop.

Sorry for lack of updates in awhile. I've been busy with life and also on my Rom. Link is in my signature, EVO classic.

There's a handful of ideas I still want to implement in au. I just need to find a solid chunk of time.

But I'm happy to hear its been able to help you get things done. That's what its all about :-) Thanks smokey!

Sent for the EVO Classic.
[Android] CleveRuse:
Hey tommy, I'm now on ubuntu 10.04 (LTS -that was Ur suggestion, right?), and its way less buggy than Natty was ...but now I'm having difficulty installing au.

First, double-clicking the installer icon doesn't work ...so I tried opening with 'auto-run prompt' (cuz that's my best guess for the appropriate default 'open' app), but that didn't work either. So i simply ran it from the terminal (./au.installer) ...and that opens up the installation dialog, but then I get an error that basically says "u don't have 'git', and au can't install it". So i try installing it but then i just get more errors.

(I'm typing this from mobile so ill put the errors in the next post)
[Android] CleveRuse:
["cleve@cleve-laptop:~$ ./au.installer

Welcome to Android Utility

You don't have git. You need git. Installing git.

[sudo] password for cleve:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

> > > > > > > >

Checking for Current version of AU

> > > > > > > >

AU does not exist. Preparing to install.

> > > > > > > >

Installing AU with git clone

./au.installer: line 82: git: command not found

Error.

> > > > > > > >

dsixda's Android Kitchen does not exist, would you like to go ahead and install? [Y/n]

Preparing installation of dsixda's Android Kitchen.

> > > > > > > >

Installing Kitchen with git clone

./au.installer: line 106: git: command not found......."]

...so i try this:

["cleve@cleve-laptop:~$ sudo dpkg --configure -a

[sudo] password for cleve:

Processing triggers for man-db ...

Setting up odbcinst (2.2.11-21) ...

Setting up odbcinst1debian1 (2.2.11-21) ...

Setting up unixodbc (2.2.11-21) ...

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

cleve@cleve-laptop:~$ ./au.installer

W

elcome to Android Utility

You don't have git. You need git. Installing git.

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package git is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package git has no installation candidate"]

...but this fixes nothing ...so then i try:

["cleve@cleve-laptop:~$ sudo apt-get install git-core"]

...but after some packages are installed, the terminal fills up with this 'Java-License-Agreement' thing and theres no way to get out of it except to close the teerminal ...but that still doesnt kill the process, cuz even after opening another terminal, anything i try to install brings back this msg....

["cleve@cleve-laptop:~$ sudo apt-get install dropbox

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

cleve@cleve-laptop:~$"]

....and then im stuck!!!!

I've tried restarting my comp and starting all over but i just end up repeating the same BS! WTF?????????

NOTE: after installing the update packages for the JRE i received the same 'Java-License-Agreement' msg that doesnt have an option to 'enter' or 'exit' and i had to terminate, so maybe that is my whole problem ...but i dont know how to exit that license-agreement!
[Android] kylon:
Can i boot this with cygwin like the kitchen?
[Android] tommytomatoe:
Hey cleve. With the java screen thing, use the tab key to seleft yes/ok.

As for git, Google how to install it manually. My script doesnt like Ubuntu 10.04 for some reason.

_______________

No au will not work with cygwin. I did not write it with cygwin in mind. Sorry.

Sent for the EVO Classic.
[Android] TheNewGuy:
Hello,

I have been reading all over the web and learning a lot! This thread has been a big help! I am posting this question here as it seems that there are a number of experianced devs who post here. I have 2 quesstions...

1) I have been modding some of my apps to be themed with the built in "Wallpaper" theme included in CM7 framework. This requires me to edit the AndroidManifest.xml.

However anytime I do it makes the app disapear, because it it not signed correctly. I got around this by making the edit in the source and compiling the whole rom at once instead of using apk_manager. BUT there must be a way to take the sign key from my source and use it to sign apk individualy and still have them match..... is this possible? How would I do this?

2) This one is my big pet project.... I would like to use a random number in some of my animations... so I have read that there is a random number function included in java... but it means I need to edit/create a "method"? I can't simply edit the .xml's? Is this correct? If so..(or not) how do I go ablout doing this? Can someone give me some sample code or a point in the right direction?

Thank you very much for your time
[Android] CleveRuse:
Lol, thanks. I was just comin bak here to post that I finally found the answer. I've nvr run into anything like that b4. B4 finally finding the answer, I read in like 3 diff places that i needed to keep hitting the space_bar till I was prompted to hit ok, LOL ...musta hit that thing 300+ times;)

-yeah, I'm either upgrading to maverick, or LinuxMint11 ltr tonight.

Thnx
[Android] Jsmokey:
Mint is a very nice distro, I highly recommend it if you're looking for an ubuntu/kubuntu alternative or just something new to try in general.

Sent from my I897 w/Antares Darkcloud, Red Nebula kernel, & 1.3Ghz OC using Tegrak.
[Android] myn:
I see the installer does a git clone -b (see below)

The -b switch doesn't exist on my version of git and apparently I have the latest version.

I get errors upon running the installer

error: unknown switch `b'

usage: git clone [options] [--] <repo> [<dir>]

For reference here is my apt-get install output after installing git and it's corresponding dependencies

root@ubuntu:~# sudo apt-get install git-core git-gui git-doc git

Reading package lists... Done

Building dependency tree

Reading state information... Done

git-core is already the newest version.

git-gui is already the newest version.

git-doc is already the newest version.

Note, selecting gnuit instead of git

gnuit is already the newest version.

EDIT. Looks like apt gives you an older version then latest...

Downloading latest GIT and installing resolved.

Note to Tommy, May want to reevaluate installation strategy. The git clone is clever as it will always retrieve latest but for folks who don't already have git installed, an apt-get install will yield a lower version than what is required as a dependency to clone the particular branch.

Lets talk more about this over Gtalk.
[Android] tommytomatoe:
Expect some nice changes in the next couple weeks...
[Android] s2d4:
Awesome!! I am watching this space for sure.. Thanks once again for making my life easier :D
[Android] CleveRuse:
Hey tommy, how come AU doesn't identify bad patches when compiling apk's? The only thing I ever get is the "public symbol" error -and its ALWAYS ALWAYS ALWAYS due to bad patches. Its been making my life miserable for quite some time, lol;) I always need to go thru afterwards and find the .9s I just did (which is super difficult) and run them separately. Of coarse I should prolly just start off by doing that ...but would be so much easier if they could be identified when compiling the whole apk. AU would be perfect imo if it did that.

Btw, thnx for the update.
[Android] tommytomatoe:
Au doesn't because apktool doesn't when it compiles. But I will look into a way to do it.
[Android] Amin`:
Hi

I'm noob in ubuntu...

when I run au.installer it wants a password and when I write the half of my pass , the terminal says the pass is wrong! I mean the terminal doesn't allow me to write my pass completely...:confused:

plz help me:(
[Android] Amin`:
an error in au.installer:
[Android] Lozone:
Is there a way you can add the Sense m10 tool?
[Android] tommytomatoe:
@admin

When you write password in terminal.in Ubuntu it wont display what you're typing. Its for your privacy. So type it in when prompted and then press enter.

Which version of Ubuntu are you on?

This method of installation is designed to be foolproof. Run the script and enter password when prompted. That should be it. The password is required for installation of git. Since you're messing up that step that's why you're getting the second error regarding git not found.

Please try again.

PS. This was written on Ubuntu 10.04 and 11.04. I have not worked with 11.10.
[Android] Amin`:
I am mixed up:confused:..I'm a starter in ubuntu

there is a folder in my home folder that it's name is: "android-utility-BACKUP-09.03.54" and when I open "andutil" in terminal it says "please place android utility in home/am..."so I create a folder named "am" and place the folder in there but still no luck:(

I type in terminal: "nautilus $HOME" but nothing happens...

plz help Guys!
[Android] tommytomatoe:
Hey Amin.

It says "Please place android-utility in the directory /home/am before preceding. Thank you very much"

This means:

Pleace the folder "android-utility" inside /home/am/

So you shoudl have this:

/home/am/android-utility

Hope that makes sense.

Until the folder "android-utility" is in /home/am/ you won't be able to continue.

If you used the au.installer like it is intended you should already have a folder called "android-utility" in /home/am. The folder also needs to be called "android-utility". Anything else will give you the "Please place android-utility in the directory /home/am before preceding. Thank you very much" message :-)

edit. "am" is your user name....so don't make a new folder called "am".
[Android] Amin`:
@Tom! , still no luck!:(

where's the problem?
[Android] tommytomatoe:
Oh geez. What version of Ubuntu are you running?

Seems like the install process didn't work too nicely.

I will fix it you right up soon as I know which version we're dealing with.
[Android] Amin`:
@tom

ubuntu 11.10

what should I do?! I can't wait...I want to decompile framework...
[Android] tommytomatoe:
Do this.

cd $HOME/android-utility

./installau

Go through install l process. Make sure everything worked.

Reboot computer.

Then open terminal. Type:

andutil

You should now be on your way.
[Android] Amin`:
thanks tomm! Now every thing is OK!:D

again thanks;)

........................

how about odexing?!
[Android] Amin`:
@Tomm!

I have a problem with "ultimate logcat"...it doesn't work...it shows: "waiting for device..." and after I plug the device it shows nothing! , where's the problem? is it for my device's usb driver?! how can I install my usbdrivers in linux?!

thanks
[Android] tommytomatoe:
Glad you got it.

1. Odex is quite advance. I don't mean to offend you but I wouldn't play with that for a bit.

2. I don't know a specific tutorial. For me adb just works. Google around I know there are a handful of tutorials out there.

Do this for be though. To test.

From terminal, type this:

adb

Post the output here.

Then plug in your phone.

Type:

adb device

Post output here.

I am glad you finally have au installed :-)
[Android] Jsmokey:
If it won't work plug n play you most likely need to set a udev rule for your specific device which can be a pain on some devices and others its easy to set up and get working right away.

Here's a link that explains the process starting at step 4 on. If you need more help there's quite a few easy to follow guides just google android udev set up or rules, you may even get lucky and find a guide for your specific device.

developer.android.com/guide/developing/device.html
[Android] epicroot:
anybody tried getting this to work with cygwin on windows?
[Android] tommytomatoe:
Will not be compatible with cygwin.

all you need is a lovely signature.
[Android] s2d4:
Hey tommy,

Just letting you know that in the installau file of the mac version, there is a typo of sudp, should be sudo.

I came across this when I was trying to upgrade apktool to 1.4.2 coz I had some incompatibilities with the 1.4.1...

Other than that it is all sweet.

Feature request if I may, can you also integrate kitchen like you've done for the linux version?

Thank you very much for your development tool once again.