CN112733210B - Equipment identifier obtaining method and device and computer readable storage medium - Google Patents

Equipment identifier obtaining method and device and computer readable storage medium Download PDF

Info

Publication number
CN112733210B
CN112733210B CN202110364579.XA CN202110364579A CN112733210B CN 112733210 B CN112733210 B CN 112733210B CN 202110364579 A CN202110364579 A CN 202110364579A CN 112733210 B CN112733210 B CN 112733210B
Authority
CN
China
Prior art keywords
information
file path
equipment
obtaining
mapping list
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.)
Active
Application number
CN202110364579.XA
Other languages
Chinese (zh)
Other versions
CN112733210A (en
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 Trusfort Technology Co ltd
Original Assignee
Beijing Trusfort 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 Trusfort Technology Co ltd filed Critical Beijing Trusfort Technology Co ltd
Priority to CN202110364579.XA priority Critical patent/CN112733210B/en
Publication of CN112733210A publication Critical patent/CN112733210A/en
Application granted granted Critical
Publication of CN112733210B publication Critical patent/CN112733210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries

Abstract

The embodiment of the invention discloses a method and a device for acquiring equipment identification and a computer readable storage medium, wherein the method is applied to electronic equipment and comprises the following steps: obtaining a first request, wherein the first request is used for obtaining a device identifier; obtaining mapping list information corresponding to a preselected file path in the electronic equipment; obtaining non-privacy device information corresponding to the electronic device; and determining the equipment identifier according to the mapping list information and the non-privacy equipment information. The method, the device and the computer-readable storage medium for acquiring the equipment identifier, provided by the embodiment of the invention, have the characteristic of acquiring the equipment identifier to determine a specific electronic equipment.

Description

Equipment identifier obtaining method and device and computer readable storage medium
Technical Field
The present invention relates to the field of information security technologies, and in particular, to a method and an apparatus for acquiring a device identifier, and a computer-readable storage medium.
Background
In situations such as when it is necessary to know whether the current device is authorized and when it is necessary to know the operation of the device asset, the software system needs to know on which device it is operating. At present, in general, a software system may determine a specific unique device, such as a MAC address, a hard disk serial number, a mobile phone IMEI, and the like of a network adapter, by reading a device hardware identifier used for being accurately distinguished from other devices, and in a case that the hardware identifier used for being accurately distinguished from other devices cannot be obtained, the software system itself generates random data during a first operation and stores the random data in a storage area provided by the device, and then reads the part of data as a device identifier, but the part of random data has problems of being deleted and tampered, and the like, so that the software system cannot determine the device.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring equipment identification and a computer readable storage medium, which have the characteristic of acquiring the equipment identification to determine a specific electronic device.
An embodiment of the present invention provides an apparatus identifier obtaining method, where the method is applied to an electronic apparatus, and the method includes: obtaining a first request, wherein the first request is used for obtaining a device identifier; obtaining mapping list information corresponding to a preselected file path in the electronic equipment; obtaining non-privacy device information corresponding to the electronic device; and determining the equipment identifier according to the mapping list information and the non-privacy equipment information.
In an embodiment, after determining the device identifier according to the mapping list information and the device information, the method further includes: and feeding back the equipment identification to an internal server.
In an embodiment, the electronic device is communicatively connected to an external server, and after determining the device identifier according to the mapping list information and the device information, the method further includes: and sending the equipment identification to the external server.
In an embodiment, the obtaining mapping list information corresponding to a preselected file path in the electronic device includes: selecting a file path according to an operating system corresponding to the electronic equipment to obtain a preselected file path; determining a preselected file according to the preselected file path; extracting index nodes of the preselected file to obtain index node information; and mapping the preselected file paths and the index node information one by one to obtain mapping list information.
In an implementation manner, the selecting a file path according to an operating system corresponding to the electronic device to obtain a preselected file path includes: acquiring trigger information; and selecting a file path according to an operating system corresponding to the electronic equipment based on the trigger information to obtain a preselected file path.
In an embodiment, the determining a device identifier according to the mapping list information and the non-privacy device information includes: filtering the mapping list information based on the non-privacy equipment information to obtain to-be-processed mapping list information containing to-be-processed mapping values; determining a summary value according to the mapping list information to be processed and the non-privacy equipment information; and coding the abstract value to obtain the equipment identification.
In an implementation manner, the determining a digest value according to the to-be-processed mapping list information and the non-privacy device information includes: according to the dictionary sequence, putting the mapping value to be processed into an empty character string buffer area to obtain an intermediate buffer area containing first data; according to the dictionary sequence, the information of the non-privacy equipment is placed at the tail part of the middle buffer area, and a buffer area to be processed containing second data is obtained; and determining a digest value according to the second data.
Another aspect of an embodiment of the present invention provides an apparatus for acquiring an equipment identifier, where the apparatus is applied to an electronic device, and the apparatus includes: an obtaining module, configured to obtain a first request, where the first request is used to obtain a device identifier; the obtaining module is further configured to obtain mapping list information corresponding to a preselected file path in the electronic device; the obtaining module is further configured to obtain non-privacy device information corresponding to the electronic device; and the determining module is used for determining the equipment identifier according to the mapping list information and the non-privacy equipment information.
In one embodiment, the apparatus further comprises: and the feedback module is used for feeding back the equipment identifier to the internal server.
In an embodiment, the electronic device is communicatively connected to an external server, and the apparatus further includes: and the sending module is used for sending the equipment identifier to the external server.
In an embodiment, the obtaining module includes:
the obtaining submodule is used for selecting a file path according to an operating system corresponding to the electronic equipment to obtain a preselected file path;
the determining submodule is used for determining a preselected file according to the preselected file path;
the obtaining submodule is also used for extracting index nodes of the preselected file to obtain index node information;
the obtaining submodule is further configured to perform one-to-one mapping on the preselected file paths and the index node information to obtain mapping list information.
In an embodiment, the obtaining sub-module further includes:
an obtaining unit configured to obtain trigger information;
the obtaining unit is further configured to select a file path according to an operating system corresponding to the electronic device based on the trigger information, and obtain a preselected file path.
In an embodiment, the determining module further includes:
the filtering submodule is used for filtering the mapping list information based on the non-privacy equipment information to obtain to-be-processed mapping list information containing to-be-processed mapping values;
the abstract submodule is used for determining an abstract value according to the mapping list information to be processed and the non-privacy equipment information;
and the coding submodule is used for coding the abstract value to obtain the equipment identification.
In one embodiment, the summary sub-module includes:
the buffer area unit is used for putting the mapping value to be processed into an empty character string buffer area according to the dictionary sequence to obtain an intermediate buffer area containing first data;
the buffer area unit is further configured to place the non-privacy device information into a tail portion of the intermediate buffer area according to the dictionary sequence, and obtain a buffer area to be processed, which includes second data;
and the abstract unit determines an abstract value according to the second data.
An embodiment of the present invention further provides a computer-readable storage medium, where the storage medium includes a set of computer-executable instructions, and when the instructions are executed, the storage medium is configured to execute any one of the above-mentioned device identifier obtaining methods.
The device identifier obtaining method, the device and the computer readable storage medium provided by the embodiments of the present invention are applied to an electronic device, and are configured to obtain a device identifier, first obtain a first request for obtaining the device identifier, obtain mapping list information corresponding to a preselected file path in the electronic device after obtaining the first request, obtain non-privacy device information corresponding to the electronic device, and then determine the device identifier according to the mapping list information and the non-privacy device information, where the device identifier is used to determine a specific and unique device to distinguish from other electronic devices.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for acquiring an equipment identifier according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of feeding back the device identifier to an internal server in the device identifier obtaining method according to the embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a process of sending the device identifier to the external server in the device identifier obtaining method according to the embodiment of the present invention;
fig. 4 is a schematic flowchart of a process of obtaining mapping list information in an apparatus identifier obtaining method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating a process of obtaining a preselected file path in an apparatus identifier obtaining method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of obtaining an equipment identifier in an equipment identifier obtaining method according to an embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating a process of obtaining a digest value in an apparatus identifier obtaining method according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of an apparatus for acquiring device identifier according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart illustrating an implementation of a device identifier obtaining method according to an embodiment of the present invention.
Referring to fig. 1, in an aspect, an embodiment of the present invention provides an apparatus identifier obtaining method, where the method is applied to an electronic apparatus, and the method includes: step 101, obtaining a first request, wherein the first request is used for obtaining a device identifier; 102, obtaining mapping list information corresponding to a preselected file path in the electronic equipment; 103, acquiring non-privacy equipment information corresponding to the electronic equipment; and step 104, determining the equipment identifier according to the mapping list information and the non-privacy equipment information.
The device identifier obtaining method provided by the embodiment of the disclosure can be applied to electronic devices such as internet of things terminal devices and internet of vehicles terminal devices based on a UNIX-like operating system, such as mobile phones, tablets and computers. In the embodiment of the disclosure, when the application software in the electronic device needs to know which device the application software runs on, the method can determine the device identifier of the electronic device, and the device identifier is used for determining a specific and unique device to distinguish from other electronic devices.
In step 101, a first request for obtaining a device identifier is obtained, where the first request may be from inside the electronic device or from outside the electronic device, that is, from another electronic device.
In this example step 102, after obtaining the first request, mapping list information corresponding to a preselected file path in the electronic device is obtained, where the preselected file path already exists before obtaining the first request, and since files in operating systems of different kinds of electronic devices that are not deleted or reconstructed by application software are different, the preselected file path needs to be preliminarily determined through investigation and mathematical modeling, so that the file path corresponding to a file that is not deleted or reconstructed by application software in an operating system of any kind of electronic device is within a range of the preselected file path, the preselected file path corresponds to a preselected file, and the preselected file path may include file paths corresponding to basic function library files such as C-function library, mathematical library, etc., such as/lib/,/lib 64,/usr/lib, A/usr/lib 64, etc., the preselected file path may also include a file path corresponding to a common command file, such as/bin,/sbin,/usr/bin,/usr/sbin,/system/xbin,/system/bin, etc., the preselected file path may also include a file path corresponding to a common configuration file, such as/etc,/system/etc,/var/lib, etc., the preselected file path may be plural; and obtaining mapping list information corresponding to the preselected file path based on the preselected file path, wherein the mapping list information comprises a plurality of mapping values, and each mapping value corresponds to a corresponding file path.
In this example step 103, after obtaining the first request, the non-privacy device information corresponding to the electronic device may be obtained through a function or the like carried by the electronic device itself, where the non-privacy device information may include device software information, such as an operating system version or the like, and the non-privacy device information may also include device hardware information used for determining the type of the electronic device, such as the number of CPUs, the model of the electronic device, and an instruction set identifier, and the device hardware information used for determining the type of the electronic device does not refer to privacy-related device hardware IMEI information, such as a MAC address of a network adapter, a hard disk serial number, a mobile phone, and the like.
In step 104, a type of the electronic device is determined according to the non-privacy device information, then the mapping list information is selected according to the type of the electronic device to obtain the required mapping list information, so as to further determine that a file path corresponding to the required mapping list information is a file path that is not deleted or reconstructed by the application software in the electronic device of the type, then the mapping list information is selected according to the type of the electronic device to obtain the required mapping list information, and a device identifier is determined according to the required mapping list information and the non-privacy device information. It will be appreciated that the files corresponding to the required mapping list avoid that files in the operating system of an electronic device of this kind will be deleted or reconstructed by the application software in certain situations, such as a restart of the electronic device, thereby making the determined device identification more accurate.
For convenience of understanding, a specific implementable scenario is provided below, in which the electronic device may be an a-model mobile phone, and the first request may come from inside the a-model mobile phone, and a preselected file path set including a plurality of preselected file paths in the a-model mobile phone is obtained in advance; firstly, obtaining a first request from the interior of a mobile phone with model A; then, after obtaining the first request, obtaining mapping list information corresponding to a preselected file path set in the mobile phone of the model A based on the preselected file path, and in addition, obtaining non-privacy equipment information corresponding to the mobile phone of the model A after obtaining the first request, such as an operating system version, the number of CPUs (central processing units), the type of the electronic equipment, an instruction set identifier and the like; and finally, determining the type of the electronic equipment as a mobile phone of the type A according to the non-privacy equipment information, selecting the mapping list information based on the type of the mobile phone of the type A to obtain the required mapping list information, and determining the equipment identifier according to the required mapping list information and the non-privacy equipment information.
Fig. 2 is a schematic flow chart illustrating a process of feeding back the device identifier to an internal server in the device identifier obtaining method according to the embodiment of the present invention.
Referring to fig. 2, in this embodiment, after determining the device identifier according to the mapping list information and the device information, the method further includes: step 201, feeding back the device identifier to the internal server.
In step 201, the electronic device includes an internal server, and after determining the device identifier, the device identifier may be fed back to the internal server. In the case where the electronic device includes an internal server, the first request may come from the internal server.
Fig. 3 is a schematic flowchart of sending the device identifier to the external server in the device identifier obtaining method according to the embodiment of the present invention.
Referring to fig. 3, in the embodiment, the electronic device is communicatively connected to the external server, and after determining the device identifier according to the mapping list information and the device information, the method further includes: step 301, sending the device identifier to an external server.
In step 301 of this embodiment, the external server may be in communication connection with a plurality of electronic devices, and after determining the device identifier, the device identifier may be sent to the external server, where the external server may be configured to receive the device identifier, and the external server may also be an electronic device configured to send the first request.
Fig. 4 is a schematic flowchart of obtaining mapping list information in an apparatus identifier obtaining method according to an embodiment of the present invention.
Referring to fig. 4, in the present embodiment, obtaining mapping list information corresponding to a preselected file path in an electronic device includes: step 401, selecting a file path according to an operating system corresponding to the electronic device to obtain a preselected file path; step 402, determining a preselected file according to a preselected file path; step 403, extracting index nodes from the preselected file to obtain index node information; step 404, mapping the preselected file paths and the index node information one by one to obtain mapping list information.
In step 401 of this embodiment, a required file path is determined from file paths including operating systems of all kinds of electronic devices by means of research, mathematical modeling, and the like, where the required file path is a file path corresponding to a file that is not deleted or reconstructed by application software in an operating system of any kind of electronic device, and the required file path is used to obtain a preselected file path, and the file path corresponding to the operating system is selected by means of mathematical modeling of the required file path to obtain the preselected file path.
In step 402, a specific pre-selected file can be determined according to each pre-selected file path.
In step 403 of this embodiment, index node information of the preselected file may be extracted through a function carried by the electronic device itself, mathematical modeling, and the like, so as to obtain index node information including an index number.
In step 404 of this embodiment, each pre-selected file path corresponds to one piece of corresponding index node information, and the pre-selected file path and the index node information are mapped one by one to obtain mapping list information. In one possible implementation, the plurality of preselected file paths may be a set of preselected file paths P = { P = { P }1, p2, …, pnIn which p isjFor each pre-selected file path; accordingly, the mapping list information may be N = { i = { i }1, i2, …, inIn which ijMapping list information corresponding to each pre-selected file path; i.e. ij=inode(pj), j=1,2,…,n。
Fig. 5 is a schematic flowchart of a process of obtaining a preselected file path in an apparatus identifier obtaining method according to an embodiment of the present invention.
Referring to fig. 5, in this embodiment, selecting a file path according to an operating system corresponding to an electronic device to obtain a preselected file path includes: step 501, acquiring trigger information; step 502, selecting a file path according to an operating system corresponding to the electronic device based on the trigger information, and obtaining a preselected file path.
In this embodiment, the trigger information used to trigger step 502 is obtained and used to determine the preselected file path. The trigger information may be from the internal server in the case where the electronic device includes the internal server, and the trigger information may be from the external server in the case where the electronic device is communicatively coupled to the external server. In one implementation, the trigger information is obtained periodically, and after the trigger information is obtained, the file path is selected according to an operating system corresponding to the electronic device, so as to obtain a pre-selected file path. In another implementation, in the case of a program code correction for obtaining a device identifier, after the correction, trigger information is obtained to obtain a preselected file path, and further, in the case of an application upgrade update for obtaining a device identifier, after the update, trigger information is obtained to obtain a preselected file path.
Fig. 6 is a schematic flowchart of obtaining an equipment identifier in an equipment identifier obtaining method according to an embodiment of the present invention.
Referring to fig. 6, in this embodiment, determining the device identifier according to the mapping list information and the non-privacy device information includes: 601, filtering the mapping list information based on the non-privacy equipment information to obtain to-be-processed mapping list information containing to-be-processed mapping values; step 602, determining a digest value according to the mapping list information to be processed and the non-privacy device information; step 603, encoding the digest value to obtain the device identifier.
In step 601 of this embodiment, mapping list information may be filtered through a mathematical model, each type of electronic device corresponds to a mathematical model, the type of the electronic device is determined according to non-privacy device information, a corresponding mathematical model is determined according to the type of the electronic device, and the mapping list information is filtered according to the corresponding mathematical model to obtain to-be-processed mapping list information including to-be-processed mapping values.
In step 602 of this embodiment, a string of intermediate data arranged in order, such as in a dictionary order, is determined according to the mapping list information to be processed and the non-privacy device information, and a digest value is calculated for the intermediate data through a digest algorithm to obtain a digest value corresponding to the intermediate data, where the digest algorithm may be the SHA256 algorithm, the SM3 algorithm, or other digest algorithms.
In step 603 of this embodiment, the digest value may be encoded in a hex encoding manner, etc., to obtain the device identifier.
Fig. 7 is a schematic flowchart illustrating a process of obtaining a digest value in an apparatus identifier obtaining method according to an embodiment of the present invention.
Referring to fig. 7, in this embodiment, determining a digest value according to the to-be-processed mapping list information and the non-privacy device information includes: step 701, according to the dictionary sequence, putting the mapping value to be processed into an empty character string buffer area to obtain an intermediate buffer area containing first data; step 702, according to the dictionary sequence, putting the information of the non-privacy equipment into the tail part of the middle buffer area to obtain a buffer area to be processed containing second data; and 703, determining a digest value according to the second data.
In this embodiment, according to the dictionary order, the mapping value to be processed in the mapping list to be processed is placed at the tail of the emptied character string buffer to obtain an intermediate buffer containing first data, then, according to the dictionary order, the non-privacy device information is placed at the tail of the intermediate buffer, that is, the non-privacy device information is placed behind the first data to obtain a buffer to be processed containing second data, and finally, the digest value calculation is performed on the second data through a digest algorithm to obtain the digest value, where the digest algorithm may be an SHA256 algorithm, an SM3 algorithm, or other digest algorithms.
For convenience of understanding, a more specific embodiment is provided below, in which the electronic device may be a mobile phone of model B, and the mobile phone of model B is in communication connection with the external server;
first obtaining a first request, wherein the first request is used for obtaining a device identifier, and the first request can be from an external server;
then, mapping list information corresponding to preselected file paths in the electronic device is obtained, specifically, the preselected file paths may be multiple, each preselected file determines one preselected file, index node information is performed on each preselected file, the index node information and the preselected file paths are mapped one by one, and mapping list information is obtained, wherein the multiple preselected file paths may be a set of preselected file paths P = { P =1, p2, …, pnIn which p isjFor each pre-selected file path; accordingly, the column is mappedThe table information may be N = { i = { [ i ]1, i2, …, inIn which ijMapping list information corresponding to each pre-selected file path; i.e. ij=inode(pj), j=1,2,…,n。
Then, obtaining non-privacy equipment information corresponding to the electronic equipment, such as an operating system version, the number of CPUs (central processing units), the type of the electronic equipment, an instruction set identifier and the like;
then, determining an equipment identifier according to the mapping list information and the non-privacy equipment information, specifically, determining the type of the electronic equipment according to the non-privacy equipment information, determining a corresponding mathematical model according to the type of the electronic equipment, filtering the mapping list information according to the corresponding mathematical model to obtain mapping list information to be processed containing mapping values to be processed, putting the mapping values to be processed in the mapping list to be processed into the tail part of an empty character string buffer area according to a dictionary sequence to obtain a middle buffer area containing first data, putting the non-privacy equipment information into the tail part of the middle buffer area according to the dictionary sequence to obtain a buffer area to be processed containing second data, performing abstract value calculation on the second data through an abstract algorithm to obtain an abstract value, and performing hex coding on the abstract value to obtain the equipment identifier;
finally, the device identification is sent to the external server.
Fig. 8 is a schematic block diagram of an apparatus for acquiring device identifier according to an embodiment of the present invention.
Referring to fig. 8, another aspect of the embodiments of the present invention provides an apparatus for acquiring an equipment identifier, where the apparatus is applied to an electronic device, and the apparatus includes: an obtaining module 801, configured to obtain a first request, where the first request is used to obtain a device identifier; an obtaining module 801, configured to obtain mapping list information corresponding to a preselected file path in an electronic device; an obtaining module 801, configured to obtain non-privacy device information corresponding to an electronic device; a determining module 802, configured to determine a device identifier according to the mapping list information and the non-privacy device information.
In one embodiment, the apparatus further comprises: and a feedback module 803, configured to feed back the device identifier to the internal server.
In one embodiment, the electronic device is communicatively coupled to an external server, and the apparatus further comprises: a sending module 804, configured to send the device identifier to an external server.
In one implementation, obtaining module 801 includes:
an obtaining sub-module 8011 configured to select a file path according to an operating system corresponding to the electronic device, and obtain a preselected file path;
a determining sub-module 8012 for determining preselected files according to a preselected file path;
the obtaining sub-module 8011 is further configured to perform index node extraction on the preselected file, and obtain index node information;
the obtaining sub-module 8011 is further configured to perform one-to-one mapping on the preselected file paths and the index node information, so as to obtain mapping list information.
In an embodiment, submodule 8011 is obtained, further comprising:
an obtaining unit 80111 configured to obtain triggering information;
the obtaining unit 80111 is further configured to select a file path according to an operating system corresponding to the electronic device based on the trigger information, and obtain a preselected file path.
In an embodiment, the determining module 802 further includes:
the filtering submodule 8021 is configured to filter the mapping list information based on the non-privacy-device information, and obtain to-be-processed mapping list information including to-be-processed mapping values;
the abstract submodule 8022 is configured to determine an abstract value according to the mapping list information to be processed and the non-privacy device information;
the encoding submodule 8023 is configured to encode the digest value to obtain the device identifier.
In one embodiment, abstract sub-module 8022 includes:
a buffer unit 80221, configured to place the mapping value to be processed into an empty string buffer according to a dictionary order, to obtain an intermediate buffer containing the first data;
the buffer area unit 80221 is further configured to place, according to the dictionary order, the non-privacy device information into the tail of the intermediate buffer area, and obtain a buffer area to be processed that includes the second data;
a digest unit 80222 for determining a digest value based on the second data.
An embodiment of the present invention further provides a computer-readable storage medium, where the storage medium includes a set of computer-executable instructions, and when the instructions are executed, the storage medium is configured to perform any one of the above-mentioned device identifier obtaining methods.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for acquiring device identification is applied to an electronic device, and comprises the following steps:
obtaining a first request, wherein the first request is used for obtaining a device identifier;
obtaining mapping list information corresponding to a preselected file path in the electronic equipment;
obtaining non-privacy device information corresponding to the electronic device;
filtering the mapping list information based on the non-privacy equipment information to obtain to-be-processed mapping list information containing to-be-processed mapping values;
determining a summary value according to the mapping list information to be processed and the non-privacy equipment information;
coding the abstract value to obtain a device identifier;
the determining a digest value according to the to-be-processed mapping list information and the non-privacy device information includes:
according to the dictionary sequence, putting the mapping value to be processed into an empty character string buffer area to obtain an intermediate buffer area containing first data;
according to the dictionary sequence, the information of the non-privacy equipment is placed at the tail part of the middle buffer area, and a buffer area to be processed containing second data is obtained;
and determining a digest value according to the second data.
2. The method of claim 1, wherein after determining the device identifier according to the mapping list information and the device information, the method further comprises:
and feeding back the equipment identification to an internal server.
3. The method of claim 1, wherein the electronic device is communicatively coupled to an external server, and wherein after determining the device identifier based on the mapping list information and the device information, the method further comprises:
and sending the equipment identification to the external server.
4. The method of claim 1, wherein obtaining mapping list information corresponding to a preselected file path in the electronic device comprises:
selecting a file path according to an operating system corresponding to the electronic equipment to obtain a preselected file path;
determining a preselected file according to the preselected file path;
extracting index nodes of the preselected file to obtain index node information;
and mapping the preselected file paths and the index node information one by one to obtain mapping list information.
5. The method of claim 4, wherein selecting the file path according to an operating system corresponding to the electronic device to obtain a preselected file path comprises:
acquiring trigger information;
and selecting a file path according to an operating system corresponding to the electronic equipment based on the trigger information to obtain a preselected file path.
6. An apparatus for acquiring device identification, the apparatus being applied to an electronic device, the apparatus comprising:
an obtaining module, configured to obtain a first request, where the first request is used to obtain a device identifier;
the obtaining module is further configured to obtain mapping list information corresponding to a preselected file path in the electronic device;
the obtaining module is further configured to obtain non-privacy device information corresponding to the electronic device;
the determining module is used for filtering the mapping list information based on the non-privacy equipment information to obtain to-be-processed mapping list information containing to-be-processed mapping values; determining a summary value according to the mapping list information to be processed and the non-privacy equipment information; coding the abstract value to obtain a device identifier;
the determining module is specifically configured to put the mapping value to be processed into an empty character string buffer according to a dictionary sequence, and obtain an intermediate buffer containing first data; according to the dictionary sequence, the information of the non-privacy equipment is placed at the tail part of the middle buffer area, and a buffer area to be processed containing second data is obtained; and determining a digest value according to the second data.
7. The apparatus of claim 6, further comprising:
and the feedback module is used for feeding back the equipment identifier to the internal server.
8. A computer-readable storage medium comprising a set of computer-executable instructions that, when executed, perform the device identification acquisition method of any one of claims 1-5.
CN202110364579.XA 2021-04-06 2021-04-06 Equipment identifier obtaining method and device and computer readable storage medium Active CN112733210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110364579.XA CN112733210B (en) 2021-04-06 2021-04-06 Equipment identifier obtaining method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110364579.XA CN112733210B (en) 2021-04-06 2021-04-06 Equipment identifier obtaining method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112733210A CN112733210A (en) 2021-04-30
CN112733210B true CN112733210B (en) 2021-07-09

Family

ID=75596410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110364579.XA Active CN112733210B (en) 2021-04-06 2021-04-06 Equipment identifier obtaining method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112733210B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413129A (en) * 2016-09-30 2017-02-15 北京小米移动软件有限公司 Method and device for binding terminal to intelligent equipment
CN110544128A (en) * 2019-09-04 2019-12-06 北京百度网讯科技有限公司 Channel information acquisition method and device, electronic equipment and storage medium
CN111045737A (en) * 2019-11-29 2020-04-21 惠州Tcl移动通信有限公司 Equipment identifier acquisition method and device, terminal equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202087B (en) * 2011-04-25 2015-04-01 中兴通讯股份有限公司 Method for identifying storage equipment and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413129A (en) * 2016-09-30 2017-02-15 北京小米移动软件有限公司 Method and device for binding terminal to intelligent equipment
CN110544128A (en) * 2019-09-04 2019-12-06 北京百度网讯科技有限公司 Channel information acquisition method and device, electronic equipment and storage medium
CN111045737A (en) * 2019-11-29 2020-04-21 惠州Tcl移动通信有限公司 Equipment identifier acquisition method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN112733210A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN110737658B (en) Data fragment storage method, device, terminal and readable storage medium
CN109831487B (en) Fragmented file verification method and terminal equipment
CN109814524B (en) Vehicle diagnosis method, device and system
CN109391673B (en) Method, system and terminal equipment for managing update file
CN105389177A (en) Software version confirmation method, device and system
CN111290779B (en) Gray release method and device, storage medium and electronic equipment
CN111343267B (en) Configuration management method and system
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN113535226B (en) Application downloading method, terminal, server, computer device and storage medium
CN113468118B (en) File increment storage method, device and storage medium based on blockchain
CN114020522A (en) Data backup method and device, electronic equipment and system
CN108133026B (en) Multi-data processing method, system and storage medium
CN113656098A (en) Configuration acquisition method and system
CN112733210B (en) Equipment identifier obtaining method and device and computer readable storage medium
CN110806979B (en) Interface return value checking method, device, equipment and storage medium
CN110505289B (en) File downloading method and device, computer readable medium and wireless communication equipment
CN112286565A (en) Embedded system differential upgrading method based on storage container
JP6992309B2 (en) Transmitter, receiver, and communication method
CN112527276B (en) Data updating method and device in visual programming tool and terminal equipment
CN113986296A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN111538651A (en) Interface testing method, device, server and storage medium
CN109962883B (en) Information indication method, network equipment and user equipment
CN112966764B (en) Pattern comparison method and device
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
CN106021367B (en) Method and terminal for searching backup data

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
GR01 Patent grant
GR01 Patent grant