Last active
March 8, 2019 12:41
-
-
Save Dviros/b31a9232ba32cf613750d5afeafa9167 to your computer and use it in GitHub Desktop.
Powershell FOTA Checker - Samsung Devices (Note8 SM-N950F)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Change the region and model by your need. | |
############################################## | |
Add-Type -AssemblyName PresentationFramework | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$region = "SIN" | |
$model = "SM-N950F" | |
$latestfirmware = "N950FXXS5CRK4/N950FOXM5CRHA/N950FXXU5CRK4" | |
[xml]$response = Invoke-WebRequest https://fota-cloud-dn.ospserver.net/firmware/$region/$model/version.xml | |
if ($response.versioninfo.firmware.version.latest -eq $latestfirmware){ | |
[System.Windows.MessageBox]::Show('Still Oreo...') | |
} | |
else { | |
[System.Windows.MessageBox]::Show('OMG PIE IS RELEASED') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment