From d7f15a9311968d1e09073bd3e8a64a8f330bc0ec Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 1 May 2017 15:03:44 +0200 Subject: [PATCH] fixes missing quotes to protect apk path. Closes #480 --- buildozer/targets/android.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index d8fcd83..6c8faff 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -890,8 +890,8 @@ class TargetAndroid(Target): for serial in self.serials: self.buildozer.environ['ANDROID_SERIAL'] = serial self.buildozer.info('Deploy on {}'.format(serial)) - self.buildozer.cmd('{0} install -r {1}'.format(self.adb_cmd, - full_apk), + self.buildozer.cmd('{0} install -r "{1}"'.format( + self.adb_cmd, full_apk), cwd=self.buildozer.global_platform_dir) self.buildozer.environ.pop('ANDROID_SERIAL', None) @@ -938,4 +938,3 @@ class TargetAndroid(Target): def get_target(buildozer): return TargetAndroid(buildozer) -