Method and device for determining device ID
When the ID determination function of the terminal device is turned off and re-activated, the unique ID in the application is determined according to the priority level as the main identifier of the terminal device, the problem of inconsistent ID in the mobile terminal device is solved, and the unity of the terminal device identification is realized and Stability provides convenience for data analysis.
Patent Information
- Application Number
- CN202211665234.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2042-12-23
AI Technical Summary
In mobile terminal devices, the Android operating system limits the representation and unity of IDs for terminal devices, resulting in multiple IDs that may exist on the same device, causing obstacles to data analysis.
When the terminal device's ID determination function is turned off and the terminal device has a re-opened, if the terminal device has installed the target application and its device ID jumps, the unique ID in the application of the highest priority application is determined to be the main identifier of the terminal device.
Ensure the unity and stability of terminal device identification, avoid different data corresponding to different IDs, provide convenience for data analysis, and ensure the stability of the main identification after the device ID jumps through priority.
Smart Images

Figure CN115988124B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of terminal and device identity recognition technology, and in particular to a method and apparatus for determining a device ID. Background Art
[0002] With the development of Internet technology, more and more users use various applications of mobile terminals. However, these applications have their own IDs, that is, the same terminal may also have multiple different IDs.
[0003] The Android operating system in mobile terminals often limits the representation and unification of IDs for terminal devices. Therefore, the same device may have multiple IDs, which creates a relatively large obstacle to data analysis. Summary of the invention
[0004] Provided are a method and apparatus for determining a device ID, an electronic device, and a storage medium.
[0005] According to a first aspect, a method for determining a device ID is provided, comprising: in response to a terminal device's ID determination function being turned off and then turned on again, if the terminal device has installed a target application during the period when the determination function is turned off, and the device ID of the target application changes, then determining the highest priority application among the applications installed by the terminal device, wherein the priority is that the identifier of the application is selected as the priority of the primary identifier; and determining the unique ID within the application of the highest priority application as the primary identifier of the terminal device.
[0006] According to a second aspect, a device for determining a device ID is provided, comprising: a jump unit, configured to respond to a terminal device's ID determination function being turned off and then turned on again, if the terminal device has installed a target application during the period when the determination function is turned off, and the device ID of the target application changes, then the application with the highest priority among the applications installed by the terminal device is determined, wherein the priority is the priority of the application's identifier being selected as the primary identifier; and a determination unit, configured to determine the unique ID within the application of the application with the highest priority as the primary identifier of the terminal device.
[0007] According to a third aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of any embodiment of the method for determining a device ID.
[0008] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute a method according to any embodiment of the method for determining a device ID.
[0009] According to a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements a method according to any embodiment of the method for determining a device ID.
[0010] According to the solution disclosed in the present invention, the uniformity and stability of the terminal device identification can be ensured through the main identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0012] Figure 1 is an exemplary system architecture diagram in which some embodiments of the present disclosure may be applied;
[0013] Figure 2 is a flowchart of an embodiment of a method for determining a device ID according to the present disclosure;
[0014] Figure 3 is a flowchart of steps for generating a mapping relationship between an ID and a MID of a terminal device according to the present disclosure;
[0015] Figure 4 is a schematic diagram of an application scenario of the method for determining a device ID according to the present disclosure;
[0016] Figure 5 is a structural schematic diagram of an embodiment of a device for determining a device ID according to the present disclosure;
[0017] Figure 6 The block diagram is a block diagram of an electronic device for implementing the method for determining the device ID according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure 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 disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0019] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved all comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a method for determining a device ID or an apparatus for determining a device ID of the present disclosure can be applied.
[0022] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0023] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as video applications, live broadcast applications, instant messaging tools, email clients, social platform software, etc.
[0024] The terminal devices 101, 102, 103 here can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0025] The server 105 may be a server that provides various services, such as a background server that provides support for the terminal devices 101, 102, and 103. The background server may analyze and process the received master ID (Master ID, MID) determination request and other data, and feed back the processing result (such as the master ID) to the terminal device.
[0026] It should be noted that the method for determining the device ID provided in the embodiment of the present disclosure can be executed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the device ID determination device can be set in the server 105 or the terminal devices 101, 102, 103.
[0027] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0028] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for determining a device ID according to the present disclosure. The method for determining a device ID comprises the following steps:
[0029] Step 201, in response to the terminal device's ID determination function being turned off and then turned on again, if the terminal device has installed a target application during the period when the determination function is turned off, and the device ID of the target application changes, then determine the application with the highest priority among the applications installed on the terminal device, where the priority is the priority of the application's identifier being selected as the main identifier.
[0030] In this embodiment, the method for determining the device ID runs on an execution subject (eg Figure 1 The terminal device shown in the figure can, when the ID determination function of the terminal device (that is, the shared path) is turned off and then reopened, that is, the terminal device can redetermine the ID. If, during the period when the determination function is turned off, the terminal device installs the target application and the device ID of the target application changes, the above-mentioned execution entity can determine the application with the highest priority among the applications installed by the terminal device.
[0031] Each application installed on a device has its own priority. The priority here refers to the priority of the device ID selected as the main ID. The priorities of different applications may be different. For example, the priority ranking between Xapp, Yapp and Zapp can be: Yapp>Xapp>Zapp, that is, Yapp has the highest priority, followed by Xapp, and Zapp has the lowest priority.
[0032] The device ID (such as CUID) of the target application may change after the ID determination function of the terminal is turned off. After the change, the device ID changes. Specifically, when the device ID is CUID, the CUID consists of the DID and the IMEI number. The DID may be the one that changes.
[0033] In practice, the priorities of different applications may be different, and there may be only one application with the highest priority on the terminal device. Alternatively, if there are more than one application with the highest priority, an application with the highest priority may be determined from the applications with the highest priority according to a preset rule. For example, the preset rule may be to use the earliest installed application among the applications with the highest priority as the application with the highest priority to be determined, or to randomly select an application from the applications with the highest priority as the application with the highest priority to be determined.
[0034] Step 202: determine the unique in-application ID of the application with the highest priority as the primary identifier of the terminal device.
[0035] In this embodiment, after determining the application with the highest priority, the execution subject may determine the application-CUID (AID) of the application with the highest priority as the primary identifier MID of the terminal device.
[0036] The method provided by the above-mentioned embodiment of the present disclosure can determine the primary identification of the terminal device by using the priority difference between applications when the ID determination function is turned off and the ID of the terminal device cannot be determined, if the device ID of the target application changes. Therefore, the present disclosure can not only unify the identification of the terminal device, avoiding different data corresponding to different IDs, and facilitating the data analysis of the terminal device, but also ensure the stability of the primary identification after the device ID changes through the priority, and avoid frequent changes of the primary identification to a certain extent.
[0037] In some optional implementations of any embodiment of the present disclosure, there is a re-determination step for the primary identification of the terminal device, and the re-determination step includes: in response to receiving ID report information reported by the terminal device, searching the primary identification of the terminal device in the ID database, wherein the ID report information includes the unique in-application ID and application list of the application installed by the terminal device; if the primary identification of the terminal device is found, determining the primary identification as the primary identification of the terminal device; if the primary identification of the terminal device is not found, determining the application with the highest priority among the applications installed by the terminal device.
[0038] In these optional implementations, the terminal devices in these implementations may be consistent with the above-mentioned terminal devices, or may be different terminal devices. After receiving the ID report information reported by the terminal device, the server and other electronic devices may search for the primary identifier of the terminal device in the ID database. The ID database includes the historical data of the ID of the terminal device. The ID report information includes the AID and application list of the application installed by the terminal device, such as the application list add list.
[0039] Specifically, if the primary identifier of the terminal device is found in the ID database, the found primary identifier can be directly determined as the primary identifier of the terminal device. If the primary identifier of the terminal device is not found, the above-mentioned execution subject can perform the above-mentioned primary identifier determination step and determine the unique in-application ID of the application with the highest priority as the primary identifier MID of the terminal device.
[0040] These implementations can ensure the uniqueness of the MID by searching in the database and avoid duplicate generation of the MID.
[0041] Optionally, if the primary identifier of the terminal device is found, the primary identifier is determined as the primary identifier of the terminal device, which may include: if the number of primary identifiers of the terminal device found is at least two, the earliest primary identifier generated among the found primary identifiers is determined as the primary identifier of the terminal device.
[0042] In these optional implementations, if at least two primary identifiers are found in the ID database, the electronic device may determine the earliest generated primary identifier among the found primary identifiers, that is, the earliest appearing primary identifier, as the primary identifier of the terminal device.
[0043] These optional implementations may use the earliest generated primary identifier as the primary identifier of the terminal device, thereby ensuring the stability of the primary identifier and avoiding frequent changes of the primary identifier.
[0044] In some optional implementations of any embodiment of the present disclosure, the method may also include: obtaining a set of in-application unique IDs of each application installed on the terminal device; and determining the in-application unique ID of the application with the highest priority as the primary identifier MID of the terminal device, including: determining the in-application unique ID of the application with the highest priority in the set as the primary identifier MID of the terminal device.
[0045] In these optional implementations, the execution subject may obtain a set SID of unique in-application IDs of each application installed on the terminal device. Specifically, the execution subject may obtain a set transmitted by other electronic devices. Alternatively, the execution subject may also generate a set of these IDs using the unique in-application IDs of each application. Specifically, the execution subject may generate a set using the determination function of the ID.
[0046] After acquiring the set, the execution subject may determine the primary identifier MID of the terminal device in the set.
[0047] These implementations can improve the recall rate of IDs by aggregating unique IDs within applications of various applications of terminal devices, which helps to improve the accuracy of determining the primary identifier.
[0048] Further references Figure 3 There is a mapping relationship between the ID of the terminal device and the MID, and the steps of generating the mapping relationship may include:
[0049] Step 301 , collecting different IDs for the terminal devices according to different browsers of the terminal devices, wherein one browser corresponds to one ID to be collected, and different browsers correspond to different IDs.
[0050] In this embodiment, the method for determining the device ID runs on an execution subject (eg Figure 1 The server shown) can collect different IDs for the terminal devices according to the different browsers of the terminal devices. The above-mentioned execution subject can adopt various methods to collect different IDs for the terminal devices according to the different browsers of the terminal devices. For example, a browser may have an ID to be collected. In the case where there is an ID for each browser, the above-mentioned execution subject can collect an ID for each browser. Alternatively, a browser may have at least two IDs, and the above-mentioned execution subject can adopt preset rules to collect one of the at least two IDs. For example, select an ID with the highest frequency of use from at least two IDs and determine it as the ID to be collected. In addition, the above-mentioned execution subject can also collect other IDs besides browsers. The collected IDs may include, for example, CUID, anonymous device identifier OAID, application package name pkg, device number deviceid, and imei number. Specifically, it can be collected from various logs uploaded by terminal devices (that is, ID report information), such as CUID logs (involving CUID, IDFA, OAID, where IDFA is the identifier for advertising), imei logs (involving imei number and CUID), terminal behavior logs (involving CUID, UID, IDFA, where UID is the user identifier) and call-up logs (involving CUID), etc.
[0051] Step 302: Generate mapping relationships between different IDs and the MID of the terminal device.
[0052] In this embodiment, the execution entity may generate a mapping relationship between each of the different IDs and the MID of the terminal device.
[0053] This embodiment can generate mappings between different IDs and MIDs, thereby facilitating unification of various IDs of terminal devices into the MID, and facilitating data analysis and statistics using the MID.
[0054] Optionally, the above method may further include: in response to receiving a query request using one of the mapping relationships as a query term, outputting a query result including the other one of the mapping relationships.
[0055] In these optional implementations, the mapping relationship is a relationship between the two, the ID in the different IDs is one of the IDs involved in the mapping relationship, and the MID is the other of the IDs involved. That is, if the query term includes any ID in the different IDs, the query result includes the MID. If the query term includes the MID, the query result includes at least one ID in the different IDs.
[0056] In these implementations, the user can use the mapping relationship to query the IDs of different data sources on the same user device.
[0057] Optionally, the MID has the function of the ID mapped by the MID in the mapping relationship, and the method further includes: in response to the first ID mapped by the main identifier being used to request to obtain the information flow, sending an information flow acquisition request including the main identifier, and receiving the returned information flow.
[0058] Specifically, if the first ID mapped by the main identifier is used to request the acquisition of the information stream, it can be carried in the information stream acquisition request. Under normal circumstances, the above-mentioned execution subject can send an information stream (such as a feed stream) acquisition request for acquiring the information stream to a device such as a server, and the information stream acquisition request includes the first ID, and receives the feedback information stream. Correspondingly, if the above-mentioned execution subject sends an information stream acquisition request including the MID to the device, it will also receive the returned information stream.
[0059] In these implementations, the MID may have the functions of the mapped ID, and thus may replace the mapped ID to perform various functions, thereby improving the usability of the terminal device identification.
[0060] Optionally, the collecting of different IDs for the terminal devices according to different browsers of the terminal devices may include: for each browser of the terminal device, in response to at least two IDs corresponding to the browser, collecting the ID with the latest generation time among the at least two IDs.
[0061] Specifically, if the browser corresponds to at least two IDs, the ID with the latest generation time (i.e., appearance time) can be used as the ID to be collected. These optional implementations can ensure the timeliness of the collected IDs through the latest ID.
[0062] In some optional implementations of any embodiment of the present disclosure, the method also includes: in response to the determination function of the terminal device's ID being turned off, if the terminal device installs the target application during the period when the determination function is turned off, and the device ID of the target application changes, then reporting first ID report information including the identifier information of the main application and second ID report information including the identifier information of the target application, wherein the main application is the application indicated by the main identifier of the terminal device before the determination function is turned off, the ID report information is used to execute the re-determination step, and the identifier information includes the main identifier; in response to the determination function of the terminal device's ID being turned off and then reopened, reporting third ID report information including the identifier information corresponding to each application installed on the terminal device.
[0063] In these optional implementations, the identifier information of the main application includes the unique ID of the main application in the application, the device ID of the terminal device before the jump, and the main identifier, which is assigned to the unique ID of the main application in the application. The identifier information of the target application may include the unique ID of the target application in the application, the device ID of the terminal device after the jump, and another main identifier, which is assigned to the unique ID of the target application in the application. The identifier information is the identifier of the application of the terminal device, that is, the ID information.
[0064] After the ID determination function of the terminal device is restored, the identifier information corresponding to each application installed in the terminal device can be reported, and these identifier information constitute the third ID report information.
[0065] These optional implementations can help the server to execute the process of re-determining the primary identifier by determining and reporting the identifier information of each application including the primary identifier when the ID determination function is reopened after being closed.
[0066] Optionally, the main identifier in the first ID report information is the in-application unique ID of the main application, the main identifier in the second ID report information is the in-application unique ID of the target application, and the main identifier in the third ID report information is the in-application unique ID of the main application, wherein the priority of the main application is higher than that of the target application.
[0067] like Figure 4 As shown in the figure, (1) the terminal device's ID determination function is turned on, the terminal device first installs the mobile X app, and the reported ID report information includes that the AID of mobile X is x, the CUID.X of mobile X (that is, the DID in CUID.X) is a, and the AIDlist (that is, the set SID of AID) is {x}.
[0068] (2) The terminal device has installed the good Y app. The ID report information reported includes the good Y AID is y, the good Y CUID.X is a, the AID list is {x, y}, and the mid is x. The priority of the mobile X app is higher than that of the good Y app. The mobile X app is the main application.
[0069] (3) The terminal device ID determination function is closed for some reason. The terminal has installed the full Z app, and CUID.X has changed. Two ID report information are reported, namely the first ID report information and the second ID report information. The first ID report information includes that the AID of hand X is x, the CUID.X of hand X is a, the AID list is {x, y}, and mid is x. The second ID report information includes that the AID of full Z is z, the CUID.X of full Z is a', the AID list is {z}, and mid is z.
[0070] (4) After the terminal device ID confirmation function is restored, the third ID report information reported includes: the AID of hand X is x, the CUID.X of hand X is a, and the AID list is {x, y, z}; the AID of good Y is y, the CUID.X of good Y is a, and the AID list is {x, y, z}; the AID of full Z is z, the CUID.X of full Z is a', and the AID list is {x, y, z}; mid is {x}.
[0071] The terminal device in these optional implementations can, after determining that a function is turned off and then turned on again, still use the unique in-application identifier of the main application with the highest priority as the primary identifier, thereby ensuring the uniqueness and stability of the primary identifier.
[0072] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for determining a device ID. Figure 2 Corresponding to the method embodiment shown in FIG. 1 , in addition to the features described below, the device embodiment may also include Figure 2 The device can be applied to various electronic devices.
[0073] like Figure 5 As shown, the device ID determination apparatus 500 of this embodiment includes: a jump unit 501 and a determination unit 502. The jump unit 501 is configured to respond to the ID determination function of the terminal device being turned off and then turned on again. If the terminal device installs the target application during the period when the determination function is turned off, and the device ID of the target application changes, then determine the application with the highest priority among the applications installed by the terminal device, wherein the priority is the priority of the application identifier being selected as the primary identifier; the determination unit 502 is configured to determine the unique ID in the application of the application with the highest priority as the primary identifier of the terminal device.
[0074] In this embodiment, the specific processing of the jump unit 501 and the determination unit 502 of the device ID determination device 500 and the technical effects thereof can be referred to respectively. Figure 2 The relevant descriptions of step 201 and step 202 in the corresponding embodiment are not repeated here.
[0075] In some optional implementations of the present embodiment, there is a re-determination step for the primary identification of the terminal device, and the re-determination step includes: in response to receiving ID report information reported by the terminal device, searching the primary identification of the terminal device in the ID database, wherein the ID report information includes the unique in-application ID and application list of the application installed by the terminal device; if the primary identification of the terminal device is found, determining the primary identification as the primary identification of the terminal device; if the primary identification of the terminal device is not found, determining the application with the highest priority among the applications installed by the terminal device.
[0076] In some optional implementations of this embodiment, if the primary identifier of the terminal device is found, the primary identifier is determined as the primary identifier of the terminal device, including: if the number of primary identifiers of the terminal device found is at least two, the earliest primary identifier generated among the found primary identifiers is determined as the primary identifier of the terminal device.
[0077] In some optional implementations of this embodiment, the device also includes: an acquisition unit, configured to acquire a set of in-application unique IDs of each application installed on the terminal device; and a determination unit, further configured to execute the following method to determine the in-application unique ID of the application with the highest priority as the primary identifier of the terminal device: determine the in-application unique ID of the application with the highest priority in the set as the primary identifier of the terminal device.
[0078] In some optional implementations of this embodiment, there is a mapping relationship between the ID of the terminal device and the primary identifier, and the step of generating the mapping relationship includes: collecting different IDs for the terminal device according to different browsers of the terminal device, wherein one browser corresponds to one ID to be collected and different browsers correspond to different IDs; and generating a mapping relationship between different IDs and the primary identifier of the terminal device.
[0079] In some optional implementations of this embodiment, the primary identifier has the function of the ID mapped by the primary identifier in the mapping relationship, and the device also includes: an interaction unit, configured to respond to the first ID mapped by the primary identifier for requesting to obtain the information flow, send an information flow acquisition request including the primary identifier, and receive the returned information flow.
[0080] In some optional implementations of this embodiment, different IDs are collected for the terminal devices according to different browsers of the terminal devices, including: for each browser of the terminal device, in response to at least two IDs corresponding to the browser, collecting the ID with the latest generation time among the at least two IDs.
[0081] In some optional implementations of this embodiment, the device also includes: a first reporting unit, configured to respond to the shutdown of the determination function of the terminal device's ID. If the terminal device installs the target application during the shutdown of the determination function and the device ID of the target application changes, then report first ID report information including the identifier information of the main application and second ID report information including the identifier information of the target application, wherein the main application is the application indicated by the main identifier of the terminal device before the determination function is turned off, the ID report information is used to execute the re-determination step, and the identifier information includes the main identifier; a second reporting unit, configured to respond to the ID determination function of the terminal device being reopened after being turned off, and report third ID report information including the identifier information corresponding to each application installed on the terminal device.
[0082] In some optional implementations of this embodiment, the main identifier in the first ID report information is the in-application unique ID of the main application, the main identifier in the second ID report information is the in-application unique ID of the target application, and the main identifier in the third ID report information is the in-application unique ID of the main application, wherein the priority of the main application is higher than that of the target application.
[0083] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0084] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0085] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0086] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0087] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the determination method of the device ID. For example, in some embodiments, the determination method of the device ID may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the determination method of the device ID described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the determination method of the device ID in any other appropriate manner (e.g., by means of firmware).
[0088] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0089] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0090] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0092] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0093] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0094] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0095] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for determining a device ID, the method comprising: In response to the device ID determined by the target application newly installed on the terminal device after the ID determination function is turned off and before it is re-enabled being different from the commonly recognized device ID determined by the ID determination function, determining the application with the highest priority among the applications installed on the terminal device; wherein the ID determination function is a function for enabling different applications installed on the same terminal device to determine the same device ID for the terminal device through a shared path, and each of the applications has a corresponding priority; The device ID determined by the application with the highest priority is determined as the commonly recognized device ID of the terminal device when the ID determination function is not enabled.
2. The method according to claim 1, wherein: Determining the device ID determined by the application with the highest priority as the commonly recognized device ID of the terminal device before the ID function is determined to be not re-enabled includes: In response to the number of applications with the highest priority being at least two, the device ID determined by the earliest installed application with the highest priority is determined as the commonly recognized device ID of the terminal device when the ID determination function is not enabled.
3. The method according to claim 1, further comprising: Obtaining a set of device IDs determined by each application installed on the terminal device; as well as The step of determining the device ID determined by the application with the highest priority as the commonly recognized device ID of the terminal device before the ID function is determined to be not reopened includes: The device ID determined by the application with the highest priority in the set is determined as the commonly recognized device ID of the terminal device when the ID determination function is not enabled.
4. The method according to claim 1, wherein: There is a mapping relationship between the device ID of the terminal device and the commonly recognized device ID, and the step of generating the mapping relationship includes: According to different browsers of the terminal device, different device IDs are collected for the terminal device, wherein one browser corresponds to one device ID to be collected, and different browsers correspond to different device IDs; A mapping relationship between the different device IDs and the commonly recognized device ID of the terminal device is generated.
5. The method according to claim 4, wherein: The commonly recognized device ID has the function of the device ID mapped by the commonly recognized device ID in the mapping relationship, and the method further includes: In response to the first device ID mapped to the commonly recognized device ID being used to request to obtain the information flow, an information flow acquisition request including the commonly recognized device ID is sent, and a returned information flow is received.
6. The method according to claim 4, wherein: The collecting different device IDs for the terminal devices according to different browsers of the terminal devices includes: For each browser of the terminal device, in response to at least two IDs corresponding to the browser, the device ID with the latest generation time among the at least two device IDs is collected.
7. A device for determining a device ID, the device comprising: The jump unit is configured to determine the application with the highest priority among the applications installed in the terminal device in response to the device ID determined by the newly installed target application after the ID determination function is turned off and before it is restarted, which is different from the commonly recognized device ID determined by the ID determination function; wherein the ID determination function is a function for enabling different applications installed on the same terminal device to determine the same device ID for the terminal device through a shared path, and each of the applications has a corresponding priority; The determination unit is configured to determine the device ID determined by the application with the highest priority as the commonly recognized device ID of the terminal device when the ID determination function is not enabled.
8. The device according to claim 7, wherein: The determining unit is further configured to: In response to the number of applications with the highest priority being at least two, the device ID determined by the earliest installed application with the highest priority is determined as the commonly recognized device ID of the terminal device when the ID determination function is not enabled.
9. The apparatus according to claim 7, further comprising: An acquisition unit is configured to acquire a set of device IDs independently determined by various applications installed on the terminal device; as well as The determining unit is further configured to: The device ID determined by the application with the highest priority in the set is determined as the commonly recognized device ID of the terminal device when the ID determination function is not enabled.
10. The device according to claim 7, wherein: There is a mapping relationship between the device ID of the terminal device and the commonly recognized device ID, and the step of generating the mapping relationship includes: According to different browsers of the terminal device, different device IDs are collected for the terminal device, wherein one browser corresponds to one device ID to be collected, and different browsers correspond to different device IDs; A mapping relationship between the different device IDs and the commonly recognized device ID of the terminal device is generated.
11. The device according to claim 10, wherein: The commonly recognized device ID has the function of the device ID mapped by the commonly recognized device ID in the mapping relationship, and the apparatus further includes: The interaction unit is configured to send an information flow acquisition request including the commonly recognized device ID in response to the first device ID mapped to the commonly recognized device ID being used to request acquisition of the information flow, and receive the returned information flow.
12. The device according to claim 10, wherein: The collecting different device IDs for the terminal devices according to different browsers of the terminal devices includes: For each browser of the terminal device, in response to at least two IDs corresponding to the browser, the device ID with the latest generation time among the at least two device IDs is collected.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Information processing method and device
CN110321738A