WayDroid on SFOS?

I think I also got errors when installing from chum the first time, but honestly cant remember what made the difference :frowning: did you try both waydroid and waydroid runner?

maybe give it a try from the commandline as well in the hope for more precise error message.

good luck!

1 Like

and

seemed to have worked all of a sudden? Waydroid is installed. Now for some android apps

Big thanks jbj!!

2 Likes

failed to get service waydroidplatform, trying again…

well at least you got further than me. Did you have to set up ashmem and binder by yourself?

No I didn’t. I found this But that didn’t help.

I’m maybe gonna try to install wayland as explained in that post, but I’m not hopeful.

FYI, here’s what I get so far:

[defaultuser@xperiaXZ2Compact ~]$ waydroid-runner
[D] unknown:0 - Using Wayland-EGL
library “libGLESv2_adreno.so” not found
library “eglSubDriverAndroid.so” not found
Wayland socket: …/…/display/wayland-1
[D] onCompleted:580 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[D] expression for onStatusChanged:110 - Status: 1 Starting Android session
[Session] [19:20:26] XDG Session is not “wayland”
[Session] [19:20:28] Failed to start Clipboard manager service, check logs
[D] unknown:0 - Current Wayland socket: “…/…/display/wayland-1”
[D] expression for onStatusChanged:110 - Status: 2 Waiting for Android UI
[FullUI] [19:20:29] Failed to get service waydroidplatform, trying again…

The last line keeps on repeating itself, until I close waydroid-runner
I’ll keep you informed

1 Like

You have to install packages from Chum - waydroid and waydroid-runner. Then install from terminal -
devel-su
zypper in waydroid-gbinder-config-hybris
cd /etc/gbinder.d
vi anbox-hybris.conf
Change aidl2 to aidl3
Save file.
waydroid init
Than reboot and start waydroid

3 Likes

Hey @Sheigorath thanks for your suggestion, I have looked around for any hint and haven’t found anything.

I still get errors - I will just paste them here in case you or anyone else at a later point can chip in:

,---
| Sailfish OS 4.4.0.72 (Vanha Rauma)
'---
[defaultuser@GeminiPDA ~]$ devel-su
Password:
[root@GeminiPDA ]# cat /etc/gbinder.d/anbox-hybris.conf
[Protocol]
/dev/puddlejumper = aidl3
/dev/vndpuddlejumper = aidl3
/dev/hwpuddlejumper = hidl

[ServiceManager]
/dev/puddlejumper = aidl3
/dev/vndpuddlejumper = aidl3
/dev/hwpuddlejumper = hidl

[root@GeminiPDA defaultuser]# waydroid init
[22:13:28] Failed to load binder driver
[22:13:28] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/3.18.41
[22:13:28] ERROR: Binder node "vndbinder" for waydroid not found
[22:13:28] See also: <https://github.com/waydroid>
Run 'waydroid log' for details.
[root@GeminiPDA defaultuser]# waydroid log
    helpers.drivers.setupBinderNodes(args)
  File "/opt/waydroid/tools/helpers/drivers.py", line 141, in setupBinderNodes
    raise OSError('Binder node "vndbinder" for waydroid not found')
OSError: Binder node "vndbinder" for waydroid not found

(002807) [22:13:28] % modprobe binder_linux devices="anbox-vndbinder,anbox-hwbinder"
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/3.18.41
(002807) [22:13:28] Failed to load binder driver
(002807) [22:13:28] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/3.18.41
(002807) [22:13:28] ERROR: Binder node "vndbinder" for waydroid not found
(002807) [22:13:28] See also: <https://github.com/waydroid>
(002807) [22:13:28] Traceback (most recent call last):
  File "/opt/waydroid/tools/__init__.py", line 53, in main
    actions.init(args)
  File "/opt/waydroid/tools/actions/initializer.py", line 101, in init
    setup_config(args)
  File "/opt/waydroid/tools/actions/initializer.py", line 93, in setup_config
    helpers.drivers.setupBinderNodes(args)
  File "/opt/waydroid/tools/helpers/drivers.py", line 141, in setupBinderNodes
    raise OSError('Binder node "vndbinder" for waydroid not found')
OSError: Binder node "vndbinder" for waydroid not found

(002834) [22:16:00] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(002834) [22:16:00] *** output passed to waydroid stdout, not to this log ***

I saw in another forum a suggestion to self compile missing kernel modules, this is something I only have peripheral experience with.

I’m sorry, I can’t help you. My device is Sony XZ2
And latest waydroid works. With some bugs, but it is usable. I don’t know nothing about Gemini Pda

Thank you Sheigorath, I now have an android ui. Still giving the same errors in terminal, but the last line as described in my previous post stops repeating itself after some tim. Thank you!

I’m quite sure Gemini needs a custom kernel for the binder stuff. Might even need a newer kernel version than the port has.

I seem to remember that it can kexec-boot one, so you don’t necessarily have to flash it, but you need the image first obviously.

1 Like

Hello, i an trying to instal waydroid on Xperia 10 I, but keep getting an error “XDG session is not Wayland” and “Failed to start clipboard manager, check the logs”, but the logs are empty.

If you run echo $XDG_SESSION_TYPE and echo $XDG_SESSION_DESKTOP in the cmdline, what is the output?

Same error after today waydroid update

