Aleasto/waydroid

Ok, I don’t only have an NVIDIA card, but I was using the NVIDIA card to begin with and the settings were set as I described. Therefore it was using software rendering even when I switched to the Intel card later. I had to manually update the settings so that it would use hardware instead. It’s been a few days in the making but with a lot of research and reading of documentation I finally got it working at a satisfactory level for my setup. Anyway I am not here to rain on your parade or anything, just offering some tips with problems people are seeing that I had already resolved myself

Yeah waydroid isn’t great at handling hardware changes, but you can always run a waydroid upgrade --offline to set the new best defaults for your hardware

1 Like

Hello! I’ve been trying to get the wifi network to function for the past while. But wifi doesn’t turn on in waydroid, and turns back off immediately (so does bluetooth). After reinstalling to GAPPS, the play store also says the IP address and MAC address is unavailable.

Here’s the logcat:

12-15 05:42:06.465   327   650 I ActivityManager: Killing 1995:org.lineageos.waydroidupdater/u0a133 (adj 985): empty #17
12-15 05:42:06.466   327   355 W libprocessgroup: Failed to open process cgroup uid 10133 pid 1995: Permission denied
12-15 05:42:06.466   327   355 E libprocessgroup: Error encountered killing process cgroup uid 10133 pid 1995: Permission denied
12-15 05:42:06.475    69    69 I Zygote  : Process 1995 exited due to signal 9 (Killed)
12-15 05:42:09.843  1283  1283 I Finsky  : [2] wbh.a(20): SCH: onJobSchedulerWakeup with jobId 9003
12-15 05:42:09.844  1283  1283 I Finsky  : [2] vyk.a(19): Scheduling fallback job with id: 9034, and delay: 43200000 ms
12-15 05:42:09.846  1283  1283 I Finsky  : [2] vyk.a(9): Scheduling fallback in 64799999 (absolute: 65577436)
12-15 05:42:09.852  1283  1283 I Finsky  : [2] vyt.handleMessage(7): SCH: DeviceState: DeviceState{currentTime=1671082929850, isCharging=true, isIdle=false, netAny=false, netNotRoaming=false, netUnmetered=false, batteryPercent=85.0}
12-15 05:42:09.855  1283  1811 I Finsky  : [134] wbh.a(7): SCH: Jobs in database: 1-1337 21-333333333 24-77777777 26-1414141414 29-29 31-305419896 
12-15 05:42:09.858  1283  1283 I Finsky  : [2] vyu.a(16): SCH: Running job: 29-29
12-15 05:42:09.859  1283  1283 I Finsky  : [2] vyt.handleMessage(58): SCH: RunningQueue size: 1, PendingQueue size: 0
12-15 05:42:09.859  1283  1283 I Finsky  : [2] vyt.handleMessage(62): SCH: Running queue: 29-29 
12-15 05:42:09.860  1283  2538 I Finsky  : [185] aclh.a(1): ProcessRecoveryLogsUtil: No files in recovery directory
12-15 05:42:09.860  1283  2538 I Finsky  : [185] wae.a(14): SCH: jobFinished: 29-29. TimeElapsed: 2ms.
12-15 05:42:09.860  1283  1283 I Finsky  : [2] vyu.a(35): SCH: Job 29-29 finished. Not rescheduling.
12-15 05:42:09.861  1283  1283 I Finsky  : [2] vyt.handleMessage(58): SCH: RunningQueue size: 0, PendingQueue size: 0
12-15 05:42:09.861  1283  1283 I Finsky  : [2] vyt.handleMessage(24): Executor finished
12-15 05:42:09.920  1283  1283 I Finsky  : [2] wbh.a(7): SCH: Jobs in database: 1-1337 21-333333333 24-77777777 26-1414141414 31-305419896 
12-15 05:42:09.925  1283  1283 I Finsky  : [2] vxc.a(58): SCH: ConstraintMapping: 24-77777777,  -> L: 0ms, D: 82411596ms, C: false, I: true, N: 0
12-15 05:42:09.925  1283  1283 I Finsky  : [2] vxc.a(58): SCH: ConstraintMapping: 1-1337, 21-333333333, 31-305419896,  -> L: 0ms, D: 38394486ms, C: false, I: false, N: 1
12-15 05:42:09.925  1283  1283 I Finsky  : [2] vxc.a(58): SCH: ConstraintMapping: 26-1414141414,  -> L: 511807ms, D: 1411807ms, C: false, I: false, N: 0
12-15 05:42:09.928  1283  1283 I Finsky  : [2] vzr.a(36): Cancelling existing jobscheduler jobs: 9001 9002 
12-15 05:42:09.928  1283  1283 I Finsky  : [2] vzr.a(12): Throttling wakeup for job 9000 (expected to run in 0 ms) due to recent wakeup
12-15 05:42:09.928  1283  1283 I Finsky  : [2] vzr.a(29): Scheduling job Id: 9000, L: 30000, D: 82411596, C: false, I: true, N: 0
12-15 05:42:09.929  1283  1283 I Finsky  : [2] vzr.a(12): Throttling wakeup for job 9004 (expected to run in 0 ms) due to recent wakeup
12-15 05:42:09.929  1283  1283 I Finsky  : [2] vzr.a(29): Scheduling job Id: 9004, L: 30000, D: 38394486, C: false, I: false, N: 1
12-15 05:42:09.930  1283  1283 I Finsky  : [2] vzr.a(29): Scheduling job Id: 9005, L: 511807, D: 1411807, C: false, I: false, N: 0
12-15 05:42:22.753  1031  2539 E WakeLock: GCM_HB_ALARM release without a matched acquire!
12-15 05:42:22.753  1031  2539 W WakeLock: GCM_HB_ALARM counter does not exist
12-15 05:42:25.697  1671  1689 I PermissionControllerServiceImpl: Updating user sensitive for user 0
12-15 05:42:25.700  1671  2414 I UserPackageInfos: updating UserPackageInfosLiveData for user 0
12-15 05:42:25.700  1671  2419 I LancherPackagesLiveData: updating LauncherPackageLiveData
12-15 05:42:30.049   594   834 D DhcpClient: Broadcasting DHCPDISCOVER
12-15 05:42:32.220   327  2541 I system_server: The ClassLoaderContext is a special shared library.
12-15 05:42:32.240   327  2541 W DexManager: Skipping dexopt for system server path loaded with variable class loader context: /system/framework/com.android.location.provider.jar
12-15 05:42:32.326   327  2541 I chatty  : uid=1000 system_server identical 87 lines
12-15 05:42:32.327   327  2541 I system_server: The ClassLoaderContext is a special shared library.
12-15 05:42:32.328   327  2541 I BackgroundDexOptService: Pinning optimized code {}
12-15 05:42:33.133  1283  1350 I Finsky  : [115] kqp.run(3): Stats for Executor: BlockingExecutor kso@d6441c0[Running, pool size = 2, active threads = 0, queued tasks = 0, completed tasks = 16]
12-15 05:42:33.133  1283  1350 I Finsky  : [115] kqp.run(3): Stats for Executor: LightweightExecutor kso@a38aef9[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 73]
12-15 05:42:34.219  1283  1350 I Finsky  : [115] kqp.run(3): Stats for Executor: bgExecutor kso@d088e3e[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 91]
12-15 05:42:36.525   327   361 V DisplayPowerController: Brightness [0.05] reason changing to: 'manual [ dim ]', previous reason: 'manual'.
12-15 05:43:00.012   464   464 D KeyguardClockSwitch: Updating clock: 5:43
12-15 05:43:18.461   327   353 I ActivityManager: Killing 2043:com.google.android.gms.ui/u0a115 (adj 985): empty #17
12-15 05:43:00.012   464   464 D KeyguardClockSwitch: Updating clock: 5:43
12-15 05:43:18.462   327   355 W libprocessgroup: Failed to open process cgroup uid 10115 pid 2043: Permission denied
12-15 05:43:18.462   327   355 E libprocessgroup: Error encountered killing process cgroup uid 10115 pid 2043: Permission denied
12-15 05:43:18.464  1031  2543 E WakeLock: GCM_HB_ALARM release without a matched acquire!
12-15 05:43:18.464  1031  2543 W WakeLock: GCM_HB_ALARM counter does not exist
12-15 05:43:18.471    69    69 I Zygote  : Process 2043 exited due to signal 9 (Killed)
12-15 05:43:37.605   594   834 D DhcpClient: Broadcasting DHCPDISCOVER
12-15 05:43:41.671   327   390 I InputReader: Dropping key up from device wayland_keyboard because the key was not down.  keyCode=61, scanCode=15
12-15 05:43:42.446   327   361 V DisplayPowerController: Brightness [0.39763778] reason changing to: 'manual', previous reason: 'manual [ dim ]'.
12-15 05:43:42.521   973   973 W KeyboardSwitcher: onToggleKeyboard() : Current = HIDDEN : Toggle = EMOJI
12-15 05:43:42.541   973   973 W SubtypeLocaleUtils: KeyboardLayoutSet not found, use QWERTY: locale=en_AU extraValue=TrySuppressingImeSwitcher,AsciiCapable,SupportTouchPositionCorrection,EmojiCapable
12-15 05:43:42.541   973   973 W SubtypeLocaleUtils: KeyboardLayoutSet not found, use QWERTY: locale=hu_ZZ extraValue=AsciiCapable,SupportTouchPositionCorrection,EmojiCapable
12-15 05:43:42.542   973   973 W RichInputMethodSubtype: Can't find emoji subtype
12-15 05:43:42.542   973   973 W RichInputMethodSubtype: No input method subtype found; returning dummy subtype: Multi-lingual subtype: android.view.inputmethod.InputMethodSubtype@d78b2ed0, zz
12-15 05:43:42.618   973   973 I EmojiCategory: Last Emoji category id is 8
12-15 05:43:42.627   973   973 W ViewPager: Requested offscreen page limit 0 too small; defaulting to 1
12-15 05:43:42.631   973   973 I LatinIME: Starting input. Cursor position = -1,-1
12-15 05:43:42.636   973   973 I InputAttributes: InputType.TYPE_NULL is specified
12-15 05:43:42.655   973   973 I InputAttributes: InputType.TYPE_NULL is specified
12-15 05:43:42.674   973   973 D ActivityThread: ViewRootImpl.ConfigChangedCallback for IME, config={1.0 ?mcc?mnc [en_US] ldltr sw1038dp w1706dp h958dp 180dpi xlrg land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1920, 1168) mAppBounds=Rect(0, 0 - 1920, 1105) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.8}
12-15 05:43:42.738    35    35 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@4.0::IMapper/default in either framework or device manifest.
12-15 05:43:42.739   973  1054 I Gralloc4: mapper 4.x is not supported
12-15 05:43:42.739    35    35 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@3.0::IMapper/default in either framework or device manifest.
12-15 05:43:42.739   973  1054 W Gralloc3: mapper 3.x is not supported
12-15 05:43:42.743    35    35 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@4.0::IMapper/default in either framework or device manifest.
12-15 05:43:44.983     0     0 D logd    : logdr: UID=0 GID=0 PID=2582 b tail=0 logMask=99 pid=0 start=0ns timeout=0ns
12-15 05:43:44.888   973   973 I LatinIME: Timeout waiting for dictionary load
12-15 05:44:00.002   464   464 D KeyguardClockSwitch: Updating clock: 5:44
12-15 05:44:39.583   327   361 V DisplayPowerController: Brightness [0.05] reason changing to: 'manual [ dim ]', previous reason: 'manual'.
12-15 05:45:00.002   464   464 D KeyguardClockSwitch: Updating clock: 5:45
12-15 05:45:09.877  1031  2584 E WakeLock: GCM_HB_ALARM release without a matched acquire!
12-15 05:45:09.877  1031  2584 W WakeLock: GCM_HB_ALARM counter does not exist
12-15 05:45:54.502   594   834 D DhcpClient: Broadcasting DHCPDISCOVER
12-15 05:46:00.002   464   464 D KeyguardClockSwitch: Updating clock: 5:46
12-15 05:46:34.387  1283  1840 I PlayCommon: [154] aora.c(26): Preparing logs for uploading
12-15 05:46:34.389  1283  1840 I PlayCommon: [154] aora.c(167): Connecting to server for timestamp: https://play.googleapis.com/play/log/timestamp
12-15 05:46:34.390  1283  1840 E PlayCommon: [154] aora.c(168): Failed to connect to server for server timestamp: java.net.UnknownHostException: Unable to resolve host "play.googleapis.com": No address associated with hostname
12-15 05:46:34.390  1283  1840 W PlayCommon: [154] aora.a(1): No account for auth token provided
12-15 05:46:34.390  1283  1840 I PlayCommon: [154] aora.c(201): Connecting to server: https://play.googleapis.com/play/log?format=raw&proto_v2=true
12-15 05:46:34.391  1283  1840 E PlayCommon: [154] aora.c(207): Failed to connect to server for log upload.
12-15 05:46:44.884   327   650 I ActivityManager: Killing 2022:com.android.externalstorage/u0a80 (adj 975): empty #17
12-15 05:46:44.885   327   355 W libprocessgroup: Failed to open process cgroup uid 10080 pid 2022: Permission denied
12-15 05:46:44.885   327   355 E libprocessgroup: Error encountered killing process cgroup uid 10080 pid 2022: Permission denied
12-15 05:46:44.894    69    69 I Zygote  : Process 2022 exited due to signal 9 (Killed)

I’ve tried as much as I could find on the internet, nothing seems to be working. I’m also running f36. Hope that’s enough!

I looked into this more and seems that this log appears every time I attempt to enable the wifi, practically the same thing appears each time:

12-15 19:07:43.171   330  2951 I WifiService: setWifiEnabled package=com.google.android.setupwizard uid=10134 enable=true
12-15 19:07:43.172   330   404 D WifiActiveModeWarden: Starting ClientModeManager
12-15 19:07:43.172   330   404 D WifiController: DisabledState.exit()
12-15 19:07:43.172   330   404 D WifiController: EnabledState.enter()
12-15 19:07:43.172   330   404 D WifiClientModeManager: entering IdleState
12-15 19:07:43.172   330   404 I WifiNative: Vendor Hal not supported, ignoring start.
12-15 19:07:43.172   330   404 I WifiNative: Vendor Hal not supported, ignoring createStaIface.
12-15 19:07:43.172   330   404 D WifiNl80211Manager: Setting up interface for client mode
12-15 19:07:43.177   116   116 E wificond: Failed to get wiphy index
12-15 19:07:43.177   330   404 E WifiNl80211Manager: Could not get IClientInterface instance from wificond
12-15 19:07:43.177   330   404 E WifiNative: Failed to setup iface in wificond=wlan0
12-15 19:07:43.177   330   404 I WifiNative: Vendor Hal not supported, ignoring removeStaIface.
12-15 19:07:43.177   330   404 E WifiNative: Failed to unregister network observer on Iface:{Name=wlan0,Id=7,Type=STA_SCAN}
12-15 19:07:43.177   330   404 E WifiNl80211Manager: No valid wificond client interface handler
12-15 19:07:43.177   330   404 E WifiNative: Failed to teardown iface in wificond on Iface:{Name=wlan0,Id=7,Type=STA_SCAN}
12-15 19:07:43.177   330   404 D WifiNl80211Manager: tearing down interfaces in wificond
12-15 19:07:43.177   330   404 I WifiNative: Vendor Hal not supported, ignoring stop.
12-15 19:07:43.177   330   404 I WifiNative: Successfully torn down Iface:{Name=wlan0,Id=7,Type=STA_SCAN}
12-15 19:07:43.177   330   404 I WifiNative: Successfully initiated teardown for iface=wlan0
12-15 19:07:43.177   330   404 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle
12-15 19:07:43.177   330   404 D WifiScanRequestProxy: Sending scan available broadcast: false
12-15 19:07:43.177   330   407 I WifiScanningService: Received a request to disable scanning, UID = 1000
12-15 19:07:43.178   330   404 I WifiScanRequestProxy: Scanning is disabled
12-15 19:07:43.178   330   407 I WifiScanningService: wifi driver unloaded
12-15 19:07:43.178   330   404 D WifiClientModeManager: received an invalid message: { when=-6ms what=2 arg1=2 target=com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler }
12-15 19:07:43.178   330   404 D WifiController: STA disabled, return to DisabledState.
12-15 19:07:43.178   330   404 D WifiController: EnabledState.exit()
12-15 19:07:43.178   330   404 D WifiController: DisabledState.enter()
12-15 19:07:43.706   957   957 W KeyboardSwitcher: onToggleKeyboard() : Current = HIDDEN : Toggle = EMOJI

My guess is there’s an issue with creating a ClientInterface. I have very limited knowledge in this and I have no idea what to do next, please help

I get selinux issues while trying to initialize on fedora silverblue 37 anyone could get it work?

Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora audit[3710]: AVC avc:  denied  { name_connect } for  pid=3710 comm="waydroid" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
Dec 25 12:38:47 fedora waydroid[887]: WayDroid waiting for initialization...

First off, thanks a lot for your work!
I use fedora 37 and I tried your repo; since I last tried waydroid (one year ago with a different package), it now works with two exceptions.
1 - When I run waydroid with systemd, I have a strange error. waydroid-container service works fine until I launch “waydroid session start” as a user in another terminal. Then I can see that line in the log: RuntimeError: Command failed: % mkdir -p /home/philippe/.local/share/waydroid/data
This is strange because the directory exists and launching the same command as root or as user does not error out !
BUT if I disable systemd and simply launch waydroid like this “sudo waydroid container start” and then “waydroid session start” as a user in another terminal, it is fine. Could it be a selinux error, the way the systemd service (which runs as root, I checked) is set up?
2 - when I get waydroid to work using the above commands, I don’t have any network.
BUT using tips from these pages:

https://wiki.archlinux.org/title/Waydroid
helps make it work again.

Again thanks.

Share sudo ausearch --raw | grep avc | tail and ls -laZ $HOME/.local/share/waydroid and maybe waydroid log.
Also network works fine here with the default trusted zone configuration

Thanks for your help! By the way, I use 1.3.4-2.
I saw that your created a new package. I’ll try it today.

Here is “waydroid log”:

(258182) [18:33:03] % chmod 666 -R /dev/binder
(258182) [18:33:03] % chmod 666 -R /dev/vndbinder
(258182) [18:33:03] % chmod 666 -R /dev/hwbinder
(258182) [18:33:03] Container manager is waiting for session to load
(258261) [18:33:11] Save session config: /var/lib/waydroid/session.cfg
(258261) [18:33:11] UserMonitor service is not even started
(258261) [18:33:11] Clipboard service is not even started
(258182) [18:33:11] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
which: no iptables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
which: no ip6tables-legacy in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
waydroid-net is already running
(258182) [18:33:11] % umount /var/lib/waydroid/rootfs/vendor/waydroid.prop
(258182) [18:33:11] % umount /var/lib/waydroid/rootfs/vendor
(258182) [18:33:11] % umount /var/lib/waydroid/rootfs
(258182) [18:33:11] % mount -o context="system_u:object_r:waydroid_rootfs_t:s0" /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
(258182) [18:33:11] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
(258182) [18:33:11] % mount -o context="system_u:object_r:waydroid_rootfs_t:s0" /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(258182) [18:33:11] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(258182) [18:33:11] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(258182) [18:33:11] Save config: /var/lib/waydroid/waydroid.cfg
(258182) [18:33:11] % mkdir -p /home/philippe/.local/share/waydroid/data
mkdir: impossible de créer le répertoire « /home/philippe »: Permission non accordée
(258182) [18:33:11] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(258182) [18:33:11] NOTE: The failed command's output is above the ^^^ line in the log file: /var/lib/waydroid/waydroid.log
(258182) [18:33:11] ERROR: Command failed: % mkdir -p /home/philippe/.local/share/waydroid/data 1
(258182) [18:33:11] See also: <https://github.com/waydroid>
(258182) [18:33:11] Traceback (most recent call last):
  File "/usr/lib/waydroid/tools/__init__.py", line 70, in main
    actions.container_manager.start(args)
  File "/usr/lib/waydroid/tools/actions/container_manager.py", line 102, in start
    helpers.mount.bind(args, session_cfg["session"]["waydroid_data"],
  File "/usr/lib/waydroid/tools/helpers/mount.py", line 43, in bind
    tools.helpers.run.user(args, ["mkdir", "-p", path])
  File "/usr/lib/waydroid/tools/helpers/run.py", line 58, in user
    return tools.helpers.run_core.core(args, msg, cmd, working_dir, output,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/waydroid/tools/helpers/run_core.py", line 346, in core
    check_return_code(args, code, log_message, output_after_run, cmd, working_dir)
  File "/usr/lib/waydroid/tools/helpers/run_core.py", line 222, in check_return_code
    raise RuntimeError("Command failed: " + log_message)
RuntimeError: Command failed: % mkdir -p /home/philippe/.local/share/waydroid/data

(258289) [18:33:11] UserMonitor service is not even started
(258289) [18:33:11] Clipboard service is not even started

Here is “ls -laZ $HOME/.local/share/waydroid”:

total 0
drwxrwxrwx. 1 philippe philippe unconfined_u:object_r:unlabeled_t:s0   8 27 déc.  14:45 .
drwx------. 1 philippe philippe unconfined_u:object_r:unlabeled_t:s0 704 27 déc.  19:20 ..
drwxrwx--x. 1 philippe philippe unconfined_u:object_r:unlabeled_t:s0 764 27 déc.  17:59 data

And here is “sudo ausearch --raw | grep avc | tail”:

type=AVC msg=audit(1672162960.093:4614): avc:  denied  { write } for  pid=260254 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162963.552:4615): avc:  denied  { write } for  pid=260277 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162963.552:4616): avc:  denied  { write } for  pid=260277 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162967.095:4617): avc:  denied  { write } for  pid=260299 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162967.095:4618): avc:  denied  { write } for  pid=260299 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162970.536:4619): avc:  denied  { write } for  pid=260320 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162970.536:4620): avc:  denied  { write } for  pid=260320 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162974.266:4621): avc:  denied  { write } for  pid=260345 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672162974.266:4622): avc:  denied  { write } for  pid=260345 comm="totem-video-thu" name="gstreamer-1.0" dev="nvme0n1p6" ino=102975 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1672222339.258:271): avc:  denied  { read } for  pid=1192 comm="gdbus" path="/home/philippe/.local/share/icc/edid-19b0254151bdfb240fec57efdfa77402.icc" dev="nvme0n1p6" ino=14703331 scontext=system_u:system_r:colord_t:s0 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=file permissive=0

