Java 类android.content.pm.PackageParser.Package 实例源码

项目:VirtualHook    文件:PackageParserCompat.java   
public static Package parsePackage(PackageParser parser, File packageFile, int flags) throws Throwable {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    } else {
        return mirror.android.content.pm.PackageParser.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    }
}
项目:VirtualHook    文件:PackageParserCompat.java   
public static PackageInfo generatePackageInfo(Package p, int flags, long firstInstallTime, long lastUpdateTime) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);
    } else if (API_LEVEL >= LOLLIPOP) {
        if (PackageParserLollipop22.generatePackageInfo != null) {
            return PackageParserLollipop22.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        } else {
            return PackageParserLollipop.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        }
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null);
    } else {
        return mirror.android.content.pm.PackageParser.generatePackageInfo.call(p, GIDS, flags, firstInstallTime,
                lastUpdateTime);
    }
}
项目:VirtualHook    文件:PackageParserCompat.java   
public static void collectCertificates(PackageParser parser, Package p, int flags) throws Throwable {
    if (API_LEVEL >= N) {
        PackageParserNougat.collectCertificates.callWithException(p, flags);
    } else if (API_LEVEL >= M) {
        PackageParserMarshmallow.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        PackageParserLollipop22.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= LOLLIPOP) {
        PackageParserLollipop.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        PackageParserJellyBean17.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= JELLY_BEAN) {
        PackageParserJellyBean.collectCertificates.callWithException(parser, p, flags);
    } else {
        mirror.android.content.pm.PackageParser.collectCertificates.call(parser, p, flags);
    }
}
项目:TPlayer    文件:PackageParserCompat.java   
public static Package parsePackage(PackageParser parser, File packageFile, int flags) throws Throwable {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    } else {
        return mirror.android.content.pm.PackageParser.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    }
}
项目:TPlayer    文件:PackageParserCompat.java   
public static PackageInfo generatePackageInfo(Package p, int flags, long firstInstallTime, long lastUpdateTime) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);
    } else if (API_LEVEL >= LOLLIPOP) {
        if (PackageParserLollipop22.generatePackageInfo != null) {
            return PackageParserLollipop22.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        } else {
            return PackageParserLollipop.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        }
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null);
    } else {
        return mirror.android.content.pm.PackageParser.generatePackageInfo.call(p, GIDS, flags, firstInstallTime,
                lastUpdateTime);
    }
}
项目:TPlayer    文件:PackageParserCompat.java   
public static void collectCertificates(PackageParser parser, Package p, int flags) throws Throwable {
    if (API_LEVEL >= N) {
        PackageParserNougat.collectCertificates.callWithException(p, flags);
    } else if (API_LEVEL >= M) {
        PackageParserMarshmallow.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        PackageParserLollipop22.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= LOLLIPOP) {
        PackageParserLollipop.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        PackageParserJellyBean17.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= JELLY_BEAN) {
        PackageParserJellyBean.collectCertificates.callWithException(parser, p, flags);
    } else {
        mirror.android.content.pm.PackageParser.collectCertificates.call(parser, p, flags);
    }
}
项目:VirtualHook    文件:PackageParserCompat.java   
public static ApplicationInfo generateApplicationInfo(Package p, int flags) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generateApplicationInfo.call(p, flags, false, 1);
    } else {
        return mirror.android.content.pm.PackageParser.generateApplicationInfo.call(p, flags);
    }
}
项目:TPlayer    文件:PackageParserCompat.java   
public static ApplicationInfo generateApplicationInfo(Package p, int flags) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generateApplicationInfo.call(p, flags, false, 1);
    } else {
        return mirror.android.content.pm.PackageParser.generateApplicationInfo.call(p, flags);
    }
}
项目:container    文件:PackageParserCompat.java   
public static PackageInfo generatePackageInfo(Package p, int flags, long firstInstallTime, long lastUpdateTime) {
    if (SDK >= M) {

        return PackageParserMarshmallow.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);

    } else if (SDK >= LOLLIPOP) {
        if (PackageParserLollipop22.generatePackageInfo != null) {
            return PackageParserLollipop22.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        } else {
            return PackageParserLollipop.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        }

    } else if (SDK >= JELLY_BEAN_MR1) {

        return PackageParserJellyBean17.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);

    } else if (SDK >= JELLY_BEAN) {

        return PackageParserJellyBean.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
                null);

    } else {
        return mirror.android.content.pm.PackageParser.generatePackageInfo.call(p, gids, flags, firstInstallTime,
                lastUpdateTime);
    }
}
项目:container    文件:PackageParserCompat.java   
public static ApplicationInfo generateApplicationInfo(Package p, int flags) {
    if (SDK >= M) {

        return PackageParserMarshmallow.generateApplicationInfo.call(p, flags, sUserState);

    } else if (SDK >= LOLLIPOP_MR1) {

        return PackageParserLollipop22.generateApplicationInfo.call(p, flags, sUserState);

    } else if (SDK >= LOLLIPOP) {

        return PackageParserLollipop.generateApplicationInfo.call(p, flags, sUserState);

    } else if (SDK >= JELLY_BEAN_MR1) {

        return PackageParserJellyBean17.generateApplicationInfo.call(p, flags, sUserState);

    } else if (SDK >= JELLY_BEAN) {

        return PackageParserJellyBean.generateApplicationInfo.call(p, flags, false, 1);

    } else {
        return mirror.android.content.pm.PackageParser.generateApplicationInfo.call(p, flags);
    }
}
项目:container    文件:PackageParserCompat.java   
public static void collectCertificates(PackageParser parser, Package p, int flags) {
    if (SDK >= M) {

        PackageParserMarshmallow.collectCertificates.call(parser, p, flags);

    } else if (SDK >= LOLLIPOP_MR1) {

        PackageParserLollipop22.collectCertificates.call(parser, p, flags);

    } else if (SDK >= LOLLIPOP) {

        PackageParserLollipop.collectCertificates.call(parser, p, flags);

    } else if (SDK >= JELLY_BEAN_MR1) {

         PackageParserJellyBean17.collectCertificates.call(parser, p, flags);

    } else if (SDK >= JELLY_BEAN) {

        PackageParserJellyBean.collectCertificates.call(parser, p, flags);

    } else {
        mirror.android.content.pm.PackageParser.collectCertificates.call(parser, p, flags);
    }
}