Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waydroid Android TV builds #151

Open
havy1601 opened this issue Aug 19, 2024 · 8 comments
Open

Waydroid Android TV builds #151

havy1601 opened this issue Aug 19, 2024 · 8 comments

Comments

@havy1601
Copy link

Would it be possible to use the Waydroid Android TV custom image on the steamdeck with your script?
It would be great for a seamless experience when docked and connected to a TV.

For example:
https://github.com/supechicken/waydroid-androidtv-build

@ryanrudolfoba
Copy link
Owner

should be doable

@havy1601
Copy link
Author

I tried to replace the system.img and the vendor.img with the ones from the android tv build and
reinitiated waydroid with "sudo waydroid init -f", but unfortunately waydroid is then stuck on the lineage boot screen. (boot loop)

waydroid.log seems normal:

(059029) [16:37:41] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
STOPPED
(059029) [16:37:41] % modprobe -q ashmem_linux
(059029) [16:37:41] % chmod 666 -R /dev/binder
(059029) [16:37:41] % chmod 666 -R /dev/anbox-vndbinder
(059029) [16:37:41] % chmod 666 -R /dev/anbox-hwbinder
(059059) [16:37:46] Starting waydroid session
(059029) [16:37:46] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
(059029) [16:37:46] % systemctl is-active -q nfcd
(059029) [16:37:46] % chmod 777 -R /dev/dri
(059029) [16:37:46] % chmod 777 -R /dev/fb0
(059029) [16:37:46] % mv /var/lib/waydroid/config_session /var/lib/waydroid/lxc/waydroid
(059029) [16:37:46] % mount -o ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
(059029) [16:37:46] % mount -t overlay -o ro,lowerdir=/var/lib/waydroid/overlay:/var/lib/waydroid/rootfs,upperdir=/var/lib/waydroid/overlay_rw/system,workdir=/var/lib/waydroid/overlay_work/system,xino=off overlay /var/lib/waydroid/rootfs
(059029) [16:37:46] % mount -o ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(059029) [16:37:46] % mount -t overlay -o ro,lowerdir=/var/lib/waydroid/overlay/vendor:/var/lib/waydroid/rootfs/vendor,upperdir=/var/lib/waydroid/overlay_rw/vendor,workdir=/var/lib/waydroid/overlay_work/vendor,xino=off overlay /var/lib/waydroid/rootfs/vendor
(059029) [16:37:46] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(059029) [16:37:46] Save config: /var/lib/waydroid/waydroid.cfg
(059029) [16:37:46] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(059029) [16:37:46] New background process: pid=59102, output=background
(059029) [16:37:46] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
RUNNING
(059059) [16:37:46] Skipping clipboard manager service because of missing pyclip package
(059830) [16:38:01] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
RUNNING

@havy1601
Copy link
Author

Ok, I got it running now. SupeChicken666 the creator of the android tv build told me the following:
"You need to wipe the data directory of Waydroid first (rm -r ~/.local/share/waydroid) after replacing the stock one with the new system image."

@ryanrudolfoba
Copy link
Owner

ryanrudolfoba commented Sep 23, 2024 via email

@slynobody
Copy link

slynobody commented Nov 1, 2024

highly second integrating this (beside GAPPS or NONE).
working really good here.
maybe this could also be a good starting point to sustain the life of waydroid on the deck if valve in the (near?) future considers to integrate something into SteamOS like https://gitlab.com/android_translation_layer

only thing when using this build is getting widevine-driven-apps like disney, netflix, etc to run. non-drm video-apps work (beside youtube refuses to start).

suggestions:

  1. maybe the typical widevine-script should be triggered when Android TV is chosen? Or is using this build the possibility to somehow get a WideVine L1 Certification in waydroid-context?
  2. maybe the drm-promblem areresulting from the fact that those apps should see android tv running on a pixel-device?
    a) maybe the config (Brand, Device, Manufacterer etc.) could also need some adjustments then? take a look f.e. at waydroid/android_device_waydroid_waydroid@5cd5af8
    b) But i doubt this config is nearly as good as the current config (how do you collect that information?) when it comes to a specific device (then tv-device) the apps are expecting? for infos on specific device-names take a look f.e. at https://explore.whatismybrowser.com/useragents/explore/hardware_type_specific/tv/

or maybe you both are getting drm-content to run with the current solution?

@ryanrudolfoba
Copy link
Owner

I haven't tried Android Tv yet but the way the script has evolved it will be added as an option dhring install

@ryanrudolfoba
Copy link
Owner

trying to build but getting stuck on vendor.img - supechicken/waydroid-androidtv-build#16

if im not able to figure it out i'll just use prebuilt one's from supechicken666

@ryanrudolfoba
Copy link
Owner

build completed and it boots!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants