Waydroid in Chum-AppStore doesn´t start Session

I installed Waydroid and Waydroid Runner with the Chum-AppStore.

When starting it by Icon it says “Android session finished”.
After pressing the “Start Waydroid Session” it shows “Starting Android session” for 5 seconds and fall back to “Android session finished”.

I want to try this because the Aliendalvik-Support for my X Compact is limited to Android 4.4.4.
The installer of Waydroid says its an minimal Lineage-Installation based on Android 10.

I think you need to open a terminal and type waydroid init or something like that which will download the minimal lineage installation …

[root@XperiaXCompact defaultuser]# waydroid init
[16:01:08] Failed to load binder driver
[16:01:08] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/3.10.84
[16:01:08] ERROR: Binder node “vndbinder” for waydroid not found
[16:01:08] See also: https://github.com/waydroid
Run ‘waydroid log’ for details.
[root@XperiaXCompact defaultuser]# waydroid log
(010800) [16:01:08] % modprobe binder_linux devices=“anbox-vndbinder,anbox-hwbinder”
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/3.10.84
(010800) [16:01:08] Failed to load binder driver
(010800) [16:01:08] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/3.10.84
(010800) [16:01:08] ERROR: Binder node “vndbinder” for waydroid not found
(010800) [16:01:08] See also: https://github.com/waydroid
(010800) [16:01:08] Traceback (most recent call last):
File “/opt/waydroid/tools/init.py”, line 54, in main
actions.init(args)
File “/opt/waydroid/tools/actions/initializer.py”, line 85, in init
setup_config(args)
File “/opt/waydroid/tools/actions/initializer.py”, line 77, in setup_config
helpers.drivers.setupBinderNodes(args)
File “/opt/waydroid/tools/helpers/drivers.py”, line 144, in setupBinderNodes
raise OSError(‘Binder node “vndbinder” for waydroid not found’)
OSError: Binder node “vndbinder” for waydroid not found

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

AFAIK waydroid doesn’t work on xperia x variants, the android version is too old.

But how to uninstall it? It just goes on circles, complaining: cannot remove due to dependent package gbinderconfigmainline. if i remove it, the gbinderconfighybrid gets installed and waydroid keeps complaining about that. And vice-versa.

In Chum, that is.

It’s true that Waydroid may not/probably doesn’t work on X/Xc, but I haven’t heard of anyone confirming yet, (I did confirm that the kernel is not able to handle lxc, but not sure if it’s the same) - would be great if you try and report …

As far as the install problem, did you try this

From here - https://github.com/sailfishos-open/waydroid ?

1 Like

Just now I installed Waydroid on a Volla phone, following the instructions provided here:
Volla Phone/X SailfishOS Manual Installation | piggz.co.uk at bottom of the page.

Everything worked as expected, after the reboot Waydroid was present on the app grid. But it doesn’t start, eternally spinnung circle. After the try, WLAN network is still connected to access point but browser can’t load any webpages. Even after several reboots still the same.

After a reboot and then without trying to launch Waydroid, network OK again.

@Levone1 : Has it a chance to try what you suggested above in this case?

Check log - if that’s the error, that’s the problem…

1 Like

You have dnsmasq running with incompatible settings.

Check the Waydroid instructions. Disable dnsmasq if you don’t need it.

1 Like

Now I did what you wrote in your post #6 , forgot to restart the services but restarted the device. After this, Waydroid started !
:smiley: :smiley: :smiley:
Many many thanks!!!

edit: @Ahtisilli I have no idea if i need dnsmasq. To avoid crashing/malfunction of other apps i followed option #2 in post #6 . anyway many thanks!

Waydroid starts, shows some icons, built in browser also works (and leads immediately to G**gle homepage), but not full functional.

The logfile shows several missing services:

(007339) [18:54:33] XDG Session is not “wayland”
(007339) [18:54:33] Save session config: /var/lib/waydroid/session.cfg
(007339) [18:54:33] UserMonitor service is not even started
(007339) [18:54:33] Clipboard service is not even started
(007339) [18:54:35] Failed to start Clipboard manager service, check logs
(007530) [18:54:50] Failed to get service waydroidplatform, trying again…
Line 6 - 17 is identical…
(007530) [18:54:51] Failed to get service waydroidplatform, trying again…
(008939) [18:55:15] UserMonitor service is not even started
(008939) [18:55:15] Clipboard service is not even started
(007339) [18:55:15] UserMonitor service is not even started
(007339) [18:55:15] Clipboard service is not even started

