public static ServiceInfo generateServiceInfo(Service service, int flags) { if (API_LEVEL >= M) { return PackageParserMarshmallow.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (API_LEVEL >= LOLLIPOP_MR1) { return PackageParserLollipop22.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (API_LEVEL >= LOLLIPOP) { return PackageParserLollipop.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (API_LEVEL >= JELLY_BEAN_MR1) { return PackageParserJellyBean17.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (API_LEVEL >= JELLY_BEAN) { return PackageParserJellyBean.generateServiceInfo.call(service, flags, false, 1, myUserId); } else { return mirror.android.content.pm.PackageParser.generateServiceInfo.call(service, flags); } }
public static ServiceInfo generateServiceInfo(Service service, int flags) { if (SDK >= M) { return PackageParserMarshmallow.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (SDK >= LOLLIPOP_MR1) { return PackageParserLollipop22.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (SDK >= LOLLIPOP) { return PackageParserLollipop.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (SDK >= JELLY_BEAN_MR1) { return PackageParserJellyBean17.generateServiceInfo.call(service, flags, sUserState, myUserId); } else if (SDK >= JELLY_BEAN) { return PackageParserJellyBean.generateServiceInfo.call(service, flags, false, 1, myUserId); } else { return mirror.android.content.pm.PackageParser.generateServiceInfo.call(service, flags); } }