yashsingh1/xdaforums huggingface dataset:
[Android] tommytomatoe:
Topsign, can you post entire output of au? Which apk? And where is your apk located? According to your log, your apk is either missing or corrupted. Thanks.

tapatalk signature here. lovely.
[Android] topsign:
apk attached. apk locates in 'mod-solo-here' folder.
[Android] tommytomatoe:
Answers and technical support coming either tomorrow night or Monday. Long day of work today and Sunday ahead .

tapatalk signature here. lovely.
[Android] tommytomatoe:
hey there. sorry for such a delay. Finally had some time.

zzz_stat_sys_battery_1.xml

stat_sys_battery.xml

stat_sys_battery_charge.xml

lol. :-)
[Android] tommytomatoe:
Hey topsign. Finally had time to do some stuff.

I downloaded your apk. It would help me to know which apk it is. I need to knwo so I can install proper frameworks.

Otherwise, I am also getting your same error.

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:158)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:79)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:156)
... 3 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at java.util.zip.ZipFile.<init>(ZipFile.java:148)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 6 more

Thanks.
[Android] absolutzero1906:
No worries things have been busy. Yea those are the three i have been messing with. Finally got the pngs to swap out but cannot get the animation to work.

Root it and Boot it
[Android] tommytomatoe:
Official Announcement.

Linux Download:

Android Utility Version 1.0.3 Installer Automated Script

Download tar file. Open with Archive Manager. Extract au.installer. Run in terminal by double clicking on it. Follow on-screen prompts. Done. :-)

Enjoy!
[Android] tommytomatoe:
README updated to Version 1.0.3.
[Android] MiSfit211:
Tommy the new versionis the best tool out by far. For anyone interested in deving or learning android this tool is a must. From beginners to experienced devs this tool will help you be successful.

Great work man :)

This utility is a must for all of us nerds
[Android] tommytomatoe:
The recompile/build process is even more user friendly now.

Includes dsixda's kitchen integration.

During build process, prompts the user for auto-injection of META-INF for system apps.

Also prompts user for auto-zipalign.

Enjoy!
[Android] tommytomatoe:
You're the poo. If I could give this post a hundred thanks I would.
[Android] tommytomatoe:
Linux Version 1.0.6 Download:

Android Utility Universal Installer Automated Script

Download tar file. Open with Archive Manager. Extract au.installer. Run in terminal by double clicking on it. Follow on-screen prompts. Done. :-)
[Android] DutchDanny:
TNX for your tool...

works better then any tool on windows.....

And is the best tool for linux

Love the 9patch tool, as a designer ;)

and now the kitchen inside it..

to bad dsixda stopt his project:(
[Android] tommytomatoe:
Thanks for the kind words Danny. I do appreciate it.

The goal from the beginning for me was to make this process easier for the user to do what we all can do manually as well as throw in new tools and methods that I've created myself.

Yeah the kitchen integration was definitely a crucial step. Big thanks to xda user misfit for urging me to do it sooner.

Considering there has been 179 revisions to the kitchen, it should go without saying that it's pretty close to completion. For contrast purposes, AU has had 8 revisions. hehe. And I feel like I've worked my butt off.
[Android] Jsmokey:
Man tommy you just don't stop. Can't wait to give the new version a try and the auto META and zipalign will definitely help save some time, it is too bad about dsixda stopping work on the kitchen but who can blaim him with some of the headaches he's had with people trying to use it and after so many revisions.
[Android] tommytomatoe:
Thanks. Yeah, towards the end there some of the boneheads on that thread were even giving me headaches. poor guy.

Btw. If you still want that command to change directory of android-utility, let me know.
[Android] tommytomatoe:
If you're on Version 1.0.6, there is auto-updating now. And I'm about to update my branch to version 1.0.7 today.

Version 1.0.7 features:

3vodex with data/app dexopting (completely optional and by request)

cleaned up scripts

png changer help (swap pngs without decoding)

maybe more :-)
[Android] DutchDanny:
Keep it up... lovin the auto update....
[Android] Jsmokey:
I know what you mean I could hardly stand to look through some of the last pages in the kitchen thread.

Thanks I did end up getting it changed, I just wrote up a little script to do it so incase I need to reinstall I just run it again. I was actually working on getting a script together to ask for the path you want to use it in then change all the refrences to match.

