Add android.adb_args option

This commit is contained in:
germn 2020-10-13 01:15:54 +03:00
parent 513ad560b7
commit 84d9390805
2 changed files with 9 additions and 0 deletions

View file

@ -219,6 +219,9 @@ fullscreen = 0
# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D
# (str) Android additional adb arguments
#android.adb_args = -H host.docker.internal
# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

View file

@ -262,6 +262,12 @@ class TargetAndroid(Target):
'zlib headers must be installed, '
'run: sudo apt-get install zlib1g-dev')
# Adb arguments:
adb_args = self.buildozer.config.getdefault(
"app", "android.adb_args", None)
if adb_args is not None:
self.adb_cmd += ' ' + adb_args
# Need to add internally installed ant to path for external tools
# like adb to use
path = [join(self.apache_ant_dir, 'bin')]