Method and device for generating unique identifier of Android equipment

By collecting system information of Android devices to generate virtual IDs, and generating UUIDs based on hashing algorithms, and finally encrypting the UUIDs, solving the problem that existing Android device identifiers are prone to tampering or forged, and achieving a unique and secure device identifier.

CN119728638APending Publication Date: 2025-03-28E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411907711.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

Device identifiers such as IMEI and MAC addresses of existing Android devices are easily tampered with or forged, and some identifiers are difficult to obtain due to privacy protection policies, making it difficult to generate an identifier that is both unique and easy to manage.

Method used

By collecting system information of Android devices, generating a virtual ID, and generating a UUID based on a hash algorithm, the UUID is finally encrypted to generate a unique and difficult device identification to be copied or guessed.

Benefits of technology

It effectively avoids the problems of easy leakage and forgery of traditional device logos, improves the security and reliability of device logos, and maintains compatibility and uniqueness under different Android system versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728638A_ABST
    Figure CN119728638A_ABST
Patent Text Reader

Abstract

The invention relates to a method and a device for generating a unique identifier of Android equipment. The method comprises the following steps: collecting system information of equipment to be identified; generating a virtual ID of to-be-identified equipment according to the system information; based on a Hash algorithm, generating a UUID of the to-be-identified device according to the virtual ID; and encrypting the UUID to obtain a unique identifier of the to-be-identified equipment. By combining the equipment hardware information and the system attributes, the generated identifier is unique, and the uniqueness and the flexibility are relatively high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of communication equipment management, and in particular relates to a method and apparatus for generating a unique identifier of an Android device. Background Art

[0002] With the rapid development of mobile Internet, Android devices have become an indispensable part of people's daily life. However, how to generate a unique and easy-to-manage identifier for each Android device has always been an urgent problem to be solved.

[0003] Traditional device identifiers such as IMEI (International Mobile Equipment Identity) and MAC addresses are at risk of being tampered with or forged, and some identifiers are difficult to obtain due to privacy protection policies. Summary of the invention

[0004] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a method and apparatus for generating a unique identifier for an Android device.

[0005] A first aspect of the present invention provides a method for generating a unique identifier of an Android device, comprising:

[0006] S1: Collect system information of the device to be identified;

[0007] S2: Generate a virtual ID of the device to be identified according to the system information;

[0008] S3: Generate a UUID of the device to be identified according to the virtual ID based on a hash algorithm;

[0009] S4: Encrypt the UUID to obtain a unique identification of the device to be identified.

[0010] According to a method for generating a unique identifier of an Android device provided by the present invention, the system information in step S1 is extracted by calling the Build class, and the system information includes:

[0011] Motherboard information, CPU architecture information, device name, system display information, build host information, build ID information, device model, product name, build tag information, build type information, and build user information.

[0012] According to a method for generating a unique identifier of an Android device provided by the present invention, step S2 further comprises:

[0013] S21: Calculate the lengths of the fields in the system information respectively and take the remainders to obtain multiple remainders;

[0014] S22: Add multiple remainders and prefix them with a random number to obtain a virtual ID.

[0015] According to a method for generating a unique identifier of an Android device provided by the present invention, step S3 further comprises:

[0016] S31: Analyze and obtain the Android system version of the device to be identified according to the system information;

[0017] S32: Based on the Android system version, a UUID of the device to be identified is generated according to the virtual ID through a hash algorithm.

[0018] According to a method for generating a unique identifier of an Android device provided by the present invention, step S32 further includes:

[0019] S321: when the Android system version is greater than or equal to 9.0, obtain the device serial number of the device to be identified, and determine whether the device serial number is available, and when the device serial number is available, execute step S322, and when the device serial number is available, execute step S323; when the Android system version is less than 9.0, execute step S323;

[0020] S322: constructing a UUID of the device to be identified by using the hash code of the device serial number and the hash code of the virtual ID;

[0021] S323: Constructing a UUID of the device to be identified by using the hash code of the Android system version and the hash code of the virtual ID.

[0022] According to a method for generating a unique identifier of an Android device provided by the present invention, before step S4, the method further includes:

[0023] Formatting the UUID;

[0024] The UUID is encrypted according to the shared key using the HMAC-SHA1 encryption algorithm to obtain signature data.

[0025] According to a method for generating a unique identifier of an Android device provided by the present invention, step S4 further comprises:

[0026] S41: Encrypt the UUID using an RSA public key to obtain an encrypted string;

[0027] S42: extracting the first and last characters of the encrypted string;

[0028] S43: Concatenate the first and last characters with the UUID to obtain a unique identifier.

[0029] A second aspect of the present invention provides a device for generating a unique identifier of an Android device, comprising:

[0030] Collection module: used to collect system information of the device to be identified;

[0031] A virtual ID building module: used to generate a virtual ID of a device to be identified according to the system information;

[0032] UUID construction module: used to generate the UUID of the device to be identified according to the virtual ID based on a hash algorithm;

[0033] Encryption module: used to encrypt the UUID to obtain the unique identification of the device to be identified.

[0034] A third aspect of the present invention provides a device for generating a unique identifier of an Android device, comprising:

[0035] A memory and at least one processor, wherein instructions are stored in the memory;

[0036] At least one of the processors calls the instructions in the memory to enable the device for generating the unique identifier of an Android device to execute the method for generating the unique identifier of an Android device as described in any of the above items.

[0037] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, a method for generating a unique identifier of an Android device as described in any one of the above items is implemented.

[0038] The present invention provides a method, apparatus, device and storage medium for generating a unique identifier for an Android device. By collecting multiple system information of an Android device and generating a virtual ID, a device identifier that is both unique and difficult to copy or guess is generated based on a hash algorithm and encryption processing, thereby effectively avoiding the problem that traditional device identifiers (such as IMEI, MAC address, etc.) are easy to leak and forge, thereby improving the security and reliability of the device identifier. Secondly, when generating a UUID, the present invention takes into account the factor of the Android system version, and adopts different strategies for generating UUIDs for different versions of the Android system, thereby ensuring compatibility and uniqueness under various versions, especially in Android In versions 9.0 and above, when the device serial number is available, the hash code of the device serial number and the hash code of the virtual ID are used to construct the UUID, which further enhances the uniqueness and security of the identification; in addition, in the process of encrypting the UUID, the present invention adopts the HMAC-SHA1 encryption algorithm for signing, as well as the RSA public key encryption technology, which not only improves the encryption strength, but also increases the flexibility of the encryption processing. By extracting the first and last characters of the encrypted string and splicing it with the UUID, the original identification information is retained and an additional security protection layer is added; secondly, by collecting device system information instead of directly obtaining the user's personal information, the present invention effectively protects the user's privacy in the process of generating the device identification, and at the same time, the encryption processing further reduces the risk of user information leakage. The generation method of the present invention is easy to implement on Android devices. At the same time, due to the use of standardized hash algorithms and encryption technologies, the method has good scalability, and the collection range of system information or the strength of the encryption algorithm can be adjusted as needed to adapt to different application scenarios and security requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0040] Figure 1 A schematic diagram of a method for generating a unique identifier of an Android device provided in an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of the structure of a device for generating a unique identifier of an Android device provided in an embodiment of the present invention.

[0042] Reference numerals:

[0043] 100. Collection module; 200. Virtual ID construction module; 300. UUID construction module; 400. Encryption module. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0045] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0046] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0048] In order to better understand the present invention, the terms appearing in the embodiments of the present invention are first explained below.

[0049] Hash code: A hash code is an integer value used to uniquely identify an object. It is calculated through a hash algorithm based on the content of the object (such as the object's internal address, the object's class, and object attribute information, etc.).

[0050] HMAC-SHA1: HMAC is a message authentication code algorithm based on a hash function. It combines the key and the message content to generate a fixed-length hash value. The HMAC algorithm can verify the integrity and authenticity of the data at the same time, that is, it can confirm whether the data has been tampered with during transmission and whether the data is indeed from the claimed sender.

[0051] The embodiments of the present invention are described below with reference to the accompanying drawings.

[0052] like Figure 1 As shown, the present invention provides a method for generating a unique identifier of an Android device, comprising:

[0053] S1: Collect system information of the device to be identified.

[0054] Furthermore, the Android system provides a Build class, which contains a lot of information about the device and system build. The information is unique or relatively fixed in each build version of the device, and can therefore be used to generate a unique identifier for the device.

[0055] Specifically, you first need to import the android.os.Build class, and then by calling the static fields of the Build class, you can get a series of information about the device. The specific system information obtained is as follows.

[0056] The system information in step S1 is extracted by calling the Build class, and the system information includes:

[0057] Motherboard information, CPU architecture information, device name, system display information, build host information, build ID information, device model, product name, build tag information, build type information, and build user information.

[0058] Furthermore, multiple fields are extracted from the system information of the Android device, including but not limited to: Build.BOARD (motherboard information), Build.BRAND (brand information), Build.CPU_ABI (CPU architecture information), Build.DEVICE (device name), Build.DISPLAY (system display information), Build.HOST (build host information), Build.ID (build ID information), Build.MANUFACTURER (manufacturer information), Build.MODEL (device model), Build.PRODUCT (product name), Build.TAGS (build tag information), Build.TYPE (build type information) and Build.USER (build user information).

