Adjusting the compass and balancer involves two sensors, namely the magnetic field sensor and the acceleration sensor. Calibrating these two sensors requires a test password. The method is as follows:
First open your dialing interface, then enter *#*#6484#*#* (pay attention to the order of symbols). After entering You should enter the test mode, then find two items 26 and 27, and calibrate them respectively.
Note: When calibrating the magnetic field sensor, it is best to find a place away from strong magnetic field interference such as speakers.