MCPcopy Index your code
hub / github.com/kivy/python-for-android / sdk_tools

Method sdk_tools

pythonforandroid/toolchain.py:1208–1225  ·  view source on GitHub ↗

Runs the android binary from the detected SDK directory, passing all arguments straight to it. This binary is used to install e.g. platform-tools for different API level targets. This is intended as a convenience function if android is not in your $PATH.

(self, args)

Source from the content-addressed store, hash-verified

1206 dist.delete()
1207
1208 def sdk_tools(self, args):
1209 """Runs the android binary from the detected SDK directory, passing
1210 all arguments straight to it. This binary is used to install
1211 e.g. platform-tools for different API level targets. This is
1212 intended as a convenience function if android is not in your
1213 $PATH.
1214 """
1215 ctx = self.ctx
1216 ctx.prepare_build_environment(user_sdk_dir=self.sdk_dir,
1217 user_ndk_dir=self.ndk_dir,
1218 user_android_api=self.android_api,
1219 user_ndk_api=self.ndk_api)
1220 android = sh.Command(join(ctx.sdk_dir, 'tools', args.tool))
1221 output = android(
1222 *args.unknown_args, _iter=True, _out_bufsize=1, _err_to_out=True)
1223 for line in output:
1224 sys.stdout.write(line)
1225 sys.stdout.flush()
1226
1227 def adb(self, args):
1228 """Runs the adb binary from the detected SDK directory, passing all

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected