From 775344bcdc412431da5fa825b1012f0290fc8064 Mon Sep 17 00:00:00 2001 From: Andrey Artemiev Date: Tue, 12 Jul 2022 17:06:16 -0700 Subject: executor: added code to run Android with System account --- pkg/csource/csource.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkg/csource/csource.go') diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index 55e52347c..7d3b133bf 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -96,7 +96,11 @@ func (ctx *context) generateSource() ([]byte, error) { sandboxFunc := "loop();" if ctx.opts.Sandbox != "" { - sandboxFunc = "do_sandbox_" + ctx.opts.Sandbox + "();" + arguments := "();" + if ctx.opts.Sandbox == "android" { + arguments = "(0);" + } + sandboxFunc = "do_sandbox_" + ctx.opts.Sandbox + arguments } replacements := map[string]string{ "PROCS": fmt.Sprint(ctx.opts.Procs), -- cgit mrf-deployment