X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/facf2b713da1038bbc960bb7e094bdb80213485e..5eb95c31a8eb6c13d27dcceb5510f2d9c6a04d71:/tools/interfaces/IClipboard.py diff --git a/tools/interfaces/IClipboard.py b/tools/interfaces/IClipboard.py index a123501..5bd00b6 100644 --- a/tools/interfaces/IClipboard.py +++ b/tools/interfaces/IClipboard.py @@ -12,7 +12,10 @@ TRANSACTION_getClipboardData = 2 def add_service(args, sendClipboardData, getClipboardData): helpers.drivers.loadBinderNodes(args) - serviceManager = gbinder.ServiceManager("/dev/" + args.BINDER_DRIVER) + try: + serviceManager = gbinder.ServiceManager("/dev/" + args.BINDER_DRIVER, args.SERVICE_MANAGER_PROTOCOL, args.BINDER_PROTOCOL) + except TypeError: + serviceManager = gbinder.ServiceManager("/dev/" + args.BINDER_DRIVER) def response_handler(req, code, flags): logging.debug(