import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
+import android.opengl.GLES20;
import android.os.Binder;
import android.os.Build;
import android.os.Bundle;
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()) {