Skip to content

Commit

Permalink
chore: use QMI commands for checking if the UICC is an eUICC
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Jul 24, 2024
1 parent fda3222 commit 9b7d9db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/pkg/modem/modem.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"strings"
"syscall"

"github.com/damonto/telegram-sms/internal/pkg/config"
"github.com/maltegrosse/go-modemmanager"
"golang.org/x/sys/unix"
)
Expand All @@ -31,10 +30,10 @@ func (m *Modem) Unlock() {
}

func (m *Modem) isEuicc() bool {
if config.APDUDriverAT == config.C.APDUDriver {
return m.checkByATCommand()
if m.checkByQmicli() {
return true
}
return m.checkByQmicli()
return m.checkByATCommand()
}

func (m *Modem) checkByQmicli() bool {
Expand Down

0 comments on commit 9b7d9db

Please sign in to comment.