For a problem-resolving principle and beneficial effects of the user terminal, refer to the method and beneficial effects brought by the method in the second aspect. Therefore, for implementation of the apparatus, refer to implementation of the method. Repeated parts are not described again.
A fourth aspect of this embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are run on a computer, the computer is enabled to perform the method according to the second aspect.
A fifth aspect of this embodiment of this application provides a computer program product including instructions. When the computer program product runs on a computer, the computer is enabled to perform the method according to the second aspect.
A sixth aspect of this embodiment of this application provides a data transmission method, including the following.
A data management network element receives a first message authentication code and first location privacy setting data that are from a user terminal.
The data management network element obtains a second message authentication code of the first location privacy setting data.
If the second message authentication code is the same as the first message authentication code, the data management network element determines that the first location privacy setting data is not tampered with, and storing the first location privacy setting data.