Difference between revisions of "Hybris"

From postmarketOS
Jump to: navigation, search
(explicitly state that hybris devices will not be featured devices)
m (Update packages that need to be installed)
Line 10: Line 10:
  
 
<syntaxhighlight lang="shell-session">
 
<syntaxhighlight lang="shell-session">
$ sudo apk add lxc-android xf86-video-hwcomposer libhybris libhybris-egl libhybris-gles libhybris-7.1-caf wayland-libs-client wayland-libs-server
+
$ sudo apk add lxc-android \
 +
              xf86-video-hwcomposer \
 +
              xf86-video-hwcomposer-7.1-caf \
 +
              libhybris \
 +
              libhybris-egl \
 +
              libhybris-gles \
 +
              libhybris-libwayland-egl \
 +
              libhybris-7.1-caf \
 +
              wayland-libs-client \
 +
              wayland-libs-server
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 15:33, 25 November 2018

Libhybris allows devices lacking FLOSS drivers to make full use of their hardware by using the proprietary drivers from Android. Mainlining and using free software drivers is of course the better approach, but it is not possible for all devices. We will not list devices that need hybris as featured devices (see postmarketos.org#83).

Using libhybris with your device

This is a stub copied from chat messages in #postmarketOS. Please extend if you are porting your device to libhybris.

  • convert the halium system.img to a mountable image (basically what the halium install script does)
  • install postmarketOS on the device without user interface and copy the new system.img to the device, to /var/lib/lxc/android/system.img
  • install the hybris related packages:
$ sudo apk add lxc-android \
               xf86-video-hwcomposer \
               xf86-video-hwcomposer-7.1-caf \
               libhybris \
               libhybris-egl \
               libhybris-gles \
               libhybris-libwayland-egl \
               libhybris-7.1-caf \
               wayland-libs-client \
               wayland-libs-server
  • start the service:
$ sudo rc-service lxc-android start

See also