← Back to team overview

ubuntu-phone team mailing list archive

Re: Find out if running on a phone

 


On 11.01.2016 12:41, Jani Monoses wrote:
>     > 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).

You should not do that... Why do you even want to know?

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References