CN106126562B - A kind of pop-up hold-up interception method and terminal - Google Patents

A kind of pop-up hold-up interception method and terminal Download PDF

Info

Publication number
CN106126562B
CN106126562B CN201610430977.6A CN201610430977A CN106126562B CN 106126562 B CN106126562 B CN 106126562B CN 201610430977 A CN201610430977 A CN 201610430977A CN 106126562 B CN106126562 B CN 106126562B
Authority
CN
China
Prior art keywords
pop
application program
push
message
terminal
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
CN201610430977.6A
Other languages
Chinese (zh)
Other versions
CN106126562A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610430977.6A priority Critical patent/CN106126562B/en
Publication of CN106126562A publication Critical patent/CN106126562A/en
Application granted granted Critical
Publication of CN106126562B publication Critical patent/CN106126562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of pop-up hold-up interception method and terminal, it is applied to field of terminal technology, wherein the realization of method includes:Whether the application program in monitoring terminal starts pop-up push process;If monitoring the pop-up push process, the packet name for the first application program for starting the pop-up push process is obtained;The packet name for the second application program that the foreground interface of terminal described in the Bao Mingyu of first application program is run is compared, if the two is different, intercepts the pop-up message of the pop-up push process push.Implement the embodiment of the present invention, can effectively intercept the pop-up interference information of background application push.

Description

A kind of pop-up hold-up interception method and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of pop-up hold-up interception method and terminal.
Background technology
With the development of the communication technology, intelligent mobile phone, personal digital assistant, palm PC and desktop computer etc. The application program installed in terminal is also more and more, and the chance seized every opportunity is brought to some malice advertisers, for example, malice Advertiser in the application program installation kit that user downloads by being implanted into malicious application, in the application journey that user installation is downloaded Unwitting in user when sequence installation kit, the malicious application of implantation is also mounted, so as to pass through the installation Malicious application, various types of pop-ups are popped up to user, such as advertisement suspended window.
When user operates terminal, some application programs of malicious application and running background can pass through It calls pop-up run function to start pop-up, user is harassed, currently, some advertisement pop-ups interception can be installed in the terminal Software, advertisement pop-up interception software when monitoring has pop-up to occur, can generally intercept pop-up, and capture the image of pop-up And preserved by graphic form, and the image of the pop-up preserved is supplied to user.
But it is all to carry out specific aim after the specific features for getting pop-up to block that current advertisement pop-up, which intercepts software, Cut, the emerging pop-up of real-time blocking can be led to not in this way, if pervious pop-up modification fall some features of oneself, also without Method ensures interception effect, has certain limitation to effectively intercepting pop-up.
Invention content
An embodiment of the present invention provides a kind of pop-up hold-up interception method and terminals, can effectively intercept background application and push away The pop-up interference information sent.
On the one hand an embodiment of the present invention provides a kind of pop-up hold-up interception methods, including:
Whether the application program in monitoring terminal starts pop-up push process;
If monitoring the pop-up push process, the packet for the first application program for starting the pop-up push process is obtained Name;
The packet name for the second application program that the foreground interface of terminal described in the Bao Mingyu of first application program is run It is compared, if the two is different, intercepts the pop-up message of the pop-up push process push.
In one possible implementation, before the pop-up message for intercepting the pop-up push process push, institute The method of stating further includes:
According to preset pop-up loading rule judge whether to need to the pop-up message of pop-up push process push into Row load;
If the pop-up message that need not push process push to the pop-up loads, the interception bullet is executed Window pushes the pop-up message of process push.
In one possible implementation, the preset pop-up loading rule is obtained by local or cloud server end .
In one possible implementation, the method further includes:
If the packet name of the second application program described in the Bao Mingyu of first application program is identical, alternatively, needing to described Pop-up push process push pop-up message loaded, then shown in the foreground interface of the terminal pop-up push into The pop-up message of journey push.
In one possible implementation, after the pop-up message for intercepting the pop-up push process push, institute The method of stating further includes:
Prompt message is exported, the prompt message is used to prompt the attribute information of the intercepted pop-up message;
It detects whether to receive the releasing interception instruction for the pop-up message, refer to if receiving the releasing interception It enables, then shows the pop-up message in the foreground interface of the terminal.
In one possible implementation, the method further includes:
The index information of first application program, first application are obtained according to the packet name of first application program The index information of program includes at least one of title, icon or the address of first application program;
The installation file of first application program is inquired according to the index information of first application program;
According to query result, judge whether first application program is security application, if not security application journey Sequence, then it is malicious application to prompt first application program.
Two aspect of the embodiment of the present invention provides a kind of terminal, including:
Monitoring unit, for monitoring whether the application program in terminal starts pop-up push process;
First acquisition unit starts the pop-up push process for when monitoring that the pop-up pushes process, obtaining The first application program packet name;
Comparison unit, for being answered the second of the foreground interface operation of terminal described in the Bao Mingyu of first application program It is compared with the packet name of program;
Interception unit, when being used for the packet name difference of the second application program described in the Bao Mingyu of first application program, Intercept the pop-up message of the pop-up push process push.
In one possible implementation, the terminal further includes:
First judging unit, for judging whether to need to push process to the pop-up according to preset pop-up loading rule The pop-up message of push is loaded, and when the pop-up message that need not push process push to the pop-up loads, The interception unit is driven to execute the pop-up message for intercepting the pop-up push process push.
In one possible implementation, the preset pop-up loading rule is obtained by local or cloud server end .
In one possible implementation, the terminal further includes:
Display unit, the packet name for the second application program described in the Bao Mingyu of first application program is identical, or Person shows when the pop-up message to pop-up push process push being needed to load in the foreground interface of the terminal The pop-up message of the pop-up push process push.
In one possible implementation, the terminal further includes:
Prompt unit, for exporting prompt message, the pop-up that the prompt message is used to that user to be prompted to be intercepted disappears The attribute information of breath;
Detection unit for detecting whether receiving the releasing interception instruction for the pop-up message, and is receiving When the releasing intercepts instruction, the display unit is driven to show the pop-up message in the foreground interface of the terminal.
In one possible implementation, the terminal further includes:
Second acquisition unit, the index for obtaining first application program according to the packet name of first application program Information, the index information of first application program include first application program title, icon or address at least It is a kind of;
Query unit, the installation for inquiring first application program according to the index information of first application program File;
Second judgment unit, for according to query result, judging whether first application program is security application, And when first application program is not security application, the prompt unit is driven to prompt first application program to be Malicious application.
The three aspect embodiment of the present invention additionally provide a kind of terminal, including:Processor and memory, wherein the processor For executing the method described in any one provided in an embodiment of the present invention.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:Application in monitoring terminal When program starts pop-up push process, the packet name for the first application program for starting above-mentioned pop-up push process is obtained, and will be above-mentioned The packet name of second application program of the foreground interface operation of the Bao Mingyu terminals of the first application program is compared, if the two is not Together, then the pop-up message of above-mentioned pop-up push process push is intercepted.Implement the embodiment of the present invention, can effectively intercept backstage and answer The pop-up interference information pushed with program.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow diagram of pop-up hold-up interception method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another pop-up hold-up interception method provided in an embodiment of the present invention;
A kind of positions Fig. 3 structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of entity apparatus structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 9 is a kind of entity apparatus structural schematic diagram of mobile phone provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
Term " first " and " second " in description and claims of this specification and attached drawing etc. are for distinguishing not Same object, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that Non-exclusive include in covering.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or further include optionally For the intrinsic other steps of these processes, method, product or equipment or unit.
An embodiment of the present invention provides a kind of pop-up hold-up interception methods, as shown in Figure 1, including:
101:Whether the application program in monitoring terminal starts pop-up push process;
In embodiments of the present invention, pop-up interception function can be by the closing key of long-press terminal, from the dialog box of pop-up Middle selection starts pop-up and intercepts function, or the pop-up interception icon startup pop-up clicked on terminal display screen intercepts work( Can, or pop-up is started by voice control and intercepts function, it is real specifically which kind of mode to start the pop-up interception function present invention using It applies example and does not make uniqueness restriction.
In embodiments of the present invention, when starting Application Program Interface, it is necessary to start a corresponding activity component, This activity component, according to the interface layout files of itself, can generate a corresponding interface, so when being created Window Manager Service are serviced by the window management of system to show, be presented to the user afterwards.And in window pipe In reason service, to start the corresponding activity components of an Application Program Interface, all there are one unified entrances, i.e., StartActivity functions in Activity Manager Service system services.StartActivity functions are passed to Some parameters are had in parameter, system can know the caller of Application Program Interface by these parameters, current to be started Interface is to belong to which application, i.e. the packet name of callee and caller and callee, the letters such as the component name at interface Breath.
In embodiments of the present invention, after user opens pop-up interception function, the application program in real-time monitoring terminal is No startup pop-up pushes process, such as can monitor whether application program launching process entrance function startActivity.
102:If monitoring above-mentioned pop-up push process, the first application program for starting above-mentioned pop-up push process is obtained Packet name;
In embodiments of the present invention, if having monitored, application program launching pop-up pushes process, obtains and starts above-mentioned bullet Window pushes the packet name of the first application program of process, for example, can be according in process entrance function startActivity The type parameters such as caller, callingPackage, intent get caller packet name, i.e. the packet name of the first application program.
103:The packet name for the second application program that the foreground interface of the Bao Mingyu terminals of above-mentioned first application program is run It is compared, if the two is different, intercepts the pop-up message of above-mentioned pop-up push process push.
In embodiments of the present invention, terminal can be got by Activity Manager Service system services The packet name of second application program of foreground interface operation, next, can be by the Bao Mingyu of above-mentioned first application program above-mentioned the The packet name of two application programs is compared, and in the two difference, intercepts the pop-up message of above-mentioned pop-up push process push.
Optionally, after executing the pop-up message for intercepting above-mentioned pop-up push process push, if the first application program needs Return value is obtained, the intercepted information of pop-up push request, anti-locking system or application resistance can be returned to the first application program Plug.
Optionally, after executing the pop-up message for intercepting above-mentioned pop-up push process push, log can be printed and reported Activity Manager Service system services.
Optionally, after executing the pop-up message for intercepting above-mentioned pop-up push process push, the shape of terminal can be passed through State column or toast prompt users have pop-up message intercepted.
In the embodiment of the present invention, when the application program launching pop-up in monitoring terminal pushes process, obtain on starting The packet name of the first application program of pop-up push process is stated, and by the foreground interface of the Bao Mingyu terminals of above-mentioned first application program The packet name of second application program of operation is compared, if the two is different, intercepts the pop-up of above-mentioned pop-up push process push Message can effectively intercept the pop-up interference information of background application push.
Referring to Fig. 2, for the flow diagram of another pop-up hold-up interception method provided in an embodiment of the present invention.The present embodiment Described in pop-up hold-up interception method, include the following steps:
201:Whether the application program in monitoring terminal starts pop-up push process;
202:If monitoring above-mentioned pop-up push process, the first application program for starting above-mentioned pop-up push process is obtained Packet name;
203:The packet name for the second application program that the foreground interface of the Bao Mingyu terminals of above-mentioned first application program is run It is compared;
204:Judged whether that the pop-up to above-mentioned pop-up push process push is needed to disappear according to preset pop-up loading rule Breath is loaded;
In embodiments of the present invention, judge whether to need to push process to pop-up according to pre-set pop-up loading rule The pop-up message of push carries out loading processing, to determine the need for loading above-mentioned pop-up message.Pop-up load rule Include then:Pop-up feature intercepts rule, link information intercepts rule etc., and in a particular application, pop-up loading rule can be with It is one of above-mentioned rule or its arbitrary combination.For example, if the pop-up message of pop-up push process push is that alarm clock carries Awake interface, then it is assumed that be the pop-up that need not be intercepted;If the pop-up message that pop-up pushes process push is interface of input method, It is considered the pop-up that need not be intercepted;If the pop-up message of pop-up push process push is playing music pop-up interface, Then it is considered the pop-up that need not be intercepted;If the pop-up message of pop-up push process push is that movement class reminds interface, recognize To be the pop-up that need not be intercepted;If the pop-up message of pop-up push process push is status bar notice pop-up interface, recognize To be the pop-up that need not be intercepted;If the pop-up message of pop-up push process push is screen locking notice pop-up interface, then it is assumed that It is the pop-up that need not be intercepted.
Optionally, above-mentioned preset pop-up loading rule can be obtained by local or cloud server end, for example, can be by The security module of terminal according in terminal security application generate pop-up loading rule, or by cloud server end according to The usage behavior custom (the pop-up interface that such as user often manually boots) at family, terminal is pushed to after for statistical analysis, should Pop-up loading rule can also be stored in Cloud Server by cloud server end.
Wherein it is possible to understand, above-mentioned steps 203 can execute parallel with step 204.
Optionally, above-mentioned execution step may be and first carry out step 203 to execute step 204 again.
Optionally, above-mentioned execution step may be and first carry out step 204 to execute step 203 again.
205:If the packet name of above-mentioned second application programs of the Bao Mingyu of above-mentioned first application program is different, and does not need pair The pop-up message of above-mentioned pop-up push process push is loaded, then intercepts the pop-up message of above-mentioned pop-up push process push;
By step 203 and step 204, if the packet of above-mentioned second application programs of the Bao Mingyu of above-mentioned first application program Name is different, and the pop-up message that process push need not be pushed to above-mentioned pop-up loads, then intercepts above-mentioned pop-up push The pop-up message of process push.
If 206, the packet name of above-mentioned second application programs of the Bao Mingyu of above-mentioned first application program is identical, alternatively, needs pair The pop-up message of above-mentioned pop-up push process push is loaded, then shown in the foreground interface of terminal above-mentioned pop-up push into The pop-up message of journey push;
By step 203 and step 204, if the packet of above-mentioned second application programs of the Bao Mingyu of above-mentioned first application program Name is identical, alternatively, the pop-up message to above-mentioned pop-up push process push is needed to load, there are one satisfactions in the two, or Both person meets, then the pop-up message of above-mentioned pop-up push process push is shown in the foreground interface of terminal.
207:Prompt message is exported, which is used to prompt the attribute information of intercepted above-mentioned pop-up message;
After intercepting the pop-up message that above-mentioned pop-up pushes process push by step 205, the shape in terminal can be passed through State notification bar or toast export prompt message, include the attribute information of intercepted pop-up message in the prompt message, In, attribute information can be the corresponding keyword of information for including, such as pop-up feature in pop-up, including:Pop-up application Picture identification, pop-up name feature word and the pop-up content of text feature that program-package name, pop-up title feature word, pop-up include The arbitrary combination of one or more of word etc..
208:It detects whether to receive the releasing interception instruction for above-mentioned pop-up message, refer to if receiving releasing and intercepting It enables, thens follow the steps 206 and show above-mentioned pop-up message in the foreground interface of terminal;
If the above-mentioned pop window information intercepted is not harassing and wrecking information for users, user can release interception instruction, if Receive for above-mentioned pop-up message releasing intercept instruction, then follow the steps 206 shown in the foreground interface of terminal it is above-mentioned Pop-up message.
209:Obtain the index information of above-mentioned first application program according to the packet name of above-mentioned first application program, above-mentioned first The index information of application program includes at least one of title, icon or the address of above-mentioned first application program;
210:The installation file of above-mentioned first application program is inquired according to the index information of above-mentioned first application program;
211:According to query result, judge whether above-mentioned first application program is security application, if not safety is answered With program, then it is malicious application to prompt above-mentioned first application program.
If the releasing for being not received by user intercepts instruction, the first application for starting pop-up push process is next judged Whether program is malicious application, can be judged by following steps:
The index information of above-mentioned first application program is obtained according to the packet name of above-mentioned first application program, for example, can root Title, the figure of above-mentioned first application program are inquired in the application software library of terminal according to the packet name of the first application program got The index information of the applications such as mark or address (can usually find the installation of application according to the title of application program, icon or address Position);
The installation file that above-mentioned first application program is inquired according to the index information of above-mentioned first application program, passes through inquiry The installation file of application program can read the permission and application program stated in the installation directory of application program, application program In include plug-in unit;
Whether the first application program that can further judge to push above-mentioned pop-up message according to query result is to answer safely With program or it is Malware (such as third party's malice ad plug-in), and is not security application journey in above-mentioned first application program When sequence, prompt above-mentioned first application program of user is malicious application.
Optionally, if above-mentioned first application program is malicious application, first application program can be unloaded, may be used also With the malicious plugins information reporting server for carrying first application program, subsequently to there is user to be downloaded from above-mentioned server It should be in application, can prompt user that should apply in time carries malicious plugins.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram for terminal that one embodiment of the present of invention provides.Wherein, the end End can be the terminals such as smart mobile phone, tablet computer, intelligent wearable device.The terminal includes:
Monitoring unit 301, for monitoring whether the application program in terminal starts pop-up push process;
First acquisition unit 302, for when monitoring that above-mentioned pop-up pushes process, obtain start above-mentioned pop-up push into The packet name of first application program of journey;
Comparison unit 303, for being answered the second of the foreground interface operation of the Bao Mingyu terminals of above-mentioned first application program It is compared with the packet name of program;
Interception unit 304, the packet name for above-mentioned second application programs of Bao Mingyu in above-mentioned first application program are different When, intercept the pop-up message of above-mentioned pop-up push process push.
Optionally, before the pop-up message that interception unit 304 intercepts above-mentioned pop-up push process push, it can be determined that on Whether the pop-up message for stating pop-up push process push meets preset pop-up loading rule, specific as follows:On as shown in figure 4, Stating terminal further includes:
First judging unit 305, for judging whether to need to push above-mentioned pop-up according to preset pop-up loading rule The pop-up message of process push is loaded, and is loaded in the pop-up message that need not push process push to above-mentioned pop-up When, drive above-mentioned interception unit 304 to execute the step of intercepting the pop-up message that above-mentioned pop-up push process pushes.
Wherein it is possible to understand, above-mentioned comparison unit 303 can execute parallel with the first judging unit 305.
Optionally, above-mentioned implementation procedure may be and first carry out comparison unit 303 to execute the first judging unit 305 again.
Optionally, above-mentioned implementation procedure may be and first carry out the first judging unit 305 to execute comparison unit 303 again.
Optionally, above-mentioned preset pop-up loading rule is obtained by local or cloud server end.
Optionally, on the basis of terminal shown in Fig. 4, if the Bao Mingyu above-mentioned second of above-mentioned first application program applies journey The packet name of sequence is identical, alternatively, the pop-up message to above-mentioned pop-up push process push is needed to load, then shows above-mentioned pop-up Message, it is specific as follows:As shown in figure 5, above-mentioned terminal further includes:
Display unit 306, the packet name for above-mentioned second application programs of Bao Mingyu in above-mentioned first application program is identical, Alternatively, when the pop-up message to above-mentioned pop-up push process push being needed to load, in the foreground interface of terminal in display State the pop-up message of pop-up push process push.
Optionally, after the pop-up message that interception unit 304 intercepts above-mentioned pop-up push process push, can according to The selection at family, which releases, to be intercepted, specific as follows:As shown in fig. 6, above-mentioned terminal further includes:
Prompt unit 307, for exporting prompt message, wherein above-mentioned prompt message is for prompting user to be intercepted State the attribute information of pop-up message;
Detection unit 308 for detecting whether receiving the releasing interception instruction for above-mentioned pop-up message, and is receiving When intercepting instruction to above-mentioned releasing, above-mentioned display unit 306 is driven to show above-mentioned pop-up message in the foreground interface of terminal.
Optionally, after the pop-up message that interception unit 304 intercepts above-mentioned pop-up push process push, if not receiving Releasing to user intercepts instruction, then can further judge whether above-mentioned first application program is security application, specifically It is as follows:As shown in fig. 7, above-mentioned terminal further includes:
Second acquisition unit 309, for obtaining above-mentioned first application program according to the packet name of above-mentioned first application program Index information, wherein the index information of above-mentioned first application program includes title, icon or the address of above-mentioned first application program At least one of;
Query unit 310, for inquiring above-mentioned first application program according to the index information of above-mentioned first application program Installation file;
Second judgment unit 311, for according to query result, judging whether above-mentioned first application program is security application journey Sequence, and when above-mentioned first application program is not security application, above-mentioned prompt unit 307 is driven to prompt above-mentioned first application Program is malicious application.
Optionally, if above-mentioned first application program is malicious application, first application program can be unloaded, may be used also With the malicious plugins information reporting server for carrying first application program, subsequently to there is user to be downloaded from above-mentioned server It should be in application, can prompt user that should apply in time carries malicious plugins.
The embodiment of the present invention additionally provides a kind of terminal, as shown in figure 8, including:Processor 801 and memory 802;Its Middle memory 802 can be used for processor 801 and execute the required caching of data processing, can be also used for providing processor 801 Execute the memory space of the result data of data and acquisition that data processing is called.
Above-mentioned processor 801 monitors the application journey in terminal for calling the program code stored in above-mentioned memory 802 Whether sequence starts pop-up push process;If monitoring above-mentioned pop-up push process, obtains and start above-mentioned pop-up push process The packet name of first application program;The second application program that the foreground interface of the Bao Mingyu terminals of above-mentioned first application program is run Packet name be compared, if the two is different, intercept the pop-up message of above-mentioned pop-up push process push.
Optionally, above-mentioned processor 801 is above-mentioned intercepting for calling the program code stored in above-mentioned memory 802 Before pop-up pushes the pop-up message of process push, it is additionally operable to execute following operation:Judged according to preset pop-up loading rule Whether need the pop-up message to above-mentioned pop-up push process push to load, and process need not pushed to above-mentioned pop-up When the pop-up message of push is loaded, the pop-up message of the above-mentioned pop-up push process push of above-mentioned interception is executed.
Optionally, above-mentioned processor 801 is additionally operable to execute for calling the program code stored in above-mentioned memory 802 Following operation:If the packet name of above-mentioned second application programs of the Bao Mingyu of above-mentioned first application program is identical, alternatively, needing to above-mentioned The pop-up message of pop-up push process push is loaded, then shows that above-mentioned pop-up push process pushes away in the foreground interface of terminal The pop-up message sent.
Optionally, above-mentioned processor 801 is above-mentioned intercepting for calling the program code stored in above-mentioned memory 802 After pop-up pushes the pop-up message of process push, it is additionally operable to execute following operation:Export prompt message, wherein above-mentioned prompt The attribute information for the above-mentioned pop-up message that information is used to that user to be prompted to be intercepted;It detects whether to receive for above-mentioned pop-up message Releasing intercept instruction, and when receiving above-mentioned releasing and intercepting instruction, show that above-mentioned pop-up disappears in the foreground interface of terminal Breath.
Optionally, above-mentioned processor 801 is above-mentioned intercepting for calling the program code stored in above-mentioned memory 802 After pop-up pushes the pop-up message of process push, it is additionally operable to execute following operation:According to the packet name of above-mentioned first application program Obtain the index information of above-mentioned first application program, wherein the index information of above-mentioned first application program includes above-mentioned first answering With at least one of the title of program, icon or address;According to the index information of above-mentioned first application program inquiry above-mentioned the The installation file of one application program;According to query result, judge whether above-mentioned first application program is security application, and When above-mentioned first application program is not security application, it is malicious application to prompt above-mentioned first application program.
The embodiment of the present invention additionally provides another terminal, as shown in figure 9, for convenience of description, illustrating only and this hair The bright relevant part of embodiment, particular technique details do not disclose, please refer to present invention method part.The terminal can be with It includes mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of to be Sales, point-of-sale terminal), the arbitrary terminal device such as vehicle-mounted computer, by taking terminal is mobile phone as an example:
Fig. 9 shows the block diagram with the part-structure of the relevant mobile phone of terminal provided in an embodiment of the present invention.Reference chart 9, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980 and The components such as power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone, May include either combining certain components or different components arrangement than illustrating more or fewer components.
Each component parts of mobile phone is specifically introduced with reference to Fig. 9:
RF circuits 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 980;In addition, the data for designing uplink are sent to base station.In general, RF circuits 910 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated with network and other equipment by radio communication. Above-mentioned wireless communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, to execute various function application and the data processing of mobile phone.Memory 920 can include mainly Storing program area and storage data field, wherein storing program area can storage program area, the application journey needed at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 920 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 930 may include that touch panel 931 and other inputs are set Standby 932.Touch panel 931, also referred to as touch screen, collect user on it or neighbouring touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 931 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 980, and order that processor 980 is sent can be received and executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input Unit 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but is not limited to secondary or physical bond It is one or more in disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941, optionally, liquid crystal display (Liquid Crystal may be used Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 941.Further, touch panel 931 can cover display panel 941, when touch panel 931 detect it is on it or attached After close touch operation, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 according to touch event Type corresponding visual output is provided on display panel 941.Although in fig.9, touch panel 931 and display panel 941 It is that input and the input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 931 and display panel 941 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 941, proximity sensor can close display panel 941 when mobile phone is moved in one's ear And/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) acceleration Size, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 960, loud speaker 961, microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric The transformed electric signal of the audio data received can be transferred to loud speaker 961 by road 960, and sound is converted to by loud speaker 961 Signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, through RF circuits 910 to be sent to such as another mobile phone, Or audio data is exported to memory 920 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can not change as needed completely Become in the range of the essence of invention and omits.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 980 can wrap Include one or more processing units;Preferably, processor 980 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 980 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In earlier figures 1, embodiment shown in Fig. 2, each step method flow can be realized based on the structure of the mobile phone.
In earlier figures 3, Fig. 4, Fig. 5, Fig. 6, embodiment shown in Fig. 7, each unit function can be based on the structure of the mobile phone It realizes.
It is worth noting that, in the embodiment of above-mentioned pop-up hold-up interception method and terminal, included each unit is only pressed It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, The specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in above-mentioned each method embodiment It is that relevant hardware can be instructed to complete by program, corresponding program can be stored in a kind of computer readable storage medium In, storage medium mentioned above can be read-only memory, disk or CD etc..
It these are only the preferable specific implementation mode of the present invention, but scope of protection of the present invention is not limited thereto, it is any Those familiar with the art the variation that can readily occur in or replaces in the technical scope that the embodiment of the present invention discloses It changes, should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Subject to enclosing.

Claims (10)

1. a kind of pop-up hold-up interception method, which is characterized in that including:
After user opens pop-up interception function, monitor whether the application program in terminal starts pop-up push process;
If monitoring the pop-up push process, the packet name for the first application program for starting the pop-up push process is obtained;
The packet name for the second application program that the foreground interface of terminal described in the Bao Mingyu of first application program is run carries out Compare,
If the packet name of the second application program described in the Bao Mingyu of first application program is identical, at the foreground interface of the terminal The pop-up message of the middle display pop-up push process push;
If the two is different, judged whether to need the bullet to pop-up push process push according to preset pop-up loading rule Window message is loaded, if the pop-up message that need not push process push to the pop-up loads, intercepts the pop-up The pop-up message of push process push;
Wherein, after the pop-up message for intercepting the pop-up push process push, if the first application program needs to be returned Value is returned, the intercepted information of pop-up push request, anti-locking system or application obstruction are returned to the first application program;
Wherein, the packet name of the first application program of the acquisition startup pop-up push process includes:According to process entrance function Type parameter caller, callingPackage, intent in startActivity obtain the packet name of the first application program;
The method further includes:
The index information of first application program, first application program are obtained according to the packet name of first application program Index information include first application program at least one of title, icon or address;It is answered according to described first The installation file of first application program is inquired with the index information of program;
Judge whether first application program is security application according to query result, if not security application, then It is malicious application to prompt first application program;And if above-mentioned first application program is malicious application, is carried Show that user unloads first application program or unloads first application program automatically.
2. method according to claim 1, which is characterized in that the preset pop-up loading rule is by local or cloud service Device end obtains.
3. method according to claim 1, which is characterized in that the method further includes:
If desired the pop-up message of pop-up push process push is loaded, is then shown in the foreground interface of the terminal Show the pop-up message of the pop-up push process push.
4. according to claims 1 to 3 any one the method, which is characterized in that the interception pop-up push process pushes away After the pop-up message sent, the method further includes:
Prompt message is exported, the prompt message is used to prompt the attribute information of the intercepted pop-up message;
It detects whether to receive the releasing interception instruction for the pop-up message, if receiving the releasing intercepts instruction, The pop-up message is shown in the foreground interface of the terminal.
5. a kind of terminal, which is characterized in that including:
Monitoring unit, for after user opens pop-up interception function, whether the application program in monitoring terminal, which starts pop-up, to push away It is sent into journey;
First acquisition unit starts the of the pop-up push process for when monitoring that the pop-up pushes process, obtaining The packet name of one application program;
Comparison unit, second for running the foreground interface of terminal described in the Bao Mingyu of first application program applies journey The packet name of sequence is compared;
Display unit, for the second application program described in the Bao Mingyu of first application program packet famous prime minister simultaneously, in institute State the pop-up message that the pop-up push process push is shown in the foreground interface of terminal;
Interception unit when being used for the packet name difference of the second application program described in the Bao Mingyu of first application program, intercepts The pop-up message of the pop-up push process push;
First judging unit, for judging whether to need to pop-up push process push according to preset pop-up loading rule Pop-up message loaded, and need not to the pop-up push process push pop-up message load when, driving The interception unit executes the pop-up message for intercepting the pop-up push process push;
Wherein, after the pop-up message for intercepting the pop-up push process push, if the first application program needs to be returned Value is returned, the intercepted information of pop-up push request, anti-locking system or application obstruction are returned to the first application program;
Wherein, the packet name of the first application program of the acquisition startup pop-up push process includes:According to process entrance function Type parameter caller, callingPackage, intent in startActivity obtain the packet name of the first application program;
The terminal further includes:Second acquisition unit is answered for obtaining described first according to the packet name of first application program With the index information of program, the index information of first application program include the title of first application program, icon or At least one of address;
Query unit, the installation text for inquiring first application program according to the index information of first application program Part;
Second judgment unit, for according to query result, judging whether first application program is security application, and When first application program is not security application, it is malicious application to prompt first application program;And if Above-mentioned first application program is malicious application, then prompts user to unload first application program or unload described the automatically One application program.
6. terminal according to claim 5, which is characterized in that the preset pop-up loading rule is by local or cloud service Device end obtains.
7. terminal according to claim 5, which is characterized in that
Display unit is additionally operable to when needing the pop-up message to pop-up push process push to load, in the terminal Foreground interface in show the pop-up message of pop-up push process push.
8. according to terminal described in claim 5 to 7 any one, which is characterized in that the terminal further includes:
Prompt unit, for exporting prompt message, the pop-up message that the prompt message is used to that user to be prompted to be intercepted Attribute information;
Detection unit, for detecting whether the releasing interception instruction for the pop-up message is received, and it is described receiving When releasing interception instruction, the pop-up message is shown in the foreground interface of the terminal.
9. a kind of terminal, including:Processor and memory, wherein the processor requires 1 to 4 any one for perform claim The method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include the instruction that the method described in 1 to 4 any one is required for perform claim.
CN201610430977.6A 2016-06-15 2016-06-15 A kind of pop-up hold-up interception method and terminal Active CN106126562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610430977.6A CN106126562B (en) 2016-06-15 2016-06-15 A kind of pop-up hold-up interception method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610430977.6A CN106126562B (en) 2016-06-15 2016-06-15 A kind of pop-up hold-up interception method and terminal

Publications (2)

Publication Number Publication Date
CN106126562A CN106126562A (en) 2016-11-16
CN106126562B true CN106126562B (en) 2018-09-04

Family

ID=57470698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610430977.6A Active CN106126562B (en) 2016-06-15 2016-06-15 A kind of pop-up hold-up interception method and terminal

Country Status (1)

Country Link
CN (1) CN106126562B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528243B (en) * 2016-11-25 2019-08-06 Oppo广东移动通信有限公司 Information processing method, information processing unit, terminal device and server
CN106789973B (en) * 2016-12-06 2020-12-18 海信集团有限公司 Page security detection method and terminal equipment
CN106980498B (en) * 2017-02-15 2023-06-27 Oppo广东移动通信有限公司 Window management method and device
CN107179905A (en) * 2017-04-01 2017-09-19 珠海市魅族科技有限公司 The methods of exhibiting and device of a kind of pop window information
CN107256147A (en) * 2017-05-22 2017-10-17 努比亚技术有限公司 Pop-up control method, terminal and the computer-readable recording medium of application widget
CN107330054A (en) * 2017-06-28 2017-11-07 赵宇航 A kind of pop-up screen method and device
CN107402754A (en) * 2017-06-30 2017-11-28 北京金山安全软件有限公司 Information processing and model training method, device, electronic equipment and storage medium
CN107861759A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Window control method, apparatus, terminal device and storage medium
CN107797841B (en) * 2017-11-21 2021-11-05 Oppo广东移动通信有限公司 Window control method and device, terminal equipment and storage medium
CN107861773A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Associate management-control method, device, storage medium and the mobile terminal started
CN108154030B (en) * 2017-11-22 2021-06-25 努比亚技术有限公司 Application window management and control method, terminal and computer readable storage medium
CN108132823B (en) * 2017-12-21 2021-02-12 维沃移动通信有限公司 Notification message prompting method and mobile terminal
CN108990064B (en) * 2018-07-27 2022-03-01 上海尚往网络科技有限公司 Wireless hotspot connection method, electronic device and medium
CN109240781A (en) * 2018-08-22 2019-01-18 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal advertisement hold-up interception method, device and storage device
CN109543407B (en) * 2018-10-19 2024-04-05 三六零科技集团有限公司 Activity hijacking interception method and device
CN110737887B (en) * 2019-10-22 2021-11-30 厦门美图之家科技有限公司 Malicious code detection method and device, electronic equipment and storage medium
CN110955482B (en) * 2019-11-27 2023-12-05 维沃移动通信有限公司 Popup window display method and device, electronic equipment and medium
CN111966562B (en) * 2020-07-21 2024-07-02 北京视博云信息技术有限公司 Cloud platform monitoring method and device and readable storage medium
CN113918452B (en) * 2021-09-13 2023-10-31 北京计算机技术及应用研究所 Industrial software compatibility testing method under multi-country production platform
CN116048544B (en) * 2022-08-24 2023-11-07 荣耀终端有限公司 Processing method of popup advertisement, electronic equipment and readable storage medium
CN115391771B (en) * 2022-10-28 2023-03-24 荣耀终端有限公司 Popup window intercepting method and device, electronic equipment and readable storage medium
CN118069263A (en) * 2022-11-24 2024-05-24 华为技术有限公司 Window control method and electronic device
CN116582585B (en) * 2023-07-07 2023-11-14 Tcl通讯科技(成都)有限公司 Message pushing method, device, medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN105303105A (en) * 2015-10-20 2016-02-03 珠海市君天电子科技有限公司 Window message interception method and device and terminal equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8146013B2 (en) * 2005-07-26 2012-03-27 International Business Machines Corporation Allowing authorized pop-ups on a website
CN101620529B (en) * 2008-07-03 2013-05-01 联想(北京)有限公司 Method and system for intercepting pop-up window
CN103065090B (en) * 2012-12-20 2016-03-23 广东欧珀移动通信有限公司 A kind of application program malice Ad blocking method and device
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal
CN105607831B (en) * 2015-12-17 2019-08-27 珠海豹趣科技有限公司 The control method and device of pop-up

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN105303105A (en) * 2015-10-20 2016-02-03 珠海市君天电子科技有限公司 Window message interception method and device and terminal equipment

Also Published As

Publication number Publication date
CN106126562A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106126562B (en) A kind of pop-up hold-up interception method and terminal
CN106126015B (en) A kind of application program launching control method and terminal
CN106598529A (en) Method and device for sub-screen display of mobile terminal, and mobile terminal
CN106412311B (en) A kind of data transmission method and terminal device
CN107357725B (en) Application testing method and device
CN107346397B (en) Information processing method and related product
CN103501485B (en) Push the method, apparatus and terminal device of application
CN107734616A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN106453767A (en) Method and device for detecting failure after dropping
CN106529312B (en) A kind of authority control method of mobile terminal, device and mobile terminal
CN106657690A (en) Method and device for preventing phone scam, and mobile terminal
CN107276602B (en) Radio frequency interference processing method, device, storage medium and terminal
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN106529332B (en) A kind of authority control method of mobile terminal, device and mobile terminal
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN107423598B (en) A kind of solution lock control method and mobile terminal
CN111460397A (en) Monitoring method for application permission calling and electronic equipment
CN107608725A (en) A kind of information processing method and terminal
JP6974620B2 (en) Notification message processing method and terminal
CN107102913B (en) Data back up method, device and computer equipment
CN106020945A (en) Shortcut item adding method and device
CN106708501B (en) Activity monitoring method and device
CN107770449A (en) continuous shooting method, electronic equipment and storage medium
CN108121583A (en) Screenshotss method and Related product
MX2014009372A (en) Method, device and terminal for protecting application program.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder