Skip to content

Instantly share code, notes, and snippets.

@Dviros
Last active March 8, 2019 12:41
Show Gist options
  • Save Dviros/b31a9232ba32cf613750d5afeafa9167 to your computer and use it in GitHub Desktop.
Save Dviros/b31a9232ba32cf613750d5afeafa9167 to your computer and use it in GitHub Desktop.
Powershell FOTA Checker - Samsung Devices (Note8 SM-N950F)
### 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