how to detect android environment from within a shader

hi folks, sorry if this is a duplicate but I can’t find anything online.

grabpass behaves erratically on android. I used to scan for GLES using this:

#pragma exclude_renderers gles

but this also knocks out webgl which actually does work, (and probably linux etc).

can I detect an android device directly from a shader ?

there’s nothing here:

I can see ps3 and even the sadly (foolishly?) deprecated Flash, but not android.

hi;
how about checking the android via script with this :

if (  Application.platform == RuntimePlatform.Android )

then assign the related shader based on your check;
i this is not what u wanted but based on what i know this is what i would do if i need it ;