The man charged with breaking into a Williamsburg home and climbing into the bed of a sleeping woman allegedly confessed to police that he was looking for oral sex.

The alleged admission of Akijah Hall, 24, was read by prosecutors at his arraignment Saturday night, at which he was ordered held on $30,000 bail.

He’s charged with attempted rape of the 25-year-old woman on Friday. The attack was foiled when the woman’s victim screamed and her roommate intervened, cops said.