The U.S. Consul services offices in Shanghai have not allowed electronic devices for at least the last 5 years.  They have lockers to store thing in prior to entering the waiting area.  Its not something that bothers me but I do find it unnecessary.