CN106909546A - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN106909546A
CN106909546A CN201510971749.5A CN201510971749A CN106909546A CN 106909546 A CN106909546 A CN 106909546A CN 201510971749 A CN201510971749 A CN 201510971749A CN 106909546 A CN106909546 A CN 106909546A
Authority
CN
China
Prior art keywords
control part
browser control
node
current application
view
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.)
Pending
Application number
CN201510971749.5A
Other languages
Chinese (zh)
Inventor
刘昕
唐淳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510971749.5A priority Critical patent/CN106909546A/en
Publication of CN106909546A publication Critical patent/CN106909546A/en
Pending legal-status Critical Current

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of data processing method and device are the embodiment of the invention provides, described method includes:According to the monitoring of the activity change event to current application, the Views tree of current application is obtained;Each node in the Views tree is traveled through, the view type of each node respective view object is searched;When the view object is judged for browser control part according to view type, the characteristic information of the browser control part is obtained;When detecting that the characteristic information meets preset interception rule, the browser control part is intercepted.User can be intercepted when using smart machine to garbages such as some advertising messages, reduce the consumption of customer flow.

Description

A kind of data processing method and device
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data processing method and a kind of number According to processing unit.
Background technology
With the development of science and technology, increasing user uses intelligent terminal, intelligent terminal to also provide more Carry out more various function.User would generally install various application programs when using mobile terminal and perform difference Operation, for example provided with player application viewing audio frequency and video, install shopping application carry out shopping online, pacify Game etc. is played in dress game application.
Various functions are usually contained in, accordingly shows different data messages, but these data are believed The mode that breath is only capable of being provided according to application is processed, and user may need to shield some display contents sometimes Such as advertisement.But, it is existing generally the garbages such as advertisement shown in application effectively to be blocked Cut, cause the waste of resource.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least part of to provide one kind The data processing method that solves the above problems and corresponding data processing equipment.
According to one aspect of the present invention, there is provided a kind of data processing method, including:
According to the monitoring of the activity change event to current application, the Views tree of current application is obtained;
Each node in the Views tree is traveled through, the view type of each node respective view object is searched;
When the view object is judged for browser control part according to view type, the browser control is obtained The characteristic information of part;
When detecting that the characteristic information meets preset interception rule, the browser control part is blocked Cut.
Optionally, according to the monitoring of the activity change event to current application, the view of current application is obtained Tree, including:
Monitor the activity change event of the current application;
When determining that the interface layout of the current application changes according to the activity change event, obtain The Views tree of the current application.
Optionally, the activity change event of the current application is monitored, including:
Monitor the Views tree change events and life cycle events of the current application.
Optionally, each node in the Views tree is traveled through, the view class of each node respective view object is searched Type, including:
Each node is begun stepping through from the root node of the Views tree;
For each node, according to the view class of the node corresponding node information searching respective view object Type.
Optionally, the characteristic information of the browser control part is obtained, including:
For browser control part, the corresponding code characteristic of the browser control part is extracted, the code is special Levy the characteristic information as the browser control part.
Optionally, also include:
Characteristic matching is carried out to the code characteristic of the browser control part using preset features storehouse;
When recognizing the browser control part for destination object by characteristic matching, the characteristic information symbol is confirmed Close preset interception rule.
Optionally, the browser control part is intercepted, including:
The Views tree is searched as starting point, from bottom to top with the browser control part corresponding node, institute is determined Browser control part correspondence parent window is stated, the parent window is intercepted.
Optionally, also include:Target signature is obtained from Cloud Server, the target signature is added to institute In stating preset features storehouse.
A kind of other side according to embodiments of the present invention, there is provided data processing equipment, including:
Acquisition module is monitored, the monitoring for foundation to the activity change event of current application obtains current The Views tree of application;
Traversal searching modul, for traveling through each node in the Views tree, searches each node respective view pair The view type of elephant;
Acquisition module, for when the view object is judged for browser control part according to view type, obtaining Take the characteristic information of the browser control part;
Blocking module, for when detecting that the characteristic information meets preset interception rule, being browsed to described Device control is intercepted.
Optionally, the monitoring acquisition module, including:
Monitor submodule, the activity change event for monitoring the current application;
Views tree acquisition submodule, the boundary for determining the current application according to the activity change event When face layout changes, the Views tree of the current application is obtained.
Optionally, the monitoring submodule, for monitor the current application Views tree change events and Life cycle events.
Optionally, the traversal searching modul, including:
Traversal submodule, for beginning stepping through each node from the root node of the Views tree;
Submodule is searched, for for each node, according to node corresponding node information searching correspondence The view type of view object.
Optionally, the acquisition module, for for browser control part, extracting the browser control part pair The code characteristic answered, using the code characteristic as the browser control part characteristic information.
Optionally, also include:Characteristic matching module, for using preset features storehouse to the browser control The code characteristic of part carries out characteristic matching;Recognize that the browser control part is destination object by characteristic matching When, confirm that the characteristic information meets preset interception rule.
Optionally, the blocking module, for the browser control part corresponding node as starting point, under And the upper lookup Views tree, determine the browser control part correspondence parent window, the parent window is carried out Intercept.
Optionally, also include:Feature database processing module, for obtaining target signature from Cloud Server, will The target signature is added in the preset features storehouse.
The embodiment of the present invention currently should be obtained by the monitoring according to the activity change event to current application Views tree;Each node in traversal Views tree, searches the view type of each node respective view object, When the view object is judged for browser control part according to view type, the browser control part is obtained Characteristic information;When detecting that the characteristic information meets preset interception rule, the browser control part is entered Row is intercepted so that user can be carried out when using smart machine to garbages such as some advertising messages Intercept, reduce the consumption of customer flow.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical part.In the accompanying drawings:
Fig. 1 shows data processing method steps flow chart according to an embodiment of the invention;
Fig. 2 shows data processing method steps flow chart in accordance with another embodiment of the present invention;
Fig. 3 shows the structured flowchart of data processing equipment according to an embodiment of the invention;And
Fig. 4 shows the structured flowchart of data processing equipment in accordance with another embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
In the present embodiment, smart machine refers to the computer equipment with multimedia function, including intelligence The mobile device such as various equipment such as smart mobile phone, panel computer etc., intelligent television, the equipment can be used The various operating systems such as Android, windows, IOS.
Embodiment one
Reference picture 1, shows data processing method steps flow chart according to an embodiment of the invention, Specifically may include steps of:
Step 102, according to the monitoring of the activity change event to current application, obtains regarding for current application Figure tree.
User can run using the operation needed for performing, using can show phase after startup in smart machine The graphic user interface (Graphical User Interface, GUI) answered.Can be to current based on GUI The monitoring of the activity change event of application, activity change event is the change events of information in current application Deng, and the Views tree ViewTree of current application is obtained,
Wherein, GUI is the indispensable part of application development, and it can not only provide the user defeated Enter, additionally it is possible to according to the action that (user) performs, there is provided corresponding feedback.The base of graphic user interface This component includes:View View and sets of views ViewGroup etc., wherein, ViewGroup conducts Container, can include one group of View, and ViewGroup itself is exactly the extension of View, and each It is also View to plant different window member Widgets such as text view TextView, button Button etc. Extension, be only placed in various layout L ayout, such as LinearLayout, RelativeLayout.Wherein, Layout can be regarded as the subclass of ViewGroup.Therefore, for Various Views and ViewGroups in one Layout may be constructed tree-like knot by the GUI of application Structure is ViewTree.
The graphic user interface applied can represent corresponding view structure using ViewTree, when should When being changed with middle display content, corresponding ViewTree interior joints and nodal information can also change.
Step 104, each node in traversal Views tree, searches the view type of each node respective view object.
In order to determine information and the change of each node in ViewTree, Views tree can be traveled through, Each node of Views tree is begun stepping through by root node from top to bottom, the nodal information according to each node determines The view type of the node respective view object.
Wherein, a Root View (or root node) is included in Views tree, i.e., according to Activity In Window generate a DevorView, using DevorView as Root View (Root View), Also root node is, following in Root View also includes one or more View or ViewGroup, makees It is child node.
Step 106, when the view object is judged for browser control part according to view type, obtains institute State the characteristic information of browser control part.
Step 108, when detecting that the characteristic information meets preset interception rule, to the browser control Part is intercepted.
View object can be judged according to view type, when judging that view object is browser control part When, obtain the characteristic information of browser control part.Then whether the characteristic information of detection browser control part meets It is preset to intercept rule, when characteristic information meets preset interception rule, the browser control part is blocked Cut.In the present embodiment, view object can be identified according to view feature, such as perform characteristic matching Deng operation, the corresponding type of the view object, content etc. are and for example determined, so as to be performed based on recognition result Corresponding operation, for example, identify that the browser control part for advertisement, then can shield advertisement.
To sum up, the embodiment of the present invention is obtained by the monitoring according to the activity change event to current application The Views tree of current application;Each node in traversal Views tree, searches the view of each node respective view object Type, when the view object is judged for browser control part according to view type, obtains the browser The characteristic information of control;When detecting that the characteristic information meets preset interception rule, to the browser Control is intercepted so that user when using smart machine, enter by advertising message that can be useless to some Row is intercepted, and reduces the consumption of customer flow, enhances the Consumer's Experience of user.
Embodiment two
Reference picture 2, flow the step of show data processing method in accordance with another embodiment of the present invention Figure, specifically may include steps of:
Step 202, monitors the activity change event of current application.
Step 204, when determining that the interface layout of current application changes according to activity change event, obtains Take the Views tree of current application.
In using running, using Activity components and user mutual, the Activity is one and answers It is a core component type of Android system application program, the reality of program interface displaying with program assembly Body, user can be used to interaction to complete a certain task.All operations are all close with user in Activity Cut is closed, be one be responsible for the component of user mutual, can by setContentView (View) come Control is specified in display.
In the present embodiment, can pair event related to Activity components monitor, including monitor institute The Views tree change events and life cycle events of current application are stated, that is, monitor ViewTree change events, While listening for Activity life cycle events, ViewTree change events are the display view correspondence of application Change, such as start, change, Activity life cycle events are Activity whole service processes Event, such as include Resumed (operation), Paused (pause), Stopped (stopping).
Change when ViewTree is listened to, and during the change of Activity life cycles, such as application starts fortune OK, or application interface switching etc. is in conversion process, can determine according to the activity change event described The interface layout of current application changes, and now obtains the ViewTree of current application, wherein The ViewTree of the i.e. change obtained after ViewTree changes.Dynamic registration callback interface can be right The root node of ViewTree is monitored, and root node has a fixed structure change watch-dog ViewTreeObserver, calls the addOnGlobalLayoutListener of watch-dog can be with registered callbacks Changed with the node for monitoring whole ViewTree.
Step 206, each node is begun stepping through from the root node of Views tree.
Step 208, for each node, obtains the view type of node respective view object.
After it is determined that active view changes and obtains ViewTree, can be from the root node of Views tree Begin stepping through each node.Wherein, ViewTree can carry out traversal realization using top-down mode, Father's view Parent is always drawn at first in the GUI for applying, and sub- view Children is only in fact Drafting.For example, as a example by by screen display GUI in smart machine, screen is regarded as by X, Y, Z The coordinate system that axle is constituted, using the upper left corner of screen as zero point [0,0,0], X axis is right, under Y-axis Along the length of screen, Z axis extend screen, and when ViewTree is drawn, Views can be along Z Axle is discharged.So as to the mode drawn according to it when ViewTree is traveled through since root node from top to bottom Traversal.For each node, the nodal information according to the node determines the view object of correspondence application, Then the view type of view object is obtained.
Step 210, judges whether the view object is browser control part according to view type.
Then the view type of view object can be judged, judges whether the view object is clear Look at device control.If so, judging that the view object is browser control part, step 212 is performed;If it is not, Judge that the view object is not browser control part, return to step 202 continues to monitor.
Step 212, for browser control part, extracts the corresponding code characteristic of the browser control part, will The code characteristic as the browser control part characteristic information.
In the present embodiment, view type can include:Browser control part, browser control part, common view pattern Deng, different extractions operations are performed according to different view types, extract corresponding view feature information. Wherein for browser control part, code characteristic is extracted from the browser control part, as view feature information. For example for browser control part WebView, can extract onclicklistener code and Webviewclient codes as browser control part view feature information.
Step 214, characteristic matching is carried out using preset features storehouse to the code characteristic of the browser control part.
Step 216, by characteristic matching recognize the browser control part whether destination object.
In the present embodiment, the code characteristic for predefining the browser control part to needing to intercept is collected, And corresponding feature database is generated, so that can be special to the code of the browser control part according to preset features storehouse Levying carries out characteristic matching.For example after the view feature information for getting view object, can be special by view Reference ceases incoming native layers and compares, will the incoming local ccf layer of view feature information and preset spy Levying storehouse carries out characteristic matching.By taking advertisement as an example, advertisement generally needs to realize that plug-in unit jumps to advertisement after clicking on Displaying page corresponding to information, therefore can match click according to its code characteristic for view object, jump Turn etc. event, so as to analyze the feature that the view object meets advertisement, can subsequently perform interception operation.
In the present embodiment, the feature for needing to intercept browser control part can be in advance collected as target signature, So as to generate corresponding feature policy etc., then target signature can be obtained from Cloud Server, target is special Levy and be added in preset features storehouse such that it is able to target signature in preset features storehouse is updated in real time, Matching characteristic treatment strategy, so as to more flexibly be intercepted to browser control part.
If so, recognizing that the browser control part, for destination object, performs step 218 by characteristic matching; If it is not, recognize the browser control part for destination object by characteristic matching, return to step 202 after It is continuous to monitor.
Step 218, the view is searched as starting point, from bottom to top with the browser control part corresponding node Tree, determines the browser control part correspondence parent window, and the parent window is intercepted.
When recognizing the browser control part for destination object by characteristic matching, the browser control part is confirmed Characteristic information meets the preset rule that intercepts, it is necessary to be intercepted to it.Preset spy is called using native layers Levying storehouse carries out feature, so that match cognization goes out browser control part for destination object, that is, needs the object for intercepting, Such as advertisement, user select the information that need not be checked, such that it is able to view feature information respective view pair As being intercepted, corresponding view object is not shown in the GUI of application, i.e., do not show advertisement, and User determines the information that need not be checked, such as video recommendations at video playback interface, and other of news interface are new Hear link etc..
In the present embodiment, in order to accurately be intercepted to view object, the displaying of garbage is prevented, The Views tree can be searched as starting point, from bottom to top with the view feature information respective view object, Determine the view object correspondence parent window, the parent window is intercepted.Block being defined as needs After the fisrt feature object for cutting, view object correspondence is determined most by searching ViewTree back up The parent window on upper strata, intercepts the parent window so as to prevent the display of garbage such as advertisement.
So as to be deep into the code aspect of view object, view object is intercepted based on code characteristic, Effectively the garbages such as advertisement are intercepted, reduced in application operation to the acquisition of garbage with And displaying, reduce the waste of resource.
The present embodiment can apply to various scenes, it is adaptable to all Android systems, solve by domain name The platform compatibility issue that parsing runs into when intercepting.For example using code characteristic fixed in ad plug-in, When listening to using inner window layout change and life cycle fixation event, to all of View Condition code matching is carried out, the ad content in application interface is accurately positioned, then it is intercepted.From And the ad plug-in feature that can unitize, to accomplish to be intercepted according to plug-in unit, a feature can act on all The application of similar plug-in unit is used, and can have been issued by high in the clouds feature, accomplished that special application advertisement is blocked Cut.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, But those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement System, because according to the embodiment of the present invention, some steps can sequentially or simultaneously be carried out using other.Its Secondary, those skilled in the art should also know, embodiment described in this description belongs to be preferable to carry out Example, necessary to the involved action not necessarily embodiment of the present invention.
Embodiment three
Reference picture 3, shows the structured flowchart of data processing equipment according to an embodiment of the invention, Such as lower module can specifically be included:
Acquisition module 302 is monitored, the monitoring for foundation to the activity change event of current application is obtained The Views tree of current application.
Traversal searching modul 304, for traveling through each node in the Views tree, searches each node correspondence and regards The view type of figure object.
Acquisition module 306, for when according to view type judge the view object for browser control part when, Obtain the characteristic information of the browser control part.
Blocking module 308, for when detecting that the characteristic information meets preset interception rule, to described Browser control part is intercepted.
To sum up, the embodiment of the present invention is obtained by the monitoring according to the activity change event to current application The Views tree of current application;Each node in traversal Views tree, searches the view of each node respective view object Type, when the view object is judged for browser control part according to view type, obtains the browser The characteristic information of control;When detecting that the characteristic information meets preset interception rule, to the browser Control is intercepted so that user when using smart machine, enter by advertising message that can be useless to some Row is intercepted, and reduces the consumption of customer flow, enhances the Consumer's Experience of user.
Example IV
Reference picture 4, shows the structured flowchart of data processing equipment in accordance with another embodiment of the present invention, Such as lower module can specifically be included:
Acquisition module 302 is monitored, the monitoring for foundation to the activity change event of current application is obtained The Views tree of current application.
Traversal searching modul 304, for traveling through each node in the Views tree, searches each node correspondence and regards The view type of figure object.
Acquisition module 306, for when according to view type judge the view object for browser control part when, Obtain the characteristic information of the browser control part.
Characteristic matching module 310, for using preset features storehouse to the code characteristic of the browser control part Carry out characteristic matching;When recognizing the browser control part for destination object by characteristic matching, confirm described Characteristic information meets preset interception rule.
Blocking module 308, for when detecting that the characteristic information meets preset interception rule, to described Browser control part is intercepted.
Feature database processing module 300, for obtaining target signature from Cloud Server, by the target signature It is added in the preset features storehouse.
Wherein, the monitoring acquisition module 302, including:
Monitor submodule 3022, the activity change event for monitoring the current application.
Views tree acquisition submodule 3024, for determining the current application according to the activity change event Interface layout when changing, obtain the Views tree of the current application.
The monitoring submodule 3022, Views tree change events and life for monitoring the current application Periodic event.
The traversal searching modul 304, including:
Traversal submodule 3042, for beginning stepping through each node from the root node of the Views tree.
Submodule 3044 is searched, for for each node, according to the node corresponding node information searching The view type of respective view object.
The acquisition module 306, for for browser control part, extracting the browser control part corresponding Code characteristic, using the code characteristic as the browser control part characteristic information.
The blocking module 308, for the browser control part corresponding node as starting point, from bottom to top The Views tree is searched, the browser control part correspondence parent window is determined, the parent window is intercepted.
In the present embodiment, in order to accurately be intercepted to view object, the displaying of garbage is prevented, The Views tree can be searched as starting point, from bottom to top with the view feature information respective view object, Determine the view object correspondence parent window, the parent window is intercepted.Block being defined as needs After the fisrt feature object for cutting, view object correspondence is determined most by searching ViewTree back up The parent window on upper strata, intercepts the parent window so as to prevent the display of garbage such as advertisement.
So as to be deep into the code aspect of view object, view object is intercepted based on code characteristic, Effectively the garbages such as advertisement are intercepted, reduced in application operation to the acquisition of garbage with And displaying, reduce the waste of resource.
The present embodiment can apply to various scenes, it is adaptable to all Android systems, solve by domain name The platform compatibility issue that parsing runs into when intercepting.For example using code characteristic fixed in ad plug-in, When listening to using inner window layout change and life cycle fixation event, to all of View Condition code matching is carried out, the ad content in application interface is accurately positioned, then it is intercepted.From And the ad plug-in feature that can unitize, to accomplish to be intercepted according to plug-in unit, a feature can act on all The application of similar plug-in unit is used, and can have been issued by high in the clouds feature, accomplished that special application advertisement is blocked Cut.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparing of description Simply, the relevent part can refer to the partial explaination of embodiments of method.
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein There is correlation.Various general-purpose systems can also be used together with based on teaching in this.As described above, It is obvious to construct the structure required by this kind of system.Additionally, the present invention is not also for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done to language-specific above is to disclose preferred forms of the invention.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of without these details.In some instances, not Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim The middle more features of feature be expressly recited.More precisely, as the following claims reflect As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows Thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right It is required that in itself all as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit exclude each other, can be using any combinations to this specification (including companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes or unit of person's equipment are combined.Unless expressly stated otherwise, this specification (including companion With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in following power In sharp claim, the one of any of embodiment required for protection mode can make in any combination With.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice Some or all parts in the data processing method and data processing equipment equipment of the embodiment of the present invention Some or all functions.The present invention be also implemented as perform method as described herein one Partly or completely equipment or program of device (for example, computer program and computer program product). It is such to realize that program of the invention be stored on a computer-readable medium, or can have one Or the form of multiple signals.Such signal can be downloaded from internet website and obtained, or carried There is provided on body signal, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, And those skilled in the art can design replacement without departing from the scope of the appended claims Embodiment.In the claims, any reference symbol being located between bracket should not be configured to right It is required that limitation.Word "comprising" does not exclude the presence of element or step not listed in the claims.Position Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention can To be realized by means of the hardware for including some different elements and by means of properly programmed computer. If in the unit claim for listing equipment for drying, several in these devices can be by same Individual hardware branch is embodied.The use of word first, second, and third does not indicate that any order. These words can be construed to title.
The invention discloses A1, a kind of data processing method, including:
According to the monitoring of the activity change event to current application, the Views tree of current application is obtained;
Each node in the Views tree is traveled through, the view type of each node respective view object is searched;
When the view object is judged for browser control part according to view type, the browser control is obtained The characteristic information of part;
When detecting that the characteristic information meets preset interception rule, the browser control part is blocked Cut.
A2, the method as described in A1, according to the monitoring of the activity change event to current application, obtain The Views tree of current application, including:
Monitor the activity change event of the current application;
When determining that the interface layout of the current application changes according to the activity change event, obtain The Views tree of the current application.
A3, the method as described in A2, monitor the activity change event of the current application, including:
Monitor the Views tree change events and life cycle events of the current application.
A4, the method as described in A1, travel through each node in the Views tree, search each node correspondence and regard The view type of figure object, including:
Each node is begun stepping through from the root node of the Views tree;
For each node, according to the view class of the node corresponding node information searching respective view object Type.
A5, the method as described in A1 or A4, obtain the characteristic information of the browser control part, including:
For browser control part, the corresponding code characteristic of the browser control part is extracted, the code is special Levy the characteristic information as the browser control part.
A6, the method as described in A5, also include:
Characteristic matching is carried out to the code characteristic of the browser control part using preset features storehouse;
When recognizing the browser control part for destination object by characteristic matching, the characteristic information symbol is confirmed Close preset interception rule.
A7, the method as described in A5, intercept to the browser control part, including:
The Views tree is searched as starting point, from bottom to top with the browser control part corresponding node, institute is determined Browser control part correspondence parent window is stated, the parent window is intercepted.
A8, the method as described in A6, also include:
Target signature is obtained from Cloud Server, the target signature is added in the preset features storehouse.
The invention also discloses B9, a kind of data processing equipment, including:
Acquisition module is monitored, the monitoring for foundation to the activity change event of current application obtains current The Views tree of application;
Traversal searching modul, for traveling through each node in the Views tree, searches each node respective view pair The view type of elephant;
Acquisition module, for when the view object is judged for browser control part according to view type, obtaining Take the characteristic information of the browser control part;
Blocking module, for when detecting that the characteristic information meets preset interception rule, being browsed to described Device control is intercepted.
B10, the device as described in B9, the monitoring acquisition module, including:
Monitor submodule, the activity change event for monitoring the current application;
Views tree acquisition submodule, the boundary for determining the current application according to the activity change event When face layout changes, the Views tree of the current application is obtained.
B11, the device as described in B10,
The monitoring submodule, Views tree change events and life cycle for monitoring the current application Event.
B12, the device as described in B9, the traversal searching modul, including:
Traversal submodule, for beginning stepping through each node from the root node of the Views tree;
Submodule is searched, for for each node, according to node corresponding node information searching correspondence The view type of view object.
B13, the device as described in B9 or B12,
The acquisition module, for for browser control part, extracting the corresponding code of the browser control part Feature, using the code characteristic as the browser control part characteristic information.
B14, the device as described in B13, also include:
Characteristic matching module, for being carried out to the code characteristic of the browser control part using preset features storehouse Characteristic matching;When recognizing the browser control part for destination object by characteristic matching, the feature is confirmed Information meets preset interception rule.
B15, the device as described in B13,
The blocking module, for the browser control part corresponding node as starting point, searching from bottom to top The Views tree, determines the browser control part correspondence parent window, and the parent window is intercepted.
B16, the device as described in B14, also include:
Feature database processing module, for obtaining target signature from Cloud Server, by target signature addition To in the preset features storehouse.

Claims (10)

1. a kind of data processing method, including:
According to the monitoring of the activity change event to current application, the Views tree of current application is obtained;
Each node in the Views tree is traveled through, the view type of each node respective view object is searched;
When the view object is judged for browser control part according to view type, the browser control is obtained The characteristic information of part;
When detecting that the characteristic information meets preset interception rule, the browser control part is blocked Cut.
2. the method for claim 1, it is characterised in that become according to the activity to current application The monitoring of change event, obtains the Views tree of current application, including:
Monitor the activity change event of the current application;
When determining that the interface layout of the current application changes according to the activity change event, obtain The Views tree of the current application.
3. method as claimed in claim 2, it is characterised in that monitor the activity of the current application Change events, including:
Monitor the Views tree change events and life cycle events of the current application.
4. the method for claim 1, it is characterised in that each node in the traversal Views tree, The view type of each node respective view object is searched, including:
Each node is begun stepping through from the root node of the Views tree;
For each node, according to the view class of the node corresponding node information searching respective view object Type.
5. the method as described in claim 1 or 4, it is characterised in that obtain the browser control part Characteristic information, including:
For browser control part, the corresponding code characteristic of the browser control part is extracted, the code is special Levy the characteristic information as the browser control part.
6. method as claimed in claim 5, it is characterised in that also include:
Characteristic matching is carried out to the code characteristic of the browser control part using preset features storehouse;
When recognizing the browser control part for destination object by characteristic matching, the characteristic information symbol is confirmed Close preset interception rule.
7. method as claimed in claim 5, it is characterised in that blocked to the browser control part Cut, including:
The Views tree is searched as starting point, from bottom to top with the browser control part corresponding node, institute is determined Browser control part correspondence parent window is stated, the parent window is intercepted.
8. method as claimed in claim 6, it is characterised in that also include:
Target signature is obtained from Cloud Server, the target signature is added in the preset features storehouse.
9. a kind of data processing equipment, including:
Acquisition module is monitored, the monitoring for foundation to the activity change event of current application obtains current The Views tree of application;
Traversal searching modul, for traveling through each node in the Views tree, searches each node respective view pair The view type of elephant;
Acquisition module, for when the view object is judged for browser control part according to view type, obtaining Take the characteristic information of the browser control part;
Blocking module, for when detecting that the characteristic information meets preset interception rule, being browsed to described Device control is intercepted.
10. device as claimed in claim 9, it is characterised in that the monitoring acquisition module, including:
Monitor submodule, the activity change event for monitoring the current application;
Views tree acquisition submodule, the boundary for determining the current application according to the activity change event When face layout changes, the Views tree of the current application is obtained.
CN201510971749.5A 2015-12-22 2015-12-22 A kind of data processing method and device Pending CN106909546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510971749.5A CN106909546A (en) 2015-12-22 2015-12-22 A kind of data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510971749.5A CN106909546A (en) 2015-12-22 2015-12-22 A kind of data processing method and device

Publications (1)

Publication Number Publication Date
CN106909546A true CN106909546A (en) 2017-06-30

Family

ID=59200468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510971749.5A Pending CN106909546A (en) 2015-12-22 2015-12-22 A kind of data processing method and device

Country Status (1)

Country Link
CN (1) CN106909546A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725799A (en) * 2017-10-30 2019-05-07 Tcl集团股份有限公司 A kind of control method that advertisement is shown, device and intelligent terminal
CN110362371A (en) * 2019-06-19 2019-10-22 北京百度网讯科技有限公司 Control method and system, the computer equipment and readable medium of view level

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617395A (en) * 2013-12-06 2014-03-05 北京奇虎科技有限公司 Method, device and system for intercepting advertisement programs based on cloud security
CN104091125A (en) * 2014-07-18 2014-10-08 北京奇虎科技有限公司 Floating window processing method and device
CN104199934A (en) * 2014-09-05 2014-12-10 北京奇虎科技有限公司 Method and device for intercepting advertisements of application program
CN104778226A (en) * 2015-03-26 2015-07-15 小米科技有限责任公司 Webpage content item shielding method and webpage content item shielding device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617395A (en) * 2013-12-06 2014-03-05 北京奇虎科技有限公司 Method, device and system for intercepting advertisement programs based on cloud security
CN104091125A (en) * 2014-07-18 2014-10-08 北京奇虎科技有限公司 Floating window processing method and device
CN104199934A (en) * 2014-09-05 2014-12-10 北京奇虎科技有限公司 Method and device for intercepting advertisements of application program
CN104778226A (en) * 2015-03-26 2015-07-15 小米科技有限责任公司 Webpage content item shielding method and webpage content item shielding device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725799A (en) * 2017-10-30 2019-05-07 Tcl集团股份有限公司 A kind of control method that advertisement is shown, device and intelligent terminal
CN110362371A (en) * 2019-06-19 2019-10-22 北京百度网讯科技有限公司 Control method and system, the computer equipment and readable medium of view level
CN110362371B (en) * 2019-06-19 2022-07-22 北京百度网讯科技有限公司 View level control method, device and system, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN106909544A (en) A kind of data processing method and device
CN106909262A (en) A kind of data processing method and device
US10499109B2 (en) Method and apparatus for providing combined barrage information
US10152488B2 (en) Static-analysis-assisted dynamic application crawling architecture
CN108255922A (en) Video frequency identifying method, equipment, client terminal device, electronic equipment and server
US20170091317A1 (en) Location correlation between query script and data flow
CN104199934B (en) The method and device that advertisement for application program is intercepted
WO2018068015A1 (en) Search system, page display method and client terminal
CN101493837B (en) Network video playing method in multi-page browser and processing device
CN105677311B (en) A kind of recognition methods of function calling relationship and device
US10685256B2 (en) Object recognition state indicators
CN106470360B (en) Video player calling method and device
WO2021088422A1 (en) Application message notification method and device
CN109688479A (en) A kind of barrage display methods, barrage display device and barrage display server
CN109286835A (en) Direct broadcasting room interactive element display methods, storage medium, equipment and system
KR20140029598A (en) Interaction method and system for unifying augmented reality technology and big data
CN105979393A (en) Web page display method and device, and intelligent television system
CN105183291A (en) Method and system for extracting information in display interface
CN106909546A (en) A kind of data processing method and device
KR20210044188A (en) Systems and methods for scene builder
CN109582305B (en) Encoding method and device for mobile application page elements and electronic equipment
CN105373533B (en) A kind of detection method, client and the device of page link address
CN108959296A (en) The treating method and apparatus of web page access mistake
CN114895884A (en) Method and system for compiling and executing RPA script of terminal equipment
US9298585B1 (en) Blacklisting of fault generating software code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170630

RJ01 Rejection of invention patent application after publication