← Back to team overview

ubuntu-phone team mailing list archive

Re: Find out if running on a phone

 


On 11.01.2016 10:15, Michi Henning wrote:
>> Yes, as I said in the other mail, this approach sounds definitely wrong
>> to me. What you really want is to find out whether the android
>> hardware/drivers are around or not.
> 
> Right. I agree with the concerns about it being hacky, I don’t like it either.
> 
> It turns out that testing for the presence/absence of /usr/lib/<arch>/libhybris works (at least at the moment) to distinguish touch from the desktop. 
> I tested on the phone and on my Chromebook, and get the right answers.

FWIW, this is on my MacBook pro:

micha@Shadow ~  $  ls /usr/lib/x86_64-linux-gnu/libhybris*
/usr/lib/x86_64-linux-gnu/libhybris-common.so.1
/usr/lib/x86_64-linux-gnu/libhybris-common.so.1.0.0
/usr/lib/x86_64-linux-gnu/libhybris-eglplatformcommon.so.1
/usr/lib/x86_64-linux-gnu/libhybris-eglplatformcommon.so.1.0.0
/usr/lib/x86_64-linux-gnu/libhybris-hwcomposerwindow.so.1
/usr/lib/x86_64-linux-gnu/libhybris-hwcomposerwindow.so.1.0.0
/usr/lib/x86_64-linux-gnu/libhybris_ics.so

/usr/lib/x86_64-linux-gnu/libhybris:
eglplatform_fbdev.so  eglplatform_hwcomposer.so  eglplatform_null.so
eglplatform_wayland.so

/usr/lib/x86_64-linux-gnu/libhybris-egl:
alt_ld.so.conf  libEGL.so.1      libGLESv2.so.2      libwayland-egl.so.1
ld.so.conf      libEGL.so.1.0.0  libGLESv2.so.2.0.0  libwayland-egl.so.1.0.0


Would this get your hardware stuff enabled here then? If so, the check
is not good enough.


Again, you really should not think of it as Touch vs Desktop. Desktops
have touch screens, phones have Bluetooth mice and external screens. All
of them will be running unity8.

> 
> But it turns out that the point may well be moot. I re-enabled concurrent extraction for audio and video files on my Chromebook, just to see how it’ll go. Turns out that codecs get stuck and just hang on my Chromebook when more than one runs at a time, so we can’t enable concurrent extraction on Arm anyway for the time being.

Wasn't the idea to enable concurrent extraction for when we are using
the software codecs?

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References