Skip to content

Commit

Permalink
improve detector
Browse files Browse the repository at this point in the history
  • Loading branch information
basiooo committed May 1, 2024
1 parent 6c1c7d3 commit 1af545b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/adb/parser/sms_inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ func NewSMSInbox(rawSmsInbox string) (*[]SMSInbox, error) {
}

func isErrorReqRootDevice(rawSmsInbox string) bool {
return strings.Contains(rawSmsInbox, "Error while accessing provider")
return strings.Contains(strings.ToLower(rawSmsInbox), "error while accessing provider")
}

func isErrorReqRootPermission(rawSmsInbox string) bool {
return strings.Contains(rawSmsInbox, "Permission denied")
return strings.Contains(strings.ToLower(rawSmsInbox), "permission denied")
}

func splitSmsinbox(rawSmsInbox string) []string {
Expand Down

0 comments on commit 1af545b

Please sign in to comment.