In China, there is only one way to deal with this situation: when the police summon you for the first time, do not bring your phone. Before the second summons, get a new phone or completely format your old one. However, this does not apply in cases of ongoing crimes or when someone is already wanted by the authorities, as they will not be given a second chance.