Skip to content
19 changes: 15 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
Version: 1.1.3
Version: 1.2.0

### Welcome to Android Utility
# README
# Author: Tommy Nguyen [tommytomatoe]
# Author: tommytomatoe
# Modified By: talnoah <tnoah12@gmail.com>
# Date: February 13, 2012
# Contact: tommytomatoe@gmail.com


### Update. February 11, 2013
>Version 1.2.0
>Updated Backsmali and Smali Wrappers and Jars to 1.4.1
>Updated Pngout, Pngcrush, Advpng, and Optipng to latest Versions
>Build Png Tools with latest toolchains
>updated apktool for ICS, JB, and JB 4.2 Support
>updated aapt for sdk-12 support for ICS/JB
>Initial Update By talnoah

### Update. February 13, 2012
>Version 1.1.1
>updated apktool 1.4.3
Expand Down Expand Up @@ -70,7 +81,7 @@ Version: 1.1.3
>added smali/baksmali support


### Update. July 14, 2011
### Update. July 14, 2011
>version 1.0.1
>updated sign script
>updated main menu
Expand Down Expand Up @@ -104,7 +115,7 @@ Version: 1.1.3
> preparing for initial release

### Update. June 15, 2011
> major changes to install script
> major changes to install script
> minor changes to andutil script
> Version a-0.89 should be up and running soon

Expand Down
13 changes: 7 additions & 6 deletions andutil
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

# Android Utility Linux
# Author: Tommy Nguyen [tommytomatoe]
# Version: 1.1.0
# Date: February 13, 2012
# Contact: tommytomatoe@gmail.com
# Author: Lens_Flare
# Version: 2.0
# Date: July 22, 2013


#introduction
intro ()
Expand Down Expand Up @@ -40,7 +41,7 @@ credits ()
echo " ### Thanks and Credits ###"
echo
sleep .5
for cred in "Brut.all - apktool.jar and sound advice" "JesusFreke - baksmali.jar and smali.jar" "Stericson/JF - testsign.jar" "Pendo - sound advice/answering questions/awesome sauce" "Google - AOSP" "aamikam - sound advice" "themikmik.com - Awesome sauce" "xda developers - Roots" "JsChiSurf - sound advice" "dsixda - sound advice" "Amon_RA - sound advice" "Igor Pavlov - 7zip" "Ardfry Imaging, LLC. - pngout" "Glenn Randers-Pehrson - pngcrush" "Andrea Mazzoleni - advpng" "Cosmin Truta - optipng" "pxb1...@gmail.com - dex2jar" "Emmanuel Dupuy - JD-GUI" "misfit and leoisright - constant support" "Xclusive Rydah, Chingy - testing and ideas" ; do
for cred in "iBotPeaches - apktool.jar and sound advice" "JesusFreke - baksmali.jar and smali.jar" "Stericson/JF - testsign.jar" "Pendo - sound advice/answering questions/awesome sauce" "Google - AOSP" "aamikam - sound advice" "themikmik.com - Awesome sauce" "xda developers - Roots" "JsChiSurf - sound advice" "dsixda - sound advice" "Amon_RA - sound advice" "Igor Pavlov - 7zip" "Ardfry Imaging, LLC. - pngout" "Glenn Randers-Pehrson - pngcrush" "Andrea Mazzoleni - advpng" "Cosmin Truta - optipng" "pxb1...@gmail.com - dex2jar" "Emmanuel Dupuy - JD-GUI" "misfit and leoisright - constant support" "Xclusive Rydah, Chingy - testing and ideas" ; do
echo $cred
sleep .5
done
Expand Down Expand Up @@ -114,7 +115,7 @@ quit()
else
echo
echo "Thank you for choosing Android Utility"
echo "brought to you by tommytomatoe :-)"
echo "brought to you by talnoah :-)"
echo
echo "Please Don't Drink and Drive"
echo
Expand Down Expand Up @@ -186,7 +187,7 @@ sleep .1
echo ":"
sleep .1
echo
for l in t o m m y t o m a t o e ; do
for l in t a l n o a h ; do
echo -n $l
sleep .1
done
Expand Down
10 changes: 5 additions & 5 deletions au.installer
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# Android Utility Linux
# Author: Tommy Nguyen [tommytomatoe]
# Version: 1.0.6
# Date: October 6, 2011
# Contact: tommytomatoe@gmail.com
# Author: Lens_Flare
# Version: 2.0
# Date: July 22, 2013

