If it's a flat surface-mount connector with a broken flip/latch:
Using a razor/X-acto knife, I once layered scotch tape over a tiny flat cable in a Nintendo DS with a broken connector. I layered it so that the thickness quickly "ramped up" as you moved away from the end with contacts but then...