Its good that I'm getting back into scripting though cause mtcarthy and I are working on the new KI2 and KH3 kernel for the cappy and I'm working on a new lagfix ext4 conversion script for it and a few other performance and battery scripts and up till a couple weeks ago I hadn't done very much scripting in quite a while.

By the way tommy, I can't think you enough for the tool its been invaluable to me in my rom project, Anteres Dark Cloud,(name copyright of fineline development & design) ;) and some of the apps I've themed for my own use. You're a huge help to the community and I hope the project keeps going strong.
[Android] tommytomatoe:
Brand new home screen:

Welcome back tommytomatoe,

Android Utility by tommytomatoe. Version 1.0.7. Special Edition

|-------------------------------||-------------------------------|
|-------------------------------||-------------------------------|
| BASIC TOOLS || ADVANCE TOOLS |
|-------------------------------||-------------------------------|
| 1. adb tools || 7. apk Re-Engineering |
| 2. keystore manager || 8. apk Optimization |
| 3. sign apk and update.zip || 9. dex code utility |
| 4. zipalign ||10. draw9patch utilities |
| 5. change-log creator ||11. AU ROM Utility |
| [B]6. png swap themer [/B] ||12. 3vodex |
|-------------------------------||-------------------------------|
| K. Run dsixda's Android Kitchen |
|----------------------------------------------------------------|
|----------------------------------------------------------------|
| x. Run Installation Guide || e. Extras |
| i. Install Android SDK || q. Quit |
| u. Update Android-Utility || |
|-------------------------------||-------------------------------|
Select an Option:

Thanks guys. I appreciate the sentiments. I'll check out both your rom threads later today. :-)

And yes, the auto-update is nice. hehe.
[Android] DutchDanny:
You will see my thanks to you and your tool in my threads.... ;)
[Android] tommytomatoe:
Nice roms :-) I gave three of them thanks before I ran out for the day.

and thanks for the shout out on your threads. I appreciate that.
[Android] dantepolo:
Great, now I definitely have to dust off my MacBook to use this
[Android] CleveRuse:
Double-clicking on au.installer just opens it up in a text editor for me (Linux) ?????

Tried changing the default app for handling the file t o Autorun Promt but does nothing

Edit: I just pasted the file in AU folder, 'cd'd' to it, then ran from terminal and all seems to work well but wad just wondering how it was supposed to go, lol
[Android] tommytomatoe:
It should have prompted you to run in terminal or display as a text file.

But to fix it...

In terminal

cd path/to/

chmod 755 au.installer

Hope you like the latest edition. :-)

tapatalk signature here. lovely.
[Android] tommytomatoe:
I just wanted to drop in and say thank you to all the users of Android-Utility and to all the kind remarks of late. This could not have been possible without the gigantic credits list found in the op. And lately, big thanks to my pal misfit for pitching great ideas and urging me to update au. :-)

As always, if you have any ideas feel free to post them here or pm me.

tapatalk signature here. lovely.
[Android] ciscogee:
beginner

great utility, im very new to the android world. and have a samsung continuum, which is now under xda support due to now being a legacy device etc. i just cooked up my first rom (deodexed leaked froyo stock) but did it through windows kitchen. reason i didnt use your utility is my lack of linux knowledge. ie... finding and downloading drivers and applications needed to unzip and put in kitchen folders etc... i am looking forward to your updates and even soon a windows version. there is just so many threads saying how to use these utilities that contradict each other on use. and was wondering if you know of a good place to start to even begin to understand what each function is capable of? cause i do want to begin to understand and my goal is to end of developing.

thanks in adavnce... great great great work!
[Android] CleveRuse:
Well I just started using it this morning but haven't really gotten to trying the new options yet.

....anyway, I've always had problems building selected apks only. When I'm asked of I want to build all projects using option 5, and i say "n" (no), and then type in the name exactly as its written (w no '.apk' at the end) it always says sumthin like "pick a valid project" and just nvr works! Wut am I doing wrong?

I know its a little late for this round but it would be great if projects were numbered and I could just choose that number to build individual projects (but I can't even get ot to work by typing the name at this point)

....but for the record, even w/out trying the new options, o always love ur work. I couldn't do anything on my machine after installing Linux till I got AU. It's still the only reason I get anything done ....and is way btr than Apk mgr imo! (didnt want this post to be just a complaint, lol)

But yeah, I'd love to be able to have all projects open but not always have to build all projects.
[Android] CleveRuse:
Auto-zipaligning is the sh..... Lol
[Android] tommytomatoe:
Ubuntu Linux is surprisingly (well maybe not surprisingly) easy to use. During installation you have the option to install all the extra drivers. Not to mention, there is a program called Addition drivers that installs drivers for your specific hardware (gpu, sound, wireless card, et cetera). But 9/10 things work out of the box.

As for tools and utilities. Ubuntu comes with the best stock archive manager (as opposed to Windows or Mac). It opens the archive and let's you extract what you want et cetera.

I'm not 100% sure which threads are contradictory...please expand on that thought.

There are a lot of functions. It would take pages to explain them all. Just ask specific questions and I will try my best to answer them here.

That is a rather good idea. I tried implementing that early on during the testing stages of au. But unfortunately I couldn't get it to work right. I'll work on that next week.

As for the existing problem...I'm gonna look into that. I personally never use the option so I haven't tested it since I wrote the script, and no one has brought to my attention that it had issues. I'll check it.

I know, right :-)

tapatalk signature here. lovely.
[Android] CleveRuse:
Well my phone was out of commission there for a bit ...but here's wut I meant to post an hr ago:

"Did AU just auto-zipalign AND AUTO-SIGN my apk! Ok, now I'm in heaven. I officially love u T. I've got the biggest sh*t-eatin grin on my face right now", lol.

Thnx tommy:D
[Android] CleveRuse:
Oh yeah, when I get the aapt string error where it says at the end "found: en_UA" wuts it mean, and how do I fix it?

I don't remember that actually causing problems b4. I mean I've gotten the error b4 but I could still install and all would still work. IDK, just having trouble with HtcDialer.apk for some reason. I get that error then after install it FC loops. I've nvr tried building it b4. Always just edited pngs from the archive. So no idea wut the problem is, but its the only error I'm getting. I can post the whole error (thereafter a bunch, but all the same really), but i think u know wut I mean.

Edit: same problem with AccountSyncManager.apk. the letters at the end r different (zh_HK this time) but its the same error. So both apks that r having this problem keep FCing after install.
[Android] tommytomatoe:
lol.

That error means it's missing some languages, specifically en_UA and zh_HK in your cases. 9/10 times you can ignore these errors and the apk can still work. As to how to fix. Installing a different framework file can sometimes clear it up. But if all you're doing is swapping png, I say don't even bother decoding. Just swap the png! BTW, this feature is coming very soon to AU. :-)
[Android] chubbzlou:
Awesome Tommy Thanks checking it out now.
[Android] tommytomatoe:
Hey TMartin.

I checked the script. The only error I can see is the "open" command, which doesn't regard our situation with the "rm" command.

Here is the code I used:

decomp_it ()
{
cd $e
for F in *.apk ; do
echo "Decompressing $F"
cd $e
$HOME/bin/7z x -y -o"${F/.apk}" $F &>/dev/null
cd $e/${F/.apk}
zip -"$COMP"r $d/decompressed_apps/$F *
rm -r $d/original_apps/${F/.apk}
echo "$F Decompressed"
done
}

In the above, here are the variables:

d=$HOME/android-utility/working-folder/mod-here-multi
e=$d/original_apps
COMP=compression level

For some reason "$HOME/bin/7z x -y -o"${F/.apk}" $F &>/dev/null" isn't creating the correct output directory for you. The compression script first decompresses the apk into a directory inside /original_apps with same name (Rosie.apk -> Rosie), then compresses contents in "Rosie" into a Rosie.apk inside /decompressed_apps. Then the "Rosie" folder gets deleted. In your case...the output folder "HtcProfileWidget" was never created. Your error wasn't the "rm" that removes the apk, but the directory that was created during the decompression.

Let me run this script with some other apks and we'll find out the issue.

Here is my output:

Welcome to Apk Compression Manager

Compression Level set to 5
[0 = no compression | 9 = high compression]

Please set compression level [default=5 ; 0 -> 9]: 0

Compression Level set to 0

Please Place apks in /home/tommytomatoe/android-utility/working-folder/mod-here-multi/original_apps

(nautilus:2168): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

Please press [enter] when ready
Preparing to decompress Apks with Compression Level 0

Decompressing Rosie-v0.9.9a.apk
adding: AndroidManifest.xml (stored 0%)
adding: classes.dex (stored 0%)
adding: META-INF/ (stored 0%)
adding: res/ (stored 0%)
<snipped snipped>
adding: resources.arsc (stored 0%)
Rosie-v0.9.9a.apk Decompressed
Decompressing Rosie-v0.9.9.apk
adding: AndroidManifest.xml (stored 0%)
adding: classes.dex (stored 0%)
adding: META-INF/ (stored 0%)
<snipped snipped>
adding: resources.arsc (stored 0%)
Rosie-v0.9.9.apk Decompressed

Remove Original Apks? [Y/n]: y

Thank you for choosing Android Utility
brought to you by tommytomatoe :-)

Please Don't Drink and Drive

Edit 1. Are you placing the apk file inside "original_apps"?
[Android] tommytomatoe:
V 1.0.1 releasing later today. Mac first then Linux.
[Android] TMartin:
You're right...it's not creating that folder which explains why I'm getting both errors but all the apk's files coming out to 24.2mb seems a bit odd. I was testing compression level 9 for sh*ts & giggles.

EDIT: Yes, I had around 10 apk's in the original_apps folder
[Android] tommytomatoe:
Lol. Sh*ts and giggles makes me laugh. One time my fiancée told me that wasn't a thing and that it was kicks and giggles. We Google it and urban dictionary told her it was a private school sheltered version of sh*ts and giggles. Hehe.

Did you go through the entire install process? My only guess is that 7z didn't install properly. Do you care to check $HOME/bin to see if 7z and 7z.so are both there? Perhaps the 7z version I packed with au isn't supported on your version of Ubuntu. It is 9.04 7zip binary by Igor Pavlov but I'm pretty sure it should. Works on karmic koala.
[Android] TMartin:
Yea...I'll double check her in a few. I have a GoToMeeting in 10 then I'll pull out my laptop. My 11.04 already has 7z support so I'm not sure if that effects anything negatively.
[Android] tommytomatoe:
Work first!

I don't think it would. The script calls for the 7z tthat is in $HOME/bin. I dunno. I have 7z installed too but when using au it Calls for the one in $home/bin. If that is the issue then I will rework the script and make it call from the default 7z tthat people have installed. I think /usr/local/bin is where mine is and /usr/lib/pzip is where the 7z.so is. I will check later. I'm at work too ;-)
[Android] TMartin:
Yea both 7z and 7z.so are both there in $HOME/bin. I didn't overwrite my bin folder during install because I had beyond compare installed and it uses the same folder. But like I said, it looks like all the right files are there.
[Android] tommytomatoe:
mmmm. Do you care to try a couple more things for me? I know you're a smart guy so don't take this the wrong way lol.

in terminal do:

$HOME/bin/7z

See if the output is what it's supposed to be. And lastly, have you tried again? Perhaps with just one apk. Maybe the first time was a fluke.
[Android] jonas2295:
Awesome tool but can't use it atm because I have no Linux distro atm :(

Can we run the tool via cgwin ?

Thanks in advance :)
[Android] TMartin:
Looks like this:

exec: 2: /usr/lib/p7zip/7z: not found
[Android] tommytomatoe:
Mac Version 1.0.1 is Live!

### Update. July 14, 2011
>version 1.0.1
>updated sign script
>updated main menu
>added ROM Utility
>added apk Optimization
>added change-log creator
>fixed error logging for decompiling and recompile process
>added resources.arsc decompression

Link to update script (without installing au all over again)

Unzip the "update" folder into "$HOME/android-utility" and run the "update_script". Folder needs to be called "update". Done :-)

New Menu

Welcome back Tommy,

Android Utility by tommytomatoe
----------------------
Blue Waffle Magic Pack v 1.0.1
|-------------------------------||-------------------------------|
|-------------------------------||-------------------------------|
| BASIC TOOLS || ADVANCE TOOLS |
|-------------------------------||-------------------------------|
| 1. adb tools || 6. apk Re-Engineering |
| 2. keystore manager || 7. apk Optimization |
| 3. sign apk and update.zip || 8. smali and baksmali |
| 4. zipalign || 9. draw9patch utilities |
| 5. change-log creator ||10. AU ROM Utility |
| || |
|----------------------------------------------------------------|
| SETUP TOOLS |
|----------------------------------------------------------------|
| x. Run Installation Guide || e. Extras |
| i. Install Android SDK || q. Quit |
|-------------------------------||-------------------------------|
|-------------------------------||-------------------------------|
Select an Option:
[Android] tommytomatoe:
mmm. Interesting. I don't get that error on karmic koala.

Maybe try this:

sudo cp $HOME/bin/7z /usr/lib/p7zip/7z
sudo cp $HOME/bin/7z.so /usr/lib/p7zip/7z

Then run the decompress again.

That is the only thing I can think of besides changing the script..which isn't hard. Just need to change instances of $HOME/bin/7z to 7z.
[Android] tommytomatoe:
Forgot to mention.

With version 1.0.1 you have option to type "andutil" or "au".

au is faster. Hehe
[Android] tommytomatoe:
Need some time to update Linux version. Gonna use unzip instead of 7z. I think 7z might cause issues that unzip won't have.
[Android] moseso:
Good morning, Tommy --

Here's what happened when I tried running apktool on the G5 Mac:

++++++++++++++++++++++++++++++++++++

Welcome to Android Application Re-Engineering Manager

|----------------------------------------------------------------|

/Users/Leonard/android-utility/utility/apk_tool: line 202: apktool: command not found

/Users/Leonard/android-utility/utility/apk_tool: line 202: /usr/bin/sed: Bad CPU type in executable

|### |

|----------------------------------------------------------------|

| Apktool Utility |

|-----------------------------------------------------|

| 1. Install framework first (ie. framework-res.apk)|

| 2. Decompile Apk |

| 3. Decompile Multiple Apk |

| 4. Recompile Apk |

| 5. Recompile Multiple Apk |

|-----------------------------------------------------|

| Optional Flavors |

|-----------------------------------------------------|

| a. Use different version of apktool |

| b. Use different version of aapt |

| q. Go Back to Main Menu |

|-----------------------------------------------------|

Please Select Feature: 2

Android Utility found this apk: DeskClock.apk

Would you like to decode it? [default=Yes]

1. Yes

2. No

Decoding DeskClock.apk to ../mod-here-solo/DeskClock:

/Users/Leonard/android-utility/utility/apk_dec: line 167: apktool: command not found

Would you like to extract original META-INF? [default=Yes]

1. Yes

2. No

Extracting Original META-INF from DeskClock.apk

......

Please check decode_log for apks with errors

Please press [enter] to continue

Welcome to Android Application Re-Engineering Manager

|----------------------------------------------------------------|

/Users/Leonard/android-utility/utility/apk_tool: line 202: apktool: command not found

/Users/Leonard/android-utility/utility/apk_tool: line 202: /usr/bin/sed: Bad CPU type in executable

|### |

|----------------------------------------------------------------|

| Apktool Utility |

|-----------------------------------------------------|

| 1. Install framework first (ie. framework-res.apk)|

| 2. Decompile Apk |

| 3. Decompile Multiple Apk |

| 4. Recompile Apk |

| 5. Recompile Multiple Apk |

|-----------------------------------------------------|

| Optional Flavors |

|-----------------------------------------------------|

| a. Use different version of apktool |

| b. Use different version of aapt |

| q. Go Back to Main Menu |

|-----------------------------------------------------|

Please Select Feature:

++++++++++++++++++++++++++++++++++++++

From the decode_log: "On Jul20_111201, DeskClock.apk was not Decoded Properly"

But, we knew that already....

It did extract the META-INF directory, but that's all it did.

I do have an Intel Mac at home -- and it all appears to be working there. I was just hoping it would work on my at-work rig. Oh, well... I guess I can do this stuff at home...
[Android] tommytomatoe:
Linux v 1.0.1 will release soon. I am testing. Updated 7z scripts to "unzip" and "zip".

Sorry to hear that Mose! But it's good you have an intel at home. I guess work is for work.
[Android] TMartin:
Excellent!! :D
[Android] tommytomatoe:
Yes sir! I didn't think 7z would pose problems. Unzip works flawlessly. I should have just used that from the start. :-)
[Android] tommytomatoe:
The Update Package is a much much smaller download (since all the binaries are left out). Only use if you currently have Version b 1.0.0 or 1.0.0.

Extract the "update" folder into the root of "android-utility", where you see the "andutil", "README", and "installau"

Open the update folder and click on the "update_script". Choose "Run in terminal".

Done :-)

Additions: here + unzip support

Enjoy!
[Android] ciscogee:
ur the man... i dont wanna fill this thread up with noob questions, but i was trying to unzip a stock rom to use in kitchen and archive manager didnt work for it, so i did it in windows. ill just do my research better i guess :)
[Android] CleveRuse:
No, I'm editing xmls. So if a new framework doesn't clear it up, how do I add languages?(dont even know wut that means)