@@ -0,0 +1,1021 @@
+package fuzion24.device.vulnerability.vulnerabilities.framework.graphics;%0A%0Aimport android.content.Context;%0A%0Aimport fuzion24.device.vulnerability.vulnerabilities.VulnerabilityTest;%0A%0A/**%0A * Created by fuzion24 on 9/15/15.%0A */%0Apublic class GraphicBufferTest implements VulnerabilityTest %7B%0A    static %7B%0A        System.loadLibrary(%22graphicsbufferoverflow%22);%0A    %7D%0A%0A    @Override%0A    public String getName() %7B%0A        return %22CVE-2015-1528/GraphicsBuffer Unflatten%22;%0A    %7D%0A%0A    private native int checkGraphicsBuffer();%0A%0A    @Override%0A    public boolean isVulnerable(Context context) throws Exception %7B%0A        int checkVal = checkGraphicsBuffer();%0A%0A        //TODO: If we declare a different type of socket do we still need internet permission?%0A        if(checkVal == 0) %7B%0A            return false;%0A        %7Delse if(checkVal == 1) %7B%0A            return true;%0A        %7Delse %7B%0A            //TODO: grab more information about failure, errno and error string%0A            throw new Exception(%22Error running test%22);%0A        %7D%0A    %7D%0A%7D%0A

Add java class to run checker