import glob
import signal
import sys
+import uuid
import tools.config
from tools import helpers
from tools import services
# Graphics
"/dev/dri",
"/dev/graphics",
+ "/dev/pvr_sync",
+ "/dev/ion",
]
# Framebuffers
# Mount rootfs
helpers.images.mount_rootfs(args, cfg["waydroid"]["images_path"])
+ helpers.protocol.set_aidl_version(args)
+
# Mount data
helpers.mount.bind(args, session_cfg["session"]["waydroid_data"],
tools.config.defaults["data"])
if which("start"):
command = ["start", "cgroup-lite"]
tools.helpers.run.user(args, command, check=False)
- command = ["umount", "-l", "/sys/fs/cgroup/schedtune"]
- tools.helpers.run.user(args, command, check=False)
+ if os.path.ismount("/sys/fs/cgroup/schedtune"):
+ command = ["umount", "-l", "/sys/fs/cgroup/schedtune"]
+ tools.helpers.run.user(args, command, check=False)
#TODO: remove NFC hacks
if which("stop"):
# Sensors
if which("waydroid-sensord"):
command = ["pidof", "waydroid-sensord"]
- pid = tools.helpers.run.user(args, command, check=False, output_return=True)
+ pid = tools.helpers.run.user(args, command, check=False, output_return=True).strip()
if pid:
command = ["kill", "-9", pid]
tools.helpers.run.user(args, command, check=False)