INNER CODE UNIT · Java

sourceDirectories

KeepSafe/ReLinker · relinker/src/main/java/com/getkeepsafe/relinker/ApkLibraryInstaller.java:42

    private String[] sourceDirectories(final Context context) {
        final ApplicationInfo appInfo = context.getApplicationInfo();

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
            appInfo.splitSourceDirs != null &&
            appInfo.splitSourceDirs.length != 0) {
            String[] apks = new String[appInfo.splitSourceDirs.length + 1];
            apks[0] = appInfo.sourceDir;
            System.arraycopy(appInfo.splitSourceDirs, 0, apks, 1, appInfo.splitSourceDirs.length);
            return apks;
        } else {
            return new String[] { appInfo.sourceDir };
        }
    }

    private static class ZipFileInZipEntry {
        public ZipFile zipFile;
        public ZipEntry zipEntry;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…