A method, device and medium for updating a mapping table of a mobile terminal ID
By obtaining and updating the initial mapping table and current fingerprint list of the mobile terminal, the problems of insufficient personal information protection and excessive forged traffic in the existing device identification design are solved, and the accurate update of mobile terminal ID and the protection of associated ID are achieved, which improves the security of user information and the conditions for healthy development of the industry.
Patent Information
- Application Number
- CN202211290898.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-09-01
- Filing Date
- 2022-10-21
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-10-21
AI Technical Summary
The existing equipment identification design has problems such as insufficient personal information protection, easy to be forged and excessive traffic, which has affected the healthy development of the industry. At the same time, it is difficult to obtain unchangeable equipment unique identifiers and advertising identifiers to decrease the acquisition rate.
By obtaining the initial mapping table and the current fingerprint list of the mobile terminal, fingerprint matching and association ID deduplication are performed, intermediate association ID list is obtained, and the association ID in the mapping table is updated according to the similarity threshold, to realize dynamic update and protection of the mobile terminal ID.
It realizes accurate update of mobile terminal ID and protection of associated IDs, prevents forged traffic, and improves the security of user information and the conditions for healthy development of the industry.
Smart Images

Figure CN115510416B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device and medium for updating a mapping table of a mobile terminal ID. Background Art
[0002] The design of existing device identification is unreasonable, and it is easy for various parties to use it to track personal information for a long time without considering the protection of personal information and without obtaining the authorization and consent of users. At the same time, the existing ID designs are easy to be forged, resulting in a large amount of forged traffic in the mobile Internet, which has a great impact on the healthy development of the industry.
[0003] As the Internet environment has become more and more stringent in detecting application software, it is difficult for application software to obtain the traditional unchangeable unique device identifier, and the acquisition rate of variable advertising identifiers is also declining. The current solutions for various IDs are independent of each other and have no system, making it difficult to connect data. It is necessary to prevent "brushing" and focus on all-round protection of user information. This has higher requirements for companies to implement solutions, and it also requires high costs. Therefore, a widely recognized, tamper-proof, changeable, and unified device ID is very necessary for the entire industry. Summary of the invention
[0004] In view of the above technical problem, the technical solution adopted by the present invention is: a method for updating a mapping table of a mobile terminal ID, the method comprising the following steps:
[0005] S200, obtaining an initial mapping list H0;
[0006] S210, obtain the third fingerprint list C = {C1, ..., C i , ..., C m}, C i It refers to the i-th current fingerprint, i=1…m, m is the number of fingerprints;
[0007] S220, when C i When it is consistent with any initial mapping fingerprint in H0, the initial mapping fingerprint is used as the third intermediate fingerprint and the association ID corresponding to the third intermediate fingerprint is obtained from H0;
[0008] S230: De-duplicate the associated IDs corresponding to all third intermediate fingerprints to obtain an intermediate associated ID list R={R1, . . . , R q , ..., R p}, R q It refers to the qth intermediate association ID, q=1…p, p is the number of intermediate association IDs;
[0009] S240, according to R and H0, obtain the first intermediate similarity list F corresponding to C = {F1, ..., F q , ..., F p}, where F refers to R q The corresponding first intermediate similarity;
[0010] S250, traverse F and obtain the maximum similarity from F, so that the maximum similarity is used as the target similarity F';
[0011] S260: When F'> the preset target similarity threshold, establish each C i The mapping relationship between the intermediate association IDs corresponding to F' and each C i The mapping relationship between the intermediate association IDs corresponding to F' is inserted into H0;
[0012] S270, when F'≤preset target similarity threshold, regenerate the association ID and use the regenerated association ID as the designated association ID, and establish each C i The mapping relationship between the specified association ID corresponding to F' and each C i The mapping relationship between the specified association ID corresponding to F' is inserted into H0.
[0013] The present invention also protects a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the above-mentioned method for updating the mapping table of the mobile terminal ID.
[0014] The present invention also protects an electronic device, including a processor and the above-mentioned non-transitory computer-readable storage medium.
[0015] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the method for updating the mapping table of the mobile terminal ID provided by the present invention can achieve considerable technical progress and practicality, and has a wide range of utilization value, and has at least the following advantages:
[0016] By obtaining the initial mapping table corresponding to the target application software and the current fingerprint list of the target APP in the present invention, when any current fingerprint in the current fingerprint list is consistent with any fingerprint in the initial mapping table, the key fingerprint is used as the third intermediate fingerprint and the associated ID corresponding to the third intermediate fingerprint is obtained from the initial mapping table, all the associated IDs corresponding to the third intermediate fingerprints are deduplicated, and the intermediate associated ID list is obtained. According to the intermediate associated ID list, the first intermediate similarity list of the target application software is obtained and the maximum similarity is obtained from the first intermediate similarity list of the target application software, and the maximum similarity is used as the target similarity of the target application software. When the target similarity is greater than the preset target similarity threshold, each is established. A mapping relationship between a current fingerprint and an intermediate associated ID corresponding to a target similarity is established, and a mapping relationship between each current fingerprint and an intermediate associated ID corresponding to a target similarity is inserted into an initial mapping table; when the target similarity is not greater than a preset target similarity threshold, the associated ID is regenerated and the regenerated associated ID is used as the designated associated ID, and a mapping relationship between each current fingerprint and a designated associated ID corresponding to a target similarity is established, and a mapping relationship between each current fingerprint and a designated associated ID corresponding to a target similarity is inserted into the initial mapping table; the mapping relationship of the associated ID of the mobile terminal ID can be continuously updated, which is conducive to determining the accurate associated ID of the mobile terminal ID through an accurate fingerprint.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A flowchart of a method for updating a mapping table of a mobile terminal ID provided by an embodiment of the present invention;
[0020] Figure 2 A flowchart of a method for updating a mapping table of a mobile terminal ID provided by another embodiment of the present invention;
[0021] Figure 3 A flowchart of a method for updating a mapping table of a mobile terminal ID provided by another embodiment of the present invention;
[0022] Figure 4 A flowchart of a method for updating a mapping table of a mobile terminal ID provided by another embodiment of the present invention;
[0023] Figure 5 A flowchart of a method for updating a mapping table of a mobile terminal ID provided by another embodiment of the present invention;
[0024] Figure 6 A flowchart of a method for updating a mapping table of a mobile terminal ID is provided in accordance with another embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0027] like Figure 1 As shown, an embodiment of the present invention provides a data processing method for obtaining a mobile terminal ID, the method comprising the following steps:
[0028] S100, obtain the first fingerprint list A = {A1, ..., A i , ..., A m}, A i It refers to the i-th first fingerprint, i=1...m, and m is the number of first fingerprints.
[0029] Specifically, before step S100, the following steps are also included:
[0030] S1. Obtain a preset fingerprint configuration list T = {T1, ..., T j , ..., T M}, where Tj It refers to the jth fingerprint type corresponding to the mobile terminal, j=1...M, M is the number of preset features of the fingerprint type.
[0031] Furthermore, the method further obtains T through the following steps:
[0032] S11, obtain the original fingerprint list V = {V1, ..., V r , ..., V s},V r =(V r1 , V r2 , V r3 ), V r1 Refers to the first degree value of the rth original fingerprint, V r2 Refers to the second degree value of the rth original fingerprint, V r3 It refers to the third degree value of the rth original fingerprint, r=1...s, s is the number of original fingerprints.
[0033] Furthermore, the first degree value represents the uniqueness of the original fingerprint, which can be understood as uniqueness. Those skilled in the art know how to obtain uniqueness by taking any method in the prior art, which will not be described in detail here.
[0034] Furthermore, the second degree value represents the stability of the original fingerprint, which can be understood as stability. Those skilled in the art know how to obtain stability by taking any method in the prior art, which will not be described in detail here.
[0035] Furthermore, the third degree value represents the saturation of the original fingerprint. Those skilled in the art know that any method in the prior art can be used to obtain the saturation, which will not be described in detail herein.
[0036] S12, traverse V r And when V r1 >First level threshold V 1 0.V r2 >Second level threshold V 2 0 and V r3 >Third level threshold V 3 0, V r The fingerprint type corresponding to the corresponding original fingerprint is inserted into T.
[0037] Specifically, the original fingerprint refers to a fingerprint that cannot reflect the identity of the mobile terminal.
[0038] Specifically, V 1 0 is the uniqueness threshold. Those skilled in the art can set the uniqueness threshold according to actual needs, which will not be described in detail here.
[0039] Specifically, V 20 is the threshold value of the stability level. Those skilled in the art can set the threshold value of the stability level according to actual needs, which will not be described in detail here.
[0040] Specifically, V 3 0 is the saturation threshold. Those skilled in the art can set the saturation threshold according to actual needs, which will not be described in detail here.
[0041] Further, m≤M, preferably m=M=10.
[0042] S3. Obtain initial fingerprint A′={A′1, ..., A′ x , ..., A′ z}, where A′ x It refers to the xth initial fingerprint, x=1...z, and z is the number of initial fingerprints.
[0043] Specifically, the initial fingerprint refers to the original fingerprint corresponding to the mobile terminal on which the target application software is installed, wherein the type of the initial fingerprint is an anonymous fingerprint. Those skilled in the art know that any method in the prior art can be used to obtain the anonymous fingerprint, which will not be repeated here. The anonymous fingerprint can be used to avoid leakage of terminal information and improve the security of the mobile terminal.
[0044] Furthermore, those skilled in the art select application software as target application software according to requirements, which will not be described in detail here.
[0045] S5. When the mobile terminal is authorized and uploads fingerprints for the first time, when A′ x The corresponding fingerprint type is T j When they are consistent, A′ x As the first fingerprint.
[0046] The above steps S1-S3 can select fingerprints suitable for determining similarity, which is conducive to accurately determining the similarity.
[0047] S120, obtain the second fingerprint list B = {B1, ..., B i , ..., B m}, B i refers to the i-th second fingerprint.
[0048] Specifically, the first associated ID refers to the associated ID generated when the mobile terminal uploads the fingerprint for the first time, wherein the associated ID refers to the identity associated with the mobile terminal ID. Furthermore, the associated ID is a randomly generated character string of preset length. Those skilled in the art know that the preset length of the character string can be set according to needs, which will not be repeated here.
[0049] Specifically, the second fingerprint refers to an original fingerprint corresponding to a mobile terminal on which the target application software is installed at a non-first time point, wherein the non-first time point refers to any time point other than the time point corresponding to the first fingerprint.
[0050] S140: Acquire a second application software ID and when a second associated ID corresponding to the second application software ID is not null, use a second terminal ID as a target terminal ID, wherein the second terminal ID refers to an identity identifier of a mobile terminal corresponding to the second associated ID.
[0051] S160: When the second associated ID corresponding to the second application software ID is null, obtain the target terminal ID according to A and B.
[0052] Specifically, step S160 includes the following steps:
[0053] S1601. Obtain a first terminal ID corresponding to a first association ID.
[0054] Specifically, the first terminal ID represents a unique identity of a mobile terminal corresponding to the first associated ID.
[0055] S1602, when any B i ≠A i When the first intermediate fingerprint number n and the second intermediate fingerprint number N are obtained.
[0056] Furthermore, the first intermediate fingerprint refers to i ≠A i The second fingerprint.
[0057] Furthermore, the second intermediate fingerprint refers to any second fingerprint in B except the first intermediate fingerprint.
[0058] Further, n+N=m.
[0059] S1603: Obtain a first similarity F according to m, n and N. 1 0, where F 1 0 meets the following conditions:
[0060]
[0061] S1604, when F 1 0>first similarity threshold F0, the first terminal ID is used as the target terminal ID, so that the target terminal ID is sent to the mobile terminal corresponding to B.
[0062] S1605, when F 10≤F0, regenerate the third association ID and use the third terminal ID corresponding to the third association ID as the target terminal ID, so that the target terminal ID is sent to the mobile terminal corresponding to B; further understand: when F 1 When 0>F0, it means that the first fingerprint list and the second fingerprint list are very similar, and it can be determined that they are the same mobile terminal, and the first terminal ID is sent to the corresponding mobile terminal as the target terminal ID; when F 1 0≤F0, indicating that the first fingerprint list and the second fingerprint list are not similar enough, and it can be determined that they are not the same mobile terminal. The third terminal ID can be regenerated and sent to the corresponding mobile terminal.
[0063] Alternatively, in a specific embodiment, step S160 includes the following steps:
[0064] S1601. Obtain a first terminal ID corresponding to a first association ID.
[0065] S1602, when any B i ≠A i When the first intermediate fingerprint quantity n and the second intermediate fingerprint quantity N in the second intermediate fingerprint list are obtained.
[0066] Furthermore, the first intermediate fingerprint refers to i ≠A i The second fingerprint.
[0067] Furthermore, the second intermediate fingerprint refers to any second fingerprint in B except the first intermediate fingerprint.
[0068] Further, n+N=m.
[0069] S1603. According to A, obtain the first fingerprint quantity list D={D1, ..., D t , ..., D k}, D t It refers to the number of fingerprints of the t-th type of first fingerprint, t=1...k, k is the number of types of first fingerprints.
[0070] Furthermore, D1+…+D t +……+D k =m.
[0071] S1604: Obtain a second fingerprint quantity list D'={D'1, ..., D' t , ..., D' s}, D' t It refers to the number of fingerprints of the second intermediate fingerprint of the tth category.
[0072] Furthermore, D'1+...+D' t+……+D' k =N.
[0073] S1605, according to D t and D' t , get the second similarity F 2 0, where F 2 0 meets the following conditions:
[0074] Among them, W t It means D t The corresponding weight value.
[0075] S1606, when F 2 0>the second similarity threshold F'0, the first terminal ID is used as the target terminal ID, so that the target terminal ID is sent to the mobile terminal corresponding to B.
[0076] S1607, when F 2 0≤F'0, regenerate the fourth association ID and use the fourth terminal ID corresponding to the fourth association ID as the target terminal ID, so that the target terminal ID is sent to the mobile terminal corresponding to B; relative to determining whether to regenerate the association ID through the first similarity, the fingerprints are classified and different weights are set according to the classification of the fingerprints, so that the similarity between the two fingerprint lists can be obtained more accurately, so that according to the second similarity, it can be accurately determined whether it is the same mobile terminal. When different mobile terminals give new mobile terminal IDs, the security of the device is improved, thereby improving the security of user information.
[0077] Preferably, F'0=F0.
[0078] In the above embodiment, the similarity between two uploaded fingerprints is obtained through the fingerprint of the mobile terminal to determine whether they are fingerprints uploaded by the same mobile terminal, and then whether to update the mobile terminal ID is determined based on the similarity, thereby improving the security of the mobile terminal.
[0079] like Figure 2 As shown, in a specific embodiment, the method further includes the following steps:
[0080] S200, obtaining an initial mapping list H0.
[0081] Specifically, the initial mapping list includes a first mapping list or an intermediate mapping list.
[0082] Furthermore, the first mapping table refers to a relationship list constructed based on the mapping relationship between each first fingerprint and the first application software ID and the first associated ID, wherein the first application software ID refers to an identifier used to characterize the identity of the target application software when the mobile terminal uploads the fingerprint for the first time.
[0083] Further, the intermediate mapping list refers to a mapping table obtained by processing the first mapping table, wherein the update step of the first mapping table can refer to S210-S270, and further understood: all first fingerprints in the first mapping table are matched with a first associated ID, and after passing through the S210-S270 steps, any fingerprint in the intermediate mapping list can be matched with several associated IDs. Further, before step S200, when the number of associated IDs corresponding to any fingerprint in the intermediate mapping list is greater than a preset threshold value of the number of associated IDs, the fingerprint in the intermediate mapping list is taken as an abnormal fingerprint and H0 is constructed after deleting the abnormal fingerprint. Preferably, those skilled in the art can set the preset threshold value of the number of associated IDs according to actual needs, which will not be repeated here.
[0084] As mentioned above, there is no abnormal fingerprint in H0; it can avoid the situation where there are too many associated IDs corresponding to any fingerprint in the intermediate mapping list, which causes excessive load and occupies too much memory during calculation; at the same time, when the number of associated IDs corresponding to any fingerprint in the intermediate mapping list is too large, it means that a large number of mobile devices have this fingerprint, so this fingerprint is deleted as an abnormal fingerprint.
[0085] S210, obtain the third fingerprint list C = {C1, ..., C i , ..., C m}, C i Refers to the i-th current fingerprint, wherein each of the third fingerprints in C refers to other fingerprints except the initial mapping fingerprint in H0. The method for obtaining the key fingerprint can refer to the method for obtaining the initial fingerprint, which will not be repeated here.
[0086] S220, when C i When it is consistent with any initial mapping fingerprint in H0, the initial mapping fingerprint is used as the third intermediate fingerprint and the association ID corresponding to the third intermediate fingerprint is obtained from H0.
[0087] Specifically, the initial mapping fingerprint refers to the fingerprint in the initial mapping table.
[0088] S230: De-duplicate the associated IDs corresponding to all third intermediate fingerprints to obtain an intermediate associated ID list R={R1, . . . , R q , ..., R p}, R q It refers to the qth intermediate association ID, q=1...p, and p is the number of intermediate association IDs.
[0089] Specifically, the intermediate association ID refers to an association ID obtained by performing deduplication processing on association IDs corresponding to all third intermediate fingerprints, wherein those skilled in the art may adopt any deduplication method in the prior art.
[0090] S240, according to R and H0, obtain the first intermediate similarity list F corresponding to C = {F1, ..., F q , ..., F p}, where F refers to R q The corresponding first intermediate similarity.
[0091] Specifically, the first intermediate similarity refers to the similarity between the fingerprints corresponding to any intermediate association ID in C and R, wherein the fingerprint corresponding to the intermediate association ID is obtained from the initial mapping table.
[0092] Furthermore, each F q The method of obtaining can refer to F 1 0 or F 2 The method of obtaining 0 will not be described here.
[0093] Preferably, each F in F q The acquisition method is consistent and each F q The method of obtaining the 1 How to obtain 0.
[0094] S250 , traverse F and obtain the maximum similarity from F, so that the maximum similarity is used as the target similarity F′.
[0095] Specifically, the method in step S250 further includes the following steps:
[0096] S2501. When the number of maximum similarities in F is equal to 1, the maximum similarity is used as the target similarity F'.
[0097] S2502: When the number of maximum similarities in F is greater than 1, determine a method for obtaining F.
[0098] Specifically, the method for obtaining F refers to each F in F q Method of obtaining .
[0099] S2503, according to the method for obtaining F, obtain the second intermediate similarity list E = {E1, ..., E y ,……,E g}, E y It refers to the yth second intermediate similarity, y=1...g, g is the number of second intermediate similarities.
[0100] Furthermore, the second intermediate similarity refers to a similarity obtained by a method inconsistent with the method of obtaining F based on the intermediate association ID corresponding to the maximum similarity in F; for example, when the method of obtaining the first intermediate similarity refers to F 1 0, the method for obtaining the second intermediate similarity should refer to F 2 How to obtain 0.
[0101] S2504 , traverse E and obtain the maximum similarity from E, and use the maximum similarity as the target similarity F'.
[0102] As described above, when the number of maximum similarities in F is 1, it can be understood that there is only one associated ID with the highest similarity corresponding to the third intermediate fingerprint, that is, the maximum similarity is used as the target similarity; when the number of maximum similarities in F is greater than 1, it can be understood that there are multiple associated IDs with the highest similarity corresponding to the third intermediate fingerprint. At this time, another method for obtaining F is used to obtain the maximum similarity F', and the maximum similarity obtained by using two methods at the same time is more accurate.
[0103] S260: When F'> the preset target similarity threshold, establish each C i The mapping relationship between the intermediate association IDs corresponding to F' and each C i The mapping relationship between the intermediate association IDs corresponding to F' is inserted into H0.
[0104] Specifically, the target similarity threshold is the first similarity threshold or the second similarity threshold, wherein the target similarity threshold is determined based on the method for obtaining F, which can be understood as: F q Refer to F 1 0, the target similarity threshold is the first similarity threshold; or, F q Refer to F 2 0, the target similarity threshold is the second similarity threshold.
[0105] S270, when F'≤preset target similarity threshold, regenerate the association ID and use the regenerated association ID as the designated association ID, and establish each C i The mapping relationship between the specified association ID corresponding to F' and each C i The mapping relationship between the specified association ID corresponding to F' is inserted into H0.
[0106] Specifically, the designated association ID refers to any association ID except all intermediate association IDs in R.
[0107] In the above embodiment, when F'> the preset target similarity threshold, C is established. iThe mapping relationship between the intermediate association ID corresponding to the target similarity is inserted into H0, and the mapping relationship between the third intermediate fingerprint and the intermediate association ID corresponding to the target similarity is established, so that it is updated on the basis of the initial mapping table. Each key fingerprint can correspond to several key association IDs; when F'≤the preset target similarity threshold, it means that there is no similarity with C i The association ID corresponding to the fingerprint list with higher similarity is generated, thereby generating a new association ID and assigning each C i The mapping relationship between the designated associated ID corresponding to F' is inserted into H0, which can continuously update the mapping relationship of the associated ID of the mobile terminal ID, and is conducive to determining the accurate associated ID of the mobile terminal ID through an accurate fingerprint.
[0108] like Figure 3 As shown, in a specific embodiment, the method further includes the following steps:
[0109] S300, obtaining the current application software ID corresponding to C, wherein the current application software ID refers to an identifier used to characterize the identity of the target application software when the mobile terminal obtains the current fingerprint;
[0110] S310, when the association ID corresponding to the current application software ID is null, taking the association ID corresponding to C as the association ID corresponding to the current application software ID;
[0111] S320, when the association ID corresponding to the current application software ID is not null, marking the association ID corresponding to the current application software ID as R0;
[0112] S330, when R0≠R'0, replace R0 with R'0, where R'0 refers to each C in C i The corresponding association ID, where each C i The corresponding association ID can be obtained by referring to steps S200-S270.
[0113] In the above, when the association ID corresponding to the current application software ID is null, it can be understood that the target application software has not generated an association ID, and the association ID corresponding to the current fingerprint list is used as the association ID corresponding to the current application software ID; when the association ID corresponding to the current application software ID is not null, it can be understood that the target application software has uploaded a fingerprint list. When R0≠R'0, that is, the association ID corresponding to the application software ID is inaccurate, use each C in C i The corresponding association ID is returned to the target application software, which improves the accuracy of the relevant ID of the mobile terminal ID and is conducive to determining the same device.
[0114] like Figure 4As shown, in a specific embodiment, the method further includes the following steps:
[0115] S400, obtaining a target mapping list H'0, wherein H'0 refers to H0 after being processed through steps S200-S270, and the specific implementation process of steps S200-S270 will not be repeated here.
[0116] S410, obtain all associated IDs from H'0 and construct a first associated ID list R'={R'1, ..., R' a , ..., R' v}, R' a It refers to the ath first associated ID in H'0, where a=1...v, and v is the number of first associated IDs in H'0.
[0117] Specifically, R'1≠...≠R' a ≠……≠R' v .
[0118] S420, obtain R' from H'0 a All corresponding fingerprints and based on R' a All corresponding fingerprints are constructed into R' a The corresponding first target fingerprint list.
[0119] S430, based on the first target fingerprint list and R' a Corresponding to any second target fingerprint list, obtain the first target similarity list E' a ={E' a1 , ..., E' ab , ..., E' av-1}, E' ab refers to R' a The corresponding first target fingerprint list and R' a The similarity between the corresponding b-th second target fingerprint lists, b=1...v-1, v-1 is the number of second associated IDs.
[0120] Specifically, the second fingerprint list refers to a fingerprint list constructed based on all fingerprints corresponding to the second association ID in H'0, wherein the second association ID refers to all fingerprints in R' except R' a Any other association ID other than .
[0121] S440, when E' ab > preset target similarity threshold, E' ab The corresponding association ID is replaced by R' a .
[0122] Specifically, E' ab The method of obtaining the1 0 or F 2 The method of obtaining 0 will not be described here.
[0123] Preferably, E' ab The method of obtaining the 1 How to obtain 0.
[0124] Specifically, the target similarity threshold is the first similarity threshold or the second similarity threshold, wherein, based on E' ab The target similarity threshold is determined by the acquisition method, which can be understood as: E' ab Refer to F 1 0, the target similarity threshold is the first similarity threshold; or, E' ab Refer to F 2 0, the target similarity threshold is the second similarity threshold.
[0125] S450, when E' ab ≤ the preset target similarity threshold, R' a is the independent association ID in H'0.
[0126] S460, repeat steps S400-S450 to obtain a final mapping list.
[0127] As described above, based on H'0, by repeatedly executing steps S400-S450 for multiple times, the final mapping list of the target local application is obtained. Based on this, when E' ab > the preset target similarity threshold, it is considered to be the same mobile terminal, so E' ab The corresponding association ID is replaced by R' a , when E' ab ≤ the preset target similarity threshold, it is considered that they are not the same mobile terminal, R' a is an independent association ID in H'0; the association IDs corresponding to the mobile terminals can be clustered, which is helpful for accurately determining whether other mobile devices are the same device.
[0128] like Figure 5 As shown, in a specific embodiment, the method further obtains the target mobile terminal ID through the following steps:
[0129] S500: Obtain a first character string Z1, wherein Z1 is used to represent the version number of the target mobile terminal ID. Those skilled in the art may set the character string format of the version number of the mobile terminal ID according to actual requirements.
[0130] S510: Obtain a second character string Z2, where Z2 is used to represent the valid time T of the target mobile terminal ID.
[0131] Specifically, T meets the following conditions:
[0132] T=T0±T', wherein T0 refers to a preset time period, and T' refers to a random time period; it can be understood that: the preset time period is a pre-set fixed time period, and the random time period is a randomly selected time period.
[0133] Furthermore, the value range of T0 is 10-50 days; preferably, the value of T0 is 30 days.
[0134] Furthermore, the value range of T' is 6-48 hours; preferably, the value of T' is 12 hours.
[0135] Based on this, the target mobile terminal ID remains unchanged within a certain period of time, thereby achieving the purpose of identifying the mobile terminal. A third party can use the mobile terminal ID to identify the mobile device. The scheduled expiration time includes a random time period to prevent a large number of mobile terminal IDs from expiring at the same time, which would put excessive pressure on the data processing server and cause damage to the data processing server.
[0136] S520: Obtain a third character string Z3, where Z3 refers to a random character string. Those skilled in the art know how to set a random character string according to actual needs, which will not be described in detail herein.
[0137] Furthermore, the random character string is a 64-bit encrypted character string. Those skilled in the art may adopt any encryption method in the prior art to encrypt the character string, which will not be described in detail here.
[0138] S530, obtaining a fourth character string Z4, wherein Z4 is used to represent the check number of the target mobile terminal ID. Those skilled in the art know that any method for generating a check number in the prior art may be adopted, such as adopting CRC to generate a check number, which will not be described in detail here.
[0139] S540, Z1, Z2, Z3 and Z4 are combined in order to generate a target mobile terminal ID, which can be understood as: initial mobile terminal ID = Z1 + Z2 + Z3 + Z4.
[0140] Specifically, the target mobile terminal ID is generated by the same method as the initial mobile terminal ID, which will not be described in detail here. Based on this, the target mobile terminal ID is generated by combining the first character string Z1, the second character string Z2, the third character string Z3, and the fourth character string Z4, indicating the specific components of the mobile terminal ID, and having a controlled mechanism, an expiration mechanism, and an anonymous mechanism, providing an effective identification under the premise of protecting user privacy.
[0141] S550, obtaining a time interval ΔT corresponding to the target mobile terminal ID, and when ΔT>T, regenerating the mobile terminal ID so that the target mobile terminal ID is replaced by the regenerated mobile terminal ID, wherein ΔT meets the following conditions:
[0142] ΔT=T α -T β , where T α The current time point, T β The time point when the target mobile terminal ID is generated.
[0143] The above-mentioned embodiments can involve complex mobile terminal ID formats to prevent tampering or cracking, improve the security of mobile terminals, and thus improve the security of user information. At the same time, the effective time is set to achieve regular updates. When the mobile terminal ID intercepted by other software may be an invalid mobile terminal ID, it is impossible to obtain device information through the mobile terminal ID, thereby improving the security of user information.
[0144] like Figure 6 As shown, in a specific embodiment, the method further includes the following steps:
[0145] S600, obtain the original mobile terminal ID list ZZ = {ZZ1, ..., ZZ λ ..., ZZ u}, where ZZ λ It refers to the λth original mobile terminal ID provided by the target device, λ=1...u, u is the number of original mobile terminal IDs provided by the target device.
[0146] Specifically, the target device refers to any electronic device except a target mobile terminal and a target server, wherein the target mobile terminal refers to a mobile terminal with target application software installed and the target server refers to a server connected to the target mobile terminal.
[0147] Further, the mobile terminal ID is stored in the target mobile terminal and the associated ID is stored in the target server.
[0148] Specifically, each ZZ λ The method for obtaining the information can refer to steps S500-S540, which will not be repeated here.
[0149] S610. According to ZZ, obtain the intermediate mobile terminal ID list ZZ'.
[0150] Specifically, in step S610, the intermediate mobile terminal ID list is obtained through the following steps:
[0151] S6101. When there are two or more identical original mobile terminal IDs in ZZ, any one of the original mobile terminal IDs corresponding to the same original mobile terminal ID is retained in the original mobile terminal ID list and other original mobile terminal IDs corresponding to the same original mobile terminal ID are deleted from ZZ;
[0152] S6102, Get ZZ λ = {Z λ1 , Z λ2 , Z λ3 , Z λ4}, where Z λ1 Refers to the original mobile terminal ID λ The first string, Z λ2 Refers to the original mobile terminal ID λ The second string, Z λ3 Refers to the original mobile terminal ID λ The third string, Z λ4 Refers to the original mobile terminal ID λ The fourth string of
[0153] S6103, when ZZ λ The corresponding time interval < Z λ2 When the corresponding effective time is reached, delete ZZ from ZZ λ , among which ZZ λ The method for obtaining the time interval of the target mobile terminal ID can refer to the method for obtaining the time interval of the target mobile terminal ID. λ2 The method for obtaining the effective time can refer to the effective time of the target mobile terminal ID and will not be repeated here.
[0154] S6104, Z λ4 Analyze and Z λ4 If the parsing result is failure, delete ZZ in ZZ λ Those skilled in the art know that steps S6101-S6104 can be executed simultaneously to ensure that a valid intermediate mobile terminal ID list can be obtained.
[0155] S620, obtaining a ratio K between the number h of intermediate mobile terminal IDs corresponding to ZZ' and the number of abnormal mobile terminal IDs corresponding to ZZ'.
[0156] Specifically, the intermediate mobile terminal ID refers to any original mobile terminal ID among the intermediate mobile terminal IDs.
[0157] Specifically, K meets the following conditions: K=h0 / h, where h0 refers to the number of abnormal mobile terminal IDs corresponding to ZZ', and the abnormal mobile terminal ID refers to the intermediate mobile terminal ID in the intermediate mobile terminal ID list, in which the difference between the time interval of the mobile terminal ID and the preset time period of the mobile terminal ID is less than the random time period of the mobile terminal ID.
[0158] S630: When h≤preset mobile terminal ID quantity threshold h' or K≤preset ratio threshold K', feedback prompt information to the target device, wherein the prompt information is used to indicate that the original mobile terminal ID list cannot be processed.
[0159] S640: When h>preset mobile terminal ID quantity threshold h' and K>preset ratio threshold K', obtain a target mobile terminal ID list.
[0160] Specifically, step S640 also includes the following steps:
[0161] S6401. Obtain all associated IDs corresponding to any intermediate mobile terminal ID in ZZ' and, based on all associated IDs corresponding to any intermediate mobile terminal ID in ZZ', construct an associated ID list corresponding to ZZ', wherein the associated ID list corresponding to ZZ' is processed by associated ID deduplication. Those skilled in the art know the deduplication method and will not repeat it here.
[0162] S6402. According to the association ID list corresponding to ZZ', obtain a target association ID list from a mapping table between mobile terminal IDs and association IDs.
[0163] Specifically, the value range of h' is 800 to 3000, and preferably, the value of h' is 1000.
[0164] Specifically, the value range of K' is 80% to 100%; preferably, the value of K' is 99%.
[0165] Based on this, when h≤the preset mobile terminal ID quantity threshold h' or K≤the preset ratio threshold K', it means that the number of abnormal mobile terminal IDs in the original mobile terminal ID list is too large, and the mobile terminal ID list is fed back to the target device without being processed; when h>the preset mobile terminal ID quantity threshold h' and K>the preset ratio threshold K', the number of abnormal mobile terminal IDs is within the normal range, and the target mobile terminal ID list is obtained based on the relationship between the mobile terminal ID and the associated ID; therefore, when the original mobile terminal ID list is updated, the third-party server obtains the mobile terminal ID and the associated ID in a many-to-many relationship, which avoids the third party obtaining several mobile terminal IDs of the same device, which causes the third party to decrypt the mobile terminal ID and affect the security of the device, thereby improving the security of the device.
[0166] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.
[0167] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.
[0168] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0169] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for updating a mapping table of a mobile terminal ID, characterized in that: The method comprises the following steps: S200, obtaining an initial mapping list H0; S210, obtain the third fingerprint list C = {C1, ..., C i , ..., C m }, C i It refers to the i-th current fingerprint, i=1…m, m is the number of fingerprints; S220, when C i When it is consistent with any initial mapping fingerprint in H0, the initial mapping fingerprint is used as the third intermediate fingerprint and the association ID corresponding to the third intermediate fingerprint is obtained from H0; S230: De-duplicate the associated IDs corresponding to all third intermediate fingerprints to obtain an intermediate associated ID list R={R1, . . . , R q , ..., R p }, R q It refers to the qth intermediate association ID, q=1…p, p is the number of intermediate association IDs; S240, according to R and H0, obtain the first intermediate similarity list F corresponding to C = {F1, ..., F q , ..., F p }, where F q Refers to R q The corresponding first intermediate similarity; S250, traverse F and obtain the maximum similarity from F, so that the maximum similarity is used as the target similarity F'; S260: When F'> the preset target similarity threshold, establish each C i The mapping relationship between the intermediate association IDs corresponding to F' and each C i The mapping relationship between the intermediate association IDs corresponding to F' is inserted into H0; S270, when F'≤preset target similarity threshold, regenerate the association ID and use the regenerated association ID as the designated association ID, and establish each C i The mapping relationship between the specified association ID corresponding to F' and each C i The mapping relationship between the specified association ID corresponding to F' is inserted into H0; Wherein, the initial mapping list includes a first mapping list or an intermediate mapping list; The first mapping table refers to a relationship list constructed based on the mapping relationship between each first fingerprint and the first application software ID and the first associated ID, and the first application software ID refers to an identifier used to characterize the identity of the target application software when the mobile terminal uploads the fingerprint for the first time; The intermediate mapping list refers to a mapping table obtained by processing the first mapping table, wherein the updating step of the first mapping table refers to S210-S270; In step S250, the method further includes the following steps: S2501, when the number of maximum similarities in F is equal to 1, the maximum similarity is used as the target similarity F'; S2502: When the number of maximum similarities in F is greater than 1, determine the method for obtaining F, wherein the method for obtaining F refers to the number of maximum similarities in F. q How to obtain ; S2503, according to the method for obtaining F, obtain the second intermediate similarity list E = {E1, ..., E y ,……,E g }, E y It refers to the yth second intermediate similarity, y = 1...g, g is the number of second intermediate similarities; S2504, traverse E and obtain the maximum similarity from E, and use the maximum similarity as the target similarity F'; Each F in S2502 q Refer to F for the method of obtaining 1 How to obtain 0; S1601. Obtain a first terminal ID corresponding to a first association ID, where the first terminal ID represents a unique identity of a mobile terminal corresponding to the first association ID, and the first association ID refers to an association ID generated when the mobile terminal uploads a fingerprint for the first time; S1602, when any B i ≠A i When the first intermediate fingerprint number n and the second intermediate fingerprint number N are obtained, the first intermediate fingerprint refers to the number of intermediate fingerprints in B i ≠A i A is a second fingerprint, wherein the second intermediate fingerprint refers to any second fingerprint in B except the first intermediate fingerprint, wherein A i refers to the i-th first fingerprint, B i refers to the i-th second fingerprint, where the second fingerprint refers to the original fingerprint corresponding to the mobile terminal on which the target application software is installed at a non-first time point, wherein the non-first time point refers to any time point other than the time point corresponding to the first fingerprint; S1603: Obtain a first similarity F according to m, n and N. 1 0, where F 1 0 meets the following conditions:
2. The method for updating the mapping table of mobile terminal ID according to claim 1, characterized in that: The target similarity threshold is a first similarity threshold or a second similarity threshold, wherein, based on F q The target similarity threshold is determined by the acquisition method.
3. The method for updating the mapping table of mobile terminal ID according to claim 1, characterized in that: The method further comprises the steps of: S300, obtaining the current application software ID corresponding to C, wherein the current application software ID refers to an identifier used to characterize the identity of the target application software when the mobile terminal obtains the current fingerprint; S310, when the association ID corresponding to the current application software ID is null, taking the association ID corresponding to C as the association ID corresponding to the current application software ID; S320, when the association ID corresponding to the current application software ID is not null, marking the association ID corresponding to the current application software ID as R0; S330, when R0≠R'0, replace R0 with R'0, where R'0 refers to each C in C i The corresponding association ID, where each C i The corresponding association ID is obtained by referring to steps S200-S270.
4. The method for updating the mapping table of mobile terminal ID according to claim 1, characterized in that: The method further comprises the steps of: S400, obtaining a target mapping list H'0, wherein H'0 refers to H0 after being processed through steps S200-S270; S410, obtain all associated IDs from H'0 and construct a first associated ID list R'={R'1, ..., R' a , ..., R' v }, R' a It refers to the ath first association ID in H'0, where a=1...v, and v is the number of first association IDs in H'0; S420, obtain R' from H'0 a All corresponding fingerprints and based on R' a All corresponding fingerprints are constructed into R' a a corresponding first target fingerprint list; S430, based on the first target fingerprint list and R' a Corresponding to any second target fingerprint list, obtain the first target similarity list E' a ={E' a1 , ..., E' ab , ..., E' av-1 }, E' ab refers to R' a The corresponding first target fingerprint list and R' a The similarity between the corresponding b-th second target fingerprint lists, b=1...v-1, v-1 is the number of second associated IDs; S440, when E' ab > preset target similarity threshold, E' ab The corresponding association ID is replaced by R' a ; S450, when E' ab ≤ the preset target similarity threshold, R' a is the independent association ID in H'0; S460, repeat steps S400-S450 to obtain a final mapping list.
5. The method for updating the mapping table of mobile terminal ID according to claim 4, characterized in that: The second fingerprint list refers to a fingerprint list constructed based on all fingerprints corresponding to the second association ID in H'0, wherein the second association ID refers to all fingerprints in R' except R' a Any other association ID other than .
6. The method for updating the mapping table of mobile terminal ID according to claim 4, characterized in that: R'1≠……≠R' a ≠……≠R' v 。 7. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for updating the mapping table of the mobile terminal ID as described in any one of claims 1 to 6.
8. An electronic device, characterized in that: Comprising a processor and the non-transitory computer-readable storage medium of claim 7.
Citation Information
Patent Citations
Equipment fingerprint generation method and device, equipment and storage medium
CN111478986A
Systems and methods for identifying a returning web client
US9165124B1