Hello! few months back i have invented a method to input code into sony xperia sol22 it was having same problem.
link to thread try with same method take a dump unlock apk from same phone which ask for unlock code and put it into this phone and see if it asks for unlock code.