If you could do this, I maybe can help you working around this issue.

After running in terminal devel-su waydroid upgrade
It is working again

Thanks, but anothe problem appeared - it outputs “Run waydroid log for details” even if running waydroid log, lol.

Hey,
I am trying to get Waydroid working on Volla 22 (latest SFOS) and I am stuck where other are stuck to.

(003653) [16:46:20] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(003653) [16:46:20] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
(003653) [16:46:20] % mount -o bind /vendor/odm /var/lib/waydroid/rootfs/odm_extra
(003653) [16:46:20] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(003653) [16:46:20] Save config: /var/lib/waydroid/waydroid.cfg
(003653) [16:46:20] % mount -o bind /home/defaultuser/.local/share/waydroid/data /var/lib/waydroid/data
(003653) [16:46:20] % chmod 777 -R /dev/ashmem
(003653) [16:46:20] % chmod 777 -R /dev/MTK_SMI
(003653) [16:46:20] % chmod 777 -R /dev/mdp_sync
(003653) [16:46:20] % chmod 777 -R /dev/mtk_cmdq
(003653) [16:46:20] % chmod 777 -R /dev/graphics
(003653) [16:46:20] % chmod 777 -R /dev/ion
(003653) [16:46:20] % chmod 777 -R /dev/fb0
(003653) [16:46:20] % chmod 777 -R /dev/video1
(003653) [16:46:20] % chmod 777 -R /dev/video0
(003653) [16:46:20] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid – /init
(003653) [16:46:20] New background process: pid=7226, output=background
lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
lxc-start: waydroid: utils.c: open_without_symlink: 1062 Too many levels of symbolic links - vibrator in /usr/lib64/lxc/rootfs/sys/class/leds/vibrator was a symbolic link!
(003653) [16:46:20] Save session config: /var/lib/waydroid/session.cfg
(003653) [16:46:21] Failed to add service waydroidhardware: -2147483647
(003653) [16:46:21] Failed to add service waydroidhardware: -2147483647
(007138) [16:46:21] Failed to start Clipboard manager service, check logs
(007454) [16:46:22] Failed to get service waydroidplatform, trying again…
(007454) [16:46:23] Failed to get service waydroidplatform, trying again…
(007454) [16:46:24] Failed to get service waydroidplatform, trying again…
(007454) [16:46:25] Failed to get service waydroidplatform, trying again…
(007454) [16:46:26] Failed to get service waydroidplatform, trying again…
(007454) [16:46:27] Failed to get service waydroidplatform, trying again…
(007454) [16:46:28] Failed to get service waydroidplatform, trying again…
(007585) [16:46:29] UserMonitor service is not even started
(007585) [16:46:29] Clipboard service is not even started
(003653) [16:46:29] session manager stopped, stopping container and waiting…
(003653) [16:46:29] % lxc-stop -P /var/lib/waydroid/lxc -n waydroid -k
(007454) [16:46:29] Failed to get service waydroidplatform, trying again…
lxc-start: waydroid: conf.c: run_buffer: 323 Script exited with status 126
lxc-start: waydroid: start.c: lxc_end: 996 Failed to run lxc.hook.post-stop for container “waydroid”
(003653) [16:46:30] % /opt/waydroid/data/scripts/waydroid-net.sh stop
vnic is waydroid0
(003653) [16:46:30] % pidof waydroid-sensord
7174
(003653) [16:46:30] % kill -9 7174
(003653) [16:46:30] % umount /home/waydroid/rootfs/vendor/waydroid.prop
(003653) [16:46:30] % umount /home/waydroid/rootfs/vendor/lib64/egl
(003653) [16:46:30] % umount /home/waydroid/rootfs/vendor/lib/egl
(003653) [16:46:30] % umount /home/waydroid/rootfs/vendor
(003653) [16:46:30] % umount /home/waydroid/rootfs/odm_extra
(003653) [16:46:30] % umount /home/waydroid/rootfs
(003653) [16:46:30] % umount /home/waydroid/data
(003653) [16:46:30] % chmod 666 -R /dev/anbox-binder
(003653) [16:46:30] % chmod 666 -R /dev/anbox-vndbinder
(003653) [16:46:30] % chmod 666 -R /dev/anbox-hwbinder
(003653) [16:46:30] Container manager is waiting for session to load
(007138) [16:46:30] UserMonitor service is not even started
(007138) [16:46:30] Clipboard service is not even started
(007454) [16:46:30] Failed to get service waydroidplatform, trying again…
(007454) [16:46:31] Failed to get service waydroidplatform, trying again…
(007454) [16:46:32] Failed to get service waydroidplatform, trying again…
(007676) [16:47:38] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(007676) [16:47:38] *** output passed to waydroid stdout, not to this log ***

The variables are empty:

[defaultuser@Phone22 ~]$ echo $XDG_SESSION_TYPE

[defaultuser@Phone22 ~]$ echo $XDG_SESSION_DESKTOP

Maybe someone has a clever hint?

That did the trick:

The /etc/gbinder.d/anbox-hybris.conf file was incorrect, more things had to be changed.

Did anybody answer this question? I tried to install waydroid on my XA2 Ultra along with App support, but it doesn’t start but gives Error code 2, whatever that means.
Should I expect it to work or are there obvious reasons that stop this show?

Have a look here:

but alongside App Support I have no idea.