How to change OpenGL type per script

As you can see I have the question:
How can I change the the Quality Level, means the OpenGl type per script.
The problem is, that the shadows with OpenGL 2.0 looks bad, but OpenGL ES 3.0 isn’t supported by many devices. And I don’t want to publish two types of the .apk - one for OpenGL 2.0 and one for OpenGL ES 3.0.
Is there any way to change it ingame?

Sorry for my bad english… :slight_smile:

I’m using Unity 5.4, but, if I set it to automatic, it never make the correct choice, for example, I have an iPhone 5s, this Device supports OpenGL3.0, but, If I use it in Automatic, I have problems with the lights on device, but, if I set it to ONLY OpenGL3, the lights works fine on device.