Border authorities in China can search electronic devices as well as collect emails, pictures, and videos of foreigners entering the country. No warrant needed. These searches can be conducted in case of emergencies - although it seems like there are no checks & balances in place to reign in or even track when this is being done. Or why.