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

@ -1589,14 +1589,9 @@ def isApkDebuggable(apkfile):
:param apkfile: full path to the apk to check"""
if ('aapt_path' not in globals()):
# (re-)read configuration
execfile('config.py', globals())
if not os.path.exists(aapt_path):
print "Missing aapt - check aapt_path in your config"
sys.exit(1)
execfile('config.py', globals())
p = subprocess.Popen([aapt_path,
p = subprocess.Popen([os.path.join(sdk_path, 'build-tools', build_tools, 'aapt'),
'dump', 'xmltree', apkfile, 'AndroidManifest.xml'],
stdout=subprocess.PIPE)
output = p.communicate()[0]