← Back to team overview

ubuntu-phone team mailing list archive

Re: Find out if running on a phone

 

>
> > Just try to exec getprop. It is only available on systems that are
> > running an Android container.
>
> That's not working when confined, is it?
>
> What about passing an argument to the app only when called on the phone,
via the desktop file in the click and checking for that argument? This is
not what I use right now though in TextSecure (just check for
/home/phablet, knowing I can add some more dirs to that check to increase
the probability the app runs on the phone).

Follow ups

References