mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Deprecate aapt_path in favour of sdk_path + build_tools
This commit is contained in:
parent
d86a68b858
commit
ece2ece071
4 changed files with 4 additions and 22 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue