CN106874089A - A kind of processing method of application program self-starting, device and mobile terminal - Google Patents

A kind of processing method of application program self-starting, device and mobile terminal Download PDF

Info

Publication number
CN106874089A
CN106874089A CN201710056724.1A CN201710056724A CN106874089A CN 106874089 A CN106874089 A CN 106874089A CN 201710056724 A CN201710056724 A CN 201710056724A CN 106874089 A CN106874089 A CN 106874089A
Authority
CN
China
Prior art keywords
application program
starting
self
application
mode
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.)
Granted
Application number
CN201710056724.1A
Other languages
Chinese (zh)
Other versions
CN106874089B (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710056724.1A priority Critical patent/CN106874089B/en
Publication of CN106874089A publication Critical patent/CN106874089A/en
Application granted granted Critical
Publication of CN106874089B publication Critical patent/CN106874089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of processing method of application program self-starting, device and mobile terminal, it is related to apply processing technology field, main purpose is the application program that thoroughly can effectively manage self-starting from bottom.Methods described includes:Receive the self-starting request of application program, obtain the corresponding self-starting pattern of application program, when the corresponding self-starting pattern of application program is schedule job start-up mode, configuration application treatment strategy corresponding with the schedule job start-up mode, processes self-starting request of the strategy to the application program and processes according to the application.Treatment of the present invention suitable for application program self-starting.

Description

A kind of processing method of application program self-starting, device and mobile terminal
Technical field
The present invention relates to application processing technology field, more particularly to a kind of processing method of application program self-starting, dress Put and mobile terminal.
Background technology
With continuing to develop for intelligent terminal, the application program that user installs in intelligent terminal is also on the increase, generally In the case of, user uses meeting self-starting application program when mounting platform is started shooting to many application developers for convenience.Mesh Before, the mode of each application program self-starting is by registering static broadcast receiver in systems in terminal BroadcastReceiver, specified application is called by radio receiver, or adjust by other assemblies in system With specified application, for example, the application programming interfaces that can be provided by content provider ContentProvider components To call the other application programs in same family, appointing system function can also be called by background service Service Application program.
It should be noted that the application program of self-starting is sometimes and nonsystematic or other application programs are run through the above way When necessary condition, or terminal in some application programs start and non-user is desired starts, therefore, for some The excessive resource of occupied terminal is excessively understood in useless application program for application program and user, self-starting, reduces system fortune Scanning frequency degree.
Regarding to the issue above, it is existing forbid application program self-starting implementation be:When application program is received extensively After broadcasting the calling of other assemblies in receiver or system, judge whether the application program allows self-starting, if allowing not Processed, the application process of the application program that will be had been started up if not allowing terminates.However, existing forbid applying journey The technology of sequence self-starting is realized in system application layer, if the broadcast that radio receiver is monitored is excessive, will frequently be touched Hair application program self-starting, it is right by terminating the application program of self-starting cannot thoroughly intercept application program from bottom If not terminating process in time in the application program of the self-starting that succeeded, it is also possible to bring the wind of privacy and secure context Danger.
The content of the invention
In view of this, the present invention provides a kind of processing method of application program self-starting, device and mobile terminal, Neng Goucong Bottom thoroughly effectively manages the application program of self-starting.
According to one aspect of the invention, there is provided a kind of processing method of application program self-starting, including:
The self-starting request of application program is received, the corresponding self-starting pattern of application program is obtained;
When the corresponding self-starting pattern of application program is schedule job start-up mode, configuration starts with the schedule job The corresponding application treatment strategy of pattern;
Self-starting request of the strategy to the application program is processed according to the application to process.
According to one aspect of the invention, there is provided a kind of processing unit of application program self-starting, including:
Acquiring unit, the self-starting for receiving application program is asked, and obtains the corresponding self-starting pattern of application program;
Dispensing unit, for when the corresponding self-starting pattern of application program is schedule job start-up mode, configuring and institute State the corresponding application treatment strategy of schedule job start-up mode;
Processing unit, is processed for processing self-starting request of the strategy to the application program according to the application.
According to one aspect of the invention, there is provided a kind of mobile terminal, including processor and memory:
The memory is used to store the program of the processing method for performing above-mentioned application program self-starting;
The processor is configurable for performing the program stored in the memory.
By above-mentioned technical proposal, technical scheme provided in an embodiment of the present invention at least has following advantages:
A kind of processing method of application program self-starting, device and mobile terminal that the present invention is provided, forbid with existing The technology of application program self-starting is realized in system application layer, it is impossible to application program is thoroughly intercepted from bottom and is compared, this hair It is bright by obtaining the corresponding self-starting pattern of the application program, then when the corresponding self-starting pattern of application program for scheduling make During industry start-up mode, application treatment strategy corresponding with service initiator is configured, on the basis for not influenceing user normally to use On, for user allow self-starting application program can start, do not allow the application program of self-starting for user, according to should Self-starting with treatment strategy to application program is asked to process, and opening certainly for application program can be effectively processed from bottom It is dynamic, effective interception is carried out to application program, so as to reduce what is brought to user not in time in application program self-starting treatment The risk of privacy and secure context.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of process flow schematic diagram of application program self-starting provided in an embodiment of the present invention;
Fig. 2 shows the process flow schematic diagram of another application program self-starting provided in an embodiment of the present invention;
Fig. 3 shows the process flow schematic diagram of another application program self-starting provided in an embodiment of the present invention
Fig. 4 shows a kind of processing device structure diagram of application program self-starting provided in an embodiment of the present invention;
Fig. 5 shows the processing device structure diagram of another application program self-starting provided in an embodiment of the present invention;
Fig. 6 shows the processing device structure diagram of another application program self-starting provided in an embodiment of the present invention;
Fig. 7 shows a kind of structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
A kind of processing method of application program self-starting is the embodiment of the invention provides, as shown in figure 1, methods described bag Include:
101st, the self-starting request of application program is received, the corresponding self-starting pattern of the application program is obtained.
Wherein, the self-starting request of the application program is when Android mobile phone program backstage receives some events, such as net Network connection change, the events such as unblock, starting up of spreading its tail and the automatic behavior that triggers, even if cleaning up internal memory, software enters Journey is killed at that time, but if running into such as unblock, screen locking trigger event, application program will send automatic to system Start the self-starting request of background process.
In Android system, the mode for triggering application program self-starting has many kinds, for example, user is by mobile phone screen Click application program image target scene, or the scene of data sharing is carried out between application, or execution system local service Scene, the different application program self-starting pattern of different application scenarios correspondences, therefore work as the self-starting for receiving application program During request, it is necessary to which the application scenarios according to different triggering application programs obtain the corresponding self-starting pattern of application program, for example, User is interface start-up mode by clicking on the corresponding self-starting pattern of scene of application icon in mobile phone screen, using it Between carry out the corresponding start-up mode of scene of data sharing for interface start-up mode, the scene of execution system local service is corresponding Self-starting pattern is service start-up mode.
It should be noted that the visible user interface that above-mentioned interface start-up mode shows for user operates, such as, Selected for user by one list of menu of showing interface, or show some photos comprising explanation etc., the present invention is implemented Example is not limited.
Do not show that system default is configured certainly at interface for some kernel process acquiescences for having influence on system operation The ability of startup, such as some system process without self-starting, with regard to not shown at interface, in order to avoid the manually opened influence of user Power consumption and performance, and some need the system process of self-startup ability, also give tacit consent to not shown at interface, in order to avoid influence system Normal operation;For some nonsystematic kernel processes, such as part system application program and the 3rd part of application program, usual feelings Condition needs user to participate in setting self-starting situation manually, for example, needing real-time reception message for wechat application program, QQ etc. Application program, default setting self-starting function generally sets taboo for the application program that game etc. takes larger internal memory and power consumption Only self-starting function.
However, during application program self-starting is actually configured, although some application programs are set forbids Self-starting function, and it is excessive to work as family's application in terminal, will frequently backstage self-starting, cause function and aspect of performance Influence, if terminating process not in time may bring the risk of the secure contexts such as privacy.
102nd, when the corresponding self-starting pattern of application program is schedule job start-up mode, configure and the schedule job The corresponding application treatment strategy of start-up mode.
Here schedule job start-up mode can be realized by the JobService classes in Android system, when Android system After system start, it is allowed to apply within the time of regulation, just start to perform background task under conditions of satisfaction is specified, so as to will appoint Business operation be sent in job scheduling, and then timing call application program, for example, it is desired to postpone not face user job should With program, need insertion equipment when the preferential application program for performing work or need to access network or WIFI connects task Application program, can start application program by schedule job start-up mode.
For the embodiment of the present invention, apply according to the corresponding self-starting pattern configurations of application program are corresponding with application program Treatment strategy, when the corresponding start-up mode of application program is schedule job start-up mode, is started by configuring with schedule job The corresponding application of pattern processes strategy to control the startup of application program and forbid, and default value has been automatically configured, without user's hand It is dynamic to participate in setting, it is also possible to ensure the normal operation of system.
It should be noted that using treatment strategy be Android system call upon receiving the broadcast message application program it Before judge whether to call the strategy of each application program, specifically can be by increasing processing module in Booting sequence, its main generation Code opens authority certainly by calling service interface to judge whether application program has first in AmInjector.java files, if Whether it is not intercepted, otherwise obtains the message passing mechanism of broadcast start-up mode, determines whether message passing mechanism Meet preset matching condition, preset matching condition here is respectively behavior matching condition, class matching condition and behavior prefix Whether matching condition, is not intercepted if meeting, and otherwise judges application program in running status, and if it is explanation should Currently opened by backstage with program, do not intercepted, otherwise judge whether application program is core application, if Do not intercepted then, otherwise No starting application program.
103rd, self-starting request of the strategy to the application program is processed according to the application to process.
In this step, at the tactful application program to being started by schedule job start-up mode of application treatment Reason, needs to be stated in the configuration file of Android system here by the application program of schedule job start-up mode startup, When radio receiver receives the broadcast message of the application program stated, the application program can be judged, such as The application program of the undesirable self-starting of certain user, can be configured No starting by bottom, be transported for some systems Application program necessary to row, such as desktop, phone system application, can be configured and can be opened by bottom Dynamic, the application treatment strategy that this law embodiment passes through to configure is processed the application program started by broadcasting start-up mode, Not allowing the application program for starting for user can effectively be intercepted.
A kind of processing method of the application program self-starting that the present invention is provided, application program self-starting is forbidden with existing Technology is realized in system application layer, it is impossible to application program is thoroughly intercepted from bottom and is compared, and the present invention passes through should described in acquisition With the corresponding self-starting pattern of program, then when the corresponding self-starting pattern of application program is schedule job start-up mode, match somebody with somebody Application treatment strategy corresponding with schedule job start-up mode is put, on the basis of the normal use of user is not influenceed, for user Allowing the application program of self-starting can start, and not allow the application program of self-starting for user, according to application treatment strategy Self-starting request to application program is processed, and the self-starting of application program can be effectively processed from bottom, to application journey Sequence is effectively intercepted, so as to reduce the privacy and safety brought to user not in time in application program self-starting treatment The risk of aspect.
The processing method of another application program self-starting is the embodiment of the invention provides, as shown in Fig. 2 methods described bag Include:
201st, the self-starting request of application program is received, whether the Starting mode for judging the application program is that interface starts Mode, if then performing 202a, if otherwise performing 202b.
The self-starting of normal conditions application program can start for separating machine starts with backstage, and starting up is with terminal Just automatically turned on when start, user can be configured by self-starting option, backstage starts to be changed by terminal link The behavior of startup program, for example, can trigger the startup of other application programs when user opens microblogging application program.
Wherein, interface Starting mode is to start application program by Activity components, and each interface is one Activity components, the visualization interface that is provided by Activity components can be realized being interacted with user, for example, user is logical The prompt message for crossing interface can choose whether authorized applications, and the picture provided by clicking on interface can realize picture The action such as rotation.
If 202a, the Starting mode of the application program are interface start-up modes, opened according to the behavioral data that user operates Move the application program.
Because the application program of interface Starting mode is the side that is started according to the peration data produced with user mutual Formula, therefore, if the Starting mode of the application program is interface start-up mode, illustrate that the Starting mode meets user intention, Startup interception need not be carried out, the behavioral data for further being operated according to user starts application program, the row that such as user's selection is authorized The behavioral data of photo is clicked on for data or user, is not limited in the embodiment of the present invention.
Accordingly, if it is corresponding with step 202a have step 202b, the Starting mode of the application program is not that interface is opened Flowing mode, the corresponding self-starting pattern of the application program is obtained by calling detection function at framework layers.
If it should be noted that the Starting mode of application program is not interface Starting mode, illustrating it is not user behaviour The application program that work starts, but the application program started by backstage, in order to not influence the normal operating of user, the present invention is real Apply example and the corresponding self-starting pattern of application program is obtained by calling detection function at framework layers, so that based on difference Self-starting mode decision whether allow the self-starting of the application program.
Wherein, framework layers services and interactive interface for Android system developer provides, by calling Framework layers of detection function can obtain the self-starting pattern of application program, and the conventional start-up mode for changing has broadcast at present Broadcast Receiver start-up modes, service Srvice start-up modes, interface Content Provider start-up modes etc., The embodiment of the present invention is not defined to the self-starting pattern of application program.
203b, when the corresponding self-starting pattern of application program be schedule job start-up mode when, configuration and it is described scheduling make The corresponding application treatment strategy of industry start-up mode.
For the embodiment of the present invention, when the corresponding self-starting pattern of application program is schedule job start-up mode, according to The corresponding self-starting pattern configurations of application program application treatment strategy corresponding with application program can include:First by calling Service interface judges whether application program has from authority is opened, and such as calls the bag name of application program installation kit, i.e., The interface isInBlackList of ApsManagerService services judges to answer whether program has from authority is opened, specifically can be with Judge whether application program has for the identification information by calling interface recognition application and open authority certainly, mark here Knowledge information can be the pid of the application program and uid of application program, not intercepted if it is, otherwise obtain broadcast and start The message passing mechanism of pattern, determines whether whether message passing mechanism meets preset matching condition, preset matching here Condition is respectively the full matching condition of behavior matching condition, class name and behavior prefix matching condition, is not blocked if meeting Cut, otherwise judge that whether application program, in running status, if it is illustrates that application program is currently opened by backstage, no Intercepted, otherwise judged whether application program is core application, do not intercepted if it is, otherwise No starting should Use program.
It should be noted that schedule job start-up mode allows application program within the time of regulation, is meeting specified bar Just start to perform background task under part.Function of the specific intercept logic code in JobServiceCont ext.java files Realized in executeRunnableJob, idiographic flow is as shown in Figure 3.
204b, the self-starting request according to application treatment strategy to the application program are processed.
The embodiment of the present invention when the corresponding start-up mode of application program be schedule job start-up mode when, by configuring and tune The corresponding application treatment strategy of degree job initiation pattern, it is ensured that some non-core processes participate in setting manually just may be used without user Start or forbid, for example, correspond to the application program that is commonly used of user and be set to start, user infrequently that use or Take the excessive application program of Installed System Memory and be set to No starting, improve the flexibility of application program self-starting.
205b, the treatment record that the application program self-starting is counted according to prefixed time interval, the treatment is recorded In storage to cache file.
Wherein, the treatment record of application program self-starting can include but is not limited to application program self-starting situation, have Body includes the number of times for starting, and the number of times of self-starting is realized by different start-up modes, and wake up startup by other application programs Number of times, can also detailed record waken up by which application program and start, and wake up number of times, time for starting etc..
It should be noted that the embodiment of the present invention is not defined to above-mentioned prefixed time interval, preferably 1 day, generally Situation shows the daily treatment record of application program, such as situation of wake-up application program and daily quilt daily in units of day The situation that other application programs wake up.
Accordingly, the treatment record in the embodiment of the present invention can also include but is not limited to application program and intercept situation, The number of times of interception is specifically included, the number of times for realizing intercepting by different start-up modes, and wake up interception by other application programs Number of times, can also detailed record waken up by which application program and intercept, and wake up number of times, time for intercepting etc..
The embodiment of the present invention is remembered by the treatment according to prefixed time interval statistics application program self-starting
Record, the treatment record is deposited into cache file, so that the startup situation of application program and family The relation of application program is very clear, so that user can decide whether to change application program according to the actual demand of oneself Startup situation.
206b, when in the cache file treatment record more than predetermined threshold value when, by it is described treatment record be updated to it is pre- In putting database.
Because cache file can take Installed System Memory in system operation, the embodiment of the present invention is in cache file For treatment record setting one is default preset when treatment records excessive, for example, when the treatment record in cache file is more than At 20, then treatment record is updated, the embodiment of the present invention is preset preset size and is not defined herein to this, can root It is configured according to running situation, in order to not influence system operating rate, treatment record renewal can be further matched somebody with somebody Put in the form in the database at center, it is ensured that the stability of system operation.
The processing method of another application program self-starting that the present invention is provided, for the application journey in mobile phone Sequence, when the corresponding start-up mode of application program is schedule job start-up mode, by configuring and schedule job start-up mode pair The application treatment strategy answered, can effectively manage from bottom and apply self-starting;Recorded by the treatment of statistics application program, with Just on the basis of the normal use of user is not influenceed so that user can set application program self-starting according to treatment record, So as to improve the flexibility of application program self-starting processing mode.
Further, implementing as Fig. 1 methods describeds, the embodiment of the invention provides a kind of application program and opens certainly Dynamic processing unit, as shown in figure 4, described device includes:Acquiring unit 31, dispensing unit 32, processing unit 33.
Acquiring unit 31, can be used for, when the self-starting for receiving application program is asked, obtaining the application program pair The self-starting pattern answered;Acquiring unit 31 is for for obtaining application program, oneself opens in a kind of processing unit of application program self-starting Dynamic main functional modules, can specifically be obtained according to the different triggering pattern of application program.
Dispensing unit 32, can be used for, when the corresponding self-starting pattern of application program is schedule job start-up mode, matching somebody with somebody Put application treatment strategy corresponding with the schedule job start-up mode;Dispensing unit 32 is a kind of place of application program self-starting Reason device is used to be configured for the application program of schedule job start-up mode the main functional modules of corresponding application treatment strategy.
Processing unit 33, can be used for the self-starting request according to application treatment strategy to the application program is carried out Treatment, processing unit 33 be a kind of processing unit of application program self-starting in for set application program open or intercept Main functional modules, do not expect that the application program for starting is set to intercept and start, for answering that user is commonly used for user Self-starting is set to program.
A kind of processing unit of the application program self-starting that the present invention is provided, application program self-starting is forbidden with existing Technology is realized in system application layer, it is impossible to application program is thoroughly intercepted from bottom and is compared, and the present invention passes through should described in acquisition With the corresponding self-starting pattern of program, then when the corresponding self-starting pattern of application program is schedule job start-up mode, match somebody with somebody Application treatment strategy corresponding with schedule job start-up mode is put, on the basis of the normal use of user is not influenceed, for user Allowing the application program of self-starting can start, and not allow the application program of self-starting for user, according to application treatment strategy Self-starting request to application program is processed, and the self-starting of application program can be effectively processed from bottom, to application journey Sequence is effectively intercepted, so as to reduce the privacy and safety brought to user not in time in application program self-starting treatment The risk of aspect.
Further, implementing as Fig. 2 methods describeds, the embodiment of the invention provides another application program certainly The processing unit of startup, as shown in figure 5, described device includes:Judging unit 41, acquiring unit 42, dispensing unit 43, treatment are single Unit 44, statistic unit 45, updating block 46.
Acquiring unit 42, can be used for receiving the self-starting request of application program, obtain the application program corresponding certainly Start-up mode;Acquiring unit 42 is for obtaining the master of application program self-starting in a kind of processing unit of application program self-starting Functional module is wanted, can specifically be obtained according to the different triggering pattern of application program;
Dispensing unit 43, can be used for, when the corresponding self-starting pattern of application program is schedule job start-up mode, matching somebody with somebody Put application treatment strategy corresponding with the schedule job start-up mode;Dispensing unit 43 is a kind of place of application program self-starting Reason device is used to be configured for the application program of schedule job start-up mode the main functional modules of corresponding application treatment strategy;
Processing unit 44, can be used for processing the application program according to application treatment strategy, and treatment is single Unit 44 is the major function mould in a kind of processing unit of application program self-starting for setting application program unlatching or intercept Block, does not expect that the application program for starting is set to intercept and starts for user, is set for the application program that user is commonly used It is self-starting.
Further, user can decide whether to change opening for application program according to the actual demand of oneself for convenience Emotionally condition, described device also includes:
Judging unit 41, whether the Starting mode that can be used for judging the application program is interface Starting mode, is judged Whether unit 41 is for judging application program by way of user interface in a kind of processing unit of application program self-starting The main functional modules of startup, wherein, interface Starting mode is to start application program by Activity components;
The judging unit 41, if the Starting mode that specifically can be used for the application program is interface Starting mode, The behavioral data operated according to user starts the application program, wherein, the behavioral data of user's operation can include but not office The behavioral data or user that are limited to user's selection mandate click on the behavioral data of photo;
The judging unit 41, if the Starting mode that specifically can be also used for the application program is not interface startup side Formula, obtains the corresponding self-starting pattern of the application program.
Specifically, in order to obtain the self-starting pattern of different application, the acquiring unit 42 specifically can be used for leading to Cross and call detection function at framework layers and obtain the corresponding self-starting pattern of the application program.
When the corresponding self-starting pattern of the application program is schedule job start-up mode, as shown in fig. 6, the configuration Unit 43 includes:
First judge module 431, can be used for opening power certainly by calling service interface to judge whether the application program has Limit;
First judge module 431, if specifically can be used for judging that the application program has by calling service interface From authority is opened, then start the application program;
Acquisition module 432, if can be used for judging that the application program, not from authority is opened, is obtained by calling service interface Take the message passing mechanism of broadcast start-up mode;
Second judge module 433, can be used for judging whether the message passing mechanism meets preset matching condition;
Second judge module 433, if specifically can be used for the message passing mechanism meets preset matching condition, Start the application program;
3rd judge module 434, if can be used for the message passing mechanism does not meet preset matching condition, judges described Whether application program is in running status;
3rd judge module 434, if specifically can be used for the application program is in running status, starts described Application program;
4th judge module 435, if can be used for the application program is not in running status, judges the application journey Whether sequence is core application;
4th judge module 435, if specifically can be used for the application program is core application, starts described answering Use program;
4th judge module 435, if specifically can be also used for the application program is not core application, forbids opening Move the application program.
Further, first judge module 431, specifically can be used for recognizing the application program by calling interface Identification information judge whether the application program has from opening authority, identification information here can be application program The uid of pid and application program.
Further, user can decide whether to change opening for application program according to the actual demand of oneself for convenience Emotionally condition, described device also includes:
Statistic unit 45, the treatment for counting the application program self-starting according to prefixed time interval is recorded, by institute The storage for the treatment of record is stated in cache file, statistic unit 45 is for recording in a kind of processing unit of application program self-starting The main functional modules of application program self-starting treatment record, wherein, the treatment of application program self-starting record can include but Application program self-starting situation is not limited to, the number of times of startup is specifically included, the secondary of self-starting is realized by different start-up modes Number, and the number of times for starting is waken up by other application programs, record that can also be detailed is started by which application program wake-up, with And wake up number of times, time for starting etc..
Further, because cache file can take Installed System Memory in system operation, in order to not influence system to transport Scanning frequency rate, described device also includes:
Updating block 46, can be used for when the treatment record in the cache file is more than predetermined threshold value, by the place Reason record is updated in initialized data base, and updating block 46 is answered to be used to update in a kind of processing unit of application program self-starting The main functional modules of record are processed with program self-starting.
The processing unit of another application program self-starting that the present invention is provided, for the application journey in mobile phone Sequence, when the corresponding start-up mode of application program is schedule job start-up mode, by configuring and schedule job start-up mode pair The application treatment strategy answered, can effectively manage from bottom and apply self-starting;Recorded by the treatment of statistics application program, with Just on the basis of the normal use of user is not influenceed so that user can set application program self-starting according to treatment record, So as to improve the flexibility of application program self-starting processing mode.
A kind of mobile terminal is the embodiment of the invention provides, as shown in fig. 7, comprises one or more processors (processor) 51, communication interface (Communications Interface) 52, memory (memory) 53 and bus 54, Wherein, processor 51, communication interface 52, memory 53 complete mutual communication by bus 54.Communication interface 52 can be used Information transfer between acquisition module, expansion module and access modules.Processor 51 can call the logic in memory 53 Instruction so that described device is able to carry out the method for displaying image in above-mentioned any embodiment.
Additionally, the logical order in above-mentioned memory 53 can be realized and be used as solely by the form of SFU software functional unit Vertical production marketing or when using, can store in a computer read/write memory medium.Based on such understanding, this hair The part or the part of the technical scheme that bright technical scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in a storage medium, including some instructions are used to make Obtain a computer equipment (can be personal computer, server, or network equipment etc.) and perform each embodiment of the invention The all or part of step of methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
A kind of mobile terminal that the present invention is provided, is in system application with the existing technology for forbidding application program self-starting What layer was realized, it is impossible to application program is thoroughly intercepted from bottom and is compared, by obtaining, the application program is corresponding to be opened the present invention certainly Dynamic model formula, then when the corresponding self-starting pattern of application program is schedule job start-up mode, configures and service initiator Corresponding application treatment strategy, on the basis of the normal use of user is not influenceed, for the application program that user allows self-starting Can start, not allow the application program of self-starting for user, the self-starting according to application treatment strategy to application program please Ask and processed, the self-starting of application program can be effectively processed from bottom, effective interception is carried out to application program, so that Reduce the risk of the privacy and secure context brought to user not in time in application program self-starting treatment.
The invention discloses A1, a kind of processing method of application program self-starting, including:
The self-starting request of application program is received, the corresponding self-starting pattern of application program is obtained;
When the corresponding self-starting pattern of application program is schedule job start-up mode, configuration starts with the schedule job The corresponding application treatment strategy of pattern;
Self-starting request of the strategy to the application program is processed according to the application to process.
A2, the method as described in A1, configuration application treatment strategy bag corresponding with the schedule job start-up mode Include:
Authority is opened by calling service interface to judge whether the application program has certainly;
If so, then starting the application program, otherwise, the message passing mechanism of broadcast start-up mode is obtained;
Judge whether the message passing mechanism meets preset matching condition;
If so, then starting the application program, otherwise, judge the application program whether in running status;
If so, then starting the application program, otherwise, judge whether the application program is core application;
If so, then start the application program, and otherwise, application program described in No starting.
A3, the method as described in A2, it is described to open authority certainly by calling service interface to judge whether the application program has Including:
The identification information of the application program is recognized by calling interface to judge whether the application program has from opening Authority.
A4, the method as described in A2, the preset matching condition include behavior matching condition, the full matching condition of class name and Behavior prefix matching condition.
A5, the method as any one of A1-A4, the corresponding self-starting pattern of the acquisition application program include:
The corresponding self-starting pattern of the application program is obtained by calling detection function at framework layers.
A6, the method as described in A5, the application journey is obtained by calling detection function at framework layers described Before the corresponding self-starting pattern of sequence, methods described also includes:
Whether the Starting mode for judging the application program is interface Starting mode;
If so, the behavioral data for then being operated according to user starts the application program, the application program pair is otherwise obtained The self-starting pattern answered.
A7, the method as described in A6, methods described also include:
The treatment for counting the application program self-starting according to prefixed time interval is recorded, by treatment record storage extremely In cache file.
A8, the method as described in A7, methods described also include:
When the treatment record in the cache file is more than predetermined threshold value, the treatment record is updated to preset data In storehouse.
B9, a kind of processing unit of application program self-starting, including:
Acquiring unit, the self-starting for receiving application program is asked, and obtains the corresponding self-starting pattern of application program;
Dispensing unit, for when the corresponding self-starting pattern of application program is schedule job start-up mode, configuring and institute State the corresponding application treatment strategy of schedule job start-up mode;
Processing unit, is processed for processing self-starting request of the strategy to the application program according to the application.
B10, the device as described in B9, the dispensing unit include:
First judge module, for opening authority certainly by calling service interface to judge whether the application program has;
First judge module, if specifically for opening power certainly by calling service interface to judge that the application program has Limit, then start the application program;
Acquisition module, if for judging that the application program, not from authority is opened, obtains broadcast by calling service interface The message passing mechanism of start-up mode;
Second judge module, for judging whether the message passing mechanism meets preset matching condition;
Second judge module, if meeting preset matching condition specifically for the message passing mechanism, starts institute State application program;
3rd judge module, if not meeting preset matching condition for the message passing mechanism, judges the application journey Whether sequence is in running status;
3rd judge module, if being in running status specifically for the application program, starts the application journey Sequence;
Whether 4th judge module, if being not in running status for the application program, judge the application program It is core application;
4th judge module, if being core application specifically for the application program, starts the application program;
4th judge module, if it is not core application to be specifically additionally operable to the application program, described in No starting Application program.
B11, the device as described in B10,
First judge module, is judged specifically for being recognized the identification information of the application program by calling interface Whether the application program has is opened authority certainly.
B12, the device as described in B10, the preset matching condition include behavior matching condition, the full matching condition of class name with And behavior prefix matching condition.
B13, the device as any one of B9-B12,
The acquiring unit, specifically for obtaining the application program by calling detection function at framework layers Corresponding self-starting pattern.
B14, the device as described in B13, described device also include:
Judging unit, whether the Starting mode for judging the application program is interface Starting mode;
The judging unit, if being interface Starting mode specifically for the Starting mode of the application program, according to The behavioral data of family operation starts the application program;
The judging unit, if the Starting mode for being specifically additionally operable to the application program is not interface Starting mode, obtains The corresponding self-starting pattern of the application program.
B15, the device as described in B14, described device also include:
Statistic unit, the treatment for counting the application program self-starting according to prefixed time interval is recorded, will be described In treatment record storage to cache file.
B16, the device as described in B15, described device also include:
Updating block, for when the treatment record in the cache file is more than predetermined threshold value, the treatment being recorded It is updated in initialized data base.
C17, a kind of mobile terminal, including processor and memory:
The memory is used to store the program for performing method any one of A1 to A8;
The processor is configurable for performing the program stored in the memory.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be, for distinguishing each embodiment, and not represent the quality of each embodiment.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize the optimization method of alignment system performance according to embodiments of the present invention And some or all functions of some or all parts in device.The present invention is also implemented as performing institute here Some or all equipment or program of device of the method for description are (for example, computer program and computer program are produced Product).It is such to realize that program of the invention be stored on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or to appoint What other forms is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (10)

1. a kind of processing method of application program self-starting, it is characterised in that including:
The self-starting request of application program is received, the corresponding self-starting pattern of application program is obtained;
When the corresponding self-starting pattern of application program is schedule job start-up mode, configure and the schedule job start-up mode Corresponding application treatment strategy;
Self-starting request of the strategy to the application program is processed according to the application to process.
2. method according to claim 1, it is characterised in that the configuration is corresponding with the schedule job start-up mode Include using treatment strategy:
Authority is opened by calling service interface to judge whether the application program has certainly;
If so, then starting the application program, otherwise, the message passing mechanism of broadcast start-up mode is obtained;
Judge whether the message passing mechanism meets preset matching condition;
If so, then starting the application program, otherwise, judge the application program whether in running status;
If so, then starting the application program, otherwise, judge whether the application program is core application;
If so, then start the application program, and otherwise, application program described in No starting.
3. method according to claim 2, it is characterised in that described to judge the application program by calling service interface Whether having oneself open authority includes:
The identification information of the application program is recognized by calling interface to judge whether the application program has from opening authority.
4. method according to claim 2, it is characterised in that the preset matching condition includes behavior matching condition, class The full matching condition of name and behavior prefix matching condition.
5. the method according to any one of claim 1-4, it is characterised in that the acquisition application program is corresponding from opening Dynamic model formula includes:
The corresponding self-starting pattern of the application program is obtained by calling detection function at framework layers.
6. a kind of processing unit of application program self-starting, it is characterised in that including:
Acquiring unit, the self-starting for receiving application program is asked, and obtains the corresponding self-starting pattern of application program;
Dispensing unit, for when the corresponding self-starting pattern of application program is schedule job start-up mode, configuring and the tune The corresponding application treatment strategy of degree job initiation pattern;
Processing unit, is processed for processing self-starting request of the strategy to the application program according to the application.
7. device according to claim 6, it is characterised in that the dispensing unit includes:
First judge module, for opening authority certainly by calling service interface to judge whether the application program has;
First judge module, if specifically for opening authority certainly by calling service interface to judge that the application program has, Start the application program;
Acquisition module, if for judging that the application program, not from authority is opened, obtains broadcast and starts by calling service interface The message passing mechanism of pattern;
Second judge module, for judging whether the message passing mechanism meets preset matching condition;
Second judge module, if meeting preset matching condition specifically for the message passing mechanism, starts described answering Use program;
3rd judge module, if not meeting preset matching condition for the message passing mechanism, judges that the application program is It is no in running status;
3rd judge module, if being in running status specifically for the application program, starts the application program;
4th judge module, if being not in running status for the application program, judges whether the application program is core Heart application;
4th judge module, if being core application specifically for the application program, starts the application program;
4th judge module, if it is not core application to be specifically additionally operable to the application program, applies described in No starting Program.
8. device according to claim 7, it is characterised in that
First judge module, judges described specifically for recognizing the identification information of the application program by calling interface Whether application program has is opened authority certainly.
9. device according to claim 7, it is characterised in that the preset matching condition includes behavior matching condition, class The full matching condition of name and behavior prefix matching condition.
10. a kind of mobile terminal, it is characterised in that including processor and memory:
The memory is used to store the program of method any one of perform claim requirement 1 to 5;
The processor is configurable for performing the program stored in the memory.
CN201710056724.1A 2017-01-25 2017-01-25 A kind of processing method, device and the mobile terminal of application program self-starting Active CN106874089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710056724.1A CN106874089B (en) 2017-01-25 2017-01-25 A kind of processing method, device and the mobile terminal of application program self-starting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710056724.1A CN106874089B (en) 2017-01-25 2017-01-25 A kind of processing method, device and the mobile terminal of application program self-starting

Publications (2)

Publication Number Publication Date
CN106874089A true CN106874089A (en) 2017-06-20
CN106874089B CN106874089B (en) 2019-11-05

Family

ID=59158149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710056724.1A Active CN106874089B (en) 2017-01-25 2017-01-25 A kind of processing method, device and the mobile terminal of application program self-starting

Country Status (1)

Country Link
CN (1) CN106874089B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748684A (en) * 2017-11-21 2018-03-02 广东欧珀移动通信有限公司 Realize processing method, device, storage medium and the mobile terminal of self-starting
CN107835317A (en) * 2017-11-21 2018-03-23 广东欧珀移动通信有限公司 Schedule job control method, device, terminal device and storage medium
CN107943268A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Schedule job control method, device, terminal device and storage medium
CN107943269A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Schedule job control method, device, terminal device and storage medium
CN107957905A (en) * 2017-11-21 2018-04-24 广东欧珀移动通信有限公司 Method, apparatus, storage medium and the intelligent terminal of self-starting are applied in limitation
CN109862101A (en) * 2019-02-13 2019-06-07 中国银行股份有限公司 Cross-platform starts method, apparatus, computer equipment and storage medium
CN112748837A (en) * 2019-10-29 2021-05-04 广州星际悦动股份有限公司 Toothbrush monitoring method, device, terminal and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070079290A1 (en) * 2005-09-27 2007-04-05 Bea Systems, Inc. System and method for dimensional explorer for performance test
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN106201574A (en) * 2016-06-22 2016-12-07 广东欧珀移动通信有限公司 A kind of startup method and device of application interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070079290A1 (en) * 2005-09-27 2007-04-05 Bea Systems, Inc. System and method for dimensional explorer for performance test
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN106201574A (en) * 2016-06-22 2016-12-07 广东欧珀移动通信有限公司 A kind of startup method and device of application interface

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748684A (en) * 2017-11-21 2018-03-02 广东欧珀移动通信有限公司 Realize processing method, device, storage medium and the mobile terminal of self-starting
CN107835317A (en) * 2017-11-21 2018-03-23 广东欧珀移动通信有限公司 Schedule job control method, device, terminal device and storage medium
CN107943268A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Schedule job control method, device, terminal device and storage medium
CN107943269A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Schedule job control method, device, terminal device and storage medium
CN107957905A (en) * 2017-11-21 2018-04-24 广东欧珀移动通信有限公司 Method, apparatus, storage medium and the intelligent terminal of self-starting are applied in limitation
CN107943268B (en) * 2017-11-21 2020-03-10 Oppo广东移动通信有限公司 Scheduling job control method, device, terminal equipment and storage medium
US10956176B2 (en) 2017-11-21 2021-03-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Processing method, device and storage medium for implementing automatic startup
CN109862101A (en) * 2019-02-13 2019-06-07 中国银行股份有限公司 Cross-platform starts method, apparatus, computer equipment and storage medium
CN112748837A (en) * 2019-10-29 2021-05-04 广州星际悦动股份有限公司 Toothbrush monitoring method, device, terminal and computer storage medium

Also Published As

Publication number Publication date
CN106874089B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN106874089A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN106874048B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN106874086A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN106843977A (en) A kind of processing method of application program self-starting, device and mobile terminal
US11190407B2 (en) Internet of things device discovery and configuration
CN103927198B (en) A kind of software method for cleaning and device
US9122560B2 (en) System and method of optimization for mobile apps
CN104123162A (en) Method and device controlling self-starting of application programs
CN104360794A (en) Method and device for controlling window pop-up through full screen-identifying mode
CN104462978A (en) Method and device for application program authority management
CN107679718A (en) List distribution method, equipment and computer-readable recording medium
CN106096395A (en) A kind of protection treating method and apparatus of Android application
CN105095749B (en) The adapting method and device of status bar notice
CN106844026A (en) A kind of method and system for clearing up terminal device process
US11792270B2 (en) Offline sideloading for enrollment of devices in a mobile device management system
CN107957905A (en) Method, apparatus, storage medium and the intelligent terminal of self-starting are applied in limitation
CN107608746A (en) A kind of optimization method and device for opening application more
CN104461663A (en) Method and device for loading other mobile terminal applications and mobile terminal
CN104484176B (en) A kind of Android system window object acquisition methods and device
CN106874088B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN106802819A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN108563472A (en) Based on the service plug loading method and device for more opening application
CN104461741B (en) Graphics device interface based computing device optimizing method and device
US9935817B2 (en) Managed execution and expiration of agent commands
CN116755719A (en) Data processing method, device and data processing system of application component

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20170724

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant