if not isBinderfsLoaded(args):
devices = ','.join(binder_dev_nodes)
command = ["modprobe", "binder_linux", "devices=\"{}\"".format(devices)]
if not isBinderfsLoaded(args):
devices = ','.join(binder_dev_nodes)
command = ["modprobe", "binder_linux", "devices=\"{}\"".format(devices)]
- output = tools.helpers.run.root(args, command, check=False, output_return=True)
+ output = tools.helpers.run.user(args, command, check=False, output_return=True)
if output:
logging.error("Failed to load binder driver for devices: {}".format(devices))
logging.error(output.strip())
if isBinderfsLoaded(args):
command = ["mkdir", "-p", "/dev/binderfs"]
if output:
logging.error("Failed to load binder driver for devices: {}".format(devices))
logging.error(output.strip())
if isBinderfsLoaded(args):
command = ["mkdir", "-p", "/dev/binderfs"]
command = ["mount", "-t", "binder", "binder", "/dev/binderfs"]
command = ["mount", "-t", "binder", "binder", "/dev/binderfs"]
def probeAshmemDriver(args):
if not os.path.exists("/dev/ashmem"):
command = ["modprobe", "ashmem_linux"]
def probeAshmemDriver(args):
if not os.path.exists("/dev/ashmem"):
command = ["modprobe", "ashmem_linux"]
- output = tools.helpers.run.root(args, command, check=False, output_return=True)
+ output = tools.helpers.run.user(args, command, check=False, output_return=True)