View Single Post
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#48
Waydroid on Galaxy Note4 (treltexx)

Edit (0606/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 he right kernel)
    Get a root command line:
    Code:
    devel-su
  2. Install dnsmasq
    Code:
    zypper in dnsmasq-2.86-1.4.1.jolla.armv7hl.rpm
  3. Install python3-gbinder-python
    Code:
    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)
    Code:
    zypper in waydroid-1.2.0-3.noarch.rpm
  5. Install waydroid-settings
    Code:
    zypper in waydroid-settings-1.2.0-3.noarch.rpm
  6. Install waydroid-snsors
    Code:
    zypper in waydroid-sensors-1.0.0-1.armv6hl.rpm
  7. Install waydroid-treltexx
    Code:
    zypper in waydroid-treltexx-1.0.0-1.noarch.rpm
  8. Initialize waydroid
    Code:
    waydroid init -f
  9. Re-Install waydroid-treltexx (The init overwrites the vendor image, so we need to put it back)
    Code:
    rpm -ivh --reinstall waydroid-treltexx-1.0.0-1.noarch.rpm
  10. Disable dnsmasq service
    Code:
    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 (full UI):
- 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):

Last edited by edp17; 2022-06-06 at 23:39. Reason: Simplified install
 

The Following 3 Users Say Thank You to edp17 For This Useful Post: