what is that hardware part

Looks like you got it, the earpiece, probably attaches right behind the glass where the earpiece is or in a similar spot on the phone's interior, close to the top. (top being the glass face)