CN104281804A - Terminal - Google Patents
Terminal Download PDFInfo
- Publication number
- CN104281804A CN104281804A CN201410485756.XA CN201410485756A CN104281804A CN 104281804 A CN104281804 A CN 104281804A CN 201410485756 A CN201410485756 A CN 201410485756A CN 104281804 A CN104281804 A CN 104281804A
- Authority
- CN
- China
- Prior art keywords
- unit
- plug
- terminal
- application
- list
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/51—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a terminal comprising a recognition unit, a startup request detection unit and a discarding unit. The recognition unit is used for recognizing plugins of an application when the application runs or when a user starting the application is detected. The startup request detection unit is used for detecting a plugin startup request through a framework manager or framework thread in an application framework. The discarding unit is used for discarding the request to prohibit running of the plugins when the request is detected. Running of the plugins can be prohibited by detecting the plugin startup request and discarding the same. Fewer system resources are used, existing plugin filtering methods are simplified, and user experience is improved.
Description
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of terminal.
Background technology
At present, carry some plug-in units in application, as ad plug-in etc. more.When user opens this application, plug-in unit can complete initialization automatically, is presented on application interface, and user cannot shield plug-in unit, or carries out maloperation to the advertising message on application interface, may cause the consequences such as flow waste, occupying system resources.
In the method for current filter plug-in unit, there is the method for the networking behavior of intelligently filters plug-in unit, but the method cannot be filtered other behaviors such as the display interfaces of plug-in unit, thus fail the application plug-in that realizes user being wished to shield, as real filtering out such as ad plug-in, and the method for filter inserts need, by conditions such as interconnection networks, implement too loaded down with trivial details.The principle of wrapping again or according to Jar in preferential loading system, loads harmless Jar in systems in which and wraps, thus the Jar bag in terminal loads system is with the Jar bag in alternative plug-in unit, and plug-in unit can not normally be run.But in implementation process, terminal only can load a Jar bag from system, is repeatedly limited, then need wrap by repeated loading Jar from system, thus implementation is too loaded down with trivial details to realize plug-in unit.In sum, the filter method of current plug-in unit is too loaded down with trivial details, reduces Consumer's Experience.
Summary of the invention
Embodiments provide a kind of terminal.Can plug-in unit in filtration application, improve Consumer's Experience.
The embodiment provides a kind of terminal, comprising:
Recognition unit, for when operation application or when detecting that user opens described application, identifies the plug-in unit in application;
Start request detection unit, for by the frame manager in application framework or framework thread, detect the startup request of described plug-in unit;
Discarding unit, for when the startup request described plug-in unit being detected, abandons described startup request with the operation forbidding described plug-in unit.
In the embodiment of the present invention, can in terminal operating application or when detecting that user opens described application, by identifying the plug-in unit in application, and by the frame manager in application framework or framework thread, detect the active state of plug-in unit, when the startup request of plug-in unit being detected, abandoning this startup request, the operation of plug-in unit can be forbidden.Reduce system resource occupancy, and simplify existing plug-in unit filter method, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of an embodiment of a kind of terminal in the present invention;
Fig. 2 is the structural representation of another embodiment of a kind of terminal in the present invention;
Fig. 3 is the structural representation of the another embodiment of a kind of terminal in the present invention;
Fig. 4 is the process flow diagram of an embodiment of the disposal route of a kind of plug-in unit in the present invention;
Fig. 5 is the process flow diagram of another embodiment of the disposal route of a kind of plug-in unit in the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Terminal mentioned in the embodiment of the present invention comprises mobile phone, panel computer, intelligent television, vehicular platform etc.Operating system in terminal mentioned in the embodiment of the present invention can comprise Android (Android), ios, Windows etc.
Below with reference to the accompanying drawings embodiments of the invention are described.See Fig. 1, it is the structural representation of an embodiment of a kind of terminal in the present invention.This terminal can comprise: recognition unit 1, startup request detection unit 2, discarding unit 3.
Wherein, recognition unit 1, for when operation application or when detecting that user opens described application, identifies the plug-in unit in application.
In one embodiment, in the process of terminal operating application, or when terminal detects that user opens this application, recognition unit 1 is by the plug-in unit in various ways identification application.As collected plugin information in the server, as ad plug-in etc., there is different plugin names by different application plug-in, so server is by collecting plugin name, obtaining plugin information.The plugin information that terminal is collected by Download Server, the plug-in unit in identifiable design application.Optionally, terminal can according to user's request identification application in particular plug-in, as ad plug-in etc., also identifiable design application in all plug-in units.
Start request detection unit 2, for by the frame manager in application framework or framework thread, detect the startup request of described plug-in unit.
In one embodiment, start request detection unit 2 by arrange frame manager in application framework (English: frame manager) and/or framework thread (English: frame thread), the activity of plug-in unit in application can be monitored, thus implementation framework manager or framework thread the startup request of plug-in unit can be detected.Discarding unit 3, for when the startup request described plug-in unit being detected, abandons described startup request with the operation forbidding described plug-in unit.
In one embodiment, after identifying the plug-in unit in terminal applies, namely monitor by the activity to plug-in unit such as active manager or active threads, start the startup request that request detection unit 2 detects plug-in unit.When after startup request plug-in unit being detected, namely show that plug-in unit application runs license, then abandoned the startup request in plug-in unit by discarding unit 3, forbid the operation of this plug-in unit, thus reach the effect of plug-in unit in filtration application.
In the embodiment of the present invention, can in terminal operating application or when detecting that user opens described application, by identifying the plug-in unit in application, and by arranging frame manager in application framework and/or framework thread, detect the active state of plug-in unit, when the startup request of plug-in unit being detected, abandoning this startup request, the operation of plug-in unit can be forbidden.Reduce system resource occupancy, and simplify existing plug-in unit filter method, improve Consumer's Experience.
See Fig. 2, it is the structural representation of another embodiment of a kind of terminal in the present invention.This terminal can comprise: switch-linear hybrid unit 01, download unit 02, status determining unit 03, switch Tip element 04, recognition unit 05, set up unit 06, record cell 07, start request detection unit 08, discarding unit 09.
Wherein, switch-linear hybrid unit 01, for arranging plug-in unit limit switch.
In one embodiment, terminal arranges plug-in unit limit switch by switch-linear hybrid unit 01, concrete, by increasing the field of indicator cock in the setting data storehouse of system, plug-in unit limit switch can being set, when this plug-in unit limit switch is for opening, namely forbidding plug-in component operation, when this plug-in unit limit switch is for closing, then the plug-in unit in application is not detected.Optionally, different plug-in unit limit switches can be set according to plug-in unit character, as arranged ad plug-in limit switch or malicious plugins limit switch etc. for advertisement or malicious plugins.
Optionally, in one embodiment, terminal also can comprise: icon setting unit, icon detecting unit, switch unit.
Wherein, icon setting unit, for arranging the icon of described plug-in unit limit switch to point out user;
Icon detecting unit, for detecting the operational order of user to described icon;
Switch unit, for according to described operational order, switches the state of described plug-in unit limit switch.
Concrete, also by icon setting unit at the up icon arranging plug-in unit limit switch of the display interface of terminal, to point out user the need of carrying out plug-in unit restriction operation, user can enter the operating instructions icon according to the demand of self, as click or length press icon image on the touchscreen, after icon detecting unit detects that user is to the operational order of icon, then switch unit according to concrete operational order, can switch the state of plug-in unit limit switch.The state of plug-in unit limit switch, for closing, if when the clicking operation of user being detected, then can switch to out by the state of producing inspection limit switch as current.Thus add the right to know of user, enable user directly carry out restriction operation to the plug-in unit in application, improve Consumer's Experience.
Download unit 02, download plug-in list from server, wherein, described plug-in unit list comprises plugin name.
Optionally, download unit also can comprise: transmitting element 021, acquiring unit 022.
Transmitting element 021, for the request of described server transmission list, wherein, the plugin name in described server parses application, and set up described plug-in unit list according to described plugin name;
Acquiring unit 022, for obtaining the described plug-in unit list of described server feedback.
In one embodiment, by download plug-in list from server, the plug-in unit in application is identified.Concrete, server, by collecting the plugin name in application, sets up plug-in unit list.Terminal sends the request obtaining plug-in unit list to server by transmitting element 021, got the plug-in unit list of server feedback by acquiring unit 022.When terminal recognition is present in plug-in unit list to the plugin name in application, can show that these plug-in unit needs process.Optionally, server according to the different in kind of plug-in unit, can set up different plug-in unit lists, as ad plug-in list or the list of malice charge plug-in unit etc.
Optionally, in one embodiment, terminal also can comprise: update notification acquiring unit, notice Tip element, updating block.
Wherein, update notification acquiring unit, for obtaining the update notification of the described plug-in unit list of described server.
Notice Tip element, for described update notification is prompted to user, to confirm that user is the need of the renewal carrying out described plug-in unit list.
Updating block, for after detecting that user is to the confirmation operation of described update notification, according to described update notification, upgrades described plug-in unit list.
In one embodiment, when plug-in unit list update in server, update notification can be pushed to terminal.Update notification is prompted to user by notice Tip element by terminal, to confirm that user is the need of the renewal carrying out plug-in unit list, if after user confirms to upgrade list, by the plug-in unit list of updating block from server after down loading updating, with the plug-in unit list that more new terminal is current.Thus ensure that the real-time to plug-in unit identification in terminal, and enhance the right to know of user, improve Consumer's Experience.
Status determining unit 03, for when detecting that user opens described application, determines described plug-in unit limit switch state.
In one embodiment, status determining unit 03 when detecting that user opens application, can determine the state of plug-in unit limit switch.If the state of plug-in unit limit switch is for opening, then by recognition unit 05, the plug-in unit in application is identified, and can the plug-in unit identified be monitored, to confirm whether plug-in unit carries out activity; If the state of plug-in unit limit switch is for closing, then the plug-in unit in applying can be allowed movable, or point out user the need of unlatching plug-in unit limit switch by condition prompting unit 04.
Switch Tip element 04, if for described plug-in unit limit switch state for closing, whether prompting user opens described plug-in unit limit switch.
In one embodiment, if after detecting that user opens application, when status determining unit 03 determines the state of plug-in unit limit switch for closing, point out user the need of unlatching plug-in unit limit switch further by switch Tip element 04, to confirm whether user does not really need to process the plug-in unit in application.If detect, user opens plug-in unit limit switch, then can carry out following steps; If detect, user does not open plug-in unit limit switch, then show that user confirms not process the plug-in unit activity in application.
Recognition unit 05, if if for described plug-in unit limit switch state for opening or detecting that described user opens described plug-in unit limit switch, identifies the plug-in unit in application.
Wherein, recognition unit 05 can comprise: scanning element 051, search unit 052, plug-in unit recognition unit 053.
Scanning element 051, for scanning the plug-in unit in application;
In one embodiment, if confirmed that by status determining unit 03 plug-in unit limit switch state is for opening, or detect that user opens the instruction of plug-in unit limit switch by condition prompting unit 04, then the plug-in unit in the application of opening further is scanned by scanning element 051.
Search unit 052, for searching the plugin name that whether there is described plug-in unit in described plug-in unit list;
In one embodiment, after scanning the plug-in unit in application, search unit 052 and can search the plugin name whether existing and scan plug-in unit in the plug-in unit list of downloading from server, if exist, then show that this plug-in unit is for needing plug-in unit to be processed, if do not exist, then show that this plug-in unit does not need to be processed.Optionally, different according to the demand of user, different plug-in unit lists can be downloaded from server, then can at the different plug-in unit of terminal processes.As user needs filtering advertisements plug-in unit, then from the list of server downloads ad plug-in unit, and confirm whether the plugin name scanning plug-in unit exists in the ad plug-in list of downloading.
Plug-in unit recognition unit 053, for when described in search unit find described plugin name time, identify that described plug-in unit is pending plug-in unit.
In one embodiment, if find out plugin name in plug-in unit list, then show that these plug-in unit needs are processed, then by plug-in unit recognition unit 053, this plug-in unit is identified as pending plug-in unit, if the startup request of this pending plug-in unit detected, the then startup request of this pending plug-in unit discardable, to forbid the operation of this pending plug-in unit.
Set up unit 06, for setting up plugin name list.
Record cell 07, for being recorded in the described plugin name of the described pending plug-in unit identified in described plugin name list.
In one embodiment, plugin name list can be set up in terminal by setting up unit 06, concrete, plugin name list can be set up in terminal database.By setting up plugin name list, statistics can be recorded in the terminal and need plug-in unit summation to be processed, the plug-in unit in each application can be scanned, record cell 07 need be recorded in plugin name list by plugin name to be processed, then without the need at every turn when opening application, all from the list of server download plug-in, thus need can save Internet resources, and effectively can add up in terminal the pending plug-in unit be present in each application.
Start request detection unit 08, for detecting the startup request of described plug-in unit according to the frame manager after described setting and/or framework thread.
Optionally, this terminal also can comprise with lower unit:
Framework setting unit, for arranging frame manager in described application framework or framework thread, with the startup request enabling described frame manager or framework thread described plug-in unit be detected, and processes described startup request;
Framework detecting unit, for according to the described frame manager after arranging or framework thread, detects the startup request of described plug-in unit.
In one embodiment, start request detection unit 08 by arrange frame manager in application framework (English: frame manager) and/or framework thread (English: frame thread), the activity of plug-in unit in application can be monitored, thus implementation framework manager or framework thread the startup request of plug-in unit can be detected.Optionally, by the activity of multiple plug-in unit or a certain plug-in unit in frame manager and/or the application of frame line range monitoring.And can process the activity of plug-in unit, during as the startup request of plug-in unit detected, can judge whether to need to abandon operation to it; And for example can detect other requests of plug-in unit, and according to concrete request, plug-in unit be operated accordingly.
Discarding unit 09, for when the startup request described plug-in unit being detected, abandons described startup request with the operation forbidding described plug-in unit.
Wherein, discarding unit 09 can comprise: judging unit 091, plug-in unit discarding unit 092.
Judging unit 091, for when the startup request of described plug-in unit be detected, judges that the plugin name of described plug-in unit is whether in described plugin name list;
Plug-in unit discarding unit 092, for when the result that described judging unit 091 judges is as being, then abandons described startup request with the operation forbidding described plug-in unit.
In one embodiment, when the startup request of a plug-in unit being detected, judging unit 091 can judge whether the plugin name of this plug-in unit is present in the plugin name list of terminal foundation, if be present in this plugin name list, then show that this plug-in unit is pending plug-in unit, then need the startup request being abandoned this pending plug-in unit by plug-in unit discarding unit 092, to forbid the operation of pending plug-in unit.Title as this plug-in unit is present in the ad plug-in name list of terminal foundation, then show that this plug-in unit is ad plug-in, then when the startup request of this ad plug-in being detected, then abandon this startup request.If there is not this plugin name, then show without the need to forbidding process to this plug-in unit, then by the further operation of frame manager or this plug-in unit of frame line thread management.
In the embodiment of the present invention, can in terminal operating application or when detecting that user opens described application, by identifying the plug-in unit in application, and by arranging frame manager in application framework and/or framework thread, detect the active state of plug-in unit, when the startup request of plug-in unit being detected, abandoning this startup request, the operation of plug-in unit can be forbidden.Reduce system resource occupancy, and simplify existing plug-in unit filter method, improve Consumer's Experience.
See Fig. 3, it is the structural representation of the another embodiment for a kind of terminal in the present invention.This equipment can comprise: at least one processor 1, as CPU etc.; At least one display 2; At least one storer 3; And at least one communication bus 4.
Wherein, communication bus 4 is for realizing the connection communication between said modules.Storer 3 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 3 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 1.Wherein, the function of processor 1 and structure can in conjunction with the terminals shown in above-described embodiment.Display 2 can display interface image, and storer 3 stores batch processing code, and processor 1 calls the program code that storer 3 stores, for performing following operation:
When operation application or when detecting that user opens described application, identify the plug-in unit in described application;
By the frame manager in application framework or framework thread, detect the startup request of described plug-in unit;
When the startup request of described plug-in unit being detected, abandon described startup request with the operation forbidding described plug-in unit.
In an alternate embodiment of the invention, before the plug-in unit of described processor in the described application of described identification, also perform following operation for the program code called in described storer:
Plug-in unit limit switch is set;
When detecting that user opens described application, determine described plug-in unit limit switch state;
If described plug-in unit limit switch state for opening, then performs the step of the plug-in unit in the described application of described identification.
In an alternate embodiment of the invention, described processor also performs following operation for the program code called in described storer:
If described plug-in unit limit switch state is for closing, whether prompting user opens described plug-in unit limit switch;
If detect, described user opens described plug-in unit limit switch, then perform the step of the plug-in unit in the described application of described identification.
In an alternate embodiment of the invention, described processor also performs following operation for the program code called in described storer:
The icon of described plug-in unit limit switch is set to point out user;
Detect user to the operational order of described icon;
According to described operational order, switch the state of described plug-in unit limit switch.
In an alternate embodiment of the invention, described processor, before the described plug-in unit identified in application, also performs following operation for the program code called in described storer:
Download plug-in list from server, wherein, described plug-in unit list comprises plugin name;
Plug-in unit in the described application of described identification, comprising:
Scan the plug-in unit in described application;
The plugin name that whether there is described plug-in unit is searched in described plug-in unit list;
If there is described plugin name, then described plug-in unit is identified as pending plug-in unit.
In an alternate embodiment of the invention, described processor concrete mode of download plug-in list from server is:
To the request of described server transmission list, wherein, the plugin name in described server parses application, and set up described plug-in unit list according to described plugin name;
Obtain the described plug-in unit list of described server feedback.
In an alternate embodiment of the invention, described processor, after described plug-in unit is identified as pending plug-in unit, also performs following operation for the program code called in described storer:
Set up plugin name list;
The described plugin name of the described pending plug-in unit identified is recorded in described plugin name list;
Wherein, the described startup request when described plug-in unit being detected, abandons described startup request to forbid that the operation of described plug-in unit comprises:
When the startup request of described plug-in unit being detected, judge that the plugin name of described plug-in unit is whether in described plugin name list;
If the result judged is yes, then abandon described startup request with the operation forbidding described plug-in unit.
In an alternate embodiment of the invention, described processor is by the frame manager in application framework or framework thread, and the concrete mode detecting the startup request of described plug-in unit is:
Frame manager in described application framework or framework thread are set, with the startup request enabling described frame manager or framework thread described plug-in unit be detected, and described startup request are processed;
According to the described frame manager after arranging or framework thread, detect the startup request of described plug-in unit.
In an alternate embodiment of the invention, described processor also performs following operation for the program code called in described storer:
Obtain the update notification of the described plug-in unit list of described server;
According to described update notification, upgrade described plug-in unit list.
In an alternate embodiment of the invention, described processor, after the update notification of described plug-in unit list obtaining described server, also performs following operation for the program code called in described storer:
Described update notification is prompted to user, to confirm that user is the need of the renewal carrying out described plug-in unit list;
Wherein, described according to described update notification, upgrade described plug-in unit list, comprising:
After detecting that user is to the confirmation operation of described update notification, according to described update notification, upgrade described plug-in unit list.
In the embodiment of the present invention, can in terminal operating application or when detecting that user opens described application, by identifying the plug-in unit in application, and by arranging frame manager in application framework and/or framework thread, detect the active state of plug-in unit, when the startup request of plug-in unit being detected, abandoning this startup request, the operation of plug-in unit can be forbidden.Reduce system resource occupancy, and simplify existing plug-in unit filter method, improve Consumer's Experience.
Concrete, described in Fig. 1-Fig. 3, terminal specifically can perform method part or all of shown in Fig. 4-Fig. 5, to realize above-mentioned technique effect.
See Fig. 4, it is the process flow diagram of an embodiment of the disposal route of a kind of plug-in unit in the present invention.The method can at least comprise the following steps.
Step S101, when operation application or when detecting that user opens described application, identifies the plug-in unit in application.
In one embodiment, in the process of terminal operating application, or when terminal detects that user opens this application, by the plug-in unit in various ways identification application.As collected plugin information in the server, as ad plug-in etc., there is different plugin names by different application plug-in, so server is by collecting plugin name, obtaining plugin information.The plugin information that terminal is collected by Download Server, the plug-in unit in identifiable design application.Optionally, terminal can according to user's request identification application in particular plug-in, as ad plug-in etc., also identifiable design application in all plug-in units.
Step S102, by the frame manager in application framework or framework thread, detects the startup request of described plug-in unit.
In one embodiment, terminal by arrange frame manager in application framework (English: frame manager) and/or framework thread (English: frame thread), the activity of plug-in unit in application can be monitored, thus implementation framework manager or framework thread the startup request of plug-in unit can be detected.Step S103, when the startup request of described plug-in unit being detected, abandons described startup request with the operation forbidding described plug-in unit.
In one embodiment, after identifying the plug-in unit in terminal applies, namely monitor by the activity to plug-in unit such as active manager or active threads, in order to detect the startup request of plug-in unit.When after startup request plug-in unit being detected, namely show that plug-in unit application runs license, then by abandoning the startup request in plug-in unit, forbid the operation of this plug-in unit, thus reach the effect of plug-in unit in filtration application.
In the embodiment of the present invention, can in terminal operating application or when detecting that user opens described application, by identifying the plug-in unit in application, and by arranging frame manager in application framework and/or framework thread, detect the active state of plug-in unit, when the startup request of plug-in unit being detected, abandoning this startup request, the operation of plug-in unit can be forbidden.Reduce system resource occupancy, and simplify existing plug-in unit filter method, improve Consumer's Experience.
See Fig. 5, it is the process flow diagram of another embodiment of the disposal route of a kind of plug-in unit in the present invention.The method can at least comprise the following steps.
Step S201, arranges plug-in unit limit switch.
In one embodiment, terminal can arrange plug-in unit limit switch, concrete, by increasing the field of indicator cock in the setting data storehouse of system, plug-in unit limit switch can being set, when this plug-in unit limit switch is for opening, namely forbidding plug-in component operation, when this plug-in unit limit switch is for closing, then the plug-in unit in application is not detected.Optionally, different plug-in unit limit switches can be set according to plug-in unit character, as arranged ad plug-in limit switch or malicious plugins limit switch etc. for advertisement or malicious plugins.
Optionally, in one embodiment, also can comprise the following steps:
The icon of described plug-in unit limit switch is set to point out user;
Detect user to the operational order of described icon;
According to described operational order, switch the state of described plug-in unit limit switch.
Concrete, also by the up icon arranging plug-in unit limit switch of the display interface of terminal, to point out user the need of carrying out plug-in unit restriction operation, user can enter the operating instructions icon according to the demand of self, as click or length press icon image on the touchscreen, after detecting that user is to the operational order of icon, then according to concrete operational order, the state of plug-in unit limit switch can be switched.If the state when anterior plug-in limit switch is for closing, if when the clicking operation of user being detected, then the state of plug-in unit limit switch can be switched to open.Thus add the right to know of user, enable user directly carry out restriction operation to the plug-in unit in application, improve Consumer's Experience.
Step S202, download plug-in list from server, wherein, described plug-in unit list comprises plugin name.
Optionally, the execution of this step also can be replaced by following steps.
To the request of described server transmission list, wherein, the plugin name in described server parses application, and set up described plug-in unit list according to described plugin name;
Obtain the described plug-in unit list of described server feedback.
In one embodiment, by download plug-in list from server, the plug-in unit in application is identified.Concrete, server, by collecting the plugin name in application, sets up plug-in unit list, namely when terminal recognition is present in plug-in unit list to the plugin name in application, can show that these plug-in unit needs process.Optionally, server according to the different in kind of plug-in unit, can set up different plug-in unit lists, as ad plug-in list or the list of malice charge plug-in unit etc.
Optionally, method described in the embodiment of the present invention also can comprise the following steps.
Obtain the update notification of the described plug-in unit list of described server.
Described update notification is prompted to user, to confirm that user is the need of the renewal carrying out described plug-in unit list.
After detecting that user is to the confirmation operation of described update notification, according to described update notification, upgrade described plug-in unit list.
In one embodiment, when plug-in unit list update in server, update notification can be pushed to terminal.Update notification can be prompted to user by terminal, to confirm that user is the need of the renewal carrying out plug-in unit list, if user confirms to upgrade after list, and can plug-in unit list from server after down loading updating.Thus ensure that the real-time to plug-in unit identification in terminal, and enhance the right to know of user, improve Consumer's Experience.
Step S203, when detecting that user opens described application, determines described plug-in unit limit switch state.
In one embodiment, when detecting that user opens application, the state of plug-in unit limit switch can be determined.If the state of plug-in unit limit switch is for opening, then the plug-in unit that may correspond in using is monitored, to confirm whether plug-in unit carries out activity, concrete, can perform step S205; If the state of plug-in unit limit switch is for closing, then the plug-in unit in applying can be allowed movable, maybe can perform step S204.
Step S204, if described plug-in unit limit switch state is for closing, whether prompting user opens described plug-in unit limit switch.
In one embodiment, if after detecting that user opens application, when determining the state of plug-in unit limit switch for closing, user can be pointed out further the need of unlatching plug-in unit limit switch, to confirm whether user does not really need to process the plug-in unit in application.If detect, user opens plug-in unit limit switch, then can carry out following steps; If detect, user does not open plug-in unit limit switch, then show that user confirms not process the plug-in unit activity in application.
Step S205, if if described plug-in unit limit switch state is for opening or detecting that described user opens described plug-in unit limit switch, the plug-in unit in scanning application.
In one embodiment, if confirm in step S203, plug-in unit limit switch state is for opening, or in step S204, detect that user opens the instruction of plug-in unit limit switch, then further can scan the plug-in unit in the application of unlatching.
Step S206, searches the plugin name that whether there is described plug-in unit in described plug-in unit list.
In one embodiment, after scanning the plug-in unit in application, the plugin name whether existing and scan plug-in unit can be searched in the plug-in unit list of downloading from server, if exist, then show that this plug-in unit is for needing plug-in unit to be processed, if do not exist, then shows that this plug-in unit does not need to be processed.Optionally, different according to the demand of user, different plug-in unit lists can be downloaded from server, then can at the different plug-in unit of terminal processes.As user needs filtering advertisements plug-in unit, then from the list of server downloads ad plug-in unit, and confirm whether the plugin name scanning plug-in unit exists in the ad plug-in list of downloading.
Step S207, if there is described plugin name, is then identified as pending plug-in unit by described plug-in unit.
In one embodiment, if find out plugin name in plug-in unit list, then show that these plug-in unit needs are processed, then this plug-in unit can be identified as pending plug-in unit, if the startup request of this pending plug-in unit detected, the then startup request of this pending plug-in unit discardable, to forbid the operation of this pending plug-in unit.
Step S208, sets up plugin name list.
Step S209, is recorded in the described plugin name of the described pending plug-in unit identified in described plugin name list.
In one embodiment, plugin name list can be set up in terminal, concrete, plugin name list can be set up in terminal database.By setting up plugin name list, statistics can be recorded in the terminal and need plug-in unit summation to be processed, the plug-in unit in each application can be scanned, need be recorded in plugin name list by plugin name to be processed, then without the need at every turn when opening application, all from the list of server download plug-in, thus need can save Internet resources, and effectively can add up in terminal the pending plug-in unit existed in each application.
Step S210, by the frame manager in application framework or framework thread, detects the startup request of described plug-in unit.Optionally, before this step, the method also can comprise the following steps:
Frame manager in described application framework or framework thread are set, with the startup request enabling described frame manager or framework thread described plug-in unit be detected, and described startup request are processed;
According to the described frame manager after arranging or framework thread, detect the startup request of described plug-in unit.
In one embodiment, terminal by arrange frame manager in application framework (English: frame manager) and/or framework thread (English: frame thread), the activity of plug-in unit in application can be monitored, thus implementation framework manager or framework thread the startup request of plug-in unit can be detected.Optionally, by the activity of multiple plug-in unit or a certain plug-in unit in frame manager and/or the application of frame line range monitoring.And can process the activity of plug-in unit, during as the startup request of plug-in unit detected, can judge whether to need to abandon operation to it; And for example can detect other requests of plug-in unit, and according to concrete request, plug-in unit be operated accordingly.Step S211, when the startup request of a plug-in unit in application being detected, judges that the plugin name of described plug-in unit is whether in described plugin name list.
Step S212, if the result judged is yes, then abandons described startup request with the operation forbidding described plug-in unit.
In one embodiment, when the startup request of a plug-in unit being detected, can judge whether the plugin name of this plug-in unit is present in the plugin name list of terminal foundation, if be present in this plugin name list, then show that this plug-in unit is pending plug-in unit, then need the startup request abandoning this pending plug-in unit, to forbid the operation of pending plug-in unit.Title as this plug-in unit is present in the ad plug-in name list of terminal foundation, then show that this plug-in unit is ad plug-in, then when the startup request of this ad plug-in being detected, then abandon this startup request.If there is not this plugin name, then show without the need to forbidding process to this plug-in unit, then by the further operation of frame manager or this plug-in unit of frame line thread management.
In the embodiment of the present invention, can in terminal operating application or when detecting that user opens described application, by identifying the plug-in unit in application, and by arranging frame manager in application framework and/or framework thread, detect the active state of plug-in unit, when the startup request of plug-in unit being detected, abandoning this startup request, the operation of plug-in unit can be forbidden.Reduce system resource occupancy, and simplify existing plug-in unit filter method, improve Consumer's Experience.
Device embodiment described above is schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying performing creative labour, are namely appreciated that and implement.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal or equipment or subelement can carry out merging, divide and deleting according to actual needs.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that each embodiment can add required general hardware platform by software and realize, and can certainly pass through hardware.Based on such understanding, technique scheme can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can store in a computer-readable storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment or embodiment.
Above-described embodiment, does not form the restriction to this technical scheme protection domain.The amendment done within any spirit at above-mentioned embodiment and principle, equivalently to replace and improvement etc., within the protection domain that all should be included in this technical scheme.
Claims (10)
1. a terminal, is characterized in that, comprising:
Recognition unit, for when operation application or when detecting that user opens described application, identifies the plug-in unit in application;
Start request detection unit, for by the frame manager in application framework or framework thread, detect the startup request of described plug-in unit;
Discarding unit, for when the startup request described plug-in unit being detected, abandons described startup request with the operation forbidding described plug-in unit.
2. terminal as claimed in claim 1, it is characterized in that, described terminal also comprises:
Switch-linear hybrid unit, before the plug-in unit in described recognition unit identification application, arranges plug-in unit limit switch;
Status determining unit, for when detecting that user opens described application, determines described plug-in unit limit switch state;
Wherein, described recognition unit also for:
The described plug-in unit limit switch state determined when described status determining unit for opening, then identifies the plug-in unit in described application.
3. terminal as claimed in claim 2, it is characterized in that, described terminal also comprises:
Switch Tip element, for when described plug-in unit limit switch state is for closing, whether prompting user opens described plug-in unit limit switch;
Wherein, described recognition unit also for:
When detecting that described user opens described plug-in unit limit switch, identify the described plug-in unit in described application.
4. terminal as described in Claims 2 or 3, is characterized in that, described terminal also comprises:
Icon setting unit, for arranging the icon of described plug-in unit limit switch to point out user;
Icon detecting unit, for detecting the operational order of user to described icon;
Switch unit, for according to described operational order, switches the state of described plug-in unit limit switch.
5. terminal as claimed in claim 1, it is characterized in that, described terminal also comprises:
Download unit, for download plug-in list from server, wherein, described plug-in unit list comprises plugin name;
Wherein, described recognition unit comprises:
Scanning element, for scanning the plug-in unit in application;
Search unit, for searching the plugin name that whether there is described plug-in unit in described plug-in unit list;
Plug-in unit recognition unit, for when described in search unit find described plugin name time, identify that described plug-in unit is pending plug-in unit.
6. terminal as claimed in claim 5, it is characterized in that, described download unit comprises:
Transmitting element, for the request of described server transmission list, wherein, the plugin name in described server parses application, and set up described plug-in unit list according to described plugin name;
Acquiring unit, for obtaining the described plug-in unit list of described server feedback.
7. terminal as described in claim 5 or 6, is characterized in that, described terminal also comprises:
Set up unit, after described plug-in unit being identified as pending plug-in unit at described plug-in unit recognition unit, set up plugin name list;
Record cell, the described plugin name for the described pending plug-in unit by described recognition unit identification is recorded in described plugin name list;
Wherein, described discarding unit comprises:
Judging unit, for when the startup request of described plug-in unit be detected, judges that the plugin name of described plug-in unit is whether in described plugin name list;
Plug-in unit discarding unit, for when the result that described judging unit judges is as being, then abandons described startup request with the operation forbidding described plug-in unit.
8. terminal as claimed in claim 7, it is characterized in that, described terminal also comprises: framework setting unit, for arranging frame manager in described application framework or framework thread, with the startup request enabling described frame manager or framework thread described plug-in unit be detected, and described startup request is processed;
Framework detecting unit, for according to the described frame manager after arranging or framework thread, detects the startup request of described plug-in unit.
9. terminal as claimed in claim 7, it is characterized in that, described terminal also comprises:
Update notification acquiring unit, for obtaining the update notification of the described plug-in unit list of described server;
Updating block, for according to described update notification, upgrades described plug-in unit list.
10. terminal as claimed in claim 9, it is characterized in that, described terminal also comprises:
Notice Tip element, for described update notification is prompted to user, to confirm that user is the need of the renewal carrying out described plug-in unit list;
Wherein, described updating block also for:
After detecting that user is to the confirmation operation of described update notification, according to described update notification, upgrade described plug-in unit list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410485756.XA CN104281804A (en) | 2014-09-22 | 2014-09-22 | Terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410485756.XA CN104281804A (en) | 2014-09-22 | 2014-09-22 | Terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104281804A true CN104281804A (en) | 2015-01-14 |
Family
ID=52256666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410485756.XA Pending CN104281804A (en) | 2014-09-22 | 2014-09-22 | Terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104281804A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407098A (en) * | 2015-07-27 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Application program state monitoring method and device |
CN106709347A (en) * | 2016-11-25 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Application running method and application running device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090100517A1 (en) * | 2007-10-12 | 2009-04-16 | Su Yong Kim | Apparatus and method for monitoring and protecting system resources from web browser |
CN101448005A (en) * | 2008-12-24 | 2009-06-03 | 深圳市深信服电子科技有限公司 | Method, system and equipment for data security detection in gateway |
CN102081709A (en) * | 2009-12-01 | 2011-06-01 | 联想(北京)有限公司 | Method and device for disabling browser plug-in and terminal |
CN103226538A (en) * | 2013-05-14 | 2013-07-31 | 苏州文芯微电子科技有限公司 | Impedance matching circuit based on high-speed serial communication bus actuator |
CN103366104A (en) * | 2013-07-22 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method and device for controlling accessing of application |
CN103577754A (en) * | 2012-08-02 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Plugin installation detection method and device |
-
2014
- 2014-09-22 CN CN201410485756.XA patent/CN104281804A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090100517A1 (en) * | 2007-10-12 | 2009-04-16 | Su Yong Kim | Apparatus and method for monitoring and protecting system resources from web browser |
CN101448005A (en) * | 2008-12-24 | 2009-06-03 | 深圳市深信服电子科技有限公司 | Method, system and equipment for data security detection in gateway |
CN102081709A (en) * | 2009-12-01 | 2011-06-01 | 联想(北京)有限公司 | Method and device for disabling browser plug-in and terminal |
CN103577754A (en) * | 2012-08-02 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Plugin installation detection method and device |
CN103226538A (en) * | 2013-05-14 | 2013-07-31 | 苏州文芯微电子科技有限公司 | Impedance matching circuit based on high-speed serial communication bus actuator |
CN103366104A (en) * | 2013-07-22 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method and device for controlling accessing of application |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407098A (en) * | 2015-07-27 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Application program state monitoring method and device |
CN106709347A (en) * | 2016-11-25 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Application running method and application running device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109672580B (en) | Full link monitoring method, device, terminal equipment and storage medium | |
CN105653425B (en) | Monitoring system based on complex event processing engine | |
CN105988836B (en) | Application recommendation method and device | |
US20120222120A1 (en) | Malware detection method and mobile terminal realizing the same | |
CN106469044B (en) | Method and device for realizing page jump | |
CN103761178B (en) | A kind of method realized using unloading investigation | |
CN103368904A (en) | Mobile terminal, and system and method for suspicious behavior detection and judgment | |
CN104182497B (en) | The recovery method and system of notification message | |
CN104965731B (en) | A kind of data processing method and electric terminal | |
CN109088773B (en) | Fault self-healing method and device, server and storage medium | |
CN106656989B (en) | Flow monitoring method and terminal | |
JP2018530270A5 (en) | ||
CN106445604A (en) | Clearing method and device for applications | |
CN105138381A (en) | Method and device for cleaning up automatic starting processes of mobile terminal | |
CN104766008A (en) | Application program installation package safety detection method and server | |
CN111930565B (en) | Process fault self-healing method, device and equipment for components in distributed management system | |
CN102547710B (en) | The method and apparatus of detecting virus in mobile communication system | |
CN104281804A (en) | Terminal | |
CN104281473A (en) | Plug-in processing method | |
CN105243102B (en) | Processing method and device for unloading residual file and terminal | |
CN106557500B (en) | Method and device for cleaning uninstalled residual file and terminal | |
CN104516704A (en) | Application activated control method and device in multi-screen system and mobile terminal | |
CN113434796A (en) | Page cache operation method and device, storage medium and electronic device | |
CN112286559A (en) | Upgrading method and device for vehicle-mounted intelligent terminal | |
CN108958980A (en) | Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20190412 |
|
AD01 | Patent right deemed abandoned |