The disgraced former Long Island police chief who was jailed for bashing a man who stole porn and a dildo from the top cop’s official vehicle — and then covering it up — has been released from federal prison.

Former Suffolk County Police Chief James Burke was transferred from the low-security lock-up at the Federal Correctional Complex in Allenwood, Penn., to a halfway house Friday, the Federal Bureau of Prisons said Monday.

The agency said the “residential reentry center” he’s been sent to is run by its Residential Reentry Management’s New York office, but wouldn’t disclose exactly where the facility is, citing “privacy reasons.”

Burke, 54, was sentenced in November 2016 to 46 months behind bars for assault and obstruction of justice, but was credited with time served for the 11 months he’d already spent in the slammer since being arrested in January that year.

He’s scheduled for release from federal custody six months ahead of his full sentence, in April 11, 2019, according to the bureau’s inmate database — thanks to time off for good behavior, Burke’s lawyer told The Post Monday.

“[The reduction was] nothing out of the ordinary,” said attorney John Meringolo.

Sources told Newsday last year that Burke was allegedly busted with oxycodone in his cell, but Meringolo on Monday said his client had been cleared of those allegations.

The ex-cop pleaded guilty to beating up heroin addict Christopher Loeb after the drug user broke into his department-issued SUV in 2012 — swiping a duffel bag from inside the vehicle that contained ammunition, a box of cigars, a fake penis and pornography.

He then acted like a “dictator” to keep the beating quiet in the department, Central Islip federal Judge Leonard Wexler said during his sentencing.