[Galaxy Note 4 General] edp17:
Waydroid on Galaxy Note4 (treltexx)

Edit (06/06/2022): I've uploaded packages, so don't need chum repo for the installation.

Edit (26/10/2021): I've simplified the install. Now don't need to do a manual copy, only install rpm packages. ;)

First of all a huge THANKS to Erfan Abdi who helped me to make this happen.

This instruction is for SFOS4.1 and 4.4! (I have not tried/tested on older releases)

Install Waydroid: (links are at the bottom)

1. Download and install the kernel in TWRP (This is not required since SFOS4.4 because from 4.4 all builds included the right kernel)

Get a root command line:

devel-su

2. Install dnsmasq

zypper in dnsmasq-2.86-1.4.1.jolla.armv7hl.rpm

3. Install python3-gbinder-python

zypper in python3-gbinder-python-1.0.0+git1-1.armv7hl.rpm

4. Install waydroid (this will also install other necessary packages: gobject-introspection lxc lxc-libs make python3-gobject)

zypper in waydroid-1.2.0-3.noarch.rpm

5. Install waydroid-settings

zypper in waydroid-settings-1.2.0-3.noarch.rpm

6. Install waydroid-sensors

zypper in waydroid-sensors-1.0.0-1.armv6hl.rpm

7. Install waydroid-treltexx

zypper in waydroid-treltexx-1.0.0-1.noarch.rpm

8. Initialize waydroid

waydroid init -f

9. Re-Install waydroid-treltexx (The init overwrites the vendor image, so we need to put it back)

rpm -ivh --reinstall waydroid-treltexx-1.0.0-1.noarch.rpm

10. Disable dnsmasq service

systemctl disable dnsmasq

11. Reboot

12. Start waydroid-session

In Settings/Waydroid tap on 'Start daemon'

13. Wait about 20 seconds (this is optional, if you don't wait you'll see lineage boot animation)

14. Tap on the Waydroid icon

15. Enjoy ;)

Start Waydroid:

- Tap on the Waydroid icon on your desktop

Limitations (list just a few):

- Camera, GPS, BT don't work within Waydroid (there are is down to the old HAL and probably cannot be fixed, or not easily at least)

- Battery is set to 85% by default and doesn't reflect the real state

- Sometimes you need to take the battery out (when shutting down SFOS) otherwise the device gets rebooted (this is an issue at the SFOS side, I'll try to fix it later)

- etc.

What works (list just a few):

- Touch and screen

- Network

- Sensors (except the one listed above)

- Sound (routed to the connected BT device, it must be connected in SFOS)

- Install Android apps from stores like UpToDown store app and F-Droid

- Install Android apk from the SFOS command line: waydroid app install <path-to-the-app.apk>

- Gapps/Magisk can be installed (have not tried it). Instruction: https://github.com/casualsnek/waydroid_script

- GAPPS system image is available and that works well. Once the device is registered at Google, The Google Play Store is available and is working great.

- etc.

Tips: (Kind of app integration)

You can start any Android app from the app drawer. If the full UI is started, the app will take its place otherwise it starts in a new window. If you "close" the app with the virtual Home, Back or Recent app icons, you can start any new app just like SFOS's native ones.

Links:

kernel with waydroid support (hybris-boot-sfos42-06-waydroid.img - Don't need from SFOS4.4)

dnsmasq

python3-gbinder-python

waydroid

waydroid-settings

waydroid-sensors

waydroid-treltexx

Picture:

Android 10 and desktop Debian Sid are running at the same time on top of SFOS 4.1 on the Galaxy Note 4 (treltexx):