<!-- About phone screen, setting option name [CHAR LIMIT=40] -->
<string name="kernel_version">Kernel version</string>
<!-- About phone screen, setting option name [CHAR LIMIT=40] -->
+ <string name="opengl_version">OpenGL driver version</string>
+ <!-- About phone screen, setting option name [CHAR LIMIT=40] -->
<string name="build_number">Build number</string>
<!-- About phone screen, setting option name [CHAR LIMIT=40] -->
<string name="selinux_status">SELinux status</string>
android:title="@string/kernel_version"
android:summary="@string/device_info_default"/>
+ <!-- OpenGL Version -->
+ <Preference android:key="opengl_version"
+ style="?android:preferenceInformationStyle"
+ android:title="@string/opengl_version"
+ android:summary="@string/device_info_default"/>
+
<!-- Detailed build version -->
<Preference android:key="build_number"
style="?android:preferenceInformationStyle"
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
+import android.opengl.GLES20;
import android.os.Build;
import android.os.Bundle;
import android.os.PersistableBundle;
private static final String PROPERTY_URL_SAFETYLEGAL = "ro.url.safetylegal";
private static final String PROPERTY_SELINUX_STATUS = "ro.build.selinux";
private static final String KEY_KERNEL_VERSION = "kernel_version";
+ private static final String KEY_OPENGL_VERSION = "opengl_version";
private static final String KEY_BUILD_NUMBER = "build_number";
private static final String KEY_DEVICE_MODEL = "device_model";
private static final String KEY_SELINUX_STATUS = "selinux_status";
addPreferencesFromResource(R.xml.device_info_settings);
+ String opengl_version = "GL Vendor: " + GLES20.glGetString(GLES20.GL_VENDOR) + "\n" +
+ "GL Renderer: " + GLES20.glGetString(GLES20.GL_RENDERER) + "\n" +
+ "GL Version: " + GLES20.glGetString(GLES20.GL_VERSION);
+
setStringSummary(KEY_FIRMWARE_VERSION, Build.VERSION.RELEASE);
findPreference(KEY_FIRMWARE_VERSION).setEnabled(true);
String patch = Build.VERSION.SECURITY_PATCH;
setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY);
findPreference(KEY_BUILD_NUMBER).setEnabled(true);
findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());
+ findPreference(KEY_OPENGL_VERSION).setSummary(opengl_version);
setStringSummary(KEY_DEVICE_MANUFACTURER, Build.MANUFACTURER);
if (!SELinux.isSELinuxEnabled()) {