mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Don't rely on undocumented global
This commit is contained in:
parent
dae3c9af9d
commit
2bb6d51dd3
3 changed files with 7 additions and 4 deletions
|
@ -2180,8 +2180,11 @@ class KnownApks:
|
|||
lst.reverse()
|
||||
return lst
|
||||
|
||||
def isApkDebuggable(apkfile):
|
||||
"""Returns True if the given apk file is debuggable"""
|
||||
def isApkDebuggable(apkfile, sdk_path):
|
||||
"""Returns True if the given apk file is debuggable
|
||||
|
||||
:param apkfile: full path to the apk to check
|
||||
:param sdk_path: path to android sdk"""
|
||||
|
||||
p = subprocess.Popen([os.path.join(sdk_path, 'platform-tools', 'aapt'),
|
||||
'dump', 'xmltree', apkfile, 'AndroidManifest.xml'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue