CN106383869B - Method and device for acquiring user behavior information - Google Patents

Method and device for acquiring user behavior information Download PDF

Info

Publication number
CN106383869B
CN106383869B CN201610802591.3A CN201610802591A CN106383869B CN 106383869 B CN106383869 B CN 106383869B CN 201610802591 A CN201610802591 A CN 201610802591A CN 106383869 B CN106383869 B CN 106383869B
Authority
CN
China
Prior art keywords
behavior information
user behavior
root node
user
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610802591.3A
Other languages
Chinese (zh)
Other versions
CN106383869A (en
Inventor
卢伟超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN201610802591.3A priority Critical patent/CN106383869B/en
Publication of CN106383869A publication Critical patent/CN106383869A/en
Application granted granted Critical
Publication of CN106383869B publication Critical patent/CN106383869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Abstract

The invention discloses a method and a device for acquiring user behavior information. Wherein the method comprises the following steps: obtaining a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring user behavior information inside the application corresponding to the root node according to the information of the root node. By the method, the operating system can collect the user behavior information in the third-party application installed on the terminal, the user behavior information collection process is simplified, and the user behavior information acquisition efficiency is improved.

Description

Method and device for acquiring user behavior information
Technical Field
The invention belongs to the field of communication, and particularly relates to a method and a device for acquiring user behavior information.
Background
With the development of the internet, it is often necessary to analyze the behavior information of the user so as to predict the potential behavior of the user, and then determine a distribution strategy or a processing strategy of the internet information based on the prediction result.
For example, in the field of electronic commerce, analyzing behavior information of users is undoubtedly a very important link in large websites and high-traffic websites, and through data analysis, we can know traffic, traffic sources, which pages are visited the highest, which pages need to be promoted, which returning users, which users do not convert to target users after browsing, and the converted target users enter transaction pages through the pages, and so on. People can perform Search Engine Optimization (SEO) according to the analysis result of the user behavior information, adjust webpage information to improve click rate and attract target customers, and the like.
The current statistical methods for user behavior are generally as follows: the method is realized by each application or realized by the UsageStatsService service of the android system.
However, when the user behavior statistics is realized by each application, each application which needs to count the user behavior needs to rewrite the codes related to the user behavior collection, and is not easy to operate and maintain. User behavior statistics is realized through the UsageStatsService service of the Android system, only information such as the starting time of each Application can be recorded, but the operating system cannot collect user behavior information inside a third-party Application (App), wherein the internal user behavior information refers to information such as whether a control in the Application is operated by a user.
Disclosure of Invention
The invention provides a method and a device for acquiring user behavior information.
In order to solve the above problem, a first aspect of the present invention provides a method for acquiring user behavior information, where the method includes:
obtaining a source file corresponding to a component for managing a user interface in an operating system;
modifying the source file and increasing a user behavior information statistical function;
when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application;
and acquiring user behavior information inside the application corresponding to the root node according to the information of the root node.
In order to solve the above problem, the present invention provides, in a second aspect, an apparatus for acquiring user behavior information, the apparatus including:
the source file acquisition module is used for acquiring a source file corresponding to a component for managing a user interface in an operating system;
the modification module is used for modifying the source file and increasing the user behavior information statistical function;
the root node acquisition module is used for executing the binary file corresponding to the source file and acquiring a root node corresponding to each application when preset operation for triggering acquisition of user behavior information is acquired;
and the behavior information acquisition module is used for acquiring the user behavior information in the application corresponding to the root node according to the information of the root node.
According to the scheme, the terminal obtains a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring the user behavior information in the application corresponding to the root node according to the information of the root node, wherein the operating system can collect the user behavior information in the third-party application installed on the terminal, so that the user behavior information collecting process is simplified, and the user behavior information acquiring efficiency is improved.
Drawings
FIG. 1 is a flow chart of one embodiment of a method for obtaining user behavior information in accordance with the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an organization structure of a widget according to the present invention;
FIG. 3 is a schematic structural diagram of another embodiment of an organization structure of a control according to the present invention;
FIG. 4 is a flow chart of another embodiment of a method of obtaining user behavior information in accordance with the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of an apparatus for acquiring user behavior information according to the present invention;
FIG. 6 is a schematic structural diagram of another embodiment of an apparatus for acquiring user behavior information according to the present invention;
fig. 7 is a schematic structural diagram of an apparatus for acquiring user behavior information according to still another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for obtaining user behavior information according to an embodiment of the present invention. The execution main body of the method for acquiring the user behavior information is the terminal. The terminal may be a mobile terminal such as a mobile phone and a tablet computer, or may be another terminal that needs to acquire user behavior information inside a third-party Application Program (App), which is not limited herein. The method for acquiring the user behavior information in the embodiment comprises the following steps:
s101: and acquiring a source file corresponding to a component for managing the user interface in the operating system.
And the terminal acquires a source file corresponding to a component for managing the user interface in the operating system.
The operating system of the terminal includes, but is not limited to, an android operating system. In this embodiment, an Android operating system is taken as an example for explanation.
For example, the terminal obtains a source code of an Activity component (a component for managing a user interface) in an Android operating system, and obtains a source file Activity.
The Activity component is one of four major components of an Android application program, is responsible for managing an interface of the Android application program, and is represented as a visual interface interacted with a user. An application typically contains several Activity components, each of which is responsible for the presentation of a user interface.
Referring to fig. 2 and fig. 3 together, fig. 2 is a schematic structural diagram of an embodiment of an organization structure of a widget according to the present invention. FIG. 3 is a structural diagram of another embodiment of the organization structure of the control according to the present invention.
As shown in FIG. 2, in the android operating system, the Activity component of each application is connected in series by the nodes of PhoneWindow $ DecorView and rootviewprompt, and is organized into a tree structure (the tree structure is shown in FIG. 3), and is uniformly managed by WindowManger Impl. That is, PhoneWindow $ DecorView and rootviewprompt are both member variables of the WindowManger Impl.
S102: and modifying the source file, and increasing the user behavior information statistical function.
And the terminal modifies the acquired source file activity.java file, adds a function corresponding to the user behavior information statistical function in the activity.java file through a reflection mechanism provided by Java, and integrates the modified source file into an android operating system.
The reflection mechanism is not described herein in detail, and reference may be made to the related description of the reflection mechanism provided by Java in the prior art.
S103: and when the preset operation of triggering the acquisition of the user behavior information is acquired, executing the binary file corresponding to the source file, and acquiring the root node corresponding to each application.
When a user needs to acquire user behavior information, a preset operation for acquiring the user behavior information can be triggered through a setting interface or other interactive interfaces so as to start a function for acquiring the user behavior information.
When the terminal acquires the preset operation for triggering acquisition of the user behavior information, the terminal executes a binary file corresponding to a source file Activity.
S104: and acquiring user behavior information inside the application corresponding to the root node according to the information of the root node.
Because most of the applications in the android operating system are developed based on the controls in the android operating system, as shown in fig. 2, the organization structure of each control is organized according to a tree structure in the system, and therefore, the terminal can acquire the user behavior information generated by the user controlling each application control by acquiring the related information of all the controls corresponding to the root node. Each application runs in a separate process, and the information of the application related control is acquired, namely the user behavior information generated by the user controlling the application control can be acquired.
And the terminal acquires a control related to the root node according to the information (identification and the like) of the root node, acquires the information of the related control, and acquires the user behavior information inside the application corresponding to the root node according to the acquired control information.
According to the scheme, the terminal obtains a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring the user behavior information in the application corresponding to the root node according to the information of the root node, wherein the operating system can collect the user behavior information in the third-party application installed on the terminal. Because the terminal integrates the modified source file into the operating system, each application needing to acquire the user behavior information does not need to rewrite the codes related to the user behavior collection, the user behavior information collection process can be simplified, and the user behavior information acquisition efficiency is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for obtaining user behavior information according to another embodiment of the present invention. The execution main body of the method for acquiring the user behavior information is the terminal. The terminal may be a mobile terminal such as a mobile phone and a tablet computer, or may be another terminal that needs to acquire user behavior information inside a third-party Application Program (App), which is not limited herein. The method for acquiring the user behavior information in the embodiment comprises the following steps:
s201: and acquiring a source file corresponding to a component for managing the user interface in the operating system.
And the terminal acquires a source file corresponding to a component for managing the user interface in the operating system.
The operating system of the terminal includes, but is not limited to, an android operating system. In this embodiment, an Android operating system is taken as an example for explanation.
For example, the terminal obtains a source code of an Activity component (a component for managing a user interface) in an Android operating system, and obtains a source file Activity.
The Activity component is one of four major components of an Android application program, is responsible for managing an interface of the Android application program, and is represented as a visual interface interacted with a user. An application typically contains several Activity components, each of which is responsible for the presentation of a user interface.
Referring to fig. 2 and fig. 3 together, fig. 2 is a schematic structural diagram of an embodiment of an organization structure of a widget according to the present invention. FIG. 3 is a structural diagram of another embodiment of the organization structure of the control according to the present invention.
As shown in FIG. 2, in the android operating system, the Activity component of each application is connected in series by the nodes of PhoneWindow $ DecorView and rootviewprompt, and is organized into a tree structure (the tree structure is shown in FIG. 3), and is uniformly managed by WindowManger Impl. That is, PhoneWindow $ DecorView and rootviewprompt are both member variables of the WindowManger Impl.
S202: and modifying the source file, and increasing the user behavior information statistical function.
And the terminal modifies the acquired source file activity.java file, adds a function corresponding to the user behavior information statistical function in the activity.java file through a reflection mechanism provided by Java, and integrates the modified source file into an android operating system.
The reflection mechanism is not described herein in detail, and reference may be made to the related description of the reflection mechanism provided by Java in the prior art.
Optionally, step S202 may include: determining a control responding to user operation according to an application program interface contained in the source file; and adding a user behavior information statistical function in the function of the control responding to the user operation.
Java file, and determining a control responding to user operation according to the API; and adding the operation of user behavior information statistics in the function of the control responding to the user operation through a reflection mechanism.
The system control can be divided into two types, one type is a control responding to the user operation, and the other type is a control not responding to the user operation.
Further, a control responsive to user operation is inherited from the text view control TextView.
S203: and when the preset operation of triggering the acquisition of the user behavior information is acquired, executing the binary file corresponding to the source file, and acquiring the root node corresponding to each application.
When a user needs to acquire user behavior information, a preset operation for acquiring the user behavior information can be triggered through a setting interface or other interactive interfaces so as to start a function for acquiring the user behavior information.
When the terminal acquires the preset operation for triggering acquisition of the user behavior information, the terminal executes a binary file corresponding to a source file Activity.
S204: and acquiring all child nodes corresponding to the root node according to the class name of the root node.
When acquiring the root node corresponding to each application, the terminal may acquire a class name corresponding to the root node through a reflection mechanism, for example, view. When the terminal acquires the class name of the root node corresponding to each application, all child nodes corresponding to the root node are acquired according to the class name of the root node.
And the child node corresponding to the root node is a control related to the root node.
S205: and acquiring the user behavior information inside the application corresponding to the root node according to the relevant information of all the child nodes.
And traversing all the acquired child nodes corresponding to each root node by the terminal, acquiring relevant information of all the child nodes, and acquiring user behavior information inside the application corresponding to each root node according to the acquired control information.
Since the applications in the android operating system are mostly developed based on the controls in the android operating system, as shown in fig. 2, the organization structure of each control is organized according to a tree structure in the system, and therefore, the terminal can acquire the user behavior information generated by the user controlling each application control by acquiring the related information of all the controls corresponding to the root node. Each application runs in a separate process, and the information of the application related control is acquired, namely the user behavior information generated by the user controlling the application control can be acquired.
Further, step S205 specifically includes: determining the control responding to the user operation from all the child nodes; and acquiring user behavior information in the application corresponding to the control responding to the user operation.
The terminal traverses all the child nodes corresponding to each root node according to the information of all the child nodes corresponding to each root node, judges whether the child nodes are controls responding to the user operation, determines the controls responding to the user operation corresponding to each root node, acquires the related information of the controls responding to the user operation, and extracts the user behavior information inside the application corresponding to the controls responding to the user operation from the related information of the controls.
For example, after acquiring all the child nodes corresponding to each root node, the terminal determines which child nodes are inherited from the text view control TextView, or determines which child nodes are from the text view control TextView, and identifies the child nodes inherited from and from the text view control TextView as controls responding to user operations.
The terminal acquires the user behavior information generated by the control operated by the user and responded to the user operation by acquiring the relevant information corresponding to the control operated by the user, and further can acquire the user behavior information in the application corresponding to the control operated by the user.
According to the scheme, the terminal obtains a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring the user behavior information in the application corresponding to the root node according to the information of the root node, wherein the operating system can collect the user behavior information in the third-party application installed on the terminal. Because the terminal integrates the modified source file into the operating system, each application needing to acquire the user behavior information does not need to rewrite the codes related to the user behavior collection, the user behavior information collection process can be simplified, and the user behavior information acquisition efficiency is improved.
The terminal does not acquire the relevant information of the unresponsive user operation type control, so that the data processing amount of the terminal can be reduced, and the acquisition rate of the user behavior information is improved; the terminal acquires the user behavior information in the application corresponding to the control responding to the user operation by acquiring the relevant information of the control responding to the user operation, and the accuracy of the acquired user behavior information can be improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of an apparatus for acquiring user behavior information according to the present invention. The device for acquiring the user behavior information may be a terminal, and the terminal may be a mobile terminal such as a mobile phone and a tablet computer, and may also be another terminal that needs to acquire the user behavior information inside a third-party Application Program (App), which is not limited herein. The modules included in the apparatus for obtaining user behavior information are used to execute the steps in the embodiment corresponding to fig. 1, please refer to fig. 1 and the related description in the embodiment corresponding to fig. 1, which are not described herein again. The terminal of the present embodiment includes a source file obtaining module 510, a modification module 520, a root node obtaining module 530, and a behavior information obtaining module 540.
The source file obtaining module 510 is configured to obtain a source file corresponding to a component of an operating system that manages a user interface. For example, the source file obtaining module 510 obtains a source file corresponding to a component in an operating system that manages a user interface. The source file fetch module 510 sends the source file to the modification module 520.
The modification module 520 is configured to receive the source file sent by the source file obtaining module 510, modify the source file, and add a user behavior information statistics function. For example, the modification module 520 receives the source file sent by the source file obtaining module 510, modifies the source file, and adds a user behavior information statistics function.
The modification module 520 sends notification information to the root node obtaining module 530 to notify the root node obtaining module 530 to monitor a preset operation that triggers obtaining user behavior information.
The root node obtaining module 530 is configured to receive the notification information sent by the modifying module 520, and when a preset operation that triggers obtaining of user behavior information is obtained, execute a binary file corresponding to the source file, and obtain a root node corresponding to each application.
For example, the root node obtaining module 530 receives the notification information sent by the modifying module 520, and when a preset operation that triggers obtaining of the user behavior information is obtained, executes the binary file corresponding to the source file, and obtains the root node corresponding to each application.
The root node obtaining module 530 sends the root node information to the behavior information obtaining module 540.
The behavior information obtaining module 540 is configured to receive the root node information sent by the root node obtaining module 530, and obtain user behavior information inside the application corresponding to the root node according to the information of the root node.
For example, the behavior information obtaining module 540 receives the root node information sent by the root node obtaining module 530, and obtains the user behavior information inside the application corresponding to the root node according to the information of the root node.
According to the scheme, the terminal obtains a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring the user behavior information in the application corresponding to the root node according to the information of the root node, wherein the operating system can collect the user behavior information in the third-party application installed on the terminal. Because the terminal integrates the modified source file into the operating system, each application needing to acquire the user behavior information does not need to rewrite the codes related to the user behavior collection, the user behavior information collection process can be simplified, and the user behavior information acquisition efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another embodiment of an apparatus for acquiring user behavior information according to the present invention. The device for acquiring the user behavior information may be a terminal, and the terminal may be a mobile terminal such as a mobile phone and a tablet computer, and may also be another terminal that needs to acquire the user behavior information inside a third-party Application Program (App), which is not limited herein. The modules included in the apparatus for obtaining user behavior information are used to execute the steps in the embodiment corresponding to fig. 4, please refer to fig. 4 and the related description in the embodiment corresponding to fig. 4, which are not described herein again. The terminal of the present embodiment includes a source file obtaining module 610, a modification module 620, a root node obtaining module 630, and a behavior information obtaining module 640. Wherein, the modification module 620 includes a determination unit 621 and a modification unit 622; the behavior information acquisition module 640 includes a child node acquisition unit 641 and a behavior information acquisition unit 642.
The source file obtaining module 610 is configured to obtain a source file corresponding to a component of an operating system that manages a user interface. For example, the source file obtaining module 610 obtains a source file corresponding to a component in the operating system that manages the user interface. The source file acquisition module 610 sends the source file to the modification module 620.
The modification module 620 is configured to receive the source file sent by the source file obtaining module 610, modify the source file, and add a user behavior information statistics function. For example, the modification module 620 receives the source file sent by the source file obtaining module 610, modifies the source file, and adds a user behavior information statistics function.
Optionally, the determining unit 621 in the modifying module 620 is configured to determine a control responding to a user operation according to an application program interface contained in the source file; the modification unit 621 in the modification module 620 is used to add a user behavior information statistic function in the function of the control responding to the user operation.
Further, the control responsive to the user operation is inherited from the text view control.
The modification module 620 sends notification information to the root node obtaining module 630 to notify the root node obtaining module 630 to monitor a preset operation triggering obtaining of the user behavior information.
The root node obtaining module 630 is configured to receive the notification information sent by the modifying module 620, and when a preset operation that triggers obtaining of user behavior information is obtained, execute a binary file corresponding to the source file, and obtain a root node corresponding to each application.
For example, the root node obtaining module 630 receives the notification information sent by the modifying module 620, and when a preset operation that triggers obtaining of user behavior information is obtained, executes a binary file corresponding to the source file, and obtains a root node corresponding to each application.
The root node obtaining module 630 sends the root node information to the behavior information obtaining module 640.
The child node obtaining unit 641 of the behavior information obtaining module 640 is configured to receive the root node information sent by the root node obtaining module 630, and obtain all child nodes corresponding to the root node according to the class name of the root node.
The behavior information obtaining unit 642 is configured to obtain, according to the relevant information of all child nodes, user behavior information inside the application corresponding to the root node.
Further, the behavior information obtaining unit 642 is specifically configured to determine a control responding to a user operation from all child nodes; and acquiring user behavior information inside the application corresponding to the control responding to the user operation.
According to the scheme, the terminal obtains a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring the user behavior information in the application corresponding to the root node according to the information of the root node, wherein the operating system can collect the user behavior information in the third-party application installed on the terminal. Because the terminal integrates the modified source file into the operating system, each application needing to acquire the user behavior information does not need to rewrite the codes related to the user behavior collection, the user behavior information collection process can be simplified, and the user behavior information acquisition efficiency is improved.
The terminal does not acquire the relevant information of the unresponsive user operation type control, so that the data processing amount of the terminal can be reduced, and the acquisition rate of the user behavior information is improved; the terminal acquires the user behavior information in the application corresponding to the control responding to the user operation by acquiring the relevant information of the control responding to the user operation, and the accuracy of the acquired user behavior information can be improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an apparatus for acquiring user behavior information according to another embodiment of the present invention. The device for acquiring the user behavior information may be a terminal, and the terminal may be a mobile terminal such as a mobile phone and a tablet computer, and may also be another terminal that needs to acquire the user behavior information inside a third-party Application Program (App), which is not limited herein. The apparatus for acquiring user behavior information in the embodiment shown in fig. 7 may include: one or more processors 710; one or more input devices 720, one or more output devices 730, and memory 740. The processor 710, the input device 720, the output device 730, and the memory 740 are connected by a bus 750.
The processor 710 controls the operation of the terminal, and the processor 710 may also be referred to as a Central Processing Unit (CPU). Processor 710 may be an integrated circuit chip having signal processing capabilities. The processor 710 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Output device 730 is used to transmit data.
The memory 740 is used to store program instructions.
Memory 740 may include both read-only memory and random-access memory, and provides instructions and data to processor 710. A portion of the memory 740 may also include non-volatile random access memory (NVRAM).
The various components of the terminal are coupled together by a bus 750, where bus 750 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. But for clarity of illustration the various busses are labeled in the figures as bus 750.
Memory 740 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
In the embodiment of the present invention, the processor 710 performs the following operations by calling the operation instruction stored in the memory 740 (the operation instruction may be stored in the operating system):
the processor 710 is configured to obtain a source file corresponding to a component of an operating system that manages a user interface.
The processor 710 is further configured to modify the source file to add a user behavior information statistics function.
The processor 710 is further configured to, when a preset operation that triggers obtaining of user behavior information is obtained, execute a binary file corresponding to the source file, and obtain a root node corresponding to each application.
The processor 710 is further configured to obtain, according to the information of the root node, user behavior information inside an application corresponding to the root node.
Optionally, the processor 710 is specifically configured to determine a control responding to a user operation according to an application program interface included in the source file; and adding a user behavior information statistical function in the function of the control responding to the user operation.
Optionally, the processor 710 is specifically configured to obtain all child nodes corresponding to the root node according to the class name of the root node; and the user behavior information in the application corresponding to the root node is obtained according to the relevant information of all the child nodes.
Optionally, the processor 710 is specifically configured to determine the control responding to the user operation from all the child nodes; and acquiring user behavior information in the application corresponding to the control responding to the user operation.
Optionally, the control responsive to user operation is inherited from a text view control.
According to the scheme, the terminal obtains a source file corresponding to a component for managing a user interface in an operating system; modifying the source file and increasing a user behavior information statistical function; when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application; and acquiring the user behavior information in the application corresponding to the root node according to the information of the root node, wherein the operating system can collect the user behavior information in the third-party application installed on the terminal. Because the terminal integrates the modified source file into the operating system, each application needing to acquire the user behavior information does not need to rewrite the codes related to the user behavior collection, the user behavior information collection process can be simplified, and the user behavior information acquisition efficiency is improved.
The terminal does not acquire the relevant information of the unresponsive user operation type control, so that the data processing amount of the terminal can be reduced, and the acquisition rate of the user behavior information is improved; the terminal acquires the user behavior information in the application corresponding to the control responding to the user operation by acquiring the relevant information of the control responding to the user operation, and the accuracy of the acquired user behavior information can be improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (6)

1. A method for obtaining user behavior information, the method comprising:
obtaining a source file corresponding to a component for managing a user interface in an operating system;
modifying the source file and increasing a user behavior information statistical function;
when preset operation for triggering acquisition of user behavior information is acquired, executing a binary file corresponding to the source file, and acquiring a root node corresponding to each application;
acquiring user behavior information inside the application corresponding to the root node according to the information of the root node;
the modifying the source file and the adding the user behavior information statistical function comprise:
determining a control responding to user operation according to an application program interface contained in the source file;
adding a user behavior information statistical function in the function of the control responding to the user operation through a reflection mechanism;
the obtaining of the user behavior information inside the application corresponding to the root node according to the information of the root node includes:
acquiring all child nodes corresponding to the root node according to the class name of the root node;
and acquiring the user behavior information inside the application corresponding to the root node according to the relevant information of all the child nodes.
2. The method according to claim 1, wherein the obtaining of the user behavior information inside the application corresponding to the root node according to the relevant information of all child nodes specifically includes:
determining the control responding to the user operation from all the child nodes;
and acquiring user behavior information in the application corresponding to the control responding to the user operation.
3. The method of claim 1 or 2, wherein the control responsive to the user action is inherited from a text view control.
4. An apparatus for obtaining user behavior information, the apparatus comprising:
the source file acquisition module is used for acquiring a source file corresponding to a component for managing a user interface in an operating system;
the modification module is used for modifying the source file and increasing the user behavior information statistical function;
the root node acquisition module is used for executing the binary file corresponding to the source file and acquiring a root node corresponding to each application when preset operation for triggering acquisition of user behavior information is acquired;
the behavior information acquisition module is used for acquiring user behavior information in the application corresponding to the root node according to the information of the root node;
the modification module includes:
the determining unit is used for determining a control responding to the user operation according to an application program interface contained in the source file;
the modification unit is used for adding a user behavior information statistical function in the function of the control responding to the user operation through a reflection mechanism;
the behavior information acquisition module includes:
the child node acquisition unit is used for acquiring all child nodes corresponding to the root node according to the class name of the root node;
and the behavior information acquisition unit is used for acquiring the user behavior information in the application corresponding to the root node according to the relevant information of all the child nodes.
5. The apparatus according to claim 4, wherein the behavior information obtaining unit is specifically configured to determine the control responding to the user operation from all the child nodes; and acquiring user behavior information in the application corresponding to the control responding to the user operation.
6. The apparatus of claim 4 or 5, wherein the user-responsive control is inherited from a text view control.
CN201610802591.3A 2016-09-05 2016-09-05 Method and device for acquiring user behavior information Active CN106383869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610802591.3A CN106383869B (en) 2016-09-05 2016-09-05 Method and device for acquiring user behavior information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610802591.3A CN106383869B (en) 2016-09-05 2016-09-05 Method and device for acquiring user behavior information

Publications (2)

Publication Number Publication Date
CN106383869A CN106383869A (en) 2017-02-08
CN106383869B true CN106383869B (en) 2021-02-19

Family

ID=57939144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610802591.3A Active CN106383869B (en) 2016-09-05 2016-09-05 Method and device for acquiring user behavior information

Country Status (1)

Country Link
CN (1) CN106383869B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908629B (en) * 2017-06-20 2021-03-02 平安科技(深圳)有限公司 Information query method, terminal and equipment
CN109144834B (en) * 2017-06-27 2021-11-23 深圳市Tcl高新技术开发有限公司 User behavior data acquisition method and device, android system and terminal equipment
CN114071234B (en) * 2021-11-10 2022-12-13 四川长虹电器股份有限公司 Application use duration acquisition method for android television

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946319A (en) * 2012-09-29 2013-02-27 焦点科技股份有限公司 System and method for analyzing network user behavior information
CN103530221A (en) * 2012-07-02 2014-01-22 北京大学 Method for mapping procedure behavior and interface operation in Android system
CN103631699A (en) * 2012-08-28 2014-03-12 纽海信息技术(上海)有限公司 Log management system and method for log monitoring, acquiring and querying
CN104869009A (en) * 2014-06-16 2015-08-26 青岛新闻网络传播有限公司 Website data statistics system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7287228B2 (en) * 2003-12-05 2007-10-23 International Business Machines Corporation On-demand and incremental application adaptation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530221A (en) * 2012-07-02 2014-01-22 北京大学 Method for mapping procedure behavior and interface operation in Android system
CN103631699A (en) * 2012-08-28 2014-03-12 纽海信息技术(上海)有限公司 Log management system and method for log monitoring, acquiring and querying
CN102946319A (en) * 2012-09-29 2013-02-27 焦点科技股份有限公司 System and method for analyzing network user behavior information
CN104869009A (en) * 2014-06-16 2015-08-26 青岛新闻网络传播有限公司 Website data statistics system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android应用--自动化埋点;stayfish;《CSDN》;20140619;第1页-第7页 *

Also Published As

Publication number Publication date
CN106383869A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
US10481964B2 (en) Monitoring activity of software development kits using stack trace analysis
CN108415804B (en) Method for acquiring information, terminal device and computer readable storage medium
US20120304177A1 (en) Programmatically determining an execution mode for a request dispatch utilizing historic metrics
CN111124906A (en) Tracking method, compiling method and device based on dynamic embedded points and electronic equipment
CN106383869B (en) Method and device for acquiring user behavior information
CN111190673B (en) Page display method and device based on operation monitoring and electronic equipment
US11294791B2 (en) Code optimization for connected managed runtime environments
CN111581069A (en) Data processing method and device
CN112486789A (en) Log analysis system, method and device
CN113934913A (en) Data capture method and device, storage medium and electronic equipment
CN110955434B (en) Software development kit processing method and device, computer equipment and storage medium
US9442818B1 (en) System and method for dynamic data collection
CN108845864B (en) Spring frame-based JVM garbage recycling method and device
CN112445960A (en) Method for searching correlation in application program framework and electronic equipment
CN110188308B (en) Client automatic dotting reporting method, storage medium, equipment and system
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN111078435A (en) Service processing method and device and electronic equipment
CN109684156B (en) Monitoring method, device, terminal and storage medium based on mixed mode application
US8904370B2 (en) Optimization of meta-template instantiations
CN114385457A (en) Application program data acquisition method, device, equipment and storage medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
US10698749B1 (en) System and a method for automated resolution of configuration item issues
CN108459940B (en) Configuration information modification method and device of application performance management system and electronic equipment
US9672294B2 (en) Partial data report generation with data costing notification
CN113138767B (en) Code language conversion method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 516006 TCL science and technology building, No. 17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

GR01 Patent grant
GR01 Patent grant