Fingerprint generation method and device, application relation identification method and device, equipment and medium
By receiving album feature information sent by the application and generating device fingerprints, the difficulty of cross-application identification caused by the operating system's restriction on obtaining device unique identification is solved, and device identification is achieved without infringing on user privacy.
Patent Information
- Application Number
- CN202412000051.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-23
AI Technical Summary
As the operating system restricts the acquisition of device unique identification, it becomes difficult to identify user devices across applications, affecting business scenarios such as identifying whether a user uses multiple applications on the same device or switches between different devices.
By receiving album feature information sent by the application, the device fingerprint is generated according to the preset fingerprint generation strategy to realize device recognition. This method collects and uses album feature information that the application has the permission to collect, without infringing on user privacy.
It realizes the generation of device fingerprints without infringing user privacy, and then identifies devices without infringing user privacy, solving the difficulty of identifying user equipment across applications.
Smart Images

Figure CN120030613A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a fingerprint generation and application program relationship identification method, device, equipment and medium. Background Art
[0002] Device fingerprint refers to the device characteristics or device identification used to uniquely identify an electronic device. Device fingerprints include some inherent, difficult to tamper with, and unique device identifications, such as IMEI (International Mobile Equipment Identity), MAC address (Media Access Control Address), UUID (Universally Unique Identifier), etc. At present, applications (Application, referred to as APP) installed on electronic devices mainly obtain the device unique identification through the operating system interface of the electronic device as a device fingerprint. However, with the increasingly stringent relevant regulations, operating systems (such as iOS and Android) have prohibited applications from obtaining these unique identifications through system interfaces, making it difficult to identify user devices across applications, affecting certain business scenarios, such as identifying whether a user is using multiple applications on the same device, or identifying whether a user is switching between different devices. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present invention provide a fingerprint generation and application relationship identification method, device, equipment and medium.
[0004] In a first aspect, an embodiment of the present invention provides a fingerprint generation method, which is applied to a server, comprising:
[0005] Receiving file information sent by an application installed on the current device, the file information including album characteristic information of the current device collected by the application; the album characteristic information is collected by the application after obtaining the album characteristic information collection permission of the current device;
[0006] A device fingerprint corresponding to the current device is generated according to a preset fingerprint generation strategy and the album feature information.
[0007] Optionally, the album feature information includes feature information of objects in the album of the current device; generating a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the album feature information includes: performing a hash operation on the feature information of each object in the album feature information of the album of the current device according to a preset hash algorithm to obtain multiple hash values; and using a hash value sequence composed of all hash values and / or a hash value sequence composed of some hash values among the multiple hash values as the device fingerprint corresponding to the current device.
[0008] Optionally, using a hash value sequence consisting of some hash values among the multiple hash values as the device fingerprint corresponding to the current device includes: screening out one or more key hash values from the multiple hash values, and using the hash value sequence consisting of the one or more key hash values as the device fingerprint corresponding to the current device.
[0009] Optionally, generating a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the album feature information includes: screening out key objects from multiple objects in the album according to feature information of each object in the album feature information of the current device; generating a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the feature information of the key objects.
[0010] Optionally, the characteristic information of the object includes at least one of name, pixel information, production time and size.
[0011] In a second aspect, an embodiment of the present invention provides an application relationship identification method, which is applied to a server, and includes:
[0012] Receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, the first album feature information being collected by the first application with permission to collect album feature information of the first device; the second file information includes second album feature information of a second device corresponding to the second application collected by the second application, the second album feature information being collected by the second application with permission to collect album feature information of the second device;
[0013] Generate a first device fingerprint corresponding to the first device according to a preset fingerprint generation strategy and the first album feature information, and generate a second device fingerprint corresponding to the second device according to a preset fingerprint generation strategy and the second album feature information;
[0014] When the first device fingerprint and the second device fingerprint are the same, it is determined that the first device and the second device are the same device, and the first application and the second application are installed on the same device.
[0015] Optionally, the method also includes: when the first device fingerprint and the second device fingerprint are different, obtaining first user information corresponding to the first application and second user information corresponding to the second application; when the identification information of the first application is the same as the identification information of the second application, and the first user information and the second user information are the same, determining that the first application and the second application are the same application, and that the same user uses the same application on different devices.
[0016] Optionally, the first device fingerprint includes a first hash value sequence, and the second device fingerprint includes a second hash value sequence;
[0017] The method further includes: determining that the first device fingerprint is the same as the second device fingerprint when a proportion of the same hash values in the first hash value sequence and the second hash value sequence is greater than or equal to a threshold.
[0018] Optionally, when the first user information corresponding to the first application is bound to one or more third device fingerprints, the method further includes: screening the first device fingerprint and the same hash value among the one or more third device fingerprints; and when the second device fingerprint includes the same hash value, determining that the first device fingerprint and the second device fingerprint are the same.
[0019] In a third aspect, an embodiment of the present invention provides a fingerprint generation device, which is applied to a server, including:
[0020] A first receiving module is used to receive file information sent by an application installed on the current device, wherein the file information includes album feature information of the current device collected by the application; the album feature information is collected by the application after obtaining the album feature information collection permission of the current device;
[0021] The first generating module is used to generate a device fingerprint corresponding to the current device according to a preset fingerprint generating strategy and the album feature information.
[0022] Optionally, the album feature information includes feature information of objects in the album of the current device; the first generation module is used to: perform hash operation on the feature information of each object in the album feature information of the album of the current device according to a preset hash algorithm to obtain multiple hash values; and use a hash value sequence composed of all hash values and / or a hash value sequence composed of some hash values among the multiple hash values as the device fingerprint corresponding to the current device.
[0023] Optionally, the first generating module is used to: filter out one or more key hash values from the multiple hash values, and use a hash value sequence consisting of the one or more key hash values as a device fingerprint corresponding to the current device.
[0024] Optionally, the first generating module is used to: filter out key objects from multiple objects in the album of the current device according to the characteristic information of each object in the album characteristic information of the album; and generate a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the characteristic information of the key objects.
[0025] Optionally, the characteristic information of the object includes at least one of name, pixel information, production time and size.
[0026] In a fourth aspect, an embodiment of the present invention provides an application relationship identification device, which is applied to a server, and includes:
[0027] A second receiving module is used to receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, and the first album feature information is collected by the first application with the permission to collect album feature information of the first device; the second file information includes second album feature information of a second device corresponding to the second application collected by the second application, and the second album feature information is collected by the second application with the permission to collect album feature information of the second device;
[0028] a second generating module, configured to generate a first device fingerprint corresponding to the first device according to a preset fingerprint generating strategy and the first album characteristic information, and to generate a second device fingerprint corresponding to the second device according to a preset fingerprint generating strategy and the second album characteristic information;
[0029] The identification module is used to determine that the first device and the second device are the same device, and the first application and the second application are installed on the same device when the first device fingerprint and the second device fingerprint are the same.
[0030] Optionally, the identification module is also used to: when the first device fingerprint and the second device fingerprint are different, obtain first user information corresponding to the first application and second user information corresponding to the second application; when the identification information of the first application is the same as the identification information of the second application, and the first user information and the second user information are the same, determine that the first application and the second application are the same application, and that the same user uses the same application on different devices.
[0031] Optionally, the first device fingerprint includes a first hash value sequence, and the second device fingerprint includes a second hash value sequence;
[0032] The identification module is further configured to: determine that the first device fingerprint is the same as the second device fingerprint when a proportion of the same hash values in the first hash value sequence and the second hash value sequence is greater than or equal to a threshold.
[0033] Optionally, when the first user information corresponding to the first application is bound to one or more third device fingerprints, the identification module is further used to: screen the first device fingerprint and the same hash value among the one or more third device fingerprints; and when the second device fingerprint includes the same hash value, determine that the first device fingerprint and the second device fingerprint are the same.
[0034] In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to implement the fingerprint generation method or application relationship identification method provided by any embodiment of the present invention when executing the program stored in the memory.
[0035] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the fingerprint generation method or application program relationship identification method of any embodiment of the present invention.
[0036] The technical solution provided by the present method embodiment brings at least the following beneficial effects:
[0037] The fingerprint generation method provided by the embodiment of the present invention receives file information sent by an application installed on the current device, the file information includes album feature information of the current device collected by the application; the album feature information is collected by the application when obtaining the album feature information collection authority of the current device; according to the preset fingerprint generation strategy and the album feature information, a device fingerprint corresponding to the current device is generated. The method generates a device fingerprint based on the album feature information collected by the application with collection authority, realizes the generation of a device fingerprint without infringing the user's privacy, and further realizes device identification without infringing the user's privacy.
[0038] The application identification method provided by the embodiment of the present invention generates a first device fingerprint corresponding to the first device based on the first album feature information sent by the first application and a preset fingerprint generation strategy, and generates a second device fingerprint corresponding to the second device based on the second album feature information sent by the second application and a preset fingerprint generation strategy; the first album feature information is collected by the first application when obtaining the album feature information collection authority of the first device, and the second album feature information is collected by the second application when obtaining the album feature information collection authority of the second device; when the first device fingerprint and the second device fingerprint are the same, it is determined that the first device and the second device are the same device, and the first application and the second application are installed on the same device. The method generates a first device fingerprint based on the first album feature information collected by the first application with collection authority, and generates a second device fingerprint based on the second album feature information collected by the second application with collection authority, so as to realize the generation of the first device fingerprint corresponding to the first device and the second device fingerprint corresponding to the second device respectively without infringing the user's privacy, and identifies whether the first device and the second device are the same device through the first device fingerprint and the second device fingerprint, so as to realize cross-application device identification without infringing the user's privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0040] Figure 1 A schematic diagram showing a flow chart of a fingerprint generation method according to an embodiment of the present invention;
[0041] Figure 2 A schematic diagram showing a flow chart of a method for identifying application relationships according to an embodiment of the present invention;
[0042] Figure 3 A schematic diagram showing a flow chart of an application relationship identification method according to another embodiment of the present invention;
[0043] Figure 4 A schematic diagram showing the flow of a fingerprint generating device according to an embodiment of the present invention is shown;
[0044] Figure 5 A schematic diagram showing the structure of an application relationship identification device according to an embodiment of the present invention is shown;
[0045] Figure 6 A schematic structural diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0047] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.
[0048] Figure 1 The flowchart of the fingerprint generation method provided by the embodiment of the present invention is shown. The method can be applied to the server. The server can be, for example, an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server, etc., which is not limited in the present invention.
[0049] like Figure 1 As shown, the fingerprint generation method includes:
[0050] Step S101: receiving file information sent by an application installed on the current device, the file information including album feature information of the current device collected by the application, the album feature information being collected by the application after obtaining the album feature information collection authority of the current device.
[0051] Optionally, the current device may include, but is not limited to, electronic devices such as smart phones, tablet computers, laptops, and smart wearable devices. One or more applications may be installed on the current device, and the one or more applications collect the album feature information when obtaining the album feature information collection permission of the current device. The album feature information may include the feature information of all objects in the album of the current device or the feature information of some objects. The object may include, for example, photos, pictures, and videos. Pictures may include pictures generated by screenshots and pictures downloaded from the Internet. Photos and videos may include photos and videos taken by users, or photos and videos received or downloaded by users. This application does not limit the source of objects in user albums. The feature information of an object may include, for example, a name (the name may be a name generated by the operating system of the current device for the object, or a name customized by the user for the object), pixel information, production time (such as shooting time, download time, or screenshot time, etc.), and size. For example, the size of a picture is 344KB (kilobytes) and the size of a video is 19.6MB (megabytes).
[0052] Optionally, in one embodiment, after collecting the feature information of all objects or some objects (e.g., feature information of key objects) in the album, the application sends the feature information of all objects or some objects as file information to the server. Optionally, after collecting the feature information of all objects or some objects in the album, the application sorts the feature information of all objects or some objects in the order of the production time of the objects to obtain a feature information sequence, and sends the feature information sequence as file information of the album feature information to the server.
[0053] The present application is described below by taking the example that after the application has collected the feature information of all objects in the album, it sorts the feature information of all objects in the order of the production time of the objects to obtain a feature information sequence, and sends the feature information sequence as the file information of the album feature information to the server. Among them, after the application has collected the feature information of some objects in the album, it sorts the feature information of some objects in the order of the production time of the objects to obtain a feature information sequence, and sends the feature information sequence as the file information of the album feature information to the server. The server's processing of the album feature information including the feature information of some objects is similar to the server's processing of the album feature information including the feature information of all objects, which will not be repeated below.
[0054] Step S102: Generate a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and album feature information.
[0055] The preset fingerprint generation strategy is used to instruct to calculate the album feature information in a preset manner, and use the calculation result as the device fingerprint. Optionally, the preset fingerprint generation strategy converts the information sequence composed of the feature information of all objects in the album feature information received by the server to obtain a character string of a specified length, and uses the character string of the specified length as the device fingerprint. As an optional example, the information sequence composed of the feature information of all objects in the album feature information received by the server can be calculated based on a hash algorithm to obtain a hash value, and use the hash value as the device fingerprint. Among them, Hash is also called hashing, which refers to converting an input of any length into an output of a fixed length through a hash algorithm, and the output value is the hash value (also called hash value).
[0056] The fingerprint generation method provided by the embodiment of the present invention receives file information sent by an application installed on the current device, the file information includes album feature information of the current device collected by the application; the album feature information is collected by the application when obtaining the album feature information collection authority of the current device; according to the preset fingerprint generation strategy and the album feature information, a device fingerprint corresponding to the current device is generated. The method generates a device fingerprint based on the album feature information collected by the application with collection authority, realizes the generation of a device fingerprint without infringing the user's privacy, and further realizes device identification without infringing the user's privacy.
[0057] The server generates multiple device fingerprints based on the album feature information sent by each application. The server compares the multiple device fingerprints to determine whether the devices where the applications are located are the same device. If the device fingerprints are the same, it is determined that the devices where the applications are located are the same device, and multiple applications are installed on the device. If the device fingerprints are not the same, it is determined that the devices where the applications are located are not the same device. In an optional embodiment, the device fingerprint can be bound to the application, and the corresponding relationship between the device fingerprint and the application can be recorded in a preset data table. If the device fingerprints corresponding to multiple applications are the same, it can be determined that the multiple applications are installed on the same device. Then, data statistics are performed based on the corresponding relationship recorded in the data table, for example, with the device fingerprint as the statistical granularity, the application corresponding to the device fingerprint is counted, so as to determine the application installed on the device corresponding to the device fingerprint. For another example, the corresponding relationship between the device fingerprint, the application and the user information of the application can be recorded in a preset data table. With the user information as the statistical granularity, one or more device fingerprints corresponding to the application associated with the user information are counted, so as to determine whether the user corresponding to the user information uses the application on different devices.
[0058] In some optional embodiments, the process of generating a device fingerprint in step S102 may include:
[0059] According to a preset hash algorithm, a hash operation is performed on the feature information of each object in the album feature information of the album of the current device to obtain multiple hash values.
[0060] A hash value sequence consisting of all hash values and / or a hash value sequence consisting of some hash values among the multiple hash values is used as a device fingerprint corresponding to the current device.
[0061] Among them, using a hash value sequence composed of some hash values in multiple hash values as the device fingerprint corresponding to the current device includes: screening out one or more key hash values from multiple hash values, and using the hash value sequence composed of one or more key hash values as the device fingerprint corresponding to the current device. For example, the key hash value can be screened according to the characteristic information of the object, such as the name, and the hash value corresponding to the object whose name is a custom name is used as the key hash value. Optionally, in the case where the operating system of the current device generates different names for photos taken, pictures generated by screenshots, pictures downloaded from the Internet, and videos, the type of the object can be identified according to the name of the object, for example, the type of the object is identified as a photo, or, the type of the object is identified as a picture generated by a screenshot, or, the type of the object is identified as a picture downloaded from the Internet, or, the type of the object is identified as a video. The hash value corresponding to the object of the specified type is used as the key hash value, for example, only the hash value corresponding to the object of the type of photo is used as the key hash value.
[0062] In some other optional embodiments, the process of generating a device fingerprint in step S102 may include:
[0063] According to the characteristic information of each object in the album characteristic information of the album of the current device, a key object is screened out from multiple objects in the album. According to a preset fingerprint generation strategy and the characteristic information of the key object, a device fingerprint corresponding to the current device is generated.
[0064] Optionally, key objects can be filtered based on the name of the photo, for example, an object with a custom name is used as a key object. Optionally, key objects can be filtered based on the time when the photo was generated, for example, photos that are a certain time interval away from the current time interval are used as key objects. Optionally, in the case where the operating system of the current device generates different names for photos taken, pictures generated by screenshots, pictures downloaded from the Internet, and videos, the type of the object can be identified based on the name of the object, for example, the type of the object is identified as a photo, or, the type of the object is identified as a picture generated by a screenshot, or, the type of the object is identified as a picture downloaded from the Internet, or, the type of the object is identified as a video. Objects of specified types are used as key objects, for example, only objects of type photo are used as key objects.
[0065] According to a preset hash algorithm, a hash operation is performed on the characteristic information of each key object to obtain multiple hash values, and a hash value sequence composed of the multiple hash values is used as the device fingerprint corresponding to the current device.
[0066] Figure 2 FIG. 2 is a flow chart showing a method for identifying application relationships according to an embodiment of the present invention. Figure 2 As shown, the method includes:
[0067] Step S201: Receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, and the second file information includes second album feature information of a second device corresponding to the second application collected by the second application. The first album feature information is collected by the first application with permission to collect album feature information of the first device; the second album feature information is collected by the second application with permission to collect album feature information of the second device.
[0068] Step S202: Generate a first device fingerprint corresponding to the first device according to a preset fingerprint generation strategy and the first album feature information, and generate a second device fingerprint corresponding to the second device according to a preset fingerprint generation strategy and the second album feature information.
[0069] Step S203: When the first device fingerprint and the second device fingerprint are the same, determine that the first device and the second device are the same device, and that the first application and the second application are installed on the same device.
[0070] Among them, the process of generating the first device fingerprint and the second device fingerprint in step S201-step S202 is the same as the process of generating the device fingerprint in step S101-step S102. For example, the first album feature information may include the feature information of all objects or the feature information of some objects in the album of the first device, and the object may include, for example, photos, pictures and videos, pictures may include pictures generated by screenshots and pictures downloaded from the Internet, photos and videos may include photos and videos taken by users, or photos and videos received or downloaded by users, and the present application does not limit the source of objects in the user album. The second album feature information includes the feature information of all objects or the feature information of some objects in the album of the second device, and the object may include, for example, photos, pictures and videos, pictures may include pictures generated by screenshots and pictures downloaded from the Internet, photos and videos may include photos and videos taken by users, or photos and videos received or downloaded by users, and the present application does not limit the source of objects in the user album. The feature information of the object includes, for example, at least one of the name (the name may be the name generated for the object by the operating system of the current device, or the name customized by the user for the object), pixel information, production time (such as shooting time, download time or screenshot time) and size. Then, the first device fingerprint and the second device fingerprint are generated using the same fingerprint generation strategy and the same album feature information. For example, the first device fingerprint is generated using the name and size information of each object in the album of the first device, and the name and size information of each object in the album of the second device is also needed to generate the second device fingerprint. The first device fingerprint includes a first hash value sequence, and the second device fingerprint includes a second hash value sequence.
[0071] For step S203, in an optional embodiment, it can be determined whether the first hash value sequence and the second hash value sequence are the same based on the number of the same hash values in the first hash value sequence and the second hash value sequence. For example, if the proportion of the same hash values in the first hash value sequence and the second hash value sequence is greater than or equal to a threshold, it is determined that the first device fingerprint and the second device fingerprint are the same.
[0072] If the first device fingerprint and the second device fingerprint are the same, it means that the object feature information collected by the first application and the second application is the same, the first application and the second application are installed on the same device, and the first device and the second device are the same device.
[0073] The application identification method provided by the embodiment of the present invention generates a first device fingerprint based on first album feature information collected by a first application with collection authority, and generates a second device fingerprint based on second album feature information collected by a second application with collection authority, thereby respectively generating a first device fingerprint corresponding to the first device and a second device fingerprint corresponding to the second device without infringing on user privacy, and identifying whether the first device and the second device are the same device through the first device fingerprint and the second device fingerprint, thereby realizing cross-application device identification without infringing on user privacy.
[0074] Taking photos as an example, in some optional implementation scenarios, users will synchronize certain photos (such as photos that are important to the user or photos that have special significance) to different devices (recorded as device A and device B). When the device fingerprints of device A and device B are generated using the characteristic information of the photos (for example, the device fingerprint of device A is recorded as fingerprint 1, and the device fingerprint of device B is recorded as fingerprint 2), fingerprint 1 and fingerprint 2 include the same hash value. If the user updates the photos of device A, such as adding new photos or deleting some unimportant photos (at this time, device A also includes photos that are important to the user or photos that have special significance), when the device fingerprint of device A is generated using the updated photos (for example, the generated device fingerprint is recorded as fingerprint 3), fingerprint 3 also includes the hash value corresponding to the characteristic information of the above-mentioned important photos or photos that have special significance, that is, fingerprint 3 includes the same hash value in the above-mentioned fingerprint 1 and fingerprint 2. Therefore, although fingerprint 3 is not exactly the same as fingerprint 1, the device corresponding to fingerprint 3 is the same device as the device corresponding to fingerprint 1.
[0075] Therefore, in other optional embodiments, whether the first device fingerprint is the same as the second device fingerprint may be determined according to the following process:
[0076] When the first user information corresponding to the first application is bound to one or more third device fingerprints, the same hash value between the first device fingerprint and the one or more third device fingerprints is screened out; when the second hash value sequence includes the same hash value, it is determined that the first device fingerprint and the second device fingerprint are the same.
[0077] Among them, the first user information corresponding to the first application may include, for example, the account number and password used by the user to log in to the first application. If the first application is an application that requires real-name authentication, the first user information may also include the user's identity information. If the first user information corresponding to the first application is bound to one or more third device fingerprints, it means that the user corresponding to the first application uses the same user information on different devices to use the first application. If the first device fingerprint and the third device fingerprint have the same hash value, it means that the same photos (for example, photos that are important to the user or photos that have special significance) exist in the device corresponding to the first device fingerprint and the device corresponding to the third device fingerprint. If the second device fingerprint also includes the hash value corresponding to the characteristic information of the above-mentioned photos that are important to the user or photos that have special significance, it means that the second device fingerprint is the same as the first device fingerprint.
[0078] In an optional embodiment, before comparing the first device fingerprint and the second device in step S203, the basic device information of the first device and the second device may also be compared. The basic device information includes, for example, the operating system type, the operating system version, the memory space, the processor model, and the display screen size. Before comparing the first device fingerprint and the second device fingerprint, compare the basic device information, for example, compare the operating system types of the first device and the second device. If the operating system types of the first device and the second device are different (for example, the operating system of the first device is the IOS system, and the operating system of the second device is the Android system), it can be directly stated that the first device and the second device are different devices, and it is not necessary to compare the first device fingerprint and the second device fingerprint to determine that the two devices are different devices. If the operating system types of the first device and the second device are the same, the first device fingerprint and the second device fingerprint are further compared to determine whether the first device and the second device are the same device.
[0079] Figure 3 FIG. 2 is a flow chart showing a method for identifying application relationships according to an embodiment of the present invention. Figure 3 As shown, the method includes:
[0080] Step S301: Receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, and the second file information includes second album feature information of a second device corresponding to the second application collected by the second application. The first album feature information is collected by the first application with permission to collect album feature information of the first device; the second album feature information is collected by the second application with permission to collect album feature information of the second device.
[0081] Step S302: Generate a first device fingerprint corresponding to the first device according to a preset fingerprint generation strategy and the first album feature information, and generate a second device fingerprint corresponding to the second device according to a preset fingerprint generation strategy and the second album feature information.
[0082] Step S303: When the first device fingerprint and the second device fingerprint are the same, determine that the first device and the second device are the same device, and that the first application and the second application are installed on the same device.
[0083] Step S304: when the first device fingerprint and the second device fingerprint are different, obtaining first user information corresponding to the first application and second user information corresponding to the second application.
[0084] Step S305: When the identification information of the first application is the same as the identification information of the second application, and the first user information is the same as the second user information, determine that the first application and the second application are the same application, and that the same user uses the same application on different devices.
[0085] Among them, steps S301-S303 and Figure 2 The embodiments shown are the same, and to avoid repetition, the present invention will not be described again.
[0086] For steps S304-S305, the first user information corresponding to the first application may, for example, include the account and password used by the user to log in to the first application. If the first application is an application that requires real-name authentication, the first user information may also include the user's identity information. Similarly, the second user information corresponding to the second application may also include the account, password, and identity information used by the user to log in to the second application. If the first device fingerprint is different from the second device fingerprint, and the identification information of the first application is the same as the identification information of the second application, then the first application and the second application are the same application on different devices. If the first user information is the same as the second user information, it means that the same user is using the same application on different devices. If the first user information is different from the second user information, it means that different users are using the same application on different devices.
[0087] The application identification method provided by the embodiment of the present invention generates a first device fingerprint corresponding to the first device based on the first album feature information sent by the first application and a preset fingerprint generation strategy, and generates a second device fingerprint corresponding to the second device based on the second album feature information sent by the second application and the preset fingerprint generation strategy; when the first device fingerprint and the second device fingerprint are the same, it is determined that the first device and the second device are the same device, and the first application and the second application are installed on the same device; when the first device fingerprint and the second device fingerprint are different, the identification information of the first application is the same as the identification information of the second application, and the first user information and the second user information are the same, it is determined that the first application and the second application are the same application, and the same user uses the same application on different devices. The method generates a first device fingerprint based on the first album feature information collected by the first application with collection authority, and generates a second device fingerprint based on the second album feature information collected by the second application with collection authority, so as to realize the generation of the first device fingerprint corresponding to the first device and the second device fingerprint corresponding to the second device respectively without infringing the user's privacy, and identifies whether the first device and the second device are the same device through the first device fingerprint and the second device fingerprint, so as to realize the identification of whether the user uses multiple applications on the same device or switches between different devices without infringing the user's privacy.
[0088] Figure 4 The structure diagram of the fingerprint generation device according to the embodiment of the present invention is shown. The fingerprint generation device is applied to the server. Figure 4 As shown, the fingerprint generating device 400 may include:
[0089] The first receiving module 401 is used to receive file information sent by an application installed on the current device, wherein the file information includes album feature information of the current device collected by the application; the album feature information is collected by the application after obtaining the album feature information collection permission of the current device;
[0090] The first generating module 402 is used to generate a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the album feature information.
[0091] Optionally, the album feature information may include feature information of all objects or some objects in the album of the current device; the first generation module is used to: perform hash operation on the feature information of each object in the album feature information of the album of the current device according to a preset hash algorithm to obtain multiple hash values; and use a hash value sequence composed of all hash values and / or a hash value sequence composed of some hash values among the multiple hash values as the device fingerprint corresponding to the current device.
[0092] Optionally, the first generating module may be used to: filter out one or more key hash values from the multiple hash values, and use a hash value sequence consisting of the one or more key hash values as a device fingerprint corresponding to the current device.
[0093] Optionally, the first generation module can be used to: filter out key objects from multiple objects in the album of the current device based on the feature information of each object in the album feature information of the album; and generate a device fingerprint corresponding to the current device based on a preset fingerprint generation strategy and the feature information of the key objects.
[0094] Optionally, the feature information of the object may include at least one of name, pixel information, production time and size.
[0095] Figure 5 The schematic diagram of the structure of the application relationship identification device according to the embodiment of the present invention is shown. The application relationship identification device is applied to the server. Figure 5 As shown, the application relationship identification device 500 may include:
[0096] The second receiving module 501 is used to receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, and the first album feature information is collected by the first application with the permission to collect album feature information of the first device; the second file information includes second album feature information of a second device corresponding to the second application collected by the second application, and the second album feature information is collected by the second application with the permission to collect album feature information of the second device;
[0097] A second generating module 502, configured to generate a first device fingerprint corresponding to the first device according to a preset fingerprint generation strategy and the first album feature information, and to generate a second device fingerprint corresponding to the second device according to a preset fingerprint generation strategy and the second album feature information;
[0098] The identification module 503 is used to determine that the first device and the second device are the same device, and the first application and the second application are installed on the same device when the first device fingerprint and the second device fingerprint are the same.
[0099] Optionally, the identification module may also be used to: when the first device fingerprint and the second device fingerprint are different, obtain first user information corresponding to the first application and second user information corresponding to the second application;
[0100] When the identification information of the first application is the same as the identification information of the second application, and the first user information is the same as the second user information, it is determined that the first application and the second application are the same application, and the same user uses the same application on different devices.
[0101] Optionally, the first device fingerprint may include a first hash value sequence, and the second device fingerprint may include a second hash value sequence;
[0102] The identification module may also be configured to determine that the first device fingerprint is the same as the second device fingerprint when a proportion of the same hash values in the first hash value sequence and the second hash value sequence is greater than or equal to a threshold.
[0103] Optionally, when the first user information corresponding to the first application is bound to one or more third device fingerprints, the identification module can also be used to: screen the first device fingerprint and the same hash value among the one or more third device fingerprints; and when the second device fingerprint includes the same hash value, determine that the first device fingerprint and the second device fingerprint are the same.
[0104] The above device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0105] Figure 6 FIG. 1 is a schematic diagram showing the structure of an electronic device according to an embodiment of the present invention. Figure 6 As shown, the electronic device includes:
[0106] Processor 601, communication interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 communicate with each other via communication bus 604.
[0107] Memory 603, used for storing computer programs;
[0108] The processor 601 is used to implement the fingerprint generation method or application program relationship identification method provided by any embodiment of the present invention when executing the program stored in the memory 603.
[0109] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0110] The communication interface is used for communication between the above terminal and other devices.
[0111] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0112] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0113] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes any of the methods described in the above embodiments.
[0114] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer is enabled to execute any of the methods described in the above embodiments.
[0115] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0116] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0117] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0118] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A fingerprint generation method, characterized in that: Applied to the server, including: Receiving file information sent by an application installed on the current device, the file information including album characteristic information of the current device collected by the application; the album characteristic information is collected by the application after obtaining the album characteristic information collection permission of the current device; A device fingerprint corresponding to the current device is generated according to a preset fingerprint generation strategy and the album feature information.
2. The method according to claim 1, characterized in that The album feature information includes feature information of objects in the album of the current device; and generating a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the album feature information includes: According to a preset hash algorithm, a hash operation is performed on the feature information of each object in the album feature information of the album of the current device to obtain multiple hash values; A hash value sequence consisting of all hash values and / or a hash value sequence consisting of some hash values among the multiple hash values is used as a device fingerprint corresponding to the current device.
3. The method according to claim 2, characterized in that Using a hash value sequence composed of some hash values among the multiple hash values as a device fingerprint corresponding to the current device includes: One or more key hash values from the multiple hash values are screened out, and a hash value sequence consisting of the one or more key hash values is used as a device fingerprint corresponding to the current device.
4. The method according to any one of claims 1 to 3, characterized in that: The step of generating a device fingerprint corresponding to the current device according to a preset fingerprint generation strategy and the album feature information includes: Filtering out key objects from a plurality of objects in the album according to feature information of each object in the album feature information of the current device; A device fingerprint corresponding to the current device is generated according to a preset fingerprint generation strategy and the feature information of the key object.
5. The method according to claim 2, characterized in that: The feature information of the object includes at least one of name, pixel information, production time and size.
6. A method for identifying application relationships, characterized in that: Applied to the server, including: Receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, the first album feature information being collected by the first application with permission to collect album feature information of the first device; the second file information includes second album feature information of a second device corresponding to the second application collected by the second application, the second album feature information being collected by the second application with permission to collect album feature information of the second device; Generate a first device fingerprint corresponding to the first device according to a preset fingerprint generation strategy and the first album feature information, and generate a second device fingerprint corresponding to the second device according to a preset fingerprint generation strategy and the second album feature information; When the first device fingerprint and the second device fingerprint are the same, it is determined that the first device and the second device are the same device, and the first application and the second application are installed on the same device.
7. The method according to claim 6, characterized in that The method further comprises: When the first device fingerprint and the second device fingerprint are different, obtaining first user information corresponding to the first application and second user information corresponding to the second application; When the identification information of the first application is the same as the identification information of the second application, and the first user information is the same as the second user information, it is determined that the first application and the second application are the same application, and the same user uses the same application on different devices.
8. The method according to claim 6, characterized in that The first device fingerprint includes a first hash value sequence, and the second device fingerprint includes a second hash value sequence; The method further comprises: When the proportion of the same hash values in the first hash value sequence and the second hash value sequence is greater than or equal to a threshold, it is determined that the first device fingerprint is the same as the second device fingerprint.
9. The method according to claim 6, characterized in that In the case where the first user information corresponding to the first application is bound to one or more third device fingerprints, the method further includes: Filter the first device fingerprint and the one or more third device fingerprints for the same hash value; In a case where the second device fingerprint includes the same hash value, it is determined that the first device fingerprint and the second device fingerprint are the same.
10. A fingerprint generating device, characterized in that: Applied to the server, including: A first receiving module is used to receive file information sent by an application installed on the current device, wherein the file information includes album feature information of the current device collected by the application; the album feature information is collected by the application after obtaining the album feature information collection permission of the current device; The first generating module is used to generate a device fingerprint corresponding to the current device according to a preset fingerprint generating strategy and the album feature information.
11. An application relationship identification device, characterized in that: Applied to the server, including: A second receiving module is used to receive first file information sent by a first application and second file information sent by a second application; the first file information includes first album feature information of a first device corresponding to the first application collected by the first application, and the first album feature information is collected by the first application with the permission to collect album feature information of the first device; the second file information includes second album feature information of a second device corresponding to the second application collected by the second application, and the second album feature information is collected by the second application with the permission to collect album feature information of the second device; a second generating module, configured to generate a first device fingerprint corresponding to the first device according to a preset fingerprint generating strategy and the first album characteristic information, and to generate a second device fingerprint corresponding to the second device according to a preset fingerprint generating strategy and the second album characteristic information; The identification module is used to determine that the first device and the second device are the same device, and the first application and the second application are installed on the same device when the first device fingerprint and the second device fingerprint are the same.
12. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, configured to implement the method according to any one of claims 1 to 9 when executing a program stored in a memory.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.