getGlEsVersion() is returning 3.0 on my nexus 5 with android version 6.0.1
<p>I am using this code to get OpenGL ES version on my phone.</p>

<pre><code>int result;
    ActivityManager activityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
    ConfigurationInfo configInfo = activityManager
            .getDeviceConfigurationInfo();
    if (configInfo.reqGlEsVersion != ConfigurationInfo.GL_ES_VERSION_UNDEFINED) {
        result = configInfo.reqGlEsVersion;
    } else {
        result = 1 &lt;&lt; 16; // Lack of property means OpenGL ES version 1
    }

    Log.e("reqGlEsVersion", String.valueOf(result));
    Log.e("getGlEsVersion", configInfo.getGlEsVersion());
</code></pre>

<p>I have found this code from this link: <a href="https://stackoverflow.com/questions/9198293/is-there-a-way-to-check-if-android-device-supports-opengl-es-2-0">Is there a way to check if Android device supports openGL ES 2.0?</a></p>

<p>On my Nexus 5, I am getting GLES version as 3.0. But according to this doc, <a href="http://developer.android.com/guide/topics/graphics/opengl.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/graphics/opengl.html</a>, I should get 3.1 because "OpenGL ES 3.1 - This API specification is supported by Android 5.0 (API level 21) and higher."</p>

<p>I think I should get 3.1 as OpenGL ES version. Can anyone tell me why I am getting 3.0 as OpenGL ES version ?</p>