The file ‘/var/lib/waydroid/session.cfg’ doesn’t exist. Do I have to create one?

How can I start UserMonitor service and Clipboard service?

What can I do now?

What’s not full functional?

I can’t find a way to install any apps or install apk’s I have already downloaded and stored locally.
The few preinstalled apps work.

edit: logfile still reports ‘failed to start UserMonitor service’ and ‘Clipboard service’.
Then, ‘Failed to start Clipboard manager service, check logs’, and,
8 lines ‘failed to get service waydroidplatform, trying again…’

edit: There’s another thing, too:
Since Waydroid is installed first time (yesterday), the stock browser reports ‘Server not found’ on all requests, despite internet is surely working on the Volla phone (the 2 stores, Chum + AllRadio working).

edit: I tried:
[root@VollaPhone defaultuser]# systemctl start UserMonitor
Failed to start UserMonitor.service: Unit UserMonitor.service not found.
[root@VollaPhone defaultuser]# systemctl start UserMonitor.service
Failed to start UserMonitor.service: Unit UserMonitor.service not found.
[root@VollaPhone defaultuser]# systemctl start Clipboard
Failed to start Clipboard.service: Unit Clipboard.service not found.
[root@VollaPhone defaultuser]#

but it failed.

After some tinkering it works.
Many thanks for help!

Hello,

I bought a xz2c, and I tried to install waydroid, but it doesn’t start, the logfile shows this:

[waydroid-sensors-daemon] Got plugin_string pressuresensor
[waydroid-sensors-daemon] Got plugin_interface local.PressureSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/pressuresensor
(007027) [07:32:31] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(007027) [07:32:31] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
[waydroid-sensors-daemon] Got new plugin for proximitysensor with pid 8307 and session 26
[waydroid-sensors-daemon] Got plugin_string proximitysensor
[waydroid-sensors-daemon] Got plugin_interface local.ProximitySensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/proximitysensor
(007027) [07:32:31] % mount -o bind /odm /var/lib/waydroid/rootfs/odm_extra
[waydroid-sensors-daemon] Got new plugin for stepcountersensor with pid 8307 and session 27
[waydroid-sensors-daemon] Got plugin_string stepcountersensor
[waydroid-sensors-daemon] Got plugin_interface local.StepCounterSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/stepcountersensor
(007027) [07:32:31] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(007027) [07:32:31] % umount -l /sys/fs/cgroup/schedtune
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
umount: /sys/fs/cgroup/schedtune: no mount point specified.
(007027) [07:32:31] % chmod 777 -R /dev/ashmem
(007027) [07:32:31] % chmod 777 -R /sys/kernel/debug/sync/sw_sync
(007027) [07:32:31] % chmod 777 -R /dev/dri
(007027) [07:32:31] % chmod 777 -R /dev/ion
(007027) [07:32:31] % chmod 777 -R /dev/video
(007027) [07:32:31] % chmod 777 -R /dev/video2
(007027) [07:32:31] % chmod 777 -R /dev/video1
(007027) [07:32:31] % chmod 777 -R /dev/video33
(007027) [07:32:31] % chmod 777 -R /dev/video32
(007027) [07:32:31] % chmod 777 -R /dev/video0
(007027) [07:32:31] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(007027) [07:32:31] New background process: pid=8361, output=background
lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
lxc-start: waydroid: network.c: netdev_configure_server_veth: 708 No such file or directory - Failed to attach "vethfk7s7n" to bridge "waydroid0", bridge interface doesn't exist
lxc-start: waydroid: network.c: lxc_create_network_priv: 3419 No such file or directory - Failed to create network device
lxc-start: waydroid: start.c: lxc_spawn: 1826 Failed to create the network
lxc-start: waydroid: start.c: __lxc_start: 2053 Failed to spawn container "waydroid"
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"
lxc-start: waydroid: tools/lxc_start.c: main: 308 The container failed to start
lxc-start: waydroid: tools/lxc_start.c: main: 314 Additional information can be obtained by setting the --logfile and --logpriority options
(007027) [07:32:31] waiting 10 seconds for container to start...
(008118) [07:32:31] waiting 9 seconds for container to start...
(007027) [07:32:32] waiting 9 seconds for container to start...
(008118) [07:32:32] waiting 8 seconds for container to start...
(007027) [07:32:33] waiting 8 seconds for container to start...
(008118) [07:32:33] waiting 7 seconds for container to start...
(007027) [07:32:34] waiting 7 seconds for container to start...
(008118) [07:32:34] waiting 6 seconds for container to start...
(007027) [07:32:35] waiting 6 seconds for container to start...
(008118) [07:32:35] waiting 5 seconds for container to start...
(007027) [07:32:36] waiting 5 seconds for container to start...
(008118) [07:32:36] waiting 4 seconds for container to start...
(007027) [07:32:37] waiting 4 seconds for container to start...
(008118) [07:32:37] waiting 3 seconds for container to start...
(007027) [07:32:38] waiting 3 seconds for container to start...
(008118) [07:32:38] waiting 2 seconds for container to start...
(007027) [07:32:39] waiting 2 seconds for container to start...
(008118) [07:32:39] waiting 1 seconds for container to start...
(007027) [07:32:40] waiting 1 seconds for container to start...
(008400) [07:32:40] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(008400) [07:32:40] *** output passed to waydroid stdout, not to this log ***
(008118) [07:32:40] ERROR: container failed to start
(008118) [07:32:40] See also: <https://github.com/waydroid>
(008118) [07:32:40] Traceback (most recent call last):
  File "/opt/waydroid/tools/__init__.py", line 69, in main
    actions.container_manager.start(args)
  File "/opt/waydroid/tools/actions/container_manager.py", line 163, in start
    raise OSError("container failed to start")
OSError: container failed to start

(007027) [07:32:41] ERROR: container failed to start
(007027) [07:32:41] See also: <https://github.com/waydroid>
(007027) [07:32:41] Traceback (most recent call last):
  File "/opt/waydroid/tools/__init__.py", line 69, in main
    actions.container_manager.start(args)
  File "/opt/waydroid/tools/actions/container_manager.py", line 163, in start
    raise OSError("container failed to start")
OSError: container failed to start

If I go to the configuration (/var/lib/waydroid/lxc/waydroid/config) and comment the network bridge I’ve the lxc shows this error, but android does something, with logcat I’ve got that is tring to launch lineagelauncher but is complaining video screen width is 0,
Waydroid log is the following:

(010035) [07:37:44] % chmod 666 -R /dev/puddlejumper
(010035) [07:37:44] % chmod 666 -R /dev/vndpuddlejumper
(010035) [07:37:44] % chmod 666 -R /dev/hwpuddlejumper
(010035) [07:37:44] Container manager is waiting for session to load
(010035) [07:37:44] % /opt/waydroid/data/scripts/waydroid-net.sh start

dnsmasq: failed to create listening socket for 192.168.250.1: Address already in use
Failed to setup waydroid-net.
Failed to setup waydroid-net.
(010035) [07:37:44] % waydroid-sensord /dev/hwpuddlejumper
(010035) [07:37:44] New background process: pid=10089, output=background
(010035) [07:37:44] % umount /home/waydroid/rootfs/vendor/waydroid.prop
(010035) [07:37:44] % umount /home/waydroid/rootfs/vendor/lib64/egl
(010035) [07:37:44] % umount /home/waydroid/rootfs/vendor/lib/egl
[waydroid-sensors-daemon] Got new plugin for accelerometersensor with pid 10089 and session 28
[waydroid-sensors-daemon] Got plugin_string accelerometersensor
[waydroid-sensors-daemon] Got plugin_interface local.AccelerometerSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/accelerometersensor
(010035) [07:37:44] % umount /home/waydroid/rootfs/vendor
[waydroid-sensors-daemon] Got new plugin for gyroscopesensor with pid 10089 and session 29
[waydroid-sensors-daemon] Got plugin_string gyroscopesensor
[waydroid-sensors-daemon] Got plugin_interface local.GyroscopeSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/gyroscopesensor
(010035) [07:37:44] % umount /home/waydroid/rootfs/odm_extra
[waydroid-sensors-daemon] Failed to create SensorfwHumiditySensor: Could not create sensorfw backend
(010035) [07:37:44] % umount /home/waydroid/rootfs
(010035) [07:37:44] % mount /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
[waydroid-sensors-daemon] Got new plugin for alssensor with pid 10089 and session 30
[waydroid-sensors-daemon] Got plugin_string alssensor
[waydroid-sensors-daemon] Got plugin_interface local.ALSSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/alssensor
[waydroid-sensors-daemon] Got new plugin for magnetometersensor with pid 10089 and session 31
[waydroid-sensors-daemon] Got plugin_string magnetometersensor
[waydroid-sensors-daemon] Got plugin_interface local.MagnetometerSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/magnetometersensor
[waydroid-sensors-daemon] Got new plugin for orientationsensor with pid 10089 and session 32
[waydroid-sensors-daemon] Got plugin_string orientationsensor
[waydroid-sensors-daemon] Got plugin_interface local.OrientationSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/orientationsensor
(010035) [07:37:45] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
[waydroid-sensors-daemon] Got new plugin for pressuresensor with pid 10089 and session 33
[waydroid-sensors-daemon] Got plugin_string pressuresensor
[waydroid-sensors-daemon] Got plugin_interface local.PressureSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/pressuresensor
(010035) [07:37:45] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
[waydroid-sensors-daemon] Got new plugin for proximitysensor with pid 10089 and session 34
[waydroid-sensors-daemon] Got plugin_string proximitysensor
[waydroid-sensors-daemon] Got plugin_interface local.ProximitySensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/proximitysensor
[waydroid-sensors-daemon] Got new plugin for stepcountersensor with pid 10089 and session 35
[waydroid-sensors-daemon] Got plugin_string stepcountersensor
[waydroid-sensors-daemon] Got plugin_interface local.StepCounterSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/stepcountersensor
(010035) [07:37:45] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
(010035) [07:37:45] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(010035) [07:37:45] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
(010035) [07:37:45] % mount -o bind /odm /var/lib/waydroid/rootfs/odm_extra
(010035) [07:37:45] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(010035) [07:37:45] % umount -l /sys/fs/cgroup/schedtune
umount: /sys/fs/cgroup/schedtune: no mount point specified.
(010035) [07:37:45] % chmod 777 -R /dev/ashmem
(010035) [07:37:45] % chmod 777 -R /sys/kernel/debug/sync/sw_sync
(010035) [07:37:45] % chmod 777 -R /dev/dri
(010035) [07:37:45] % chmod 777 -R /dev/ion
(010035) [07:37:45] % chmod 777 -R /dev/video
(010035) [07:37:45] % chmod 777 -R /dev/video2
(010035) [07:37:45] % chmod 777 -R /dev/video1
(010035) [07:37:45] % chmod 777 -R /dev/video33
(010035) [07:37:45] % chmod 777 -R /dev/video32
(010035) [07:37:45] % chmod 777 -R /dev/video0
(010035) [07:37:45] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(010035) [07:37:45] New background process: pid=10142, output=background
lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
lxc-start: waydroid: utils.c: safe_mount: 1198 Not a directory - Failed to mount "/dev/video" onto "/usr/lib64/lxc/rootfs/dev/video"
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!
(010035) [07:37:45] Save session config: /var/lib/waydroid/session.cfg
(008136) [07:37:46] Failed to start Clipboard manager service, check logs
[gbinder] Service manager /dev/hwpuddlejumper has appeared
[waydroid-sensors-daemon] Waydroid Sensors HAL service ready.
[gbinder] Service manager /dev/hwpuddlejumper has appeared
[waydroid-sensors-daemon] Waydroid Sensors HAL service ready.
[waydroid-sensors-daemon] ERROR: Sensor humidity Not found!
[waydroid-sensors-daemon] ERROR: Sensor temperature Not found!
[waydroid-sensors-daemon] orientationsensor Eventloop started

and waydroid logcat is (repetition to infinite of this one):

08-24 05:39:47.923  8051  8051 I Process : Sending signal. PID: 8051 SIG: 9
08-24 05:39:47.952   217   234 I ActivityManager: Process com.android.launcher3 (pid 8051) has died: fore TOP 
08-24 05:39:47.953    56    56 I Zygote  : Process 8051 exited due to signal 9 (Killed)
08-24 05:39:47.955   217   247 I libprocessgroup: Successfully killed process cgroup uid 10094 pid 8051 in 0ms
08-24 05:39:47.961   217   234 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.android.launcher3/.lineage.LineageLauncher} from uid 0
08-24 05:39:47.978   217   239 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{46bbe27 u0 com.android.launcher3/.lineage.LineageLauncher t-1 f}
08-24 05:39:48.021    56    56 D Zygote  : Forked child process 8079
08-24 05:39:48.023   217   246 I ActivityManager: Start proc 8079:com.android.launcher3/u0a94 for top-activity {com.android.launcher3/com.android.launcher3.lineage.LineageLauncher}
08-24 05:39:48.024  8079  8079 E libprocessgroup: Failed to make and chown /acct/uid_10094: Read-only file system
08-24 05:39:48.024  8079  8079 W Zygote  : createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
08-24 05:39:48.042   217   234 W OomAdjuster: Fallback pre-set sched group to default: not expected top priority
08-24 05:39:48.061  8079  8079 I droid.launcher: The ClassLoaderContext is a special shared library.
08-24 05:39:48.080  8079  8100 I droid.launcher: Starting a blocking GC Alloc
08-24 05:39:48.080  8079  8100 I droid.launcher: Starting a blocking GC Alloc
08-24 05:39:48.145  8079  8079 D Tonal   : Tonal Palette - index: 7. Main color: ff5ac2c1
08-24 05:39:48.145  8079  8079 D Tonal   : Colors: ff051414, ff0a2828, ff0e3d3a, ff145652, ff1c746b, ff239392, ff2ab2b1, ff5ac2c1, ff68d4db, ff81d9e1, ff9edee8, ffc7ebf2, ffe4f6f8
08-24 05:39:48.145  8079  8079 D Tonal   : Gradients: 
08-24 05:39:48.145  8079  8079 D Tonal   : 	Normal GradientColors(ff5ac2c1, ff5ac2c1)
08-24 05:39:48.145  8079  8079 D Tonal   : 	Dark GradientColors(ff145652, ff145652)
08-24 05:39:48.145  8079  8079 D Tonal   : 	Extra dark: GradientColors(ff0e3d3a, ff0e3d3a)
08-24 05:39:48.146  8079  8079 V Launcher: LauncherAppState initiated
08-24 05:39:48.161  8079  8079 D AndroidRuntime: Shutting down VM
08-24 05:39:48.162  8079  8079 E AndroidRuntime: FATAL EXCEPTION: main
08-24 05:39:48.162  8079  8079 E AndroidRuntime: Process: com.android.launcher3, PID: 8079
08-24 05:39:48.162  8079  8079 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.launcher3/com.android.launcher3.lineage.LineageLauncher}: java.lang.IllegalArgumentException: width and height must be > 0
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: width and height must be > 0
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.graphics.Bitmap.createBitmap(Bitmap.java:1113)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.graphics.Bitmap.createBitmap(Bitmap.java:1080)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.graphics.Bitmap.createBitmap(Bitmap.java:1030)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.graphics.Bitmap.createBitmap(Bitmap.java:991)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.icons.ShadowGenerator$Builder.createPill(ShadowGenerator.java:138)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.icons.ShadowGenerator$Builder.createPill(ShadowGenerator.java:125)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.icons.DotRenderer.<init>(DotRenderer.java:57)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.DeviceProfile.<init>(DeviceProfile.java:260)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.InvariantDeviceProfile.initGrid(InvariantDeviceProfile.java:253)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.InvariantDeviceProfile.<init>(InvariantDeviceProfile.java:175)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.InvariantDeviceProfile.lambda$2ne4gU8MrKko0odxr9TWY6PNL2M(Unknown Source:2)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.-$$Lambda$InvariantDeviceProfile$2ne4gU8MrKko0odxr9TWY6PNL2M.get(Unknown Source:0)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.util.MainThreadInitializedObject.get(MainThreadInitializedObject.java:44)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.LauncherAppState.<init>(LauncherAppState.java:78)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.LauncherAppState.lambda$JvMBmz-RrjZ6p3vjqeYRe_QxTIU(Unknown Source:2)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.-$$Lambda$LauncherAppState$JvMBmz-RrjZ6p3vjqeYRe_QxTIU.get(Unknown Source:0)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.util.MainThreadInitializedObject.get(MainThreadInitializedObject.java:44)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.LauncherAppState.getInstance(LauncherAppState.java:58)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at com.android.launcher3.Launcher.onCreate(Launcher.java:320)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7834)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7823)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
08-24 05:39:48.162  8079  8079 E AndroidRuntime: 	... 11 more
08-24 05:39:48.165   217   573 W ActivityTaskManager:   Force finishing activity com.android.launcher3/.lineage.LineageLauncher

