I would say the only good option is to try only travel to countries that respect privacy and realise scanning phones is security theatre. Because if you go to a country and they want access to your phone these kind of tricks will prevent them from opening it but ultimately I imagine you would be sent back to where you came from.