I did the same thing but i managed to get that little bracket back in the right spot.
My handbrake works mint as even if my brakes are out of adjustment.
Pretty sure i undid that little mount/bolt and the adjustment in the car and then put the cables on the brakes and then put the mount back in the right spot and adjusted them up correctly