Temp

来源:互联网 发布:pdf扫描软件下载 编辑:程序博客网 时间:2024/05/21 06:52
private static void main(String[] args) {        // the class the VM has been created for or null for the Zygote process        String startClassName = getStartClassName();        // initialize the Xposed framework and modules        try {            // initialize log file            try {                logFile = new File(BASE_DIR + "log/error.log");                if (startClassName == null && logFile.length() > MAX_LOGFILE_SIZE_SOFT)                    logFile.renameTo(new File(BASE_DIR + "log/error.log.old"));                logWriter = new PrintWriter(new FileWriter(logFile, true));                logFile.setReadable(true, false);                logFile.setWritable(true, false);            } catch (IOException ignored) {}            String date = DateFormat.getDateTimeInstance().format(new Date());            determineXposedVersion();            log("-----------------\n" + date + " UTC\n"                    + "Loading Xposed v" + XPOSED_BRIDGE_VERSION                    + " (for " + (startClassName == null ? "Zygote" : startClassName) + ")...");            if (startClassName == null) {                // Zygote                log("Running ROM '" + Build.DISPLAY + "' with fingerprint '" + Build.FINGERPRINT + "'");            }            if (initNative()) {                if (startClassName == null) {                    // Initializations for Zygote                    initXbridgeZygote();                }                loadModules(startClassName);            } else {                log("Errors during native Xposed initialization");            }        } catch (Throwable t) {            log("Errors during Xposed initialization");            log(t);            disableHooks = true;        }        // call the original startup code        if (startClassName == null)            ZygoteInit.main(args);        else            RuntimeInit.main(args);    }

0 0
原创粉丝点击