CN106874048A - 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
CN106874048A
CN106874048A CN201710056732.6A CN201710056732A CN106874048A CN 106874048 A CN106874048 A CN 106874048A CN 201710056732 A CN201710056732 A CN 201710056732A CN 106874048 A CN106874048 A CN 106874048A
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
CN201710056732.6A
Other languages
Chinese (zh)
Other versions
CN106874048B (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 CN201710056732.6A priority Critical patent/CN106874048B/en
Publication of CN106874048A publication Critical patent/CN106874048A/en
Application granted granted Critical
Publication of CN106874048B publication Critical patent/CN106874048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/629Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
    • 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
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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
    • 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/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (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 for broadcast start-up mode, configuration application treatment strategy corresponding with the broadcast 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.
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, such as some families Mutually waken up using backstage, or some applications authorize self-starting etc., therefore, the nothing for some application programs and user The excessive resource of occupied terminal is excessively understood in application program, self-starting, reduces system running speed.
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 receiver, judge whether the application program allows self-starting, do not processed if allowing, if do not allowed The application process of the application program then having been started up terminates.However, it is existing forbid application program self-starting technology be What system application layer was realized, if the broadcast that radio receiver is monitored is excessive, application program self-starting will be frequently triggered, lead to Cross and terminate the application program of self-starting cannot thoroughly intercept application program from bottom, for answering for the self-starting that succeeded If not terminating process in time with program, it is also possible to bring the risk of privacy and secure context.
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 for broadcast start-up mode, configuration is corresponding with the broadcast start-up mode Application treatment strategy;
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 for broadcast start-up mode, configuration to be wide with described Broadcast the corresponding application treatment strategy of 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 broadcast is opened During dynamic model formula, configuration application treatment strategy corresponding with broadcast start-up mode is right on the basis of the normal use of user is not influenceed The application program for allowing self-starting in user can start, and not allow the application program of self-starting for user, at application Self-starting request of the reason strategy to application program is processed, and the self-starting of application program can be effectively processed from bottom, right Application program is effectively intercepted, so as to reduce the privacy brought to user not in time in application program self-starting treatment with And the risk of 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 for broadcast start-up mode, configure and the broadcast start-up mode Corresponding application treatment strategy.
Here broadcast start-up mode can be by the BroacastReceiver realizations in Android system, many broadcast sources From in system code, by registering broadcast in the configuration file of Android system, such as change of notification area, battery electric quantity is low, Picture, user is taken to change language preference.Application program can also be initiated to call broadcast message, for example, understand other application Program has been downloaded into data of equipment etc., and other application programs can be received by radio receiver and broadcast the message, Jin Erqi Dynamic corresponding application programs.
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, it is corresponding with broadcast start-up mode by configuring when the corresponding start-up mode of application program is for broadcast start-up mode Application treatment strategy control the startup of application program and forbid, automatically configured default value, participate in setting manually without user Put, 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 Starting mode, determines whether message passing mechanism Meet preset matching condition, preset matching condition here is respectively the full matching condition of behavior matching condition, class name and behavior Prefix matching condition, is not intercepted if meeting, 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, the application program started by broadcasting start-up mode is processed according to application treatment strategy, this In by broadcast start-up mode start the corresponding broadcast of application program would generally enter in the application configuration file of Android system Row registration, when radio receiver receives the broadcast message of registered application program, can judge the application program, Such as the application program of the undesirable self-starting of certain user, No starting can be configured by bottom, for some Application program necessary to system operation, such as desktop, phone system application, can be by the way that be configured in bottom can be with Started, the application treatment strategy that this law embodiment passes through to configure is carried out to the application program started by broadcasting start-up mode Treatment, does not allow the application program for starting effectively to be intercepted for user.
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 for broadcast start-up mode, configuration with The start-up mode strategy of application treatment accordingly is broadcasted, on the basis of the normal use of user is not influenceed, allows to open certainly for user Dynamic application program can start, and not allow the application program of self-starting for user, according to application treatment strategy to application journey The self-starting request of sequence is processed, and the self-starting of application program can be effectively processed from bottom, is had to application program The interception of effect, so as to reduce the wind of the privacy and secure context brought to user not in time in application program self-starting treatment Danger.
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 for broadcast start-up mode when, configuration and it is described broadcast start mould The corresponding application treatment strategy of formula.
For the embodiment of the present invention, when the corresponding self-starting pattern of application program is for broadcast start-up mode, according to application The corresponding self-starting pattern configurations of 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. ApsManagerService The interface isInBlackList of service judges to answer whether program has from authority is opened, and specifically can be used for by calling interface The identification information of recognition application judges whether application program has from opening authority, and identification information here can be application The pid of the program and uid of application program, is not intercepted if it is, otherwise obtains the message-passing machine of broadcast Starting mode System, determines whether whether message passing mechanism meets preset matching condition, and preset matching condition here is respectively behavior With condition, the full matching condition of class name and behavior prefix matching condition, do not intercepted if meeting, otherwise No starting should Use program.
It should be noted that broadcast start-up mode is received extensively by BroadcastRecivier components in Android system Message is broadcast, when application system is not operationally typically by registering static broadcast receiver, reception system or customized broadcast, The embodiment of the present invention is tactful further according to application treatment before starting application program by after broadcast message is received Judge whether to be actuated for interception to application program.Specific intercept logic code is in BroadcastQueue.java files Realized in processNextBroadcast functions, 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 is opened by configuring when the corresponding start-up mode of application program is for broadcast start-up mode with broadcast Dynamic model formula corresponding application treatment strategy, it is ensured that some non-core processes participate in setting manually without user just can 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 system The excessive application program of internal memory is set to No starting, improves 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 recorded by the treatment according to prefixed time interval statistics application program self-starting, by the place In reason record storage to cache file, so that the mesh of relation one of the startup situation of application program and family's application program So, so that user can decide whether to change the startup situation of application program according to the actual demand of oneself.
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 for broadcast start-up mode, by configuring application corresponding with broadcast start-up mode Treatment strategy, can effectively manage from bottom and apply self-starting;Recorded by the treatment of statistics application program, so as in not shadow On the basis of the sound normal use of user 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 receiving the self-starting request of application program, obtain the application program corresponding certainly Start-up mode;Acquiring unit 31 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 32, can be used for when the corresponding self-starting pattern of application program for broadcast start-up mode when, configuration with It is described to broadcast the corresponding application treatment strategy of start-up mode;Dispensing unit 32 is used for a kind of processing unit of application program self-starting In the main functional modules of the corresponding application treatment strategy of application program configuration to broadcast start-up mode.
Processing unit 33, can be used for processing the application program according to application treatment strategy, and treatment is single Unit 33 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.
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 for broadcast start-up mode, configuration with The start-up mode strategy of application treatment accordingly is broadcasted, on the basis of the normal use of user is not influenceed, allows to open certainly for user Dynamic application program can start, and not allow the application program of self-starting for user, according to application treatment strategy to application journey The self-starting request of sequence is processed, and the self-starting of application program can be effectively processed from bottom, is had to application program The interception of effect, so as to reduce the wind of the privacy and secure context brought to user not in time in application program self-starting treatment Danger.
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 for broadcast start-up mode when, configuration with It is described to broadcast the corresponding application treatment strategy of start-up mode;Dispensing unit 43 is used for a kind of processing unit of application program self-starting In the main functional modules of the corresponding application treatment strategy of application program configuration to broadcast start-up mode;
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 for broadcast start-up mode, as shown in fig. 6, the dispensing unit 43 include:
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;
Second judge module 433, if specifically can be also used for the message passing mechanism does not meet preset matching bar Part, then application program described in No starting.
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 for broadcast start-up mode, by configuring application corresponding with broadcast start-up mode Treatment strategy, can effectively manage from bottom and apply self-starting;Recorded by the treatment of statistics application program, so as in not shadow On the basis of the sound normal use of user 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 for broadcast start-up mode, configuration is corresponding to broadcast start-up mode Application treatment strategy, on the basis of the normal use of user is not influenceed, the application program for allowing self-starting for user can be with Start, do not allow the application program of self-starting for user, according to application treatment strategy the self-starting of application program is asked into Row treatment, can effectively process the self-starting of application program from bottom, effective interception be carried out to application program, so as to reduce The privacy and the risk of secure context not in time brought to user 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 for broadcast start-up mode, configuration is corresponding with the broadcast start-up mode Application treatment strategy;
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 corresponding with the broadcast 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 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 for broadcast start-up mode, configuration to be wide with described Broadcast the corresponding application treatment strategy of 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;
Second judge module, if being specifically additionally operable to the message passing mechanism does not meet preset matching condition, prohibits Only start the 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 for broadcast start-up mode, configuration is corresponding with the broadcast start-up mode should With 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 configuration application corresponding with the broadcast start-up mode Treatment strategy includes:
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 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 for broadcast start-up mode, configuration to be opened with the broadcast The corresponding application treatment strategy of dynamic model formula;
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;
Second judge module, if being specifically additionally operable to the message passing mechanism does not meet preset matching condition, forbids opening Move the application 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.
CN201710056732.6A 2017-01-25 2017-01-25 A kind of processing method, device and the mobile terminal of application program self-starting Active CN106874048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710056732.6A CN106874048B (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
CN201710056732.6A CN106874048B (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
CN106874048A true CN106874048A (en) 2017-06-20
CN106874048B CN106874048B (en) 2019-11-05

Family

ID=59158306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710056732.6A Active CN106874048B (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) CN106874048B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748698A (en) * 2017-11-21 2018-03-02 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with broadcast mode
CN107944258A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN107944257A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
WO2019028680A1 (en) * 2017-08-08 2019-02-14 华为技术有限公司 Broadcast event processing method and device
CN117311840A (en) * 2023-05-10 2023-12-29 荣耀终端有限公司 Application starting method, electronic device and 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019028680A1 (en) * 2017-08-08 2019-02-14 华为技术有限公司 Broadcast event processing method and device
US11449369B2 (en) 2017-08-08 2022-09-20 Huawei Technologies Co., Ltd. Broadcast event processing method and device
CN107748698A (en) * 2017-11-21 2018-03-02 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with broadcast mode
CN107944258A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN107944257A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN117311840A (en) * 2023-05-10 2023-12-29 荣耀终端有限公司 Application starting method, electronic device and storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN106874048A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN106874089A (en) A kind of processing method of application program self-starting, device and mobile terminal
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
US11316900B1 (en) System and method for automatically prioritizing rules for cyber-threat detection and mitigation
US9122560B2 (en) System and method of optimization for mobile apps
CN104360794A (en) Method and device for controlling window pop-up through full screen-identifying mode
US20140380496A1 (en) Methods and systems for determining a compliance level of an application with respect to a privacy profile associated with a user
CN104123162A (en) Method and device controlling self-starting of application programs
CN103595766B (en) Realize the method and device of the sending out notice of extension application
CN104484223B (en) A kind of Android system application method for closing and device
CN104462980A (en) Authority management method, device and system of application programs and mobile terminal
CN104199731A (en) Method and device for managing application program processes
CN105095749A (en) Status bar notification takeover method and device
CN103778012B (en) The method and device of change terminal operator's informaiton
CN106844026A (en) A kind of method and system for clearing up terminal device process
CN104461663A (en) Method and device for loading other mobile terminal applications and mobile terminal
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
CN109657485B (en) Authority processing method and device, terminal equipment and storage medium
CN104461741B (en) Graphics device interface based computing device optimizing method and device
CN106055396A (en) Application management method and terminal
CN105611046B (en) The Android mobile phone safety system of a kind of strategy customization and guard method thereof
CN112231699A (en) Interception method and device for reading function, electronic equipment and computer readable medium
CN108196960A (en) A kind of management-control method of application, terminal and storage medium

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