Patent 11190938 was granted and assigned to Huawei on November, 2021 by the United States Patent and Trademark Office.
Embodiments of the application provide a device identifier access method and relate to the field of communications technologies, so as to reduce a risk of privacy leakage, and improve device security of a terminal. The method implemented by a terminal, includes: receiving request information for accessing a first device identifier by a target application; determining first access permission used when the target application accesses the first device identifier, where the first access permission includes one of the following: prohibiting access to the first device identifier, allowing access to a real value of the first device identifier, and allowing access to a dummy value of the first device identifier; and when the first access permission is allowing access to the dummy value of the first device identifier, returning the dummy value of the first device identifier to the target application.