From 03258c7bfe5c05ef9254b9c402935e46c741a73a Mon Sep 17 00:00:00 2001 From: abbodi1406 <33669284+abbodi1406@users.noreply.github.com> Date: Thu, 13 Jul 2023 17:23:18 +0300 Subject: [PATCH] Update DeviceAttributes --- shared/main.php | 2 +- shared/requests.php | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/shared/main.php b/shared/main.php index 516edaf..e40a91e 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.40.1'; + return '1.40.2'; } require_once dirname(__FILE__).'/auths.php'; diff --git a/shared/requests.php b/shared/requests.php index 48390a0..6ca9ad4 100644 --- a/shared/requests.php +++ b/shared/requests.php @@ -112,11 +112,12 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type) { $attrib = array( 'App=WU_OS', 'AppVer='.$build, - 'AttrDataVer=208', + 'AttrDataVer=226', 'AllowInPlaceUpgrade=1', 'AllowUpgradesWithUnsupportedTPMOrCPU=1', 'BlockFeatureUpdates='.$blockUpgrades, 'BranchReadinessLevel=CB', + 'CIOptin=1', 'CurrentBranch='.$branch, 'DataExpDateEpoch_CU23H2='.(time()+82800), 'DataExpDateEpoch_CU23H2Setup='.(time()+82800), @@ -167,7 +168,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type) { 'DUScan=1', 'OEMModel=Asus ROG Maximus Z690 Extreme', 'OEMModelBaseBoard=ROG MAXIMUS Z690 EXTREME', - 'OEMName_Uncleaned=ASUSTeK COMPUTER INC.', + 'OEMName_Uncleaned=Contoso Corporation', 'OemPartnerRing=UPSFlighting', 'OSArchitecture='.$arch, 'OSSkuId='.$sku, @@ -282,6 +283,10 @@ function branchFromBuild($build) { $branch = 'ni_release'; break; + case 25398: + $branch = 'zn_release'; + break; + default: $branch = 'rs_prerelease'; break;