Simplify SDK path configuration

As long as we're making the user specify the path to the SDK, we can
use that information to find all the tools - there's no need for
specifying the location of aapt separately or requiring the tools to
be in $PATH.
This commit is contained in:
Henrik Tunedal 2011-04-06 20:55:27 +02:00
parent a87532a54c
commit 4cfc02ae9d
4 changed files with 12 additions and 9 deletions

View file

@ -95,8 +95,9 @@ for apkfile in glob.glob(os.path.join('repo','*.apk')):
thisinfo['size'] = os.path.getsize(apkfile)
thisinfo['permissions'] = []
thisinfo['features'] = []
p = subprocess.Popen([aapt_path,'dump','badging',
apkfile], stdout=subprocess.PIPE)
p = subprocess.Popen([os.path.join(sdk_path, 'platform-tools', 'aapt'),
'dump', 'badging', apkfile],
stdout=subprocess.PIPE)
output = p.communicate()[0]
if options.verbose:
print output