Somebody has any idea?

Thanks!
Jaume.

Few questions:

1- Usually via cli (it’s the only way I see really logs):

# waydroid-container-start 

and starting the session or the waydroid-runner.

I simply I try to run the waydroid-runner (in the device)
I’ve got only this log:

(023109) [08:13:53] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(023109) [08:13:53] *** output passed to waydroid stdout, not to this log ***
(023121) [08:14:00] XDG Session is not "wayland"
(023121) [08:14:00] Save session config: /var/lib/waydroid/session.cfg
(023121) [08:14:00] UserMonitor service is not even started
(023121) [08:14:00] Clipboard service is not even started

If I try to run the waydroid logcat, he say container is stopped

2- seems the dnsmasq fixed the network problem, I didn’t see that, sorry.

Thanks! (also thanks rinigus, because I see you are in the back of a lot of projects of sailfish! Lot of thanks!)

1 Like

I may have forgot all the details, but have you tried to reboot and just start using waydroid-runner ? No need for anything else (such as starting waydroid-container-start)
on my side…

I think so, but testing it now, to be sure… :wink:

[edit]
I removed waydroid-settings, restart the phone and run android-runner, and he says “android session started. Stop that session and restart this application”

waydroid log give me this:

[defaultuser@XperiaXZ2Compact ~]$ waydroid log
[waydroid-sensors-daemon] Got plugin_path /SensorManager/gyroscopesensor
(006726) [08:42:44] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
[waydroid-sensors-daemon] Failed to create SensorfwHumiditySensor: Could not create sensorfw backend
(006726) [08:42:44] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
[waydroid-sensors-daemon] Got new plugin for alssensor with pid 6773 and session 8
[waydroid-sensors-daemon] Got plugin_string alssensor
[waydroid-sensors-daemon] Got plugin_interface local.ALSSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/alssensor
(006726) [08:42:44] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(006726) [08:42:44] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(006726) [08:42:44] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
(006726) [08:42:44] % mount -o bind /odm /var/lib/waydroid/rootfs/odm_extra
[waydroid-sensors-daemon] Got new plugin for magnetometersensor with pid 6773 and session 9
[waydroid-sensors-daemon] Got plugin_string magnetometersensor
[waydroid-sensors-daemon] Got plugin_interface local.MagnetometerSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/magnetometersensor
(006726) [08:42:44] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(006726) [08:42:44] % mount -o bind /home/defaultuser/.local/share/waydroid/data /var/lib/waydroid/data
(006726) [08:42:44] % umount -l /sys/fs/cgroup/schedtune
umount: /sys/fs/cgroup/schedtune: no mount point specified.
(006726) [08:42:44] % chmod 777 -R /dev/ashmem
(006726) [08:42:44] % chmod 777 -R /sys/kernel/debug/sync/sw_sync
(006726) [08:42:44] % chmod 777 -R /dev/dri
(006726) [08:42:44] % chmod 777 -R /dev/ion
[waydroid-sensors-daemon] Got new plugin for orientationsensor with pid 6773 and session 10
[waydroid-sensors-daemon] Got plugin_string orientationsensor
[waydroid-sensors-daemon] Got plugin_interface local.OrientationSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/orientationsensor
(006726) [08:42:44] % chmod 777 -R /dev/video
(006726) [08:42:44] % chmod 777 -R /dev/video2
(006726) [08:42:44] % chmod 777 -R /dev/video1
(006726) [08:42:44] % chmod 777 -R /dev/video33
(006726) [08:42:44] % chmod 777 -R /dev/video32
(006726) [08:42:44] % chmod 777 -R /dev/video0
(006726) [08:42:44] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(006726) [08:42:44] New background process: pid=6813, output=background
lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
[waydroid-sensors-daemon] Got new plugin for pressuresensor with pid 6773 and session 12
[waydroid-sensors-daemon] Got plugin_string pressuresensor
[waydroid-sensors-daemon] Got plugin_interface local.PressureSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/pressuresensor
[waydroid-sensors-daemon] Got new plugin for proximitysensor with pid 6773 and session 13
[waydroid-sensors-daemon] Got plugin_string proximitysensor
[waydroid-sensors-daemon] Got plugin_interface local.ProximitySensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/proximitysensor
lxc-start: waydroid: utils.c: safe_mount: 1198 Not a directory - Failed to mount "/dev/video" onto "/usr/lib64/lxc/rootfs/dev/video"
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!
[waydroid-sensors-daemon] Got new plugin for stepcountersensor with pid 6773 and session 15
[waydroid-sensors-daemon] Got plugin_string stepcountersensor
[waydroid-sensors-daemon] Got plugin_interface local.StepCounterSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/stepcountersensor
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
(006726) [08:42:44] Save session config: /var/lib/waydroid/session.cfg
[gbinder] Service manager /dev/hwpuddlejumper has appeared
[waydroid-sensors-daemon] Waydroid Sensors HAL service ready.
[waydroid-sensors-daemon] ERROR: Sensor humidity Not found!
[waydroid-sensors-daemon] ERROR: Sensor temperature Not found!
[waydroid-sensors-daemon] orientationsensor Eventloop started
(019464) [08:44:32] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(019464) [08:44:32] *** output passed to waydroid stdout, not to this log ***

When I stop android session and run it again, I’ve got this log: (It contains also the log of stopping the session

(024979) [08:45:14] UserMonitor service is not even started
(024979) [08:45:14] Clipboard service is not even started
(006726) [08:45:15] session manager stopped, stopping container and waiting...
(006726) [08:45:15] % lxc-stop -P /var/lib/waydroid/lxc -n waydroid -k
[gbinder] WARNING: Service manager /dev/hwpuddlejumper has died
[waydroid-sensors-daemon] Service manager has died
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"
(006726) [08:45:15] % /opt/waydroid/data/scripts/waydroid-net.sh stop
(006726) [08:45:15] % pidof waydroid-sensord
6773
(006726) [08:45:15] % kill -9 6773
(006726) [08:45:15] % umount /home/waydroid/rootfs/vendor/waydroid.prop
(006726) [08:45:15] % umount /home/waydroid/rootfs/vendor/lib64/egl
(006726) [08:45:15] % umount /home/waydroid/rootfs/vendor/lib/egl
(006726) [08:45:15] % umount /home/waydroid/rootfs/vendor
(006726) [08:45:15] % umount /home/waydroid/rootfs/odm_extra
(006726) [08:45:15] % umount /home/waydroid/rootfs
(006726) [08:45:16] % umount /home/waydroid/data
(006726) [08:45:16] % chmod 666 -R /dev/puddlejumper
(006726) [08:45:16] % chmod 666 -R /dev/vndpuddlejumper
(006726) [08:45:16] % chmod 666 -R /dev/hwpuddlejumper
(006726) [08:45:16] Container manager is waiting for session to load
(025402) [08:45:29] XDG Session is not "wayland"
(025402) [08:45:29] Save session config: /var/lib/waydroid/session.cfg
(025402) [08:45:29] UserMonitor service is not even started
(025402) [08:45:29] Clipboard service is not even started
(006726) [08:45:30] % /opt/waydroid/data/scripts/waydroid-net.sh start
(006726) [08:45:30] % waydroid-sensord /dev/hwpuddlejumper
(006726) [08:45:30] New background process: pid=25554, output=background
(006726) [08:45:30] % mount /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
[waydroid-sensors-daemon] Got new plugin for accelerometersensor with pid 25554 and session 16
[waydroid-sensors-daemon] Got plugin_string accelerometersensor
[waydroid-sensors-daemon] Got plugin_interface local.AccelerometerSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/accelerometersensor
[waydroid-sensors-daemon] Got new plugin for gyroscopesensor with pid 25554 and session 17
[waydroid-sensors-daemon] Got plugin_string gyroscopesensor
[waydroid-sensors-daemon] Got plugin_interface local.GyroscopeSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/gyroscopesensor
[waydroid-sensors-daemon] Failed to create SensorfwHumiditySensor: Could not create sensorfw backend
[waydroid-sensors-daemon] Got new plugin for alssensor with pid 25554 and session 18
[waydroid-sensors-daemon] Got plugin_string alssensor
[waydroid-sensors-daemon] Got plugin_interface local.ALSSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/alssensor
(006726) [08:45:30] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
[waydroid-sensors-daemon] Got new plugin for magnetometersensor with pid 25554 and session 19
[waydroid-sensors-daemon] Got plugin_string magnetometersensor
[waydroid-sensors-daemon] Got plugin_interface local.MagnetometerSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/magnetometersensor
[waydroid-sensors-daemon] Got new plugin for orientationsensor with pid 25554 and session 20
[waydroid-sensors-daemon] Got plugin_string orientationsensor
[waydroid-sensors-daemon] Got plugin_interface local.OrientationSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/orientationsensor
(006726) [08:45:30] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
[waydroid-sensors-daemon] Got new plugin for pressuresensor with pid 25554 and session 21
[waydroid-sensors-daemon] Got plugin_string pressuresensor
[waydroid-sensors-daemon] Got plugin_interface local.PressureSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/pressuresensor
[waydroid-sensors-daemon] Got new plugin for proximitysensor with pid 25554 and session 22
[waydroid-sensors-daemon] Got plugin_string proximitysensor
[waydroid-sensors-daemon] Got plugin_interface local.ProximitySensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/proximitysensor
[waydroid-sensors-daemon] Got new plugin for stepcountersensor with pid 25554 and session 23
[waydroid-sensors-daemon] Got plugin_string stepcountersensor
[waydroid-sensors-daemon] Got plugin_interface local.StepCounterSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/stepcountersensor
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
(006726) [08:45:30] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(006726) [08:45:30] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(006726) [08:45:30] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
(006726) [08:45:30] % mount -o bind /odm /var/lib/waydroid/rootfs/odm_extra
(006726) [08:45:30] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(006726) [08:45:30] % mount -o bind /home/defaultuser/.local/share/waydroid/data /var/lib/waydroid/data
(006726) [08:45:30] % umount -l /sys/fs/cgroup/schedtune
umount: /sys/fs/cgroup/schedtune: no mount point specified.
(006726) [08:45:30] % chmod 777 -R /dev/ashmem
(006726) [08:45:30] % chmod 777 -R /sys/kernel/debug/sync/sw_sync
(006726) [08:45:30] % chmod 777 -R /dev/dri
(006726) [08:45:30] % chmod 777 -R /dev/ion
(006726) [08:45:30] % chmod 777 -R /dev/video
(006726) [08:45:30] % chmod 777 -R /dev/video2
(006726) [08:45:30] % chmod 777 -R /dev/video1
(006726) [08:45:30] % chmod 777 -R /dev/video33
(006726) [08:45:30] % chmod 777 -R /dev/video32
(006726) [08:45:30] % chmod 777 -R /dev/video0
(006726) [08:45:30] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(006726) [08:45:30] New background process: pid=25667, output=background
lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
lxc-start: waydroid: utils.c: safe_mount: 1198 Not a directory - Failed to mount "/dev/video" onto "/usr/lib64/lxc/rootfs/dev/video"
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!
(006726) [08:45:30] Save session config: /var/lib/waydroid/session.cfg
(025402) [08:45:31] Failed to start Clipboard manager service, check logs
(025724) [08:45:31] Failed to get service waydroidplatform, trying again...
[gbinder] Service manager /dev/hwpuddlejumper has appeared
[waydroid-sensors-daemon] Waydroid Sensors HAL service ready.
(025724) [08:45:32] Failed to get service waydroidplatform, trying again...
(025724) [08:45:33] Failed to get service waydroidplatform, trying again...
(025724) [08:45:34] Failed to get service waydroidplatform, trying again...
[waydroid-sensors-daemon] ERROR: Sensor humidity Not found!
[waydroid-sensors-daemon] ERROR: Sensor temperature Not found!
(025724) [08:45:35] Failed to get service waydroidplatform, trying again...
[waydroid-sensors-daemon] orientationsensor Eventloop started

Thanks!

You mean starting with waydroid-runner, right? I am not aware of any android-runner

Assuming that you used waydroid-runner: I will try to test it as well on my xz2c tonight