Merge pull request #1238 from germn/add_adb_args_option

Add android.adb_args option
This commit is contained in:
Andre Miras 2021-01-07 00:30:20 +01:00 committed by GitHub
commit 54b2975f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -219,6 +219,9 @@ fullscreen = 0
# (str) Android logcat filters to use # (str) Android logcat filters to use
#android.logcat_filters = *:S python:D #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 # (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1 #android.copy_libs = 1

View file

@ -262,6 +262,12 @@ class TargetAndroid(Target):
'zlib headers must be installed, ' 'zlib headers must be installed, '
'run: sudo apt-get install zlib1g-dev') '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 # Need to add internally installed ant to path for external tools
# like adb to use # like adb to use
path = [join(self.apache_ant_dir, 'bin')] path = [join(self.apache_ant_dir, 'bin')]