Compare commits

..

17 Commits

Author SHA1 Message Date
37cefa11c6 1.49.0 2025-03-28 13:41:39 +01:00
862d157672 Update branch builds 2025-03-28 13:22:59 +01:00
e433df62cf Add ge_prerelease as acceptable 2025-03-28 12:49:48 +01:00
1933521e0d Disable some safety features in the development mode 2025-03-28 12:48:59 +01:00
7b3cd4eb10 1.48.0 2024-10-22 23:28:00 +02:00
c1f00cecbd Merge pull request 'Add support for NetFX updates' (#1) from abbodi1406/api:master into master
Reviewed-on: #1
2024-10-22 23:27:34 +02:00
8b576e4496 Add support for NetFX updates 2024-10-21 17:24:10 +03:00
21b1500490 Fix warning 2024-06-22 18:50:39 +02:00
fb2c89b2f8 Remove DesktopDeployment from appx sets 2024-06-21 21:07:17 +02:00
846feb2629 Update WU parameters 2024-06-21 15:37:16 +02:00
5e31a6f724 Add additional appx presence checks 2024-06-21 13:31:41 +02:00
faa3b7fa45 Add Appx presence check 2024-06-19 13:29:23 +02:00
42b1091c0b Save architecture used to fetch the build to fileinfo 2024-05-09 22:22:29 +02:00
aa2dbd2938 Add ProfessionalCountrySpecific 2024-04-19 23:01:21 +02:00
42c1c12405 Update auto branch detection for 26100 2024-04-17 21:35:02 +02:00
092e968f0c Initial WNC support
The value was revealed to me in a dream
2024-03-18 20:16:47 +01:00
d58f53de42 Fix broken minor support 2024-03-12 20:50:07 +01:00
8 changed files with 95 additions and 18 deletions

View File

@ -50,8 +50,12 @@ function uupApiPrivateGetLatestBuild() {
return $build; return $build;
} }
function uupApiPrivateGetAcceptableBranches() { function uupApiPrivateIsAcceptableBranch($branch) {
return [ if(!uupApiConfigIsTrue('production_mode')) {
return true;
}
$branches = [
'auto', 'auto',
'rs2_release', 'rs2_release',
'rs3_release', 'rs3_release',
@ -66,8 +70,11 @@ function uupApiPrivateGetAcceptableBranches() {
'ni_release', 'ni_release',
'zn_release', 'zn_release',
'ge_release', 'ge_release',
'ge_prerelease',
'rs_prerelease', 'rs_prerelease',
]; ];
return in_array($branch, $branches);
} }
function uupApiPrivateNormalizeFetchParams($params) { function uupApiPrivateNormalizeFetchParams($params) {
@ -77,6 +84,7 @@ function uupApiPrivateNormalizeFetchParams($params) {
'flight' => 'Active', 'flight' => 'Active',
'branch' => 'ge_release', 'branch' => 'ge_release',
'build' => 'latest', 'build' => 'latest',
'minor' => 0,
'sku' => 48, 'sku' => 48,
'type' => 'Production', 'type' => 'Production',
'flags' => [], 'flags' => [],
@ -89,6 +97,7 @@ function uupApiPrivateNormalizeFetchParams($params) {
$np['flight'] = ucwords(strtolower($np['flight'])); $np['flight'] = ucwords(strtolower($np['flight']));
$np['branch'] = strtolower($np['branch']); $np['branch'] = strtolower($np['branch']);
$np['build'] = strtolower($np['build']); $np['build'] = strtolower($np['build']);
$np['minor'] = intval($np['minor']);
$np['sku'] = intval($np['sku']); $np['sku'] = intval($np['sku']);
$np['type'] = ucwords(strtolower($np['type'])); $np['type'] = ucwords(strtolower($np['type']));
$np['flags'] = array_map('strtolower', $np['flags']); $np['flags'] = array_map('strtolower', $np['flags']);
@ -113,6 +122,7 @@ function uupFetchUpd(
'ring' => $ring, 'ring' => $ring,
'flight' => $flight, 'flight' => $flight,
'build' => $build, 'build' => $build,
'minor' => $minor,
'sku' => $sku, 'sku' => $sku,
'type' => $type, 'type' => $type,
'flags' => $flags, 'flags' => $flags,
@ -131,6 +141,7 @@ function uupFetchUpd2($params, $cacheRequests = 0) {
$flight = 'Active'; $flight = 'Active';
$branch = $np['branch']; $branch = $np['branch'];
$build = $np['build']; $build = $np['build'];
$minor = $np['minor'];
$sku = $np['sku']; $sku = $np['sku'];
$type = $np['type']; $type = $np['type'];
$flags = $np['flags']; $flags = $np['flags'];
@ -169,7 +180,7 @@ function uupFetchUpd2($params, $cacheRequests = 0) {
return array('error' => 'ILLEGAL_MINOR'); return array('error' => 'ILLEGAL_MINOR');
} }
if(!in_array($branch, uupApiPrivateGetAcceptableBranches())) if(!uupApiPrivateIsAcceptableBranch($branch))
$branch = 'auto'; $branch = 'auto';
if($ring == 'DEV') $ring = 'WIF'; if($ring == 'DEV') $ring = 'WIF';
@ -291,6 +302,15 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
$foundBuild = @$info[3]; $foundBuild = @$info[3];
} }
$isNet = 0;
if(strpos($foundArch, 'netfx') !== false) {
$isNet = 1;
preg_match('/ProductReleaseInstalled Name\=".*\.(.*?)\.(.*?)" Version\=".*\.\d{5}\.(.*?)"/', $updateInfo, $info);
$foundType = @strtolower($info[1]);
$foundArch = @strtolower($info[2]);
$foundBuild = @$info[3];
}
$updateTitle = preg_grep('/<Title>.*<\/Title>/', $updateMeta); $updateTitle = preg_grep('/<Title>.*<\/Title>/', $updateMeta);
sort($updateTitle); sort($updateTitle);
@ -310,8 +330,12 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
$isCumulativeUpdate = 0; $isCumulativeUpdate = 0;
if(preg_match('/\d{4}-\d{2}.+Update|Cumulative Update|Microsoft Edge|Windows Feature Experience Pack|Cumulative security Hotpatch/i', $updateTitle)) { if(preg_match('/\d{4}-\d{2}.+Update|Cumulative Update|Microsoft Edge|Windows Feature Experience Pack|Cumulative security Hotpatch/i', $updateTitle)) {
$isCumulativeUpdate = 1; $isCumulativeUpdate = 1;
if($isNet) {
$updateTitle = preg_replace("/3.5 and 4.8.1 |3.5 and 4.8 | for $foundArch| for x64| \(KB.*?\)/i", '', $updateTitle);
} else {
$updateTitle = preg_replace('/ for .{3,5}-based systems| \(KB.*?\)/i', '', $updateTitle); $updateTitle = preg_replace('/ for .{3,5}-based systems| \(KB.*?\)/i', '', $updateTitle);
} }
}
$updateTitle = preg_replace("/ ?\d{4}-\d{2}\D ?| ?$foundArch ?| ?x64 ?/i", '', $updateTitle); $updateTitle = preg_replace("/ ?\d{4}-\d{2}\D ?| ?$foundArch ?| ?x64 ?/i", '', $updateTitle);
@ -429,6 +453,7 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
$temp['flight'] = $flight; $temp['flight'] = $flight;
$temp['branch'] = $branch; $temp['branch'] = $branch;
$temp['arch'] = $foundArch; $temp['arch'] = $foundArch;
$temp['fetchArch'] = $arch == 'all' ? 'amd64' : $arch;
$temp['build'] = $foundBuild; $temp['build'] = $foundBuild;
$temp['checkBuild'] = $build; $temp['checkBuild'] = $build;
$temp['sku'] = $sku; $temp['sku'] = $sku;

View File

@ -76,6 +76,8 @@ function uupGetFiles(
$info['sku'] = 48; $info['sku'] = 48;
} }
$genPack = [];
if($usePack) { if($usePack) {
$genPack = uupApiGetPacks($updateId); $genPack = uupApiGetPacks($updateId);
if(empty($genPack)) return array('error' => 'UNSUPPORTED_COMBINATION'); if(empty($genPack)) return array('error' => 'UNSUPPORTED_COMBINATION');
@ -298,7 +300,7 @@ function uupGetFiles(
$temp = preg_grep('/Windows(10|11)\.0-KB.*-baseless/i', $filesInfoKeys, PREG_GREP_INVERT); $temp = preg_grep('/Windows(10|11)\.0-KB.*-baseless/i', $filesInfoKeys, PREG_GREP_INVERT);
if($appEdition) { if($appEdition) {
$temp = preg_grep('/.*?AggregatedMetadata.*?\.cab|.*?DesktopDeployment.*?\.cab/i', $temp); $temp = preg_grep('/.*?AggregatedMetadata.*?\.cab/i', $temp);
} else if($build > 21380) { } else if($build > 21380) {
$temp = preg_grep('/Windows(10|11)\.0-KB|SSU-.*?\....$|.*?AggregatedMetadata.*?\.cab|.*?DesktopDeployment.*?\.cab/i', $temp); $temp = preg_grep('/Windows(10|11)\.0-KB|SSU-.*?\....$|.*?AggregatedMetadata.*?\.cab|.*?DesktopDeployment.*?\.cab/i', $temp);
} else { } else {
@ -372,6 +374,7 @@ function uupGetFiles(
'build' => $updateBuild, 'build' => $updateBuild,
'sku' => $updateSku, 'sku' => $updateSku,
'hasUpdates' => $hasUpdates, 'hasUpdates' => $hasUpdates,
'appxPresent' => uupAreAppxPresent($genPack),
'files' => $files, 'files' => $files,
]; ];

View File

@ -40,6 +40,7 @@ function uupListLangsInternal($updateId) {
return [ return [
'langList' => $langList, 'langList' => $langList,
'langFancyNames' => $langListFancy, 'langFancyNames' => $langListFancy,
'appxPresent' => uupAreAppxPresent($genPack),
]; ];
} }
@ -51,11 +52,10 @@ function uupListLangs($updateId = 0, $returnInfo = true) {
$langList = uupListLangsInternal($updateId); $langList = uupListLangsInternal($updateId);
$response = [ $response = array_merge(
'apiVersion' => uupApiVersion(), ['apiVersion' => uupApiVersion()],
'langList' => $langList['langList'], $langList
'langFancyNames' => $langList['langFancyNames'], );
];
if($returnInfo) $response['updateInfo'] = $info; if($returnInfo) $response['updateInfo'] = $info;

View File

@ -35,6 +35,10 @@ class UupDumpCache {
} }
public function get() { public function get() {
if(!uupApiConfigIsTrue('production_mode')) {
return false;
}
$cacheFile = $this->cacheFile; $cacheFile = $this->cacheFile;
if(!file_exists($cacheFile)) { if(!file_exists($cacheFile)) {
@ -58,6 +62,10 @@ class UupDumpCache {
} }
public function put($content, $validity) { public function put($content, $validity) {
if(!uupApiConfigIsTrue('production_mode')) {
return false;
}
$cacheFile = $this->cacheFile; $cacheFile = $this->cacheFile;
$expires = $validity ? time() + $validity : false; $expires = $validity ? time() + $validity : false;

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.44.0'; return '1.49.0';
} }
require_once dirname(__FILE__).'/auths.php'; require_once dirname(__FILE__).'/auths.php';

View File

@ -83,6 +83,7 @@ function uupGetInfoTexts() {
'PPIPRO' => 'Windows Team', 'PPIPRO' => 'Windows Team',
'PROFESSIONAL' => 'Windows Pro', 'PROFESSIONAL' => 'Windows Pro',
'PROFESSIONALN' => 'Windows Pro N', 'PROFESSIONALN' => 'Windows Pro N',
'PROFESSIONALCOUNTRYSPECIFIC' => 'Windows Pro China Only',
'SERVERSTANDARD' => 'Windows Server Standard', 'SERVERSTANDARD' => 'Windows Server Standard',
'SERVERSTANDARDCORE' => 'Windows Server Standard, Core', 'SERVERSTANDARDCORE' => 'Windows Server Standard, Core',
'SERVERDATACENTER' => 'Windows Server Datacenter', 'SERVERDATACENTER' => 'Windows Server Datacenter',

View File

@ -33,12 +33,14 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl
$dvcFamily = 'Windows.Desktop'; $dvcFamily = 'Windows.Desktop';
$insType = 'Client'; $insType = 'Client';
$prodType = 'WinNT';
if($sku == 119) { if($sku == 119) {
$dvcFamily = 'Windows.Team'; $dvcFamily = 'Windows.Team';
} }
if(uupApiIsServer($sku)) { if(uupApiIsServer($sku)) {
$dvcFamily = 'Windows.Server'; $dvcFamily = 'Windows.Server';
$insType = 'Server'; $insType = 'Server';
$prodType = 'ServerNT';
$blockUpgrades = 1; $blockUpgrades = 1;
} }
/*/ Hololens /*/ Hololens
@ -114,7 +116,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl
$attrib = array( $attrib = array(
'App=WU_OS', 'App=WU_OS',
'AppVer='.$build, 'AppVer='.$build,
'AttrDataVer=247', 'AttrDataVer=281',
'AllowInPlaceUpgrade=1', 'AllowInPlaceUpgrade=1',
'AllowOptionalContent=1', 'AllowOptionalContent=1',
'AllowUpgradesWithUnsupportedTPMOrCPU=1', 'AllowUpgradesWithUnsupportedTPMOrCPU=1',
@ -122,6 +124,8 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl
'BranchReadinessLevel=CB', 'BranchReadinessLevel=CB',
'CIOptin=1', 'CIOptin=1',
'CurrentBranch='.$branch, 'CurrentBranch='.$branch,
'DataExpDateEpoch_GE24H2='.(time()+82800),
'DataExpDateEpoch_GE24H2Setup='.(time()+82800),
'DataExpDateEpoch_CU23H2='.(time()+82800), 'DataExpDateEpoch_CU23H2='.(time()+82800),
'DataExpDateEpoch_CU23H2Setup='.(time()+82800), 'DataExpDateEpoch_CU23H2Setup='.(time()+82800),
'DataExpDateEpoch_NI22H2='.(time()+82800), 'DataExpDateEpoch_NI22H2='.(time()+82800),
@ -144,13 +148,15 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl
//'FlightContent='.$fltContent, //'FlightContent='.$fltContent,
'FlightRing='.$fltRing, 'FlightRing='.$fltRing,
'Free=gt64', 'Free=gt64',
'GStatus_GE24H2=2',
'GStatus_GE24H2Setup=2',
'GStatus_CU23H2=2', 'GStatus_CU23H2=2',
'GStatus_CU23H2Setup=2', 'GStatus_CU23H2Setup=2',
'GStatus_NI23H2=2',
'GStatus_NI22H2=2', 'GStatus_NI22H2=2',
'GStatus_NI22H2Setup=2', 'GStatus_NI22H2Setup=2',
'GStatus_CO21H2=2', 'GStatus_CO21H2=2',
'GStatus_CO21H2Setup=2', 'GStatus_CO21H2Setup=2',
'GStatus_23H2=2',
'GStatus_22H2=2', 'GStatus_22H2=2',
'GStatus_21H2=2', 'GStatus_21H2=2',
'GStatus_21H1=2', 'GStatus_21H1=2',
@ -182,18 +188,21 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl
'ProcessorIdentifier=Intel64 Family 6 Model 186 Stepping 3', 'ProcessorIdentifier=Intel64 Family 6 Model 186 Stepping 3',
'ProcessorManufacturer=GenuineIntel', 'ProcessorManufacturer=GenuineIntel',
'ProcessorModel=13th Gen Intel(R) Core(TM) i7-1355U', 'ProcessorModel=13th Gen Intel(R) Core(TM) i7-1355U',
'ProductType='.$prodType,
'ReleaseType='.$type, 'ReleaseType='.$type,
'SdbVer_20H1=2000000000', 'SdbVer_20H1=2000000000',
'SdbVer_19H1=2000000000', 'SdbVer_19H1=2000000000',
'SecureBootCapable=1', 'SecureBootCapable=1',
'TelemetryLevel=3', 'TelemetryLevel=3',
'TimestampEpochString_GE24H2='.(time()-3600),
'TimestampEpochString_GE24H2Setup='.(time()-3600),
'TimestampEpochString_CU23H2='.(time()-3600), 'TimestampEpochString_CU23H2='.(time()-3600),
'TimestampEpochString_CU23H2Setup='.(time()-3600), 'TimestampEpochString_CU23H2Setup='.(time()-3600),
'TimestampEpochString_NI23H2='.(time()-3600),
'TimestampEpochString_NI22H2='.(time()-3600), 'TimestampEpochString_NI22H2='.(time()-3600),
'TimestampEpochString_NI22H2Setup='.(time()-3600), 'TimestampEpochString_NI22H2Setup='.(time()-3600),
'TimestampEpochString_CO21H2='.(time()-3600), 'TimestampEpochString_CO21H2='.(time()-3600),
'TimestampEpochString_CO21H2Setup='.(time()-3600), 'TimestampEpochString_CO21H2Setup='.(time()-3600),
'TimestampEpochString_23H2='.(time()-3600),
'TimestampEpochString_22H2='.(time()-3600), 'TimestampEpochString_22H2='.(time()-3600),
'TimestampEpochString_21H2='.(time()-3600), 'TimestampEpochString_21H2='.(time()-3600),
'TimestampEpochString_21H1='.(time()-3600), 'TimestampEpochString_21H1='.(time()-3600),
@ -202,7 +211,10 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl
'TPMVersion=2', 'TPMVersion=2',
'UpdateManagementGroup=2', 'UpdateManagementGroup=2',
'UpdateOfferedDays=0', 'UpdateOfferedDays=0',
'UpgEx_GE24H2Setup=Green',
'UpgEx_GE24H2=Green',
'UpgEx_CU23H2=Green', 'UpgEx_CU23H2=Green',
'UpgEx_NI23H2=Green',
'UpgEx_NI22H2=Green', 'UpgEx_NI22H2=Green',
'UpgEx_CO21H2=Green', 'UpgEx_CO21H2=Green',
'UpgEx_23H2=Green', 'UpgEx_23H2=Green',
@ -286,6 +298,7 @@ function branchFromBuild($build) {
case 22621: case 22621:
case 22631: case 22631:
case 22635:
$branch = 'ni_release'; $branch = 'ni_release';
break; break;
@ -293,6 +306,12 @@ function branchFromBuild($build) {
$branch = 'zn_release'; $branch = 'zn_release';
break; break;
case 26100:
case 26120:
case 26200:
$branch = 'ge_release';
break;
default: default:
$branch = 'rs_prerelease'; $branch = 'rs_prerelease';
break; break;
@ -312,11 +331,19 @@ function composeFileGetRequest($updateId, $info, $rev = 1, $type = 'Production')
$created = gmdate(DATE_W3C, $createdTime); $created = gmdate(DATE_W3C, $createdTime);
$expires = gmdate(DATE_W3C, $expiresTime); $expires = gmdate(DATE_W3C, $expiresTime);
$arch = 'amd64';
if(isset($info['fetchArch'])) {
$arch = $info['fetchArch'];
} elseif(isset($info['arch'])) {
$arch = $info['arch'];
}
$deviceAttributes = composeDeviceAttributes( $deviceAttributes = composeDeviceAttributes(
isset($info['flight']) ? $info['flight'] : 'Active', isset($info['flight']) ? $info['flight'] : 'Active',
isset($info['ring']) ? $info['ring'] : 'RETAIL', isset($info['ring']) ? $info['ring'] : 'RETAIL',
isset($info['checkBuild']) ? $info['checkBuild'] : '10.0.19041.1', isset($info['checkBuild']) ? $info['checkBuild'] : '10.0.19041.1',
isset($info['arch']) ? $info['arch'] : 'amd64', $arch,
isset($info['sku']) ? $info['sku'] : 48, isset($info['sku']) ? $info['sku'] : 48,
$type, $type,
isset($info['flags']) ? $info['flags'] : [], isset($info['flags']) ? $info['flags'] : [],
@ -403,6 +430,10 @@ function composeFetchUpdRequest($arch, $flight, $ring, $build, $sku = 48, $type
if($sku == 189) { if($sku == 189) {
$mainProduct = 'WCOSDevice0.OS'; $mainProduct = 'WCOSDevice0.OS';
} }
// WNC
if($sku == 210) {
$mainProduct = 'WNC.OS';
}
if($arch == 'all') { if($arch == 'all') {
$arch = array( $arch = array(
@ -422,7 +453,7 @@ function composeFetchUpdRequest($arch, $flight, $ring, $build, $sku = 48, $type
$products[] = "PN=$mainProduct.$currArch&Branch=$branch&PrimaryOSProduct=1&Repairable=1&V=$build&ReofferUpdate=1"; $products[] = "PN=$mainProduct.$currArch&Branch=$branch&PrimaryOSProduct=1&Repairable=1&V=$build&ReofferUpdate=1";
$products[] = "PN=Adobe.Flash.$currArch&Repairable=1&V=0.0.0.0"; $products[] = "PN=Adobe.Flash.$currArch&Repairable=1&V=0.0.0.0";
$products[] = "PN=Microsoft.Edge.Stable.$currArch&Repairable=1&V=0.0.0.0"; $products[] = "PN=Microsoft.Edge.Stable.$currArch&Repairable=1&V=0.0.0.0";
$products[] = "PN=Microsoft.NETFX.$currArch&V=2018.12.2.0"; $products[] = "PN=Microsoft.NETFX.$currArch&V=0.0.0.0";
$products[] = "PN=Windows.Autopilot.$currArch&Repairable=1&V=0.0.0.0"; $products[] = "PN=Windows.Autopilot.$currArch&Repairable=1&V=0.0.0.0";
$products[] = "PN=Windows.AutopilotOOBE.$currArch&Repairable=1&V=0.0.0.0"; $products[] = "PN=Windows.AutopilotOOBE.$currArch&Repairable=1&V=0.0.0.0";
$products[] = "PN=Windows.Appraiser.$currArch&Repairable=1&V=$build"; $products[] = "PN=Windows.Appraiser.$currArch&Repairable=1&V=$build";
@ -543,6 +574,7 @@ function composeFetchUpdRequest($arch, $flight, $ring, $build, $sku = 48, $type
<int>2359977</int> <int>2359977</int>
<int>24513870</int> <int>24513870</int>
<int>28880263</int> <int>28880263</int>
<int>296374060</int>
<int>3</int> <int>3</int>
<int>30077688</int> <int>30077688</int>
<int>30486944</int> <int>30486944</int>

View File

@ -64,8 +64,12 @@ function sendWuPostRequestInternal($url, $postData, $saveCookie = true) {
curl_setopt($req, CURLOPT_RETURNTRANSFER, 1); curl_setopt($req, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($req, CURLOPT_ENCODING, ''); curl_setopt($req, CURLOPT_ENCODING, '');
curl_setopt($req, CURLOPT_POSTFIELDS, $postData); curl_setopt($req, CURLOPT_POSTFIELDS, $postData);
if(uupApiConfigIsTrue('production_mode')) {
curl_setopt($req, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($req, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($req, CURLOPT_TIMEOUT, 15); curl_setopt($req, CURLOPT_TIMEOUT, 15);
}
curl_setopt($req, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($req, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($req, CURLOPT_HTTPHEADER, array( curl_setopt($req, CURLOPT_HTTPHEADER, array(
'User-Agent: Windows-Update-Agent/10.0.10011.16384 Client-Protocol/2.50', 'User-Agent: Windows-Update-Agent/10.0.10011.16384 Client-Protocol/2.50',
@ -199,3 +203,7 @@ function getAllowedFlags() {
return $flags; return $flags;
} }
function uupAreAppxPresent($genPack) {
return isset($genPack['neutral']['APP']);
}