enter()
{ echo
Expand Down Expand Up @@ -79,7 +79,7 @@ echo
load_dot
echo
echo "Installing AU with git clone"
git clone git://github.com/tommytomatoe/Android-Utility.git -b linux-au $A
git clone git://github.com/talnoah/Android-Utility.git -b linux-au $A
echo
if [[ -s $A ]] ; then
echo "AU installed Successfully!"
Expand Down Expand Up @@ -116,5 +116,5 @@ echo 'Note, you can now use the command "au" to start android-utility.'
echo "Misfit and leoisright are officially commited to the credits as supporters."
echo
echo "Sincerely,"
echo "Tommy Nguyen"
echo "Tommy Nguyen and Tal Noah"
enter
42 changes: 23 additions & 19 deletions installau
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# Installation Script Linux
# Author: Tommy Nguyen [tommytomatoe]
# Version: 1.1.0
# Date: February 13, 2012
# Contact: tommytomatoe@gmail.com
# Version: 2.0
# Date: July 22, 2013


# Setting Loop Variable
clear
Expand All @@ -25,7 +25,7 @@ bpro ()
enter
else
bpro3
fi
fi
}

bpro3 ()
Expand All @@ -39,8 +39,8 @@ bpro3 ()
enterKey()
{ echo "### Press [enter] to continue, any other key to quit";
read -s -n 1 key
if [[ $key = "" ]]; then
echo
if [[ $key = "" ]]; then
echo
else
echo
echo "Installation aborted";
Expand All @@ -54,7 +54,7 @@ enter()
{ echo
echo "Please press [enter] to continue";
read -s -n 1 key
if [[ $key = "" ]]; then
if [[ $key = "" ]]; then
echo
clear
fi
Expand Down Expand Up @@ -90,15 +90,15 @@ makedir ()
d=`date +%b%e_%H%M%S`
echo "Checking status of $w..."
load_dot
if [[ -s $w ]] ; then
if [[ -s $w ]] ; then
echo
echo "Working folder exists, would you like to start over? [default=Y]"
echo
echo " 1. Yes"
echo " 2. No"
echo " 3. Backup Current Working folder first"
read -s -n 1 ans
case $ans in
case $ans in
1) echo; rm -r $w; echo "Working folder replaced "; makedirB;;
2) echo; echo "Working folder remained unchanged"; enter;;
3) echo; mv $w $w$d; echo "Working folder save to $w$d"; echo; echo "Working folder replaced "; makedirB;;
Expand All @@ -121,15 +121,15 @@ makedirBIN ()
echo " 1. Yes"
echo " 2. No"
read -s -n 1 ans
case $ans in
case $ans in
1) echo; rm -r $w; makedirC; echo "$w replaced "; enter;;
2) echo; echo "/bin remained unchanged"; enter;;
*) echo; rm -r $w; makedirC; echo "$w replaced "; enter;;
esac
else
makedirC
enter
fi
fi
}


Expand All @@ -150,7 +150,7 @@ makedirC ()
{ y=$HOME/bin
echo "Creating New bin Directory"
mkdir $y
echo
echo
}

#quit
Expand Down Expand Up @@ -219,7 +219,7 @@ first_time ()
sudo chmod 755 /usr/local/bin/*
sudo chmod 755 $HOME/bin/*
sudo chmod 755 $HOME/android-utility/utility/*
sudo chmod 755 $HOME/android-utility/utility/dex/*
sudo chmod 755 $HOME/android-utility/utility/dex/*
echo "All Done. Now, enjoy android-utility"
enter
}
Expand All @@ -245,6 +245,7 @@ ins_apktool ()
echo
echo " 6. apktool 1.3.2 experimental - fixed "-v4" and xml"
echo
echo " 7. apktool 1.5.2"
echo " x. Keep current version"
echo
printf "Please make your selection: "
Expand All @@ -256,8 +257,9 @@ ins_apktool ()
4) echo; sudo cp -v $c/apktool1.4.2/apktool.jar $u/; atool_v;;
5) echo; sudo cp -v $c/apktool1.4.3/apktool.jar $u/; atool_v;;
6) echo; sudo cp -v $c/apktool1.3.2mod/apktool.jar $u/; atool_v;;
7) echo; sudo cp -v $c/apktool1.5.2/apktool.jar $u/; atool_v;;
x) echo; echo "Current version has not been changed";;
*) echo; echo "$sel is not a valid option"; echo;;
*) echo; echo "$sel is not a valid option"; echo;;
esac
enter
}
Expand All @@ -266,7 +268,7 @@ ins_apktool ()
atool_v ()
{ echo
echo "Your version of apktool is now:"
echo
echo
echo "### `apktool | sed -n 1p`"
}

Expand All @@ -283,6 +285,7 @@ ins_aapt ()
echo " 2. aapt sdk 9 - Gingerbread Development"
echo " 3. aapt sdk 11 - Honeycomb Development"
echo
echo " 4. aapt sdk 12 - ICS/JB Development"
echo " x. Keep current version"
echo
echo
Expand All @@ -292,8 +295,9 @@ ins_aapt ()
1) echo; sudo cp -v $c/aapt-8 $u/aapt; aapt_vv;;
2) echo; sudo cp -v $c/aapt-9 $u/aapt; aapt_vv;;
3) echo; sudo cp -v $c/aapt-11 $u/aapt; aapt_vv;;
4) echo; sudo cp -v $c/aapt-12 $u/aapt; aapt_vv;;
x) echo; echo "Current version has not been changed";;
*) echo; echo "$sel is not a valid option"; echo;;
*) echo; echo "$sel is not a valid option"; echo;;
esac
enter
}
Expand All @@ -303,7 +307,7 @@ aapt_vv ()
{ echo
echo "Your version of aapt has been updated"
}

ins_addon ()
{ COM="Install new add-ons"
selection
Expand All @@ -313,8 +317,8 @@ ins_addon ()
update_script
enter
}
inst ()

inst ()
{ date +%b%e_%H%M%S
clear
VERSION=`grep Version: $HOME/android-utility/README | sed 's:Version\:\ ::g'`
Expand Down
Binary file added resources/clean/aapt/aapt-12
Binary file not shown.
Binary file added resources/clean/apktool-1.5.2.jar
Binary file not shown.
80 changes: 80 additions & 0 deletions resources/clean/apktool1.5.2/apktool
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script is a wrapper for smali.jar, so you can simply call "smali",
# instead of java -jar smali.jar. It is heavily based on the "dx" script
# from the Android SDK

# Set up prog to be the path of this script, including following symlinks,
# and set up progdir to be the fully-qualified pathname of its directory.
prog="$0"
while [ -h "${prog}" ]; do
newProg=`/bin/ls -ld "${prog}"`
echo ${newProg}


newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
if expr "x${newProg}" : 'x/' >/dev/null; then
prog="${newProg}"
else
progdir=`dirname "${prog}"`
prog="${progdir}/${newProg}"
fi
done
oldwd=`pwd`
progdir=`dirname "${prog}"`
cd "${progdir}"
progdir=`pwd`
prog="${progdir}"/`basename "${prog}"`
cd "${oldwd}"


jarfile=apktool.jar
libdir="$progdir"
if [ ! -r "$libdir/$jarfile" ]
then
echo `basename "$prog"`": can't find $jarfile"
exit 1
fi

javaOpts=""

# If you want DX to have more memory when executing, uncomment the following
# line and adjust the value accordingly. Use "java -X" for a list of options
# you can pass here.
#
javaOpts="-Xmx256M"

# Alternatively, this will extract any parameter "-Jxxx" from the command line
# and pass them to Java (instead of to dx). This makes it possible for you to
# add a command-line parameter such as "-JXmx256M" in your ant scripts, for
# example.
while expr "x$1" : 'x-J' >/dev/null; do
opt=`expr "$1" : '-J\(.*\)'`
javaOpts="${javaOpts} -${opt}"
shift
done

if [ "$OSTYPE" = "cygwin" ] ; then
jarpath=`cygpath -w "$libdir/$jarfile"`
else
jarpath="$libdir/$jarfile"
fi

# add current location to path for aapt
PATH=$PATH:`pwd`;
export PATH;
exec java $javaOpts -jar "$jarpath" "$@"
Binary file added resources/clean/apktool1.5.2/apktool.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions resources/clean/baksmali
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This script is a wrapper for smali.jar, so you can simply call "smali",
# instead of java -jar smali.jar. It is heavily based on the "dx" script
# from the Android SDK
# This script is a wrapper around baksmali.jar, so you can simply call
# "baksmali", instead of java -jar baksmali.jar. It is heavily based on
# the "dx" script from the Android SDK

# Set up prog to be the path of this script, including following symlinks,
# and set up progdir to be the fully-qualified pathname of its directory.
Expand Down
Binary file modified resources/clean/baksmali.jar
100755 → 100644
Binary file not shown.
18 changes: 9 additions & 9 deletions resources/clean/inventory
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
adb - Android SDK 12
aapt - Android SDK 8, 9, 10, 11
aapt - Android SDK 8, 9, 10, 11, 12
zipalign - Android SDK 12
apktool.jar - 1.3.2, 1.3.2, 1.4.1, 1.4.2
baksmali.jar - 1.2.6
smali.jar - 1.2.6
7-zip - 9.13 [beta]
apktool.jar - 1.3.2, 1.3.2, 1.4.1, 1.4.2, 1.5.2
baksmali.jar - 1.4.1
smali.jar - 1.4.1
7-zip - 9.20
GNUsed - version 4.2.1
pngout - version 07.22.2011
pngcrush - version 1.7.16
optipng - version 0.6.5
advpng - version 1.15
pngout - version 05.30.12
pngcrush - version 1.7.43
optipng - version 0.7.4
advpng - latest
Empty file modified resources/clean/smali
100755 → 100644
Empty file.
Binary file modified resources/clean/smali.jar
100755 → 100644
Binary file not shown.
Binary file modified resources/png/advpng
Binary file not shown.
Binary file modified resources/png/optipng
Binary file not shown.
Binary file modified resources/png/pngcrush
Binary file not shown.
Binary file modified resources/png/pngout
Binary file not shown.
Loading