diff --git a/pinfinder.go b/pinfinder.go index a52feb2..0fd0899 100644 --- a/pinfinder.go +++ b/pinfinder.go @@ -52,6 +52,7 @@ import ( "path/filepath" "runtime" "sort" + "strings" "sync" "time" @@ -62,7 +63,7 @@ import ( const ( maxPIN = 10000 - version = "1.6.1" + version = "1.6.2" restrictionsPlistName = "398bc9c2aeeab4cb0c12ada0f52eea12cf14f40b" msgIsEncrypted = "backup is encrypted" @@ -70,6 +71,7 @@ const ( msgNoPasscode = "none" msgIncorrectPassword = "incorrect encryption password" msgNoPassword = "need encryption password" + msgIos12 = "iOS 12 not supported yet :-(" ) var ( @@ -252,6 +254,11 @@ func loadBackup(backupDir string) *backup { return nil // no Manifest.plist == invaild backup dir } + if strings.HasPrefix(b.Info.ProductVersion, "12.") { + b.Status = msgIos12 + return &b + } + b.RestrictionsPath = filepath.Join(backupDir, restrictionsPlistName) if _, err := os.Stat(b.RestrictionsPath); err != nil { // iOS 10 moved backup files into sub-folders beginning with