Continuing further, I tried using the upstream images version 17 as well as 18. Both seem broken. Waydroid does not start with those images. For some odd reason, using those images seems to break the entire Waydroid installation as reverting back to the @dos’s images does not help. The only thing that helped was a complete uninstall and a reinstall of Waydroid as per @sim6’s shell script from this post above.
I used Aurora AppStore and it seems to be working fine. Apps get installed properly and do work as intended and expected.
Buoyed by that initial encouragement, I tried a corporate app from my office. It is in bin format with download available via a browser URL. The default Waydroid browser does not download it properly. (it only downloaded in kilobytes when the actual download size is in MB). I then tried using different browser. Chrome (downloaded via the Aurora AppStore) fails to install with some error message. The same issue is observed with the chrome.APK file downloaded via APKPure website. So, all in all, Chrome does not get installed.
I had luck downloading the bin file via my default trusty friend, Firefox installed via AppStore. (I then removed it as it makes no sense having Firefox on PureOS as well as Waydroid).
Next thing, there is no app on Waydroid that can install a bin file. I tried a lot of App Installer, ISO burner etc. applications but none of them worked.
I then changed the extension of the coporate app from bin to apk. The Waydrid application get downloaded to /var/lib/waydroid/data/media/0/Download location on the phone. Although the APK file is available via Files app on Waydroid it does not get installed. I then managed installing it using the waydroid app install command. It works and the app gets installed.
When attempted to launch the app, it fails with a message, `this app does not work with rooted Android’. All pain and no gain
Nevertheless, so much for learning,. Question, is there a way to make the App thing the OS is not rooted?
Maybe I was not clear enough; my corporate app thinks I am running a rooted Android system. What I wanted to understand is if there is a way to make the App think the device (Waydroid in this case) is not a rooted Android system.
@Gavaudan did I miss something with you post? I do not want to root the system but want to App to think that it is running on a non-rooted system.
Since all the needed dependencies have finally migrated into byzantium and upstream images have been fixed today, I’ve written a guide on how to install and configure Waydroid on Librem 5.
It’s about to become much simpler in a week or two once libglibutil, libgbinder, gbinder-python and maybe even waydroid itself show up in the repositories, however, for now you’ll have to build them yourselves - but don’t worry, all you have to do that is to follow the instructions
Cool. I followed the instructions, and it works except for internet (I have also tried several reboots of the phone without luck). Is there anyting you have to do inside waydroid in order to get network?
Thanks. I forgot I had set up ufw. I tried allowing port 53 and 67, but I still had some problems. With these port enabled waydroid did not complain about missing network but it did still not work. Disabling ufw worked though, so probably something I can fix with the firewall setup.
Update: In order to get network in waydroid with ufw enabled I had to run ufw default allow routed. I’m not too familiar with ufw, so it might be a better way to accomplish this.
Thanks @dos for the super detailed instructions.
It works perfectly now with the upstream images as well.
I enabled the F-Droid, Aurora and microG as explained. I see the “microG Services Core keeps stopping” pop-up. Could that be a microG issue? Or anything with the setup?
@david.hamner, can there be a video announcement of this excellent work?
With a perfectly working Waydroid on Librem 5, the usability of the phone increases in leaps and bounds, going from very few Apps to al carte of Apps to choose from. This is like from nowhere to everywhere.
Where did you people get the 6.0.2 kernel containing fixes?
purism@pureos:~$ sudo apt dist-upgrade
[sudo] password for purism:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
linux-image-6.0.0-1-librem5 linux-image-librem5 linux-libc-dev phosh phosh-mobile-tweaks phosh-plugins
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.7 MB of archives.
After this operation, 8192 B disk space will be freed.
Do you want to continue? [Y/n]
make[2]: Entering directory ‘/home/purism/waydroid-deb/libgbinder/test/binder-ping’
make[3]: Entering directory ‘/home/purism/waydroid-deb/libgbinder/test/binder-ping’
make[3]: warning: jobserver unavailable: using -j1. Add ‘+’ to parent make rule.
cc build/release/binder-ping.o -fPIC -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lglibutil …/…/build/release/libgbinder.so.1.1.26 -o build/release/binder-ping
make[3]: ‘build/release/libgbinder.so.1.1.26’ is up to date.
make[3]: ‘build/release/libgbinder.so.1’ is up to date.
make[3]: Leaving directory ‘/home/purism/waydroid-deb/libgbinder’
strip build/release/binder-ping
install --strip-program=true -m 755 build/release/binder-ping /home/purism/waydroid-deb/libgbinder/debian/tmp/usr/bin
install: WARNING: ignoring --strip-program option as -s option was not specified
make[2]: Leaving directory ‘/home/purism/waydroid-deb/libgbinder/test/binder-ping’
make[1]: Leaving directory ‘/home/purism/waydroid-deb/libgbinder’
dh_install
dh_installdocs
dh_installchangelogs
debian/rules execute_before_dh_installman
make[1]: Entering directory ‘/home/purism/waydroid-deb/libgbinder’
for n in debian/tmp/usr/bin/binder-; do
help2man -n “testing tool for libgbinder” -N --version-string=‘1.1.26’ “$n” > debian/${n##/}.1;
done
help2man: can’t get --help' info from debian/tmp/usr/bin/binder-bridge Try –no-discard-stderr’ if option outputs to stderr
help2man: can’t get --help' info from debian/tmp/usr/bin/binder-call Try –no-discard-stderr’ if option outputs to stderr
help2man: can’t get --help' info from debian/tmp/usr/bin/binder-list Try –no-discard-stderr’ if option outputs to stderr
help2man: can’t get --help' info from debian/tmp/usr/bin/binder-ping Try –no-discard-stderr’ if option outputs to stderr
make[1]: *** [debian/rules:27: execute_before_dh_installman] Error 127
make[1]: Leaving directory ‘/home/purism/waydroid-deb/libgbinder’
make: *** [debian/rules:32: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -i -I failed
gbp:error: ‘debuild -i -I --no-sign’ failed: it exited with 29
purism@pureos:~/waydroid-deb/libgbinder$