Info Call to dynamic code loading API

Description

List of all dynamic code loading API calls in the application. Loading code from untrsuted sources could allow the execution of malicious code in the context of the current application.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.urbandroid.common.util.Environment.isCyanogenMod() calling method java.lang.System.getProperty()

Couldn't retrieve source code

Method com.philips.lighting.hue.sdk.connection.impl.PHHueHttpConnection.putData() calling method java.lang.System.getProperty()


    public String putData(String p6, String p7)
    {
        String v3 = 0;
        try {
            this.openConnection(p7, "PUT");
        } catch (java.io.IOException v6_2) {
            if (v3 != null) {
                try {
                    v3.close();
                    this.connection.disconnect();
                } catch (StringBuilder v7_2) {
                    if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                        StringBuilder v0_3 = new StringBuilder();
                        v0_3.append("PutData Exception: ");
                        v0_3.append(v7_2);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v0_3.toString());
                    }
                }
            }
            throw v6_2;
        } catch (java.io.IOException v6_8) {
            StringBuilder v7_10 = 0;
            if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                StringBuilder v0_9 = new StringBuilder();
                v0_9.append("PutData Exception: ");
                v0_9.append(v6_8);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v0_9.toString());
            }
            if (v7_10 == null) {
                java.io.IOException v6_15 = new StringBuilder();
                v6_15.append("Bridge Response : ");
                v6_15.append(v3);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v6_15.toString());
                return v3;
            } else {
                try {
                    v7_10.close();
                    this.connection.disconnect();
                } catch (java.io.IOException v6_10) {
                    if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                    } else {
                        StringBuilder v7_14 = new StringBuilder();
                        v7_14.append("PutData Exception: ");
                        v7_14.append(v6_10);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v7_14.toString());
                    }
                }
                v6_15 = new StringBuilder();
                v6_15.append("Bridge Response : ");
                v6_15.append(v3);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v6_15.toString());
                return v3;
            }
        } catch (java.io.IOException v6_2) {
            v3 = v7_10;
        }
        if (this.connection != null) {
            StringBuilder v7_17 = new StringBuilder();
            v7_17.append("DATA :  ");
            v7_17.append(p6);
            com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_17.toString());
            this.connection.setDoOutput(1);
            this.connection.connect();
            StringBuilder v7_8 = this.connection.getOutputStream();
            if (v7_8 != null) {
                boolean v4_3 = new java.io.OutputStreamWriter(v7_8, "UTF-8");
                v4_3.write(p6);
                v4_3.close();
                java.io.IOException v6_4 = this.connection.getContent();
                if (v6_4 != null) {
                    v7_10 = new java.io.BufferedReader(new java.io.InputStreamReader(((java.io.InputStream) v6_4), "UTF-8"));
                    try {
                        java.io.IOException v6_7 = new StringBuffer("");
                        StringBuilder v0_6 = System.getProperty("line.separator");
                    } catch (java.io.IOException v6_8) {
                    }
                    do {
                        boolean v4_7 = v7_10.readLine();
                        if (!v4_7) {
                            break;
                        }
                        v6_7.append(v4_7);
                        v6_7.append(v0_6);
                    } while(v7_10.ready());
                    v7_10.close();
                    v3 = v6_7.toString();
                    try {
                        v7_10.close();
                        this.connection.disconnect();
                    } catch (java.io.IOException v6_10) {
                        if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                        } else {
                            v7_14 = new StringBuilder();
                        }
                    }
                    v6_15 = new StringBuilder();
                    v6_15.append("Bridge Response : ");
                    v6_15.append(v3);
                    com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v6_15.toString());
                    return v3;
                } else {
                    return 0;
                }
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.philips.lighting.hue.sdk.connection.impl.PHHueHttpConnection.postData() calling method java.lang.System.getProperty()


    public String postData(String p6, String p7)
    {
        String v3 = 0;
        try {
            this.openConnection(p7, "POST");
        } catch (java.io.IOException v6_3) {
            if (v3 != null) {
                try {
                    v3.close();
                    this.connection.disconnect();
                } catch (StringBuilder v7_3) {
                    if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                        StringBuilder v0_3 = new StringBuilder();
                        v0_3.append("PostData IOException: ");
                        v0_3.append(v7_3);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v0_3.toString());
                    }
                }
            }
            throw v6_3;
        } catch (java.io.IOException v6_10) {
            StringBuilder v7_10 = 0;
            if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                StringBuilder v0_9 = new StringBuilder();
                v0_9.append("PostData Exception: ");
                v0_9.append(v6_10);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v0_9.toString());
            }
            if (v7_10 == null) {
                java.io.IOException v6_1 = new StringBuilder();
                v6_1.append("Bridge Response : ");
                v6_1.append(v3);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v6_1.toString());
                return v3;
            } else {
                try {
                    v7_10.close();
                    this.connection.disconnect();
                } catch (java.io.IOException v6_12) {
                    if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                    } else {
                        StringBuilder v7_14 = new StringBuilder();
                        v7_14.append("PostData IOException: ");
                        v7_14.append(v6_12);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v7_14.toString());
                    }
                }
                v6_1 = new StringBuilder();
                v6_1.append("Bridge Response : ");
                v6_1.append(v3);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v6_1.toString());
                return v3;
            }
        } catch (java.io.IOException v6_3) {
            v3 = v7_10;
        }
        if (this.connection != null) {
            StringBuilder v7_16 = new StringBuilder();
            v7_16.append("DATA : ");
            v7_16.append(p6);
            com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_16.toString());
            this.connection.setDoOutput(1);
            StringBuilder v7_8 = this.connection.getOutputStream();
            if (v7_8 != null) {
                boolean v4_3 = new java.io.OutputStreamWriter(v7_8, "UTF-8");
                v4_3.write(p6);
                v4_3.flush();
                v4_3.close();
                this.connection.connect();
                java.io.IOException v6_6 = this.connection.getContent();
                if (v6_6 != null) {
                    v7_10 = new java.io.BufferedReader(new java.io.InputStreamReader(((java.io.InputStream) v6_6), "UTF-8"));
                    try {
                        java.io.IOException v6_9 = new StringBuffer("");
                        StringBuilder v0_6 = System.getProperty("line.separator");
                    } catch (java.io.IOException v6_10) {
                    }
                    do {
                        boolean v4_7 = v7_10.readLine();
                        if (!v4_7) {
                            break;
                        }
                        v6_9.append(v4_7);
                        v6_9.append(v0_6);
                    } while(v7_10.ready());
                    v7_10.close();
                    v3 = v6_9.toString();
                    try {
                        v7_10.close();
                        this.connection.disconnect();
                    } catch (java.io.IOException v6_12) {
                        if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                        } else {
                            v7_14 = new StringBuilder();
                        }
                    }
                    v6_1 = new StringBuilder();
                    v6_1.append("Bridge Response : ");
                    v6_1.append(v3);
                    com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v6_1.toString());
                    return v3;
                } else {
                    return 0;
                }
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.philips.lighting.hue.sdk.connection.impl.PHHueHttpConnection.getData() calling method java.lang.System.getProperty()


    public String getData(String p7)
    {
        String v2_0 = 0;
        try {
            this.openConnection(p7, "GET");
        } catch (java.io.IOException v7_12) {
            StringBuilder v3_5 = 0;
            if (v3_5 != null) {
                try {
                    v3_5.close();
                    this.connection.disconnect();
                } catch (String v2_2) {
                    if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                        StringBuilder v3_2 = new StringBuilder();
                        v3_2.append("GetData IOException: ");
                        v3_2.append(v2_2);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v3_2.toString());
                    }
                }
            }
            throw v7_12;
        } catch (java.io.IOException v7_7) {
            v3_5 = 0;
            if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                String v4_7 = new StringBuilder();
                v4_7.append("GetData Exception: ");
                v4_7.append(v7_7);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v4_7.toString());
            }
            if (v3_5 == null) {
                java.io.IOException v7_17 = new StringBuilder();
                v7_17.append("Bridge Response : ");
                v7_17.append(v2_0);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_17.toString());
                return v2_0;
            } else {
                try {
                    v3_5.close();
                    this.connection.disconnect();
                } catch (java.io.IOException v7_9) {
                    if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                    } else {
                        StringBuilder v3_9 = new StringBuilder();
                        v3_9.append("GetData IOException: ");
                        v3_9.append(v7_9);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v3_9.toString());
                    }
                }
                v7_17 = new StringBuilder();
                v7_17.append("Bridge Response : ");
                v7_17.append(v2_0);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_17.toString());
                return v2_0;
            }
        } catch (java.io.IOException v7_12) {
        }
        if (this.connection != null) {
            java.io.IOException v7_2;
            this.connection.connect();
            if (this.connection.getResponseCode() != 200) {
                v7_2 = 0;
            } else {
                v7_2 = this.connection.getContent();
            }
            if (v7_2 != null) {
                v3_5 = new java.io.BufferedReader(new java.io.InputStreamReader(((java.io.InputStream) v7_2), "UTF8"));
                try {
                    java.io.IOException v7_6 = new StringBuffer("");
                    String v4_4 = System.getProperty("line.separator");
                } catch (java.io.IOException v7_7) {
                }
                do {
                    boolean v5_1 = v3_5.readLine();
                    if (!v5_1) {
                        break;
                    }
                    v7_6.append(v5_1);
                    v7_6.append(v4_4);
                } while(v3_5.ready());
                v3_5.close();
                v2_0 = v7_6.toString();
                try {
                    v3_5.close();
                    this.connection.disconnect();
                } catch (java.io.IOException v7_9) {
                    if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                    } else {
                        v3_9 = new StringBuilder();
                    }
                }
                v7_17 = new StringBuilder();
                v7_17.append("Bridge Response : ");
                v7_17.append(v2_0);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_17.toString());
                return v2_0;
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.philips.lighting.hue.sdk.connection.impl.PHHueHttpConnection.deleteData() calling method java.lang.System.getProperty()


    public String deleteData(String p7)
    {
        String v2_0 = 0;
        try {
            this.openConnection(p7, "DELETE");
        } catch (java.io.IOException v7_10) {
            StringBuilder v3_1 = 0;
            if (v3_1 != null) {
                try {
                    v3_1.close();
                    this.connection.disconnect();
                } catch (String v2_2) {
                    if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                        StringBuilder v3_10 = new StringBuilder();
                        v3_10.append("DeleteData IOException: ");
                        v3_10.append(v2_2);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v3_10.toString());
                    }
                }
            }
            throw v7_10;
        } catch (java.io.IOException v7_5) {
            v3_1 = 0;
            if (com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                String v4_7 = new StringBuilder();
                v4_7.append("DeleteData Exception: ");
                v4_7.append(v7_5);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v4_7.toString());
            }
            if (v3_1 == null) {
                java.io.IOException v7_15 = new StringBuilder();
                v7_15.append("Bridge Response : ");
                v7_15.append(v2_0);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_15.toString());
                return v2_0;
            } else {
                try {
                    v3_1.close();
                    this.connection.disconnect();
                } catch (java.io.IOException v7_7) {
                    if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                    } else {
                        StringBuilder v3_5 = new StringBuilder();
                        v3_5.append("DeleteData IOException: ");
                        v3_5.append(v7_7);
                        com.philips.lighting.hue.sdk.utilities.impl.PHLog.e("PHHueHttpConnection", v3_5.toString());
                    }
                }
                v7_15 = new StringBuilder();
                v7_15.append("Bridge Response : ");
                v7_15.append(v2_0);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_15.toString());
                return v2_0;
            }
        } catch (java.io.IOException v7_10) {
        }
        if (this.connection != null) {
            this.connection.connect();
            java.io.IOException v7_1 = this.connection.getContent();
            if (v7_1 != null) {
                v3_1 = new java.io.BufferedReader(new java.io.InputStreamReader(((java.io.InputStream) v7_1), "UTF-8"));
                try {
                    java.io.IOException v7_4 = new StringBuffer("");
                    String v4_4 = System.getProperty("line.separator");
                } catch (java.io.IOException v7_5) {
                }
                do {
                    boolean v5_1 = v3_1.readLine();
                    if (!v5_1) {
                        break;
                    }
                    v7_4.append(v5_1);
                    v7_4.append(v4_4);
                } while(v3_1.ready());
                v3_1.close();
                v2_0 = v7_4.toString();
                try {
                    v3_1.close();
                    this.connection.disconnect();
                } catch (java.io.IOException v7_7) {
                    if (!com.philips.lighting.hue.sdk.utilities.impl.PHLog.isLoggable()) {
                    } else {
                        v3_5 = new StringBuilder();
                    }
                }
                v7_15 = new StringBuilder();
                v7_15.append("Bridge Response : ");
                v7_15.append(v2_0);
                com.philips.lighting.hue.sdk.utilities.impl.PHLog.d("PHHueHttpConnection", v7_15.toString());
                return v2_0;
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.bumptech.glide.load.model.LazyHeaders$Builder.<clinit>() calling method java.lang.System.getProperty()


    static LazyHeaders$Builder()
    {
        com.bumptech.glide.load.model.LazyHeaders$Builder.DEFAULT_USER_AGENT = System.getProperty("http.agent");
        java.util.Map v0_4 = new java.util.HashMap(2);
        if (!android.text.TextUtils.isEmpty(com.bumptech.glide.load.model.LazyHeaders$Builder.DEFAULT_USER_AGENT)) {
            v0_4.put("User-Agent", java.util.Collections.singletonList(new com.bumptech.glide.load.model.LazyHeaders$StringHeaderFactory(com.bumptech.glide.load.model.LazyHeaders$Builder.DEFAULT_USER_AGENT)));
        }
        v0_4.put("Accept-Encoding", java.util.Collections.singletonList(new com.bumptech.glide.load.model.LazyHeaders$StringHeaderFactory("identity")));
        com.bumptech.glide.load.model.LazyHeaders$Builder.DEFAULT_HEADERS = java.util.Collections.unmodifiableMap(v0_4);
        return;
    }