Files under $HOME should not be unlabeled_t.

That did the trick. Thanks a lot! As an added bonus, since waydroid-container is now properly managed by systemctl, the network problem went away as well.

For the record and for people, like me, who are beginners, I used the command “restorecon -vr $HOME” to fix the selinux problem.

Thanks for your work! This didn’t work out of the box (issues with dnsmasq starting) on Nobara 37 so I had to do the following (from here):

in script /usr/lib/waydroid/data/scripts/waydroid-net.sh add at the second line:

exit 0

and add bridge interface manually:

nmcli con add type bridge ifname waydroid0 -- connection.id waydroid0 ipv4.method shared ipv4.addresses 192.168.250.1/24

Then I had to make sure the container was enabled, then started:

sudo systemctl start --now waydroid-container

Then the following command worked (after a few seconds):

waydroid show-full-ui

Note: it took a little while before the device connected to the internet.

I’m also not going to support Nobara where they choose to diverge from Fedora, sorry.

1 Like

Totally understood. I was just posting this for anyone else coming from Nobara having issues getting it working. Thanks for getting this working on Fedora!

I had this working on a newly installed F38 a month ago - but coming back to it now and I don’t get a GUI or error for:

waydroid show-full-ui

or:

waydroid app launch google-photos

I see in the log:

(028668) [12:25:36] New background process: pid=66754, output=background

Could this be the problem?

Thanks!
Phil.

to my configuration start to work, the main trick was:

  • Check if your IPTABLES it’s set the FORWARD policy with DROP

    iptables --list-rules | grep FORWARD 
    
  • If yes, set ACCEPT

    iptables -P FORWARD ACCEPT