[0059] S2: Generate a virtual ID of the device to be identified according to the system information.

[0060] Wherein, step S2 further comprises:

[0061] S21: Calculate the lengths of the fields in the system information respectively and take the remainders to obtain multiple remainders;

[0062] S22: Add multiple remainders and prefix them with a random number to obtain a virtual ID.

[0063] In steps S21 to S22, the length of each extracted field is calculated in turn, and its remainder to 10 is taken, the remainders of all fields are added together, and a random specific two-digit number is added in front to form a 15-digit unique identifier.

[0064] No matter what the actual value of the remainder is, when it is converted to a string and concatenated with the random number, it will not exceed 13 digits, because the largest integer will not have infinite digits when converted to a string. If the remainder has less than 13 digits, the concatenated string will be padded to 13 digits with 0 or other characters after the remainder.

[0065] S3: Based on a hash algorithm, generate a UUID of the device to be identified according to the virtual ID.

[0066] Wherein, step S3 further comprises:

[0067] S31: Analyze and obtain the Android system version of the device to be identified according to the system information;

[0068] S32: Based on the Android system version, a UUID of the device to be identified is generated according to the virtual ID through a hash algorithm.

[0069] Wherein, step S32 further comprises:

[0070] S321: When the Android system version is greater than or equal to 9.0, obtain the device serial number of the device to be identified, and determine whether the device serial number is available. When the device serial number is available, execute step S322; when the device serial number is available, execute step S323; when the Android system version is less than 9.0, execute step S323.

[0071] In step S31, when the Android system version is greater than or equal to 9.0, the Android system restricts the access rights of the device serial number, so it is necessary to first obtain the device serial number and determine whether it is available. If the device serial number is available, that is, the user has granted access rights, or the device serial number is obtained through other legal means, then execute step S322; if the device serial number is not available, or the Android system version is less than 9.0, in these cases, the device serial number is accessible, then execute step S323.

[0072] S322: Constructing a UUID of the device to be identified by using the hash code of the device serial number and the hash code of the virtual ID.

[0073] In step S322, when the device serial number is available, the device serial number and the virtual ID are used to generate the UUID. Specifically, hash operations are performed on the device serial number and the virtual ID respectively, and then the obtained hash codes are combined to form the final UUID.

[0074] S323: Constructing a UUID of the device to be identified by using the hash code of the Android system version and the hash code of the virtual ID.

[0075] In step S323, the Android system version number and the virtual ID are hashed, and then the resulting hash codes are combined to form a UUID. Although this method is not as unique as using the device serial number (because multiple devices may run the same Android version), it still provides a relatively reliable unique identifier when the device serial number is inaccessible.

[0076] In the overall step S3, the Android version needs to be determined first. If the Android version is greater than or equal to 9 (Pie and above), try to obtain the device serial number (Build.SERIAL).

[0077] If the serial number is not empty and not "unknown", the UUID is constructed using its hash code and the hash code of the device virtual ID (a 15-bit unique identifier previously generated based on system information); if the serial number is not available, the UUID is constructed using the hash code of the Android ID and the device virtual ID.

[0078] If the Android version is lower than 9, the UUID is constructed directly using the hash code of the Android ID and the hash code of the device virtual ID.

[0079] S4: Encrypt the UUID to obtain a unique identification of the device to be identified.

[0080] Wherein, before step S4, the method further includes:

[0081] The UUID is formatted.

[0082] Specifically, the formatting replaces all "-" characters in the generated UUID with empty strings to optimize the format.

[0083] The UUID is encrypted according to the shared key using the HMAC-SHA1 encryption algorithm to obtain signature data.

[0084] Furthermore, the present invention also signs the UUID through the HMAC-SHA1 encryption algorithm and the public key at this stage, which can ensure that the UUID has not been tampered with during transmission and is generated by a legitimate sender. The signature data is used as verification information to ensure that the receiver can verify the authenticity and integrity of the UUID.

[0085] Signature data provides an additional security mechanism, making the generation and use of UUIDs more secure. In scenarios where the legitimacy of a UUID needs to be verified, the validity of the UUID can be determined by verifying the signature data, thereby preventing forged or tampered UUIDs from being used.

[0086] Wherein, step S4 further comprises:

[0087] S41: Encrypt the UUID using an RSA public key to obtain an encrypted string;

[0088] S42: extracting the first and last characters of the encrypted string;

[0089] S43: Concatenate the first and last characters with the UUID to obtain a unique identifier.

[0090] In step S41, the UUID is encrypted by the RSA public key. The purpose of encryption is to protect the UUID from being easily read or tampered by unauthorized persons. The encrypted data is tmp_apmid, which is an encoded string that looks completely different from the original UUID. In the subsequent step S42, a character is extracted from the beginning and end of tmp_apmid, which can increase the complexity and uniqueness of the final identifier while maintaining the brevity of the identifier. In the final step S43, the extracted first and last characters are concatenated with the original UUID to form a new string apmid.

[0091] The apmid contains the original UUID information, ensuring a certain association with the original device, and adds additional security and uniqueness through encryption and character extraction. The apmid is generated in such a way that even if two devices have the same UUID, their apmids will be different due to different encryption results and extracted characters, thus ensuring the unique identification of each Android device.

[0092] In a specific implementation, it is first necessary to extract the system information of the Android device, which can be achieved by calling the relevant methods in the Android Build class; then, a 13-digit basic identifier is generated based on the extracted system information; next, a UUID is generated based on the Android API version and the serial number or Android ID of the device, and all "-" in the UUID is replaced with an empty string; then, the processed UUID string is encrypted and signed using the public key to obtain an encrypted string; finally, the first character and the last character are extracted from the encrypted string, and concatenated with the processed UUID string to obtain the final unique identifier of the Android device.

[0093] The generated unique identifier is stored in a secure storage area of ​​the device, such as the Android KeyStore system. When necessary, the stored identifier is verified by a verification algorithm to ensure its uniqueness and correctness. The verification algorithm can be implemented based on a hash function or an encryption algorithm.

[0094] like Figure 2 As shown, the present invention also provides a device for generating a unique identifier of an Android device, comprising:

[0095] Collection module 100: used to collect system information of the device to be identified;

[0096] A virtual ID building module 200 is used to generate a virtual ID of a device to be identified according to the system information;

[0097] UUID construction module 300: used to generate a UUID of the device to be identified according to the virtual ID based on a hash algorithm;

[0098] Encryption module 400: used to encrypt the UUID to obtain a unique identification of the device to be identified.

[0099] The method and device of the present invention are integrated into an Android application. When the application needs to obtain a unique device identifier, the above steps are automatically executed to generate and return a unique identifier, which can be used in various scenarios such as user login verification, device tracking, and data analysis.

[0100] The present invention also provides a device for generating a unique identifier of an Android device, comprising:

[0101] A memory and at least one processor, wherein instructions are stored in the memory;

[0102] At least one of the processors calls the instructions in the memory to enable the device for generating the unique identifier of an Android device to execute the method for generating the unique identifier of an Android device as described in any of the above items.

[0103] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, a method for generating a unique identifier of an Android device as described in any one of the above items is implemented.

[0104] Furthermore, a device for generating a unique identifier for an Android device provided by the present invention may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU), for example, one or more processors and memories, one or more storage media for storing applications or data, such as one or more mass storage devices, wherein the memories and storage media may be short-term storage or persistent storage, and the program stored in the storage medium may include one or more modules, each module may include a series of instruction operations in the device for generating a unique identifier for an Android device, and further, the processor may be configured to communicate with the storage medium to execute a series of instruction operations in the storage medium on the device for generating a unique identifier for an Android device.

[0105] It may also include one or more power supplies, one or more wired or wireless network interfaces, one or more input and output interfaces, and one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that the device structure for generating a unique identifier for an Android device provided by the present invention does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0106] The invention provides a method, apparatus, device and storage medium for generating a unique identifier of an Android device. First, the multi-dimensional system information of the Android device is collected, including but not limited to motherboard information, brand information, CPU architecture, device name, system display information, build host information, build ID, manufacturer information, device model, product name, build label, build type and build user information, etc. These information together constitute the basic data source of the unique identifier of the device, ensuring the uniqueness of the identifier and the relevance of the device characteristics.

[0107] Secondly, based on the above multi-dimensional information, the present invention adopts a dynamic algorithm to generate a 13-digit basic identification (device virtual ID), that is, by performing a modulo 10 operation on the length of each information field, adding the results, and adding a random two-digit number before the result, which not only ensures the randomness of the identification, but also avoids the non-uniqueness of the identification caused by changes in the length of the information field.

[0108] Secondly, according to the API version and serial number status of the Android device, the present invention adopts a flexible strategy to generate UUID. When the API version meets the conditions and the serial number is valid, the serial number is used to generate UUID; otherwise, Android ID is used as an alternative. This strategy enhances the compatibility and stability of device identification.

[0109] In addition, to ensure the security of the device identification, the present invention also introduces public key encryption signature technology. The processed UUID string is encrypted and signed by the public key to obtain the encrypted string (tmp_apmid), which not only increases the complexity of the identification, but also improves its anti-forgery and tampering capabilities.

[0110] Finally, the present invention extracts the first character and the last character from the encrypted string, and combines them with the processed UUID string to form the final Android device unique identifier (apmid). The construction method not only retains the uniqueness of the UUID, but also incorporates the security features of the encrypted signature, thereby achieving dual protection of the uniqueness and security of the identifier.

[0111] The present invention provides a method, apparatus, device and storage medium for generating a unique identifier of an Android device. By combining device hardware information and system properties, the generated unique identifier is ensured to have high uniqueness. The direct use of sensitive hardware information is avoided, and the requirements of privacy protection policies are met. In addition, unless the device system information changes significantly (such as flashing the device), the generated unique identifier is relatively stable. It is also possible to choose whether to perform hashing or encryption processing on the unique identifier as required to enhance security. The differences in Android versions are also taken into account to ensure the applicability of the method on different devices. The encryption and signature technology is also used to improve the security of the device's unique identifier to prevent tampering and forgery.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for generating a unique identifier of an Android device, characterized in that: include: S1: Collect system information of the device to be identified; S2: Generate a virtual ID of the device to be identified according to the system information; S3: Generate a UUID of the device to be identified according to the virtual ID based on a hash algorithm; S4: Encrypt the UUID to obtain a unique identification of the device to be identified.

2. According to claim 1, a method for generating a unique identifier of an Android device is characterized in that: The system information in step S1 is extracted by calling the Build class, and the system information includes: Motherboard information, CPU architecture information, device name, system display information, build host information, build ID information, device model, product name, build tag information, build type information, and build user information.

3. According to claim 1, a method for generating a unique identifier of an Android device is characterized in that: Step S2 further comprises: S21: Calculate the lengths of the fields in the system information respectively and take the remainders to obtain multiple remainders; S22: Add multiple remainders and prefix them with a random number to obtain a virtual ID.

4. The method for generating a unique identifier of an Android device according to claim 1, characterized in that: Step S3 further comprises: S31: Analyze and obtain the Android system version of the device to be identified according to the system information; S32: Based on the Android system version, a UUID of the device to be identified is generated according to the virtual ID through a hash algorithm.

5. The method for generating a unique identifier of an Android device according to claim 4, characterized in that: Step S32 further includes: S321: when the Android system version is greater than or equal to 9.0, obtain the device serial number of the device to be identified, and determine whether the device serial number is available, and when the device serial number is available, execute step S322, and when the device serial number is available, execute step S323; when the Android system version is less than 9.0, execute step S323; S322: constructing a UUID of the device to be identified by using the hash code of the device serial number and the hash code of the virtual ID; S323: Constructing a UUID of the device to be identified by using the hash code of the Android system version and the hash code of the virtual ID.

6. The method for generating a unique identifier of an Android device according to claim 1, characterized in that: Before step S4, the method further includes: Formatting the UUID; The UUID is encrypted according to the shared key using the HMAC-SHA1 encryption algorithm to obtain signature data.

7. The method for generating a unique identifier of an Android device according to claim 1, characterized in that: Step S4 further comprises: S41: Encrypt the UUID using an RSA public key to obtain an encrypted string; S42: extracting the first and last characters of the encrypted string; S43: Concatenate the first and last characters with the UUID to obtain a unique identifier.

8. A device for generating a unique identifier of an Android device, characterized in that: include: Collection module: used to collect system information of the device to be identified; A virtual ID building module: used to generate a virtual ID of a device to be identified according to the system information; UUID construction module: used to generate the UUID of the device to be identified according to the virtual ID based on a hash algorithm; Encryption module: used to encrypt the UUID to obtain the unique identification of the device to be identified.

9. A device for generating a unique identifier of an Android device, characterized in that: include: A memory and at least one processor, wherein instructions are stored in the memory; At least one of the processors calls the instruction in the memory so that the device for generating the unique identifier of an Android device executes the method for generating the unique identifier of an Android device as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the method for generating a unique identifier of an Android device according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Dynamic virtual identifier generation for user interaction authorization verification and logging

    US12592927B2

  • Dynamic virtual identifier generation for user interaction authorization verification and logging

    US12689628B2

  • Dynamic virtual identifier generation for user interaction authorization verification and logging

    US20240244056A1