CN112187746A - Method and device for generating equipment identifier - Google Patents

Method and device for generating equipment identifier Download PDF

Info

Publication number
CN112187746A
CN112187746A CN202010968789.5A CN202010968789A CN112187746A CN 112187746 A CN112187746 A CN 112187746A CN 202010968789 A CN202010968789 A CN 202010968789A CN 112187746 A CN112187746 A CN 112187746A
Authority
CN
China
Prior art keywords
time
equipment
information
transcoded
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010968789.5A
Other languages
Chinese (zh)
Inventor
王立涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Minglue Zhaohui Technology Co Ltd
Original Assignee
Beijing Minglue Zhaohui Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Minglue Zhaohui Technology Co Ltd filed Critical Beijing Minglue Zhaohui Technology Co Ltd
Priority to CN202010968789.5A priority Critical patent/CN112187746A/en
Publication of CN112187746A publication Critical patent/CN112187746A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a method and a device for generating an equipment identifier, wherein the method comprises the following steps: acquiring system starting time, equipment platform information and an equipment model of target equipment; acquiring the creation time of a preset system folder, and acquiring the current system time; the device identifier of the target device is generated according to the system starting time, the device platform information, the device model, the creating time and the current system time, the problem that in the related technology, as more and more users are used, when different third libraries in the same APP use the OpenUDID to obtain the unique ID of the device, the APP crashes can be solved, the generated device identifier is low in possibility of being repeated, and the application crash is avoided.

Description

Method and device for generating equipment identifier
Technical Field
The invention relates to the technical field of equipment identification, in particular to a method and a device for generating an equipment identifier.
Background
The device identification ID of the network device can be used to distinguish whether the user is activated for the first time, tracking and positioning of advertisement delivery, etc., but apple prohibits acquisition of the UDID and UUID (a device unique identifier) of the system due to privacy problems. At present, a common method for replacing a device ID in the market is to use a third-party library OpenUDID, but as more and more users are used, when different third libraries in the same application APP (application) all use OpenUDID to obtain a unique device ID, a problem of APP crash occurs, so a new technical method for generating a device ID is urgently needed to be found.
For the problem that in the related art, as more and more users are used, when different third libraries in the same APP use OpenUDID to obtain the unique ID of the device, APP crash occurs, a solution is not proposed.
Disclosure of Invention
The embodiment of the invention provides a device identifier generation method and device, which are used for at least solving the problem that in the related technology, as more and more users are used, when different third libraries in the same APP use OpenUDID to obtain a unique device ID, the APP is crashed.
According to an embodiment of the present invention, a method for generating a device identifier is provided, including:
acquiring system starting time, equipment platform information and an equipment model of target equipment;
acquiring the creation time of a preset system folder, and acquiring the current system time;
and generating the equipment identifier of the target equipment according to the system starting time, the equipment platform information, the equipment model, the creating time and the current system time.
Optionally, the obtaining of the preset creation time of the system folder includes:
the creation time of the system folder set in advance is acquired by the attributeuItemAtPath method of Object-C.
Optionally, the obtaining the current system time includes:
the current system time is obtained by the NSDate function of Object-C.
Optionally, after generating the device identifier of the target device according to the system kernel start time, the device platform information, the device model, the creation time, and the current system time, the method further includes:
and storing the device identification of the target device by a keyhide method of the IOS.
Optionally, generating the device identifier of the target device according to the system kernel starting time, the device platform information, the device model, the creating time, and the current system time includes:
splicing the system kernel starting time, the equipment platform information, the equipment model, the creating time and the current system time to obtain splicing information;
performing MD5 transcoding on the splicing information to obtain the transcoded splicing information;
and determining the equipment identifier of the target equipment according to the transcoded splicing information.
Optionally, determining the device identifier of the target device according to the transcoded splicing information includes:
intercepting a preset number of characters from the transcoded splicing information according to a preset rule;
and determining the preset number of characters as the device identification of the target device.
Optionally, intercepting a predetermined number of characters from the transcoded splicing information according to a preset rule includes:
intercepting the characters of the preset number from the transcoded splicing information;
intercepting the characters of the preset number from the transcoded splicing information;
and intercepting the characters with the preset number from the transcoded splicing information.
According to another embodiment of the present invention, there is also provided an apparatus for generating a device identifier, including:
the first acquisition module is used for acquiring system starting time, equipment platform information and an equipment model of the target equipment;
the second acquisition module is used for acquiring the preset creation time of the system folder and acquiring the current system time;
and the generating module is used for generating the equipment identifier of the target equipment according to the system starting time, the equipment platform information, the equipment model, the creating time and the current system time.
Optionally, the second obtaining module includes:
and the first acquisition sub-module is used for acquiring the preset creation time of the system folder by the attributeuItemAtPath method of the Object-C.
Optionally, the second obtaining module includes:
and the second acquisition submodule is used for acquiring the current system time through the NSDate function of the Object-C.
Optionally, the apparatus further comprises:
and the storage module is used for storing the device identification of the target device by a keypain method of the IOS.
Optionally, the generating module includes:
the splicing submodule is used for splicing the system kernel starting time, the equipment platform information, the equipment model, the creating time and the current system time to obtain splicing information;
the transcoding submodule is used for performing MD5 transcoding on the splicing information to obtain the transcoded splicing information;
and the determining submodule is used for determining the equipment identifier of the target equipment according to the transcoded splicing information.
Optionally, the determining sub-module includes:
the intercepting unit is used for intercepting a preset number of characters from the transcoded splicing information according to a preset rule;
a determining unit, configured to determine that the predetermined number of characters is the device identifier of the target device.
Optionally, the intercepting unit includes:
the first intercepting subunit is used for intercepting the characters with the preset number from the transcoded splicing information;
the second intercepting subunit is used for intercepting the characters with the preset number from the transcoded splicing information;
and the third intercepting subunit is used for intercepting the characters with the preset number from the transcoded splicing information.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the system starting time, the equipment platform information and the equipment model of the target equipment are obtained; acquiring the creation time of a preset system folder, and acquiring the current system time; the device identifier of the target device is generated according to the system starting time, the device platform information, the device model, the creation time and the current system time, so that the problem that in the related technology, as more and more users are used, when different third libraries in the same APP use OpenUDID to obtain the unique ID of the device, the APP crashes can be solved, the generated device identifier is low in possibility of being repeated, and the application crash is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to a method for generating a device identifier according to an embodiment of the present invention;
fig. 2 is a flowchart of a method of generating a device identification according to an embodiment of the present invention;
FIG. 3 is a block diagram of the generation of a device identification according to an embodiment of the present invention;
FIG. 4 is a block diagram one of the generation of a device identification in accordance with a preferred embodiment of the present invention;
FIG. 5 is a block diagram two of the generation of a device identification in accordance with a preferred embodiment of the present invention;
fig. 6 is a block diagram three of the generation of a device identification in accordance with a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of a mobile terminal of a device identifier generation method according to an embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the device identifier generating method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Based on the foregoing mobile terminal or network architecture, this embodiment provides a method for generating a device identifier, and fig. 2 is a flowchart of the method for generating a device identifier according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring system starting time, equipment platform information and equipment model of target equipment;
step S204, acquiring the preset creation time of a system folder, and acquiring the current system time;
further, the preset creation time of the system folder is obtained through the attributeuItemAtPath method of the Object-C, and the current system time is obtained through the NSDate function of the Object-C. The Objective-C is a programming language with added object-oriented property expansion on the basis of C, and is generally called jObC and less Objective C or obj C. To some extent, Objective-C can be viewed as a collection of ANSI version C language that supports the same basic syntax of C language, while it also extends the syntax of the standard ANSI C language, including defining classes, methods, and properties. There are of course other structural refinements and extensions, such as the appearance of Category. attributeufietatpath gets all file attributes (fileAttributes) of the given path (path) and returns a dictionary (NSDictionary) to store, i.e. in the form of key-value pairs.
Step S206, generating the device identifier of the target device according to the system starting time, the device platform information, the device model, the creating time and the current system time.
Through the steps S202 to S206, system start time, device platform information, and device model of the target device are obtained; acquiring the creation time of a preset system folder, and acquiring the current system time; the device identifier of the target device is generated according to the system starting time, the device platform information, the device model, the creation time and the current system time, so that the problem that in the related technology, as more and more users are used, when different third libraries in the same APP use OpenUDID to obtain the unique ID of the device, the APP crashes can be solved, the generated device identifier is low in possibility of being repeated, and the application crash is avoided.
In an optional embodiment, after the device identifier of the target device is generated according to the system kernel start time, the device platform information, the device model, the creation time, and the current system time, the device identifier of the target device is stored by a key method of the IOS. The NSDate object encapsulates a point in time, independent of any particular calendar system or time zone. The Date object is immutable, representing an immutable time interval relative to an absolute reference Date (e.g., 1 month 1 day 00:00:00UTC, 2001).
In an embodiment of the present invention, the step S206 may specifically include: splicing the system kernel starting time, the equipment platform information, the equipment model, the creating time and the current system time to obtain splicing information; performing MD5 transcoding on the splicing information to obtain the transcoded splicing information; determining the equipment identification of the target equipment according to the transcoded splicing information, and further intercepting a preset number of characters from the transcoded splicing information according to a preset rule; and determining the preset number of characters as the device identification of the target device.
For example, the start time: 4344409024, platform information: d22AP, device model IPhone10,3, folder creation time: 1549790498, current time: 1597051327213 to obtain: 4344409024D22APIPhone10, 3154979049815970517213 carries out MD5 encryption transcoding to obtain an identification: d46a7f4784bddcb64422ed82c4bf68a 3.
Specifically, intercepting a predetermined number of characters from the transcoded splicing information according to a preset rule may include: intercepting the characters of the preset number from the transcoded splicing information; intercepting the characters of the preset number from the transcoded splicing information; and intercepting the characters with the preset number from the transcoded splicing information.
In the embodiment of the invention, through syscll () and syscllbyname (), the c language of the bottom layer is used;
the functions of the two functions syscll () and sysclbyname () are functions of acquiring or setting system information. Standard UNIX functions are used to query the operating system for detailed information about the hardware and OS. Core information such as the CPU frequency of the system, the amount of memory available, etc. can be checked by constants. It introduces a UIDevice class for gathering system information and returning it through a series of method calls.
Each model provides unique built-in capabilities, knowing exactly which iPhone you are handling helps determine whether that unit is likely to support features such as accessibility, GPS and magnetometer.
The sysctl function returns consistent snapshots as needed for the data. Consistency includes locking into the destination buffer memory so that locking is not needed when data is copied out, and deadlock is avoided when the function sysctl is called.
This specification is described as a name in the form of an MIB, listing the name, the length of which is the parameter namelen.
The syscltbyname function accepts the form of ASCII representing names and numeric names. And it is strictly required to be the same as the standard sysctl function.
The information is copied into the buffer by the parameter oldp. The length of the buffer is specified by the location before the call, while that location gives a large number of copies of the data that return error codes after a successful call and after the call. If that amount of available data is larger than that provided by that buffer, this call provides the largest appropriate data while returning an error code, and if old data is not desired, oldp and oldlenp are set to NULL.
The size of the available data can be made absolute by setting the parameter oldp to NULL and calling the function sysctl. These available data will be returned to the location pointed to by oldlenp. For some operations, the amount of space may change frequently. For these operations, the system may point to the surrounding so that the size of the return is large enough to be the data returned.
To set a new value, newp, the length set to point to a buffernewlen is set by the required value. If a new value is not set, newp should be set to NULL and newlen to 0.
The method comprises the steps of obtaining System kernel starting time, equipment platform information and equipment model, obtaining System folder System/Library/coreservics creating time through an oc attributeOfItemAtPath method, obtaining current System time (accurate to millisecond level) through an oc NSDate function, splicing all the information together, performing MD5 transcoding storage, and generating 32 bits or 40 bits to be stored as equipment unique ID.
The device ID is stored for a long time through a keyhide method of the IOS, and the same device ID can be obtained even if the user uninstalls the APP for reinstallation. The iOS keyhain is a relatively independent space, and information stored in the keyhain key string is not lost by uninstalling/reinstalling the app. Compared with general ways such as NSUserDefaults and plist file storage, the keyhide storage is safer. Therefore, the keyChain is used for storing some private information, such as passwords, certificates, device unique codes (the unique ID acquired from the user device is stored in the keyChain, so that the ID can be acquired after unloading or reloading, and one device is ensured to have one ID), and the like. Keychain was stored with SQLite. The apple is a professional database, the stored data is encrypted, and efficient searching can be performed through metadata (attributes). Keychain is suitable for storing data with a small data volume, and if large data is to be stored, the data can be stored on a disk in a file form, and a key for decrypting the file is stored in the Keychain.
By the method, a 32-bit non-repetitive equipment ID can be generated for distinguishing whether a user activates for the first time, installs an APP and the like. When the user restarts, the APP is unloaded, and the change of the equipment ID cannot be influenced by reinstallation, so that the purposes of distinguishing the uniqueness of the equipment and tracking the user behavior are achieved. For example, device id generation example: d46a7f4784bddcb64422ed82c4bf68a 3.
By the method, a 40-bit non-repetitive equipment ID can be generated for distinguishing whether a user activates for the first time, installs APP and the like. When the user restarts, the APP is unloaded, and the change of the equipment ID cannot be influenced by reinstallation, so that the purposes of distinguishing the uniqueness of the equipment and tracking the user behavior are achieved. For example, device id generation example: b9eef0672f8fce0368f8c6f75ccdce006430a6c 4.
The device id may be generated by adding some additional system information, such as the current remaining space size of the hard disk, the memory usage amount, and the like.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device for generating an equipment identifier is further provided, where the device is used to implement the foregoing embodiment and preferred embodiments, and details of the foregoing description are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of generation of a device identification according to an embodiment of the present invention, as shown in fig. 3, including:
a first obtaining module 32, configured to obtain system start time, device platform information, and a device model of a target device;
a second obtaining module 34, configured to obtain a preset creation time of the system folder, and obtain a current system time;
a generating module 36, configured to generate a device identifier of the target device according to the system start time, the device platform information, the device model, the creation time, and the current system time.
Fig. 4 is a first block diagram of the generation of the device identifier according to the preferred embodiment of the present invention, and as shown in fig. 4, the second obtaining module 34 includes:
a first obtaining sub-module 42, configured to obtain a preset creation time of the system folder through the attributeultematpath method of Object-C.
Fig. 5 is a block diagram ii of the generation of the device identifier according to the preferred embodiment of the present invention, and as shown in fig. 5, the second obtaining module 34 includes:
and a second obtaining submodule 52, configured to obtain the current system time through the NSDate function of Object-C.
Optionally, the apparatus further comprises:
and the storage module is used for storing the device identification of the target device by a keypain method of the IOS.
Fig. 6 is a third block diagram of the generation of the device identifier according to the preferred embodiment of the present invention, and as shown in fig. 6, the generating module 36 includes:
the splicing submodule 62 is configured to splice the system kernel starting time, the device platform information, the device model, the creation time, and the current system time to obtain splicing information;
the transcoding submodule 64 is configured to perform MD5 transcoding on the splicing information to obtain transcoded splicing information;
and the determining submodule 66 is configured to determine the device identifier of the target device according to the transcoded splicing information.
Optionally, the determining sub-module 66 includes:
the intercepting unit is used for intercepting a preset number of characters from the transcoded splicing information according to a preset rule;
a determining unit, configured to determine that the predetermined number of characters is the device identifier of the target device.
Optionally, the intercepting unit includes:
the first intercepting subunit is used for intercepting the characters with the preset number from the transcoded splicing information;
the second intercepting subunit is used for intercepting the characters with the preset number from the transcoded splicing information;
and the third intercepting subunit is used for intercepting the characters with the preset number from the transcoded splicing information.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring system starting time, equipment platform information and equipment model of the target equipment;
s2, acquiring the preset creating time of the system folder and acquiring the current system time;
s3, generating the device identification of the target device according to the system starting time, the device platform information, the device model, the creating time and the current system time.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring system starting time, equipment platform information and equipment model of the target equipment;
s2, acquiring the preset creating time of the system folder and acquiring the current system time;
s3, generating the device identification of the target device according to the system starting time, the device platform information, the device model, the creating time and the current system time.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for generating a device identifier, comprising:
acquiring system starting time, equipment platform information and an equipment model of target equipment;
acquiring the creation time of a preset system folder, and acquiring the current system time;
and generating the equipment identifier of the target equipment according to the system starting time, the equipment platform information, the equipment model, the creating time and the current system time.
2. The method according to claim 1, wherein the obtaining the preset creation time of the system folder comprises:
acquiring the preset creation time of the system folder by an attributeuxtatextath method of Object-C.
3. The method of claim 1, wherein obtaining the current system time comprises:
the current system time is obtained by the NSDate function of Object-C.
4. The method of claim 1, wherein after generating the device identification of the target device according to the system kernel boot time, the device platform information, the device model number, the creation time, and the current system time, the method further comprises:
and storing the device identification of the target device by a keyhide method of the IOS.
5. The method of any of claims 1 to 4, wherein generating the device identification of the target device according to the system kernel boot time, the device platform information, the device model, the creation time, and the current system time comprises:
splicing the system kernel starting time, the equipment platform information, the equipment model, the creating time and the current system time to obtain splicing information;
performing MD5 transcoding on the splicing information to obtain the transcoded splicing information;
and determining the equipment identifier of the target equipment according to the transcoded splicing information.
6. The method of claim 5, wherein determining the device identifier of the target device according to the transcoded splicing information comprises:
intercepting a preset number of characters from the transcoded splicing information according to a preset rule;
and determining the preset number of characters as the device identification of the target device.
7. The method of claim 6, wherein intercepting a predetermined number of characters from the transcoded splicing information according to a preset rule comprises:
intercepting the characters of the preset number from the transcoded splicing information;
intercepting the characters of the preset number from the transcoded splicing information;
and intercepting the characters with the preset number from the transcoded splicing information.
8. An apparatus for generating a device identifier, comprising:
the first acquisition module is used for acquiring system starting time, equipment platform information and an equipment model of the target equipment;
the second acquisition module is used for acquiring the preset creation time of the system folder and acquiring the current system time;
and the generating module is used for generating the equipment identifier of the target equipment according to the system starting time, the equipment platform information, the equipment model, the creating time and the current system time.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202010968789.5A 2020-09-15 2020-09-15 Method and device for generating equipment identifier Pending CN112187746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010968789.5A CN112187746A (en) 2020-09-15 2020-09-15 Method and device for generating equipment identifier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010968789.5A CN112187746A (en) 2020-09-15 2020-09-15 Method and device for generating equipment identifier

Publications (1)

Publication Number Publication Date
CN112187746A true CN112187746A (en) 2021-01-05

Family

ID=73920822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010968789.5A Pending CN112187746A (en) 2020-09-15 2020-09-15 Method and device for generating equipment identifier

Country Status (1)

Country Link
CN (1) CN112187746A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208856A (en) * 2022-07-13 2022-10-18 珠海格力电器股份有限公司 Communication address allocation method, allocation device, processor and communication system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106650519A (en) * 2016-12-08 2017-05-10 同盾科技有限公司 Device tracking method and system
WO2018196553A1 (en) * 2017-04-27 2018-11-01 腾讯科技(深圳)有限公司 Method and apparatus for obtaining identifier, storage medium, and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106650519A (en) * 2016-12-08 2017-05-10 同盾科技有限公司 Device tracking method and system
WO2018196553A1 (en) * 2017-04-27 2018-11-01 腾讯科技(深圳)有限公司 Method and apparatus for obtaining identifier, storage medium, and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208856A (en) * 2022-07-13 2022-10-18 珠海格力电器股份有限公司 Communication address allocation method, allocation device, processor and communication system

Similar Documents

Publication Publication Date Title
KR102204115B1 (en) Patch upgrade-based file processing method and device, terminal, and storage medium
WO2007146710A2 (en) Device management in a network
CN108196878A (en) Generation method, device, electronic equipment and the storage medium of application program installation kit
CN110321131B (en) Service component packaging method, system and server
CN107797823B (en) Business rule management method and device, storage medium and computer equipment
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN111651468A (en) Data updating method and device based on SQL analysis, electronic equipment and storage medium
CN106796521B (en) API version control independent of product release
CN111177243B (en) Data export method and device, storage medium and electronic device
CN110865828A (en) Data upgrading method, device, equipment and computer readable storage medium
CN110837391B (en) Application program hot updating method and device, storage medium and electronic equipment
CN112187746A (en) Method and device for generating equipment identifier
CN114489939A (en) Component deployment method, system and computer readable medium
CN110750286A (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN111556127B (en) Wearable device upgrading method and related device
CN111417927A (en) Resource authority processing method and device, storage medium and chip
CN115794214B (en) Application module metadata management method, device, storage medium and apparatus
CN105119944A (en) Application starting method and related device
CN114860202A (en) Project operation method, device, server and storage medium
CN108363614B (en) Application service module management method and device and server
CN115878443A (en) Interface test script generation method and device, storage medium and electronic device
Kramer Droidspotter: a forensic tool for android location data collection and analysis
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device
CN116719537A (en) Application installation method, device, equipment and storage medium
CN117762504A (en) System migration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210105