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

[Feature] Use more recent LineageOS versions #16

Open
Benjamin-Loison opened this issue Mar 6, 2024 · 89 comments
Open

[Feature] Use more recent LineageOS versions #16

Benjamin-Loison opened this issue Mar 6, 2024 · 89 comments

Comments

@Benjamin-Loison
Copy link
Owner

Benjamin-Loison commented Mar 6, 2024

Working LineageOS 20 (Android 13) Waydroid image at #issuecomment-2226210183

Is your feature request related to a problem? Please describe.

Notably to have accessibility menu to emulate power button, cf my Android Stack Exchange comment.

LineageOS 18.1 is no more supported since March 5, 2024, see Wikipedia: LineageOS#Version_history (1225763680). According to this source, LineageOS 18.1 is based on Android 11. According to Wikipedia: Android version history#Overview (1232781455), Android 11 is not supported since March 1, 2024. So what are the downloadable updates made of, only patches for Waydroid? I stopped reading recent closed issues at 23/05/23. Related to waydroid/issues/{922,456,563,390}

As a comparison I currently have on my Fairphone 4 Lineage OS 21 using Android 14.

Related to waydroid/issues/1337. I checked the title of all opened issues since LineageOS 18.1 is no more supported that is March 5, 2024, see Wikipedia: LineageOS#Version_history (1225763680) and it seems to be the only related issue.

+50

Describe the solution you'd like.

Not read.

Describe alternatives you've considered.

Not read.

Additional context

No response

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 2, 2024

Concerning the comment about explaining how to try on our own a more recent LineageOS version, see waydroid/issues/1337#issuecomment-2049517200, it is unclear what wiki the person is referring to, as the repository does not have a wiki which would otherwise be at waydroid/wiki.

@Benjamin-Loison
Copy link
Owner Author

https://waydro.id seems to mostly redirect to https://docs.waydro.id/, see https://waydro.id/#docs.

@Benjamin-Loison
Copy link
Owner Author

The Android runtime environment ships with a minimal customized Android system image based on the LineageOS. The used image is currently based on Android 11.

Source: https://docs.waydro.id

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 2, 2024

May help:

Virtual machine, see https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm.

Otherwise there does not seem to be any interesting resource on https://docs.waydro.id.

@Benjamin-Loison
Copy link
Owner Author

Related to #38.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 6, 2024

I guess that the downloaded LineageOS update is not somehow partially executed without Waydroid start but maybe not updating it except if I use the outdated LineageOS Waydroid makes sense.

Only using Waydroid in a virtual machine may make sense.

Related to Benjamin-Loison/android/issues/62.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 7, 2024

In theory blocking Improve_websites_thanks_to_open_source/issues/{31,739}.

@Benjamin-Loison
Copy link
Owner Author

Once solved, consider Umay (I delete old snapshots).

@Benjamin-Loison
Copy link
Owner Author

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 11, 2024

# Source: https://narkive.com/QFd5Huo9.2
git config --global color.ui true
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs
Output:
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo: Updating release signing keys to keyset ver 2.3
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.


Your identity is: Benjamin Loison <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/debian
repo sync build/make
Output:
Fetching: 100% (1/1), done in 6.168s
repo sync has finished successfully.
wget -O - https://github.com/waydroid/android_vendor_waydroid/raw/lineage-20/manifest_scripts/generate-manifest.sh | bash

output.txt

https://wiki.lineageos.org/devices/FP4/build/#download-the-source-code

time repo sync -j $(nproc --all)
matrix-commander '`repo sync` finished!'

output.txt

Related to Benjamin_Loison/openssh/issues/6.

. build/envsetup.sh
including vendor/extra/vendorsetup.sh
apply-waydroid-patches
matrix-commander '`apply-waydroid-patches` finished!'

output.txt

Have to execute again . build/envsetup.sh?? See https://docs.waydro.id/development/compile-waydroid-lineage-os-based-images#waydroid-build-commands and https://matrix.to/#/!rLTECBThFGLDQRuPIg:connolly.tech/$81Twx5vP3n2CKCrvrTHWYjulMn14qxEUbc74tWG0h8k.

sudo apt install -y python-is-python3
lunch lineage_waydroid_x86_64-userdebug
Output:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Trying dependencies-only mode on a non-existing device tree?
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
LINEAGE_VERSION=20.0-20240711-UNOFFICIAL-waydroid_x86_64
TARGET_PRODUCT=lineage_waydroid_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.1.0-22-cloud-amd64-x86_64-Debian-GNU/Linux-12-(bookworm)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230901.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/waydroid/waydroid
============================================

image

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 11, 2024

Could investigate https://wiki.lineageos.org/devices/FP4/build/#turn-on-caching-to-speed-up-build.

sudo apt install -y libncurses5 zip
make systemimage -j$(nproc --all)
matrix-commander 'Make finished!'

output.txt

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 11, 2024

Git LFS is necessary.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

ls -l $OUT/system.img
-rw-r--r-- 1 debian debian 754659500 Jul 12 19:01 /home/debian/out/target/product/waydroid_x86_64/system.img
simg2img $OUT/system.img ~/system.img
ls -l ~/system.img
-rw-r--r-- 1 debian debian 754659328 Jul 12 19:09 /home/debian/system.img
file $OUT/system.img ~/system.img
Output:
/home/debian/out/target/product/waydroid_x86_64/system.img: Android sparse image, version: 1.0, Total of 184243 4096-byte output blocks in 12 input chunks.
/home/debian/system.img:                                    Squashfs filesystem, little endian, version 4.0, zlib compressed, 754657660 bytes, 4862 inodes, blocksize: 131072 bytes, created: Sat Jul 13 13:14:15 2024
sha512sum ~/system.img
d6f5f104b8718112422a8d1faaacfd5b9746324875c536b10f70e4d2b68701b0cf5ae78750659f5e135cd8fa138377611d07fa452c8339c9e7a374c22d9762d1  /home/debian/system.img

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

See the end of the comment for download.

sudo apt install -y meson glslang-tools pkg-config python3-mako byacc flex
make vendorimage -j$(nproc --all)
matrix-commander 'Make finished!'

output.txt

ls -l $OUT/vendor.img
-rw-r--r-- 1 debian debian 159273024 Jul 12 19:42 /home/debian/out/target/product/waydroid_x86_64/vendor.img

Could try to waydroid show-full-ui or sudo waydroid init if necessary, see below, despite not running simg2img.

simg2img $OUT/vendor.img ~/vendor.img
ls -l ~/vendor.img
-rw-r--r-- 1 debian debian 159272960 Jul 12 19:45 /home/debian/vendor.img
file $OUT/vendor.img ~/vendor.img
Output:
/home/debian/out/target/product/waydroid_x86_64/vendor.img: Android sparse image, version: 1.0, Total of 38885 4096-byte output blocks in 3 input chunks.
/home/debian/vendor.img:                                    Squashfs filesystem, little endian, version 4.0, zlib compressed, 159272661 bytes, 766 inodes, blocksize: 131072 bytes, created: Sat Jul 13 13:31:51 2024
sha512sum ~/vendor.img
8a762bef4919333229df47ae16677619b49e154ed52f5ecfe0d06ec429bceb9353cee142d47ccdc4085122d6e3166bb493567ef137737da95f50a73734e90e86  vendor.img

Working LineageOS 20 (Android 13) Waydroid image:

Archive with both .imgs.
https://www.mediafire.com/file/ogg607lky6say0h/archive.7z/file
Password: i4yUhPaS4dSy3tb4h42T7Lcy7gdxzwDEamyyP3

Build mentioned publicly at https://matrix.to/#/!rLTECBThFGLDQRuPIg:connolly.tech/$Eu9p_h-Ev9n7enq6Sa7qjPFrwnGtTy3hXFEgB8IFnb4.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

On Debian 12 GNOME VirtualBox virtual machine:

sudo mkdir -p /etc/waydroid-extra/images/
sudo mv {system,vendor}.img /etc/waydroid-extra/images/
waydroid init -h
Output:
usage: waydroid init [-h] [-i IMAGES_PATH] [-f] [-c SYSTEM_CHANNEL] [-v VENDOR_CHANNEL] [-r ROM_TYPE] [-s SYSTEM_TYPE]

options:
  -h, --help            show this help message and exit
  -i IMAGES_PATH, --images_path IMAGES_PATH
                        custom path to waydroid images (default in /var/lib/waydroid/images)
  -f, --force           re-initialize configs and images
  -c SYSTEM_CHANNEL, --system_channel SYSTEM_CHANNEL
                        custom system channel (options: OTA channel URL; default is Official OTA server)
  -v VENDOR_CHANNEL, --vendor_channel VENDOR_CHANNEL
                        custom vendor channel (options: OTA channel URL; default is Official OTA server)
  -r ROM_TYPE, --rom_type ROM_TYPE
                        rom type (options: "lineage", "bliss" or OTA channel URL; default is LineageOS)
  -s SYSTEM_TYPE, --system_type SYSTEM_TYPE
                        system type (options: VANILLA, FOSS or GAPPS; default is VANILLA)

Could try waydroid show-full-ui at this stage.

sudo waydroid init

does not produce any output.

waydroid show-full-ui
Output:
[22:12:08] Starting waydroid session
[22:12:10] Skipping clipboard manager service because of missing pyclip package
[22:12:10] Failed to add service waydroidusermonitor: -2147483647

Before applying https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm.

After get:
[22:13:50] Starting waydroid session
[22:13:50] Skipping clipboard manager service because of missing pyclip package
[gbinder] Service manager /dev/anbox-binder has appeared
[22:13:50] Failed to add service waydroidusermonitor: -2147483647
[22:13:50] Failed to add service waydroidusermonitor: -2147483647

Running on a host seems to make sense.

On Pegasus Debian 12 GNOME get:
[22:38:48] Starting waydroid session
[22:38:48] WAYLAND_DISPLAY is not set, defaulting to "wayland-0"
[22:38:49] Skipping clipboard manager service because of missing pyclip package
[22:38:49] Failed to add service waydroidusermonitor: -2147483647

Should investigate waydroid log.

@Benjamin-Loison
Copy link
Owner Author

Could compile for 18.1 to check if it works fine.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

Searching the Internet for Failed to add service waydroidusermonitor.

/etc/gbinder.d/

setenforce
Output:
Command 'setenforce' not found, but can be installed with:
sudo apt install selinux-utils

Source: waydroid/issues/1032#issuecomment-1675843509

@Benjamin-Loison
Copy link
Owner Author

Look at waydroid/issues/new?assignees=&labels=&projects=&template=bug_report.yml&title=%5BBUG%5D to see what debugging is recommended.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

Thanks to Benjamin-Loison/waydroid/issues/19 testing on my Linux Mint 21.3 Cinnamon Framework 13 could make sense. However, should make sure not to lose data/setup.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

/var/lib/waydroid/waydroid.log:
<pre>(321564) [01:12:59] Starting waydroid session
(321564) [01:12:59] WAYLAND_DISPLAY is not set, defaulting to &quot;wayland-0&quot;
(319625) [01:12:59] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
(319625) [01:12:59] % systemctl is-active -q nfcd
(319625) [01:12:59] % chmod 777 -R /dev/dri
(319625) [01:12:59] % mv /var/lib/waydroid/config_session /var/lib/waydroid/lxc/waydroid
(319625) [01:12:59] % mount -o ro /etc/waydroid-extra/images/system.img /var/lib/waydroid/rootfs
(319625) [01:12:59] % 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
(319625) [01:12:59] % mount -o ro /etc/waydroid-extra/images/vendor.img /var/lib/waydroid/rootfs/vendor
(319625) [01:12:59] % 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
(319625) [01:12:59] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(319625) [01:12:59] Save config: /var/lib/waydroid/waydroid.cfg
(319625) [01:12:59] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(319625) [01:12:59] New background process: pid=321637, output=background
(319625) [01:12:59] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
RUNNING
(321564) [01:12:59] Skipping clipboard manager service because of missing pyclip package
(319625) [01:12:59] Failed to add service waydroidhardware: -2147483647
(319625) [01:12:59] Failed to add service waydroidhardware: -2147483647
(321564) [01:12:59] Failed to add service waydroidusermonitor: -2147483647
(321564) [01:12:59] Failed to add service waydroidusermonitor: -2147483647</pre>
sudo waydroid shell -- logcat -h
Output:
Usage: logcat [options] [filterspecs]

General options:
...
  -d                          Dump the log and then exit (don't block).
...

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

Should search error in compilation logs and pay attention to have complete ones.

waydroid_script mentions Android 13.

Source: waydroid/issues/563

waydroid_script: 1.5k stars
waydroid: 7.3k stars

git clone --depth 1 https://github.com/casualsnek/waydroid_script
cd waydroid_script/

sudo apt install -y python3.11-venv
python3 -m venv venv
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py
Output:
? Select Android version Android 13
? Please select an action Install
? Select apps ([↑↓]: Select Item. [Space]: Toggle Choice), [Enter]: Confirm 
❯ ○ gapps
  ○ microg
  ○ libndk
  ○ magisk
  ○ smartdock
  ○ fdroidpriv

should be at least 1 selection
? Select apps ['fdroidpriv']
Traceback (most recent call last):
  File "/home/user/Desktop/waydroid_script/main.py", line 358, in <module>
    main()
  File "/home/user/Desktop/waydroid_script/main.py", line 354, in main
    interact()
  File "/home/user/Desktop/waydroid_script/main.py", line 256, in interact
    install_app(args)
  File "/home/user/Desktop/waydroid_script/main.py", line 91, in install_app
    install_list.append(FDroidPriv(args.android_version))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/Desktop/waydroid_script/stuff/fdroidpriv.py", line 29, in __init__
    self.dl_link = self.dl_links[android_version][0]
                   ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: '13'
? Select apps ['microg']
? Select MicroG variant 
❯ Standard
  NoGoolag
  UNLP
  Minimal
  MinimalIAP
? Select apps ['microg']
? Select MicroG variant Standard
ERROR: Cannot locate waydroid config file, reinit wayland and try again!

So it is assuming that we achieved to install somehow Android 13?

Searching Android 13 in opened and closed issues leads to the more or less interesting:

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 12, 2024

Trying to compile LineageOS 18.1:

Based on https://wiki.lineageos.org/devices/FP4/build/, no instruction differ in theory.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 13, 2024

git config --global color.ui true
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1 --git-lfs
Output:
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo: Updating release signing keys to keyset ver 2.3
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.


Your identity is: Benjamin Loison <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/debian
repo sync build/make

output.txt

wget -O - https://github.com/waydroid/android_vendor_waydroid/raw/lineage-18.1/manifest_scripts/generate-manifest.sh | bash

output.txt

time repo sync -j$(nproc --all)
matrix-commander '`repo sync` finished!'

output.txt

. build/envsetup.sh
including vendor/extra/vendorsetup.sh
apply-waydroid-patches
matrix-commander '`apply-waydroid-patches` finished!'

output.txt

With git-lfs:
real	2m40.254s
user	2m14.221s
sys	0m33.103s

Have to execute again . build/envsetup.sh??

sudo apt install -y python-is-python3
lunch lineage_waydroid_x86_64-userdebug
Output:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Trying dependencies-only mode on a non-existing device tree?
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
LINEAGE_VERSION=18.1-20240713-UNOFFICIAL-waydroid_x86_64
TARGET_PRODUCT=lineage_waydroid_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.1.0-22-cloud-amd64-x86_64-Debian-GNU/Linux-12-(bookworm)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.211001.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/waydroid/waydroid packages/apps/Bluetooth
============================================
sudo apt install -y libncurses5 zip
make systemimage -j$(nproc --all)
matrix-commander 'Make finished!'

output.txt

Related to Improve_websites_thanks_to_open_source/issues/798.

ls -l $OUT/system.img
-rw-r--r-- 1 debian debian 1724445264 Jul 13 03:23 /home/debian/out/target/product/waydroid_x86_64/system.img
simg2img $OUT/system.img ~/system.img
ls -l ~/system.img
-rw-r--r-- 1 debian debian 3547480064 Jul 13 03:25 /home/debian/system.img
sha512sum ~/system.img
d17befbcad7b9230ee23f5846100196a0f2770206ca45f427365d17b86b80b656ff4bbc7c0917d1c3b28e2c8df951ff6faa7ebf16de012f0be19ad87cceb7ad4  /home/debian/system.img
sudo apt install -y meson glslang-tools pkg-config python3-mako byacc flex
make vendorimage -j$(nproc --all)
matrix-commander 'Make finished!'

stdout.txt

sudo apt install -y meson

output.txt

sudo apt install -y glslang-tools

output.txt

sudo apt install -y pkg-config

output.txt

sudo apt install -y python3-mako

output.txt

sudo apt install -y byacc

output.txt

sudo apt install -y flex

output.txt

ls -l $OUT/vendor.img
-rw-r--r-- 1 debian debian 519426340 Jul 13 03:50 /home/debian/out/target/product/waydroid_x86_64/vendor.img
simg2img $OUT/vendor.img ~/vendor.img
ls -l ~/vendor.img
-rw-r--r-- 1 debian debian 1547481088 Jul 13 03:52 /home/debian/vendor.img
sha512sum ~/vendor.img
74bc9c79e0af436bb1dd4279dc1b994326fba3291e2574bc3df7cfa73f2890b2704f74e83385eb67c28deec4eb9be1ae3c93b1c510604ed68bcf2596ab0fbd0c  /home/debian/vendor.img
sudo mv {system,vendor}.img /etc/waydroid-extra/images/
sudo waydroid init -f
waydroid show-full-ui

It works for LineageOS 18.1.

image

image

Maybe should retry from scratch to build LineageOS 20 or test on most recent Ubuntu LTS to oldest recommended one.

Archive with both .imgs.
https://www.mediafire.com/file/e2sgah5qlkj9lpg/archive.7z/file
Password: Lyf4xrEhNDQhRQZXAd3Mmrn5DkDxev9pcv7hs9

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jul 13, 2024

Still the same issue (nothing appears in Weston on Pegasus Debian 12 GNOME) from scratch after 1:37:13 on LineageOS 20:

waydroid show-full-ui
Output:
[15:37:58] Starting waydroid session
[15:37:58] WAYLAND_DISPLAY is not set, defaulting to "wayland-0"
[15:37:58] Skipping clipboard manager service because of missing pyclip package
[gbinder] Service manager /dev/anbox-binder has appeared
[15:37:58] Failed to add service waydroidusermonitor: -2147483647
[15:37:58] Failed to add service waydroidusermonitor: -2147483647

@solitudealma
Copy link

i want to run a game, which cant run with libndk

@Benjamin-Loison
Copy link
Owner Author

What is the game @solitudealma? I can't help you further yet but who knows maybe someone will step in or later on I'll have more skills concerning this topic.

@solitudealma
Copy link

What is the game @solitudealma? I can't help you further yet but who knows maybe someone will step in or later on I'll have more skills concerning this topic.

http://a.9game.cn/sdxl
this chinese game,and its platform also cant run. intel cpu, nvidia 1660ti
This game is rarely played.

@gmankab
Copy link

gmankab commented Oct 19, 2024

@gmankab Can you try running Waydroid on Oracle ARM server?

yes, if you explain how to do it and provide bash commands

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Oct 19, 2024

My point is that, as described from #issuecomment-2422208834 to #issuecomment-2423360068, I was not able to run Waydroid on Oracle ARM server. If you are able on your own to make it run, then I can investigate how to build Waydroid LineageOS 20 (Android 13) on ARM.

@gmankab
Copy link

gmankab commented Oct 19, 2024

i don't really know how to do it

@Benjamin-Loison
Copy link
Owner Author

Then I can't really help much more because it would mean that I'm unable to even test my ARM build.

@Benjamin-Loison
Copy link
Owner Author

@gmankab I contacted on Telegram the person you mentioned in #16 (comment) for further investigation of what this person is able to concerning Waydroid and ARM.

Hello, I am the one who made the LineageOS 20 (Android 13) Waydroid build. It seems that you are looking for an ARM version of it (#16 (comment)). Are you able to run official builds of Waydroid on ARM?
(https://t.me/gmankachat/1303710)

Personal notes:

I do not have ARM hardware so I use Oracle Always Free ARM VPS. Are you able to run Waydroid on such VPS?

@ryanrudolfoba
Copy link

@Benjamin-Loison thanks for the Android 13 image, I'm able to use it on SteamOS / Steam Deck by making minor modifications from this repo - https://github.com/ryanrudolfoba/SteamOS-Waydroid-Installer

@gmankab thanks for the guide also on how to use the custom image i've used it as a guide in making minor modifications to my script.

I've used casualsnek waydroid_script to add libndk, playstore and widevine and it seems to have installed fine -
image

Playstore is working too I'm able to login and download games from the Playstore -
image

However launching games that are ARM fails. In theory it should work since the LIBNDK translation layer is installed but ARM apps close -
image

LIBNDK ARM translation layer works fine on Android 11 as we've been using it for several months now. It seems its only broken when on Android 13. LIBNDK translation layer will be really useful as majority of the apps in the Playstore are ARM based.

I'll poke around and between Android 11 and Android 13 and compare if the files needed are getting copied to the right location. If you guys have any other ideas how to troubleshoot this that will be awesome.

@Benjamin-Loison
Copy link
Owner Author

Thanks for the feedback @ryanrudolfoba. I am not comfortable on how libndk works, so won't be able to help you much. Your best luck is to understand how libndk is installed on Android 11 and try to adapt it to Android 13.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Nov 29, 2024

I removed sudo waydroid upgrade from my updateall .bashrc alias, notably due to #47 and probably empty updates.

@Benjamin-Loison
Copy link
Owner Author

# Have not achieved to write on multiple lines thanks to `\`.
alias waydroid_upgrade="if [ \"$(curl -s 'https://ota.waydro.id/system/lineage/waydroid_x86_64/VANILLA.json' | jq -r '.response[0].version')\" != '18.1' ]; then sudo waydroid upgrade; fi"

@Benjamin-Loison
Copy link
Owner Author

Related to Benjamin-Loison/android/issues/136.

@WesleyVanNeck
Copy link

@gmankab Can you elaborate on why you are interested in Waydroid for ARM?

Are you able to show Waydroid window on Oracle always free ARM VPS (note that as far as I know only Marseille Home region at account creation gives always free ARM CPU architecture VPS)? As described above, I quickly tried on Ubuntu and Debian without luck.

I got a arm64 device with debian and yes waydroid works on it

@Benjamin-Loison
Copy link
Owner Author

@WesleyVanNeck I don't have an ARM64 device, so as stated above I tried quickly running Waydroid on Oracle Cloud ARM but failed to, if you give me a working procedure to run Waydroid on Oracle Cloud ARM, then I can compile Waydroid on ARM for you.

@WesleyVanNeck
Copy link

WesleyVanNeck commented Jan 18, 2025

@WesleyVanNeck I don't have an ARM64 device, so as stated above I tried quickly running Waydroid on Oracle Cloud ARM but failed to, if you give me a working procedure to run Waydroid on Oracle Cloud ARM, then I can compile Waydroid on ARM for you.

You need to recompile the kernel and eneble psi

Here are the config hexdump0815/kernel-config-options@ba3a004

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Jan 18, 2025

@WesleyVanNeck I don't know what you refer to by psi, can you provide a reference about it?

@WesleyVanNeck
Copy link

@WesleyVanNeck I don't know what you refer to by psi, can you provide a reference about it?

Just edited it

@Benjamin-Loison
Copy link
Owner Author

@WesleyVanNeck If I recompile with your patch, I would like to ensure on my side that the compilation build works fine on ARM, which requires me to be able to run Waydroid on Oracle Cloud ARM, so see #issuecomment-2599866530 to help me be able to do so if you want me to compile LineageOS ARM for you.

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

5 participants