πThanks for for this information π
It uses a USB OTG cable to connect the locked phone to other device. It emulates a keyboard, automatically tries PINs, and waits after trying too many wrong guesses.
[Another phone or pc used for cracking <--> [USB cable] <--> [USB OTG adaptor] <--> [Locked Android phone]
The USB HID Gadget driver provides emulation of USB Human Interface Devices (HID). This enables an Android Nethunter device to emulate keyboard input to the locked phone. It's just like plugging a keyboard into the locked phone and pressing keys.
pkg update
pkg upgrade
pkg install git
pkg install python2
git clone https://github.com/ShuBhamg0sain/phonepinbruteforces
cd phonepinbruteforces
pip2 install requests
pip2 install mechanize
bash ap.sh