As such I can only share that a 5 dollar wrench can be more effective.
Read https://www.explainxkcd.com/wiki/index.php/538:_Security
Although i was given very detailed information of how it works, i failed to understand if can be used to crack Android/iOS passwords if the phone screen is locked. I searched information in the web and i only came to an article, claming it takes 16 hours for the rubber ducky to crack 4digit lockscreen PINCODE. I once left my phone locked with PASSWORD for time period of about an hour. The phone was Xperia z3 if thats gonna help?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic