[How to] Read SMS from native messaging app (p.e. to read OTP)

Will you explain little more about this line
Drivers.getDriver(device)
Because I am new to automation testing
Please help