Deprecate aapt_path in favour of sdk_path + build_tools

This commit is contained in:
Daniel Martí 2013-08-08 13:00:02 +02:00
parent d86a68b858
commit ece2ece071
4 changed files with 4 additions and 22 deletions

View file

@ -267,10 +267,7 @@ def scan_apks(apps, apkcache, repodir, knownapks):
thisinfo['size'] = os.path.getsize(apkfile)
thisinfo['permissions'] = []
thisinfo['features'] = []
if not os.path.exists(aapt_path):
print "Missing aapt - check aapt_path in your config"
sys.exit(1)
p = subprocess.Popen([aapt_path,
p = subprocess.Popen([os.path.join(sdk_path, 'build-tools', build_tools, 'aapt'),
'dump', 'badging', apkfile],
stdout=subprocess.PIPE)
output = p.communicate()[0]