From 1ee7d6dd189790ad4ee4f1d73c870d40a03474ce Mon Sep 17 00:00:00 2001 From: Gareth Watts Date: Tue, 18 Sep 2018 21:35:55 -0700 Subject: [PATCH] Add notes about iOS 12 incompatibility --- pinfinder.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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