Also, on the Waydroid Github page, it is advised to install waydroid-gbinder-config-hybris or waydroid-gbinder-config-mainline.
Which one is the good one for the GS5, please?
I tried the way described bo @Seven.of.nine, the way described on the Github page, modified /etc/gbinder.d or not, I can’t get WD to start. (Really tried and read for some hours)
Here is my log:
[waydroid-sensors-daemon] Got plugin_interface local.OrientationSensor
[waydroid-sensors-daemon] Got plugin_path /SensorManager/orientationsensor
[waydroid-sensors-daemon] Got new plugin for pressuresensor with pid 4473 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 4473 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
[waydroid-sensors-daemon] Failed to create SensorfwStepcounterSensor: Could not create sensorfw backend
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
(004272) [18:37:59] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(004272) [18:37:59] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(004272) [18:37:59] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
(004272) [18:37:59] % mount -o bind /vendor/odm /var/lib/waydroid/rootfs/odm_extra
(004272) [18:37:59] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(004272) [18:37:59] Save config: /var/lib/waydroid/waydroid.cfg
(004272) [18:37:59] % mount -o bind /home/defaultuser/.local/share/waydroid/data /var/lib/waydroid/data
(004272) [18:37:59] % chmod 777 -R /dev/ashmem
(004272) [18:37:59] % chmod 777 -R /dev/MTK_SMI
(004272) [18:37:59] % chmod 777 -R /dev/mdp_sync
(004272) [18:37:59] % chmod 777 -R /dev/mtk_cmdq
(004272) [18:37:59] % chmod 777 -R /dev/graphics
(004272) [18:37:59] % chmod 777 -R /dev/ion
(004272) [18:37:59] % chmod 777 -R /dev/fb0
(004272) [18:37:59] % chmod 777 -R /dev/video1
(004272) [18:37:59] % chmod 777 -R /dev/video0
(004272) [18:37:59] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid – /init
(004272) [18:37:59] New background process: pid=4525, 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 “vethdHSzBl” 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
(004272) [18:37:59] waiting 10 seconds for container to start…
(004272) [18:38:00] waiting 9 seconds for container to start…
(004272) [18:38:01] waiting 8 seconds for container to start…
(004272) [18:38:02] waiting 7 seconds for container to start…
(004272) [18:38:03] waiting 6 seconds for container to start…
(004272) [18:38:04] waiting 5 seconds for container to start…
(004272) [18:38:05] waiting 4 seconds for container to start…
(004272) [18:38:06] waiting 3 seconds for container to start…
(004272) [18:38:07] waiting 2 seconds for container to start…
(004272) [18:38:08] waiting 1 seconds for container to start…
(004272) [18:38:09] ERROR: container failed to start
(004272) [18:38:09] See also: https://github.com/waydroid
(004272) [18:38:09] Traceback (most recent call last):
File “/opt/waydroid/tools/init.py”, line 68, in main
actions.container_manager.start(args)
File “/opt/waydroid/tools/actions/container_manager.py”, line 131, in start
raise OSError(“container failed to start”)
OSError: container failed to start
(004801) [18:40:22] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(004801) [18:40:22] *** output passed to waydroid stdout, not to this log ***
Mainly, from the log, I’d say I see:
[waydroid-sensors-daemon] Failed to create SensorfwStepcounterSensor: Could not create sensorfw backend
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
and
lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
thats interesting … for the gs5, i manually create all the stock users and groups … its possible one is missing. could you compare against a regular volla?
Progressing!
I uninstalled and removed waydroid files, then I installed from Chum:
-Waydroid
-Waydroid Runner
-with zypper: waydroid-gbinder-config-hybris.
Then, I did waydroid init.
It downloaded and extracted https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_arm64/lineage-18.1-20230422-VANILLA-waydroid_arm64-system.zip/download and https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_arm64/lineage-18.1-20230422-HALIUM_11-waydroid_arm64-vendor.zip/download
I edited the file /etc/gbinder.d/anbox-hybris.conf and changed aidl2 to aidl3.
Uncommented #bind-interfaces in /etc/dnsmasq.conf
Rebooted.
Starting WD from the app grid,
The spinner turns and it says “Starting Android session”, then "Waiting for Android UI and nothing after that.
Here is the new log:
[waydroid-sensors-daemon] Failed to create SensorfwHumiditySensor: Could not create sensorfw backend
[waydroid-sensors-daemon] Got new plugin for alssensor with pid 4278 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
(004138) [21:04:17] % mount -o remount,ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
[waydroid-sensors-daemon] Got new plugin for magnetometersensor with pid 4278 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
[waydroid-sensors-daemon] Got new plugin for orientationsensor with pid 4278 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
(004138) [21:04:17] % mount /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
[waydroid-sensors-daemon] Got new plugin for pressuresensor with pid 4278 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 4278 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
[waydroid-sensors-daemon] Failed to create SensorfwStepcounterSensor: Could not create sensorfw backend
[waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
(004138) [21:04:17] % mount -o remount,ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(004138) [21:04:17] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
(004138) [21:04:17] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
(004138) [21:04:17] % mount -o bind /vendor/odm /var/lib/waydroid/rootfs/odm_extra
(004138) [21:04:17] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(004138) [21:04:17] Save config: /var/lib/waydroid/waydroid.cfg
(004138) [21:04:17] % mount -o bind /home/defaultuser/.local/share/waydroid/data /var/lib/waydroid/data
(004138) [21:04:17] % chmod 777 -R /dev/ashmem
(004138) [21:04:17] % chmod 777 -R /dev/MTK_SMI
(004138) [21:04:17] % chmod 777 -R /dev/mdp_sync
(004138) [21:04:17] % chmod 777 -R /dev/mtk_cmdq
(004138) [21:04:17] % chmod 777 -R /dev/graphics
(004138) [21:04:17] % chmod 777 -R /dev/ion
(004138) [21:04:17] % chmod 777 -R /dev/fb0
(004138) [21:04:17] % chmod 777 -R /dev/video1
(004138) [21:04:17] % chmod 777 -R /dev/video0
(004138) [21:04:17] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid – /init
(004138) [21:04:17] New background process: pid=4330, 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!
(004138) [21:04:17] Save session config: /var/lib/waydroid/session.cfg
(004240) [21:04:18] Failed to start Clipboard manager service, check logs
(004138) [21:04:18] Failed to add service waydroidhardware: -2147483647
(004138) [21:04:18] Failed to add service waydroidhardware: -2147483647
(004378) [21:04:19] Failed to get service waydroidplatform, trying again…
(004378) [21:04:20] Failed to get service waydroidplatform, trying again…
(004378) [21:04:21] Failed to get service waydroidplatform, trying again…
(004378) [21:04:22] Failed to get service waydroidplatform, trying again…
(004378) [21:04:23] Failed to get service waydroidplatform, trying again…
(004378) [21:04:24] Failed to get service waydroidplatform, trying again…
(004378) [21:04:25] Failed to get service waydroidplatform, trying again…
(004378) [21:04:26] Failed to get service waydroidplatform, trying again…
(004378) [21:04:27] Failed to get service waydroidplatform, trying again…
(004745) [21:04:28] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(004745) [21:04:28] *** output passed to waydroid stdout, not to this log ***
(004378) [21:04:28] Failed to get service waydroidplatform, trying again…
…
(004378) [21:10:55] Failed to get service waydroidplatform, trying again…
(005474) [21:10:55] UserMonitor service is not even started
(005474) [21:10:55] Clipboard service is not even started
(004240) [21:10:56] UserMonitor service is not even started
(004240) [21:10:56] Clipboard service is not even started
(004378) [21:10:56] Failed to get service waydroidplatform, trying again…
(004138) [21:10:56] session manager stopped, stopping container and waiting…
(004138) [21:10:56] % lxc-stop -P /var/lib/waydroid/lxc -n waydroid -k
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”
(004138) [21:10:56] % /opt/waydroid/data/scripts/waydroid-net.sh stop
vnic is waydroid0
(004138) [21:10:56] % pidof waydroid-sensord
4278
(004138) [21:10:56] % kill -9 4278
(004138) [21:10:56] % umount /home/waydroid/rootfs/vendor/waydroid.prop
(004138) [21:10:56] % umount /home/waydroid/rootfs/vendor/lib64/egl
(004138) [21:10:56] % umount /home/waydroid/rootfs/vendor/lib/egl
(004138) [21:10:56] % umount /home/waydroid/rootfs/vendor
(004138) [21:10:56] % umount /home/waydroid/rootfs/odm_extra
(004138) [21:10:56] % umount /home/waydroid/rootfs
(004138) [21:10:57] % umount /home/waydroid/data
(004138) [21:10:57] % chmod 666 -R /dev/anbox-binder
(004138) [21:10:57] % chmod 666 -R /dev/anbox-vndbinder
(004138) [21:10:57] % chmod 666 -R /dev/anbox-hwbinder
(004138) [21:10:57] Container manager is waiting for session to load
(004378) [21:10:57] Failed to get service waydroidplatform, trying again…
(004378) [21:10:58] Failed to get service waydroidplatform, trying again…
(004378) [21:10:59] Failed to get service waydroidplatform, trying again…
I just noticed that if I DON’T set Pin code which just happened by accident, it reboots and finds the SIM and connects just fine. So, @piggz it looks like it is the Pin code setting itself which causes issues. Perhaps can’t be read properly when set to ‘on’ … it’s odd. Right now, just to reassure myself, I rebooted without Pin code set and it immediately worked.
I’m not sure.
Maybe, if you try again, it’ll be the opposite.
I rebooted/booted/battery away +booted tens of times. With or without PIN fiddling.
The only +/- regular behaviour I could deduce is a beauty of scientific conclusion:
“After some tries, it finally always works. Between 1 and 4, generally”.
Still in pure subjectivity, if I dare, I’d conntradict you about the PIN setting. I have the feeling it does nothing, as validation is not possible and as it seems not to influence the results.
Haha at this point, it is more clairvoyant than something else.
Well, I only have datapoints on two devices but with the rephone and the GS5 the behaviour is the same. With the Pin code simply disabled, they both come up and get 4G without any action.
The a) turn off Pin code, b) turn it on, c) verify with Pin code, d) shut down Settings app, e) reboot dance is also the same on both devices. I’ll have to try it with two SIM cards when I get a chance.
I have two Volla 22 phones. In the second, the sim card pin query is always off. Even so, 1-4 reboots are required. On the other phone, the pin code inquiry is always on and the result is the same, 1-4 reboots for the sim to work.
Weird. I’ve repeated my ‘Open settings, unset Pin Code, Set Pin code, Close settings, reboot’ procedure repeatedly and it always works. Just rebooted, for the hell of it, the GS5 which has Pin Code off and it just worked. I wonder if there’s something else in the mix. Something I have installed or configured. Hmmm. I’ll wait to dig until I’ve got 4.5.0.21 on those devices.
I bought a rephone (yay, 6 GB of ram) and successfully flashed the 4.4.0.72 build for the Volla 22. Thank you, piggz, for all the amazing work.
Unfortunately, I noticed that the volume buttons are not working in SFOS. The physical press seems to get detected. When the phone is suspended (sleep mode) and I press one of the buttons (Vol Up in this case), there is a wakeup event in the journal:
However, pressing the buttons when the phone is active does not change the volume. Can it be that they are wrongly mapped on the rephone? Is there any way to find out?
Also, as the screen of the Volla 22 / rephone has rounded edges and the front camera in the top middle, some of the screen content isn’t displayed properly. The major issue with that is that the clock (which sits in the middle of the top bar) gets completely covered by the front camera. I presume you can manipulate the layout of the top bar, maybe align the clock on the left (next to the battery indicator). Anyone know how to do that?