Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[UTILITY] Android Utility - [apktool|dex2jar|smali|more][Mac & Linux][Feb13, 2012]

OP tommytomatoe

5th March 2012, 10:45 PM   |  #521  
tommytomatoe's Avatar
OP Recognized Developer
Flag Knoxville USA
Thanks Meter: 6,825
 
6,256 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Just a little wittle announcement

I will be haulting features development of Android-Utility for the time being.

In the meantime, I will be updating the Mac OS X version to be current with the Linux version.

Also, as a side project for school, I will attempt to write a GUI for AU with C++ using QT (I am in a C++ class at the moment). This will be a little extra credit project for me. Don't expect anything anytime soon, but I will post pics and posts if anything awesome happens. Wish me luck!

As always, thank you for choosing android-utility for you android modding needs!
The Following 5 Users Say Thank You to tommytomatoe For This Useful Post: [ View ]
5th March 2012, 11:08 PM   |  #522  
bombadier's Avatar
Senior Member
Flag The Borders
Thanks Meter: 1,937
 
2,290 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Well all the best with your studies dude and thanks for Android Utility.
The Following 2 Users Say Thank You to bombadier For This Useful Post: [ View ]
6th March 2012, 12:39 AM   |  #523  
Wildchld's Avatar
Senior Member
Flag Miami
Thanks Meter: 2,628
 
2,201 posts
Join Date:Joined: Jun 2007
More
Wish you too. AU is awesome as it is with GUI it would be sick.


Sent from my SGH-T989 using Tapatalk
The Following User Says Thank You to Wildchld For This Useful Post: [ View ]
21st March 2012, 10:32 AM   |  #524  
ZenPit's Avatar
Member
Flag Houston
Thanks Meter: 13
 
73 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Just managed to get this up on my Linux Mint 12! I have to say it's a very nice utility! Thank you for all your hard work Tommy and I look forward to the eventual updates and feature unlockings!
21st March 2012, 11:26 AM   |  #525  
Wildchld's Avatar
Senior Member
Flag Miami
Thanks Meter: 2,628
 
2,201 posts
Join Date:Joined: Jun 2007
More
Tommy think you could add compression option in option 7. Instead of having to go to option 8 after compiling


Sent from my SGH-T989 using Tapatalk
25th March 2012, 06:53 PM   |  #526  
Senior Member
Thanks Meter: 19
 
367 posts
Join Date:Joined: Oct 2010
I'm having troubles recompiling a systemUI.apk, does anybody have any suggestions?

I'm on a Mac on Lion 10.7.3

This is the output I get:
Code:
Building SystemUI 

I: Smaling...
W: Unknown file type, ignoring: SystemUI/smali/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/android/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/android/systemui/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/android/systemui/statusbar/.DS_Store
Exception in thread "main" java.lang.NullPointerException
	at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
	at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
	at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
	at org.antlr.runtime.Parser.getSourceName(Parser.java:88)
	at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:358)
	at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
	at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
	at org.jf.smali.smaliParser.parameter_directive(smaliParser.java:7937)
	at org.jf.smali.smaliParser.statements_and_directives(smaliParser.java:1902)
	at org.jf.smali.smaliParser.method(smaliParser.java:1609)
	at org.jf.smali.smaliParser.smali_file(smaliParser.java:595)
	at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)
	at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
	at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
	at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
	at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
	at brut.androlib.Androlib.buildSources(Androlib.java:179)
	at brut.androlib.Androlib.build(Androlib.java:170)
	at brut.androlib.Androlib.build(Androlib.java:154)
	at brut.apktool.Main.cmdBuild(Main.java:182)
	at brut.apktool.Main.main(Main.java:67)

Please check build_log for apk with errors
Last edited by xCHPx; 25th March 2012 at 08:30 PM.
28th March 2012, 09:03 PM   |  #527  
grayn0de's Avatar
Senior Member
Flag Austin, Tx
Thanks Meter: 306
 
350 posts
Join Date:Joined: Mar 2009
More
Quote:
Originally Posted by xCHPx

I'm having troubles recompiling a systemUI.apk, does anybody have any suggestions?

I'm on a Mac on Lion 10.7.3

This is the output I get:

Code:
Building SystemUI 

I: Smaling...
W: Unknown file type, ignoring: SystemUI/smali/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/android/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/android/systemui/.DS_Store
W: Unknown file type, ignoring: SystemUI/smali/com/android/systemui/statusbar/.DS_Store
Exception in thread "main" java.lang.NullPointerException
	at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
	at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
	at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
	at org.antlr.runtime.Parser.getSourceName(Parser.java:88)
	at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:358)
	at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
	at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
	at org.jf.smali.smaliParser.parameter_directive(smaliParser.java:7937)
	at org.jf.smali.smaliParser.statements_and_directives(smaliParser.java:1902)
	at org.jf.smali.smaliParser.method(smaliParser.java:1609)
	at org.jf.smali.smaliParser.smali_file(smaliParser.java:595)
	at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)
	at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
	at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
	at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
	at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
	at brut.androlib.Androlib.buildSources(Androlib.java:179)
	at brut.androlib.Androlib.build(Androlib.java:170)
	at brut.androlib.Androlib.build(Androlib.java:154)
	at brut.apktool.Main.cmdBuild(Main.java:182)
	at brut.apktool.Main.main(Main.java:67)

Please check build_log for apk with errors

What changes did you make to SystemUI.apk?
18th April 2012, 09:21 AM   |  #528  
scott.hart.bti's Avatar
Recognized Developer
Flag Reading
Thanks Meter: 16,974
 
2,376 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Sorry to bring this back to life, but i need some advice.. I have installed Ubuntu and then installed java 6u31 and then ran the android utility install succesfully. I reboot and get the following when trying to run the utility..

scott@ubuntu:~/android-utility$ ./andutil
./andutil: line 340: syntax error near unexpected token `)'
./andutil: line 340: ` 2) apk_dec -m;;'

ideas?
18th April 2012, 03:36 PM   |  #529  
MasterZen88's Avatar
Senior Member
Thanks Meter: 1,104
 
555 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by scott.hart.bti

Sorry to bring this back to life, but i need some advice.. I have installed Ubuntu and then installed java 6u31 and then ran the android utility install succesfully. I reboot and get the following when trying to run the utility..

scott@ubuntu:~/android-utility$ ./andutil
./andutil: line 340: syntax error near unexpected token `)'
./andutil: line 340: ` 2) apk_dec -m;;'

ideas?

Found the problem. Creater forgot to close out the syntax...
Code:
	1) echo "woot" ;; #a_if;;
	2) apk_dec -m;;
	3) apk_build -m;;
	a) ttadb;;
Just add the following in red to your script and it should work.
The Following User Says Thank You to MasterZen88 For This Useful Post: [ View ]
18th April 2012, 04:23 PM   |  #530  
scott.hart.bti's Avatar
Recognized Developer
Flag Reading
Thanks Meter: 16,974
 
2,376 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Quote:
Originally Posted by MasterZen88

Found the problem. Creater forgot to close out the syntax...

Code:
	1) echo "woot" ;; #a_if;;
	2) apk_dec -m;;
	3) apk_build -m;;
	a) ttadb;;
Just add the following in red to your script and it should work.

Thanks for the reply... Forgive my ignorance I'm new to Linux... When u say add to the script you mean the actual andutil file?

Post Reply Subscribe to Thread

Tags
apktool, draw9patch compiler, mac
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes