PISCATAWAY — Minjin Oh knew his roommate was asleep in their Rutgers University dorm that night two years ago when he began to fondle the other man’s genitals and using his cellphone to make a video recording.

The roommate woke up during the assault and reported it to university police.

Within days of the April 6, 2010, incident, Oh was arrested and charged with several sex crimes.

The 20-year-old engineering student from Bridgewater pleaded guilty to aggravated criminal sexual contact and invasion of privacy in Superior Court on Monday, in a case that brought back memories of another recent case involving sex and video in a Rutgers dorm room.

Under a plea deal with the Middlesex County Prosecutor’s Office, Oh will be sentenced in August to up to 364 days in the Middlesex County Adult Correction Center in North Brunswick. He remains free on bail.

In addition, he will be placed on parole supervision for life and be required to register as a sex offender under Megan’s Law, Prosecutor Bruce Kaplan said in a statement today.

Oh’s attorney, Steven Altman, said the deal will allow his client, who is from South Korea, to avoid deportation because he faces less than a year in prison.

During Monday’s hearing before Judge Joseph Paone in New Brunswick, Oh admitted under questioning from Middlesex County Deputy First Assistant Christie Bevacque that he fondled the other student for his own sexual gratification in their dorm room in Piscataway.

Authorities declined to identify the roommate because he is a victim of a sex crime. They also would not provide his age, say in which dorm attack occurred or say whether it occurred on the Livingston or Busch campus, both of which are in Piscataway.

Altman said Oh deleted the video from his cellphone soon after the incident and never showed it to anyone.

"He deleted it within hours" Altman said. "There was never any intent or inference that he showed (the video) to anyone."

"The university recognizes the seriousness of this incident and the need to protect the community," he said. "The university is proceeding immediately under the code of student conduct, and the maximum penalty for serious misconduct is expulsion," he said.

University officials said federal law prohibited them from speaking more specifically about individual students.

Although Oh was removed from the dorm shortly after his arrest, he had continued attending classes on campus, Kaplan said today.

This is the second recent case involving a sexual encounter to wind up in court.

Last month, Dharun Ravi of Plainsboro was convicted of using a webcam to spy on his gay roommate’s encounter with another man in a Rutgers dorm room in September 2010. Altman served as Ravi’s attorney.

The gay roommate, Tyler Clementi, later discovered the webcam incident and a second attempted viewing of him and the other man. Clementi committed suicide by jumping off the George Washington Bridge on Sept. 22, 2010.

That incident occurred five months after Oh was arrested.

Ravi, who was born in India, faces possible deportation after his conviction on 15 counts that could mean a prison term of 10 years. His sentencing is scheduled for May 21.

Altman, who became involved in the two cases at about the same time, said the reason one became a major news story and the other escaped notice until now was "the power of the victim."

Star-Ledger staff writer Peggy McGlone and the Associated Press contributed to this report.