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

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

Info

Publication number
CN106843977B
CN106843977B CN201710056726.0A CN201710056726A CN106843977B CN 106843977 B CN106843977 B CN 106843977B CN 201710056726 A CN201710056726 A CN 201710056726A CN 106843977 B CN106843977 B CN 106843977B
Authority
CN
China
Prior art keywords
application program
starting
self
mode
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710056726.0A
Other languages
Chinese (zh)
Other versions
CN106843977A (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 Anyun Century 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 Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710056726.0A priority Critical patent/CN106843977B/en
Publication of CN106843977A publication Critical patent/CN106843977A/en
Application granted granted Critical
Publication of CN106843977B publication Critical patent/CN106843977B/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)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses processing method, device and the mobile terminal of a kind of application program self-starting, it is related to using processing technology field, main purpose is thoroughly can effectively manage the application program of self-starting from bottom.The described method includes: receiving the self-starting request of application program, obtain the corresponding self-starting mode of application program, when the corresponding self-starting mode of application program is interface start-up mode, configuration is corresponding with the interface start-up mode to apply processing strategie, is handled using processing strategie the self-starting request of the application program according to described.The present invention is suitable for the processing of application program self-starting.

Description

A kind of processing method, device and the mobile terminal of application program self-starting
Technical field
Processing method, dress the present invention relates to processing technology field is applied, more particularly to a kind of application program self-starting It sets and mobile terminal.
Background technique
With the continuous development of intelligent terminal, the application program that user installs in an intelligent terminal is also increasing, usually In the case of, many application developers in order to facilitate user's use can mounting platform be switched on when self-starting application program.Mesh Before, the mode of each application program self-starting is by registering static broadcast receiver in systems in terminal BroadcastReceiver is called specified application by radio receiver, or is adjusted by other assemblies in system With specified application, for example, the application programming interfaces that can be provided by content provider ContentProvider component The other applications in same family are called, can also call appointing system function by background service Service Application program.
It should be noted that the application program of self-starting is sometimes through the above way and nonsystematic or other applications are run The starting of certain application programs and non-user is desired starts in necessary condition or terminal, therefore, for certain 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.
In view of the above-mentioned problems, the existing implementation for forbidding application program self-starting are as follows: when application program receives extensively It broadcasts in receiver or system after the calling of other assemblies, judges whether the application program allows self-starting, if allowing not It is handled, is terminated the application process for the application program having been started up if not allowing.However, existing forbid using 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 Application program self-starting is sent out, can not thoroughly intercept application program from bottom by terminating the application program of self-starting, it is right If not terminating process in time in the application program for the self-starting that succeeded, it is also possible to bring the wind of privacy and secure context Danger.
Summary of the invention
In view of this, the present invention provides processing method, device and the mobile terminal of a kind of application program self-starting, Neng Goucong Bottom thoroughly effectively manages the application program of self-starting.
According to the present invention on one side, a kind of processing method of application program self-starting is provided, comprising:
The self-starting request for receiving application program, obtains the corresponding self-starting mode of application program;
When the corresponding self-starting mode of application program is interface start-up mode, configure corresponding with the interface start-up mode Application processing strategie;
The self-starting request of the application program is handled using processing strategie according to described.
According to the present invention on one side, a kind of processing unit of application program self-starting is provided, comprising:
Acquiring unit, the self-starting for receiving application program are requested, and the corresponding self-starting mode of application program is obtained;
Configuration unit, for when the corresponding self-starting mode of application program is interface start-up mode, configuration to connect with described Mouth start-up mode is corresponding to apply processing strategie;
Processing unit, for being handled using processing strategie the self-starting request of the application program according to described.
According to the present invention on one side, a kind of mobile terminal, including processor and memory are provided:
The memory is used to store the program for the processing method for executing above-mentioned application program self-starting;
The processor is configured to for executing the program stored in the memory.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
Processing method, device and the mobile terminal of a kind of application program self-starting provided by the invention, forbid with existing The technology of application program self-starting is realized in system application layer, application program can not be thoroughly intercepted from bottom and compared, this hair It is bright by obtaining the corresponding self-starting mode of the application program, then when the corresponding self-starting mode of application program opens for interface When dynamic model formula, configuration is corresponding with service initiator to apply processing strategie, right on the basis of not influencing user's normal use Allow the application program of self-starting can star in user, do not allow the application program of self-starting for user, at application Reason strategy handles the self-starting request of application program, and the self-starting of application program can be effectively handled from bottom, right Application program is effectively intercepted, thus reduce application program self-starting processing not in time to user's bring privacy with And the risk of secure context.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of processing method flow diagram of application program self-starting provided in an embodiment of the present invention;
Fig. 2 shows the processing method flow diagrams of another application program self-starting provided in an embodiment of the present invention;
Fig. 3 shows the processing method flow 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 schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of processing methods of application program self-starting, as shown in Figure 1, the method packet It includes:
101, the self-starting request for receiving application program, obtains the corresponding self-starting mode of the application program.
Wherein, the self-starting request of the application program is when Android mobile phone program backstage receives certain events, such as net Network connection variation, unlock of spreading its tail, the events such as starting up and the automatic starting behavior triggered, even if cleaning up memory, software into Journey is killed at that time, but if encountering such as unlock, screen locking trigger event, application program will send automatic to system Start the self-starting request of background process.
In Android system, there are many kinds of the modes of triggering application program self-starting, for example, user passes through in mobile phone screen Application program image target scene is clicked, the scene of data sharing is perhaps carried out between application or executes system local service Scene, different application scenarios correspond to different application program self-starting modes, therefore when the self-starting for receiving application program When request, it is necessary to the corresponding self-starting mode of application program is obtained according to the application scenarios of different triggering application programs, for example, User is interface start-up mode by the corresponding self-starting mode of scene for clicking application icon in mobile phone screen, using it Between carry out data sharing the corresponding start-up mode of scene be interface start-up mode, execute system local service scene it is corresponding Self-starting mode is service start-up mode.
It should be noted that the visible user interface that above-mentioned interface start-up mode shows for user's operation, for example, It is selected by one list of menu of showing interface for user, or some photos etc. comprising explanation of display, the present invention are implemented Example is without limitation.
It for certain kernel process defaults for influencing system operation is not shown at interface, system default configures certainly The ability of starting, such as some system process are not necessarily to 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 default and are not shown at interface, in order to avoid the system of influence Normal operation;For certain nonsystematic kernel processes, such as part system application program and third part 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. Taboo is usually arranged in application program, default setting self-starting function, the application program for occupying larger memory and power consumption for game etc. Only self-starting function.
However, although certain application programs are set forbids during being actually configured application program self-starting Self-starting function, and family's application is excessive in the terminal, will frequently backstage self-starting, cause function and aspect of performance It influences, if the risk of the secure contexts such as privacy may be brought by terminating process not in time.
102, when the corresponding self-starting mode of application program is interface start-up mode, configuration and the interface start-up mode It is corresponding to apply processing strategie.
Here interface start-up mode can be realized by the ContentProvider component in Android system, work as Android After system boot, when needing data sharing between application program, ContentProvider component is created, for applications Program adds shared data, when needing to access the shared data in ContentProvider component there are application program, leads to The identifier of the application programs is crossed by the corresponding application call of shared data, to realize different application Data sharing, such as ContentProvider realizes that in application A, the process of A not yet starts, another makes using B It just will start with when ContentProvider using A.
For the embodiment of the present invention, when the corresponding start-up mode of application program is interface start-up mode, by configure with The corresponding starting for controlling application program using processing strategie of interface start-up mode and forbid, has automatically configured default value, nothing It needs user to participate in being arranged manually, can also guarantee the normal operation of system.
It should be noted that using processing strategie 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, main generation in Booting sequence Code opens permission certainly by calling service interface to judge whether application program has first in AmInjector.java file, if It is then otherwise to judge whether the caller of application program is system application, if it is without intercepting, otherwise without intercepting Judge whether application program is system application, if it is without intercepting, otherwise judges whether application program is in operation shape State if it is illustrates that application program is currently opened from the background, without intercepting, otherwise judges the caller of application program And whether the packet name of application program is consistent, and without intercepting if consistent, otherwise No starting application program.
103, the self-starting request of the application program is handled using processing strategie according to described.
Here the application program started by interface start-up mode is usually to be called by other applications, when receiving it After the call request of his application program, to called application program and application program can be called to judge, such as certain User does not expect the application program of self-starting, can run institute for certain systems by being configured No starting in bottom Necessary application program, such as desktop, phone system application, can by being configured and can be started in bottom, This law embodiment is handled the application program by broadcast start-up mode starting using processing strategie by what is configured, for User does not allow the application program started to can be carried out effective interception.
The processing method of application program self-starting provided by the invention a kind of forbids application program self-starting with existing Technology is realized in system application layer, application program can not be thoroughly intercepted from bottom and compared, and the present invention described in acquisition by answering With the corresponding self-starting mode of program, then when the corresponding self-starting mode of application program is interface start-up mode, configuration with Interface start-up mode applies processing strategie accordingly, on the basis of not influencing user's normal use, user is allowed to open certainly Dynamic application program can star, and not allow the application program of self-starting for user, according to application processing strategie to using journey The self-starting request of sequence is handled, and the self-starting of application program can be effectively handled from bottom, is had to application program The interception of effect, to reduce in application program self-starting processing not in time to user's bring privacy and the wind of secure context Danger.
The embodiment of the invention provides the processing methods of another application program self-starting, as shown in Fig. 2, the method packet It includes:
201, the self-starting request for receiving application program judges whether the Starting mode of the application program is interface starting Mode, if so then execute 202a, if otherwise executing 202b.
The self-starting of usual situation application program can start for separating machine starting with backstage, and starting up is with terminal It is just automatically turned on when booting, user can be configured by self-starting option, and backstage starting is changed by terminal link The behavior of startup program, such as the startings of other applications can be triggered when user opens microblogging application program.
Wherein, interface Starting mode is to start application program by Activity component, and each interface is one The interaction with user may be implemented by the visualization interface that Activity component provides in Activity component, for example, user is logical The prompt information for crossing interface can choose whether authorized applications, can be realized picture by clicking the picture that interface provides The movement such as rotation.
If the Starting mode of 202a, the application program are interface start-up modes, opened according to the behavioral data of user's operation Move the application program.
Since the application program of interface Starting mode is the side started according to the operation data generated is interacted with user Therefore formula if the Starting mode of the application program is interface start-up mode, illustrates that the Starting mode meets user intention, Starting interception need not be carried out, application program is further started according to the behavioral data of user's operation, as user selects the row of authorization Click the behavioral data of photo for data or user, in the embodiment of the present invention without limitation.
If correspondingly, it is corresponding with step 202a have step 202b, the Starting mode of the application program is not that interface is opened Flowing mode, by obtaining the corresponding self-starting mode of the application program in framework layers of calling detection function.
It should be noted that if the Starting mode of application program is not interface Starting mode, then explanation is not user behaviour Make the application program started, but by the application program of backstage starting, in order to not influence the normal operating of user, the present invention is real Example is applied by obtaining the corresponding self-starting mode of application program in framework layers of calling detection function, thus based on difference Self-starting mode decision whether allow the self-starting of the application program.
Wherein, service and interactive interface are provided for Android system developer for framework layers, passes through calling Framework layers of detection function can obtain the self-starting mode of application program, and the common start-up mode changed has broadcast at present Broadcast Receiver start-up mode, service Srvice start-up mode, interface Content Provider start-up mode etc., The embodiment of the present invention is to the self-starting mode of application program without limiting.
203b, when the corresponding self-starting mode of application program be interface start-up mode when, configuration with the interface start mould Formula is corresponding to apply processing strategie.
For the embodiment of the present invention, when the corresponding self-starting mode of application program is interface start-up mode, according to application The corresponding self-starting pattern configurations of program are corresponding with application program, and to apply processing strategie may include: first by calling service Interface judges whether application program has from permission is opened, and such as calls the packet name of application program installation kit, i.e. ApsManagerService The interface isInBlackList of service opens permission certainly to judge to answer program whether to have, and if it is without intercepting, otherwise sentences Whether the caller of disconnected application program is system application, such as the application program that bluetooth, address list system are included, if it is not It is intercepted, otherwise judges whether application program is system application, if it is without intercepting, otherwise judge that application program is It is no in operating status, if it is illustrate that application program is currently opened from the background, without intercepting, otherwise judgement application Whether the caller of program and the packet name of application program are consistent, without intercepting if consistent, otherwise No starting application Program.
It should be noted that interface start-up mode is storage by ContentProvider component in Android system and reads The shared of data may be implemented according to unified interface is provided, by interface start-up mode in access, and certain application programs are by connecing Mouth start-up mode can star the other applications of family.Specific logical code is in ActiveManagerService.java It is realized in the getContentProviderImpl function of file, detailed process is as shown in Figure 3.
204b, the self-starting request of the application program is handled using processing strategie according to described.
The embodiment of the present invention is opened by configuring with interface when the corresponding start-up mode of application program is interface start-up mode Dynamic model formula it is corresponding apply processing strategie, ensure that some non-core processes without user participates in manually be arranged can start or Forbid, such as the application program that corresponding user is commonly used is set as starting, user infrequently that use or occupy system The excessive application program of memory is set as No starting, improves the flexibility of application program self-starting.
205b, the processing record that the application program self-starting is counted according to prefixed time interval, the processing is recorded Storage is into cache file.
Wherein, the processing record of application program self-starting may include but be not limited to application program self-starting situation, have Body includes the number of starting, the number of self-starting is realized by different start-up modes, and waken up and start by other applications Number, which application program starting can be waken up by with detailed record, and wake up number, the time etc. of starting.
It should be noted that the embodiment of the present invention to above-mentioned prefixed time interval without limit, preferably 1 day, usually The case where situation shows the daily processing record of application program as unit of day, such as wakes up application program daily and daily quilt The case where other applications wake up.
Correspondingly, the processing record in the embodiment of the present invention can also include but is not limited to that application program intercepts situation, The number for specifically including interception realizes the number intercepted by different start-up modes, and is waken up and intercept by other applications Number, can be waken up and intercept by which application program with detailed record, and wake up number, the time etc. intercepted.
The embodiment of the present invention passes through the processing note according to prefixed time interval statistics application program self-starting
Record, by processing record storage into cache file, so that the starting situation of application program and family The relationship of application program is very clear, so that user can decide whether to change application program according to the actual demand of oneself Start situation.
206b, when in the cache file processing record be greater than preset threshold when, by the processing record be updated to it is pre- It sets in database.
Since cache file can occupy Installed System Memory in system operation, the embodiment of the present invention is in cache file Processing preset for processing record setting one when record excessive it is preset, for example, when the processing record in cache file is greater than At 20, then will processing record be updated, the embodiment of the present invention to this preset preset size herein without limit, can root It is configured according to running situation, in order to not influence system operating rate, processing record may further be updated and be matched It sets in the table in the database at center, ensure that the stability of system operation.
The processing method of another kind application program self-starting provided by the invention, for the application journey being mounted in mobile phone Sequence, when the corresponding start-up mode of application program is interface start-up mode, by configuring application corresponding with interface start-up mode Processing strategie can effectively manage from bottom and apply self-starting;It is recorded by the processing of statistics application program, so as in not shadow On the basis of ringing user's normal use, allow users to that application program self-starting is arranged according to processing record, to improve The flexibility of application program self-starting processing mode.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of application programs to open certainly Dynamic processing unit, as shown in figure 4, described device includes: acquiring unit 31, configuration unit 32, processing unit 33.
Acquiring unit 31 can be used for obtaining the application program pair when the self-starting for receiving application program is requested The self-starting mode answered;Acquiring unit 31 is to open certainly in a kind of processing unit of application program self-starting for obtaining application program Dynamic main functional modules can specifically be obtained according to the different triggering mode of application program.
Configuration unit 32, can be used for when the corresponding self-starting mode of application program be interface start-up mode when, configuration with The interface start-up mode is corresponding to apply processing strategie;Configuration unit 32 is that a kind of processing unit of application program self-starting is used The corresponding main functional modules using processing strategie are configured in the application program for interface start-up mode.
Processing unit 33 can be used for carrying out the self-starting request of the application program using processing strategie according to described Processing, processing unit 33 are to open or intercept for application program to be arranged in a kind of processing unit of application program self-starting The application program of main functional modules, starting undesirable for user is set as intercepting starting, answers for what user was commonly used Self-starting is set as with program.
The processing unit of application program self-starting provided by the invention a kind of forbids application program self-starting with existing Technology is realized in system application layer, application program can not be thoroughly intercepted from bottom and compared, and the present invention described in acquisition by answering With the corresponding self-starting mode of program, then when the corresponding self-starting mode of application program is interface start-up mode, configuration with Interface start-up mode applies processing strategie accordingly, on the basis of not influencing user's normal use, user is allowed to open certainly Dynamic application program can star, and not allow the application program of self-starting for user, according to application processing strategie to using journey The self-starting request of sequence is handled, and the self-starting of application program can be effectively handled from bottom, is had to application program The interception of effect, to reduce in application program self-starting processing not in time to user's bring privacy and the wind of secure context Danger.
Further, the specific implementation as Fig. 2 the method, the embodiment of the invention provides another application programs certainly The processing unit of starting, as shown in figure 5, described device includes: judging unit 41, acquiring unit 42, configuration unit 43, processing list First 44, statistic unit 45, updating unit 46.
Acquiring unit 42 can be used for receiving the self-starting request of application program, it is corresponding certainly to obtain the application program Start-up mode;Acquiring unit 42 is in a kind of processing unit of application program self-starting for obtaining the master of application program self-starting Functional module is wanted, can specifically be obtained according to the different triggering mode of application program;
Configuration unit 43, can be used for when the corresponding self-starting mode of application program be interface start-up mode when, configuration with The interface start-up mode is corresponding to apply processing strategie;Configuration unit 43 is that a kind of processing unit of application program self-starting is used The corresponding main functional modules using processing strategie are configured in the application program for interface start-up mode;
Processing unit 44 can be used for handling the application program according to the application processing strategie, and processing is single Member 44 is the major function mould in a kind of processing unit of application program self-starting for application program unlatching to be arranged or intercepts The application program of block, starting undesirable for user is set as intercepting starting, and the application program that user is commonly used is arranged For self-starting.
Further, can be decided whether to change opening for application program according to the actual demand of oneself in order to facilitate user Emotionally condition, described device further include:
Judging unit 41 can be used for judging whether the Starting mode of the application program is interface Starting mode, judgement Whether unit 41 is in a kind of processing unit of application program self-starting for judging application program by way of user interface The main functional modules of starting, wherein interface Starting mode is to start application program by Activity component;
The judging unit 41, if the Starting mode that specifically can be used for the application program is interface Starting mode, Start the application program according to the behavioral data of user's operation, wherein the behavioral data of user's operation may include but not office It is limited to the behavioral data that user selects the behavioral data of authorization or user to click photo;
The judging unit 41, if the Starting mode that specifically can be also used for the application program is not interface starting side Formula obtains the corresponding self-starting mode of the application program.
Specifically, in order to obtain the self-starting mode of different application, the acquiring unit 42 specifically can be used for leading to It crosses and obtains the corresponding self-starting mode of the application program in framework layers of calling detection function.
When the corresponding self-starting mode of the application program is interface start-up mode, as shown in fig. 6, the configuration unit 43 include:
First judgment module 431 can be used for judging whether the application program has from the power that opens by calling service interface Limit;
The first judgment module 431, if specifically can be used for by calling service interface to judge that the application program has From permission is opened, then start the application program;
Second judgment module 432, if can be used for by calling service interface to judge the application program not from the power that opens Limit, judges whether the caller of the application program is system application;
Second judgment module 432 opens if the caller that specifically can be used for the application program is system application Move the application program;
Third judgment module 433 is answered described in judgement if the caller that can be used for the application program is not system application It whether is system application with program;
The third judgment module 433 is answered described in starting if specifically can be used for the application program is system application Use program;
4th judgment module 434 judges that the application program is if can be used for the application program not is system application It is no in operating status;
4th judgment module 434, if specifically for the application program be it is in operating status, answered described in starting Use program;
5th judgment module 435 judges described using journey if can be used for the application program is not in operating status Whether the packet name of the caller of sequence and the application program is consistent;
5th judgment module 435, if specifically can be used for the caller of the application program and described using journey The packet name of sequence is consistent, then starts the application program;
5th judgment module 435, if specifically can be also used for the application program caller and the application The packet name of program is inconsistent, then application program described in No starting.
Further, the first judgment module 431 specifically can be used for identifying the application program by calling interface Identification information judge whether the application program has from opening permission, identification information here can be application program The uid of pid and application program.
Further, can be decided whether to change opening for application program according to the actual demand of oneself in order to facilitate user Emotionally condition, described device further include:
Statistic unit 45, the processing for counting the application program self-starting according to prefixed time interval records, by institute Processing record storage is stated into cache file, statistic unit 45 is in a kind of processing unit of application program self-starting for recording Application program self-starting processing record main functional modules, wherein application program self-starting processing record may include but It is not limited to application program self-starting situation, specifically includes the number of starting, time of self-starting is realized by different start-up modes Number, and the number started is waken up by other applications, which application program starting can be waken up by with detailed record, with And wake up number, the time etc. of starting.
Further, Installed System Memory can be occupied, in system operation due to cache file in order to not influence system fortune Scanning frequency rate, described device further include:
Updating unit 46 can be used for when the processing record in the cache file is greater than preset threshold, by the place Reason record is updated in initialized data base, and updating unit 46 is to answer in a kind of processing unit of application program self-starting for updating With the main functional modules of program self-starting processing record.
The processing unit of another kind application program self-starting provided by the invention, for the application journey being mounted in mobile phone Sequence, when the corresponding start-up mode of application program is interface start-up mode, by configuring application corresponding with interface start-up mode Processing strategie can effectively manage from bottom and apply self-starting;It is recorded by the processing of statistics application program, so as in not shadow On the basis of ringing user's normal use, allow users to that application program self-starting is arranged according to processing record, to improve The flexibility of application program self-starting processing mode.
The embodiment of the invention provides a kind of mobile terminals, 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 It is transmitted in obtaining the information between module, expansion module and access modules.Processor 51 can call the logic in memory 53 Instruction, enables the device to execute the image display method in above-mentioned any embodiment.
In addition, the logical order in above-mentioned memory 53 can be realized and as only by way of SFU software functional unit Vertical product when selling or using, can store in a computer readable storage medium.Based on this understanding, this hair Substantially the part of the part that contributes to existing technology or the technical solution can be with soft in other words for bright technical solution The form of part product embodies, which is stored in a storage medium, including some instructions are to make It obtains a computer equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment of the present invention The all or part of the steps of the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
A kind of mobile terminal provided by the invention is in system application with the existing technology for forbidding application program self-starting What layer was realized, application program can not thoroughly being intercepted from bottom and being compared, by obtaining, the application program is corresponding to be opened the present invention certainly Dynamic model formula configures corresponding to service initiator then when the corresponding self-starting mode of application program is interface start-up mode Application processing strategie allow the application program of self-starting can be with user on the basis of not influencing user's normal use Starting, do not allow the application program of self-starting for user, according to application processing strategie to the self-starting of application program request into Row processing, the self-starting of application program can be effectively handled from bottom, is effectively intercepted to application program, to reduce In application program self-starting processing not in time to user's bring privacy and the risk of secure context.
The invention discloses A1, a kind of processing method of application program self-starting, comprising:
The self-starting request for receiving application program, obtains the corresponding self-starting mode of application program;
When the corresponding self-starting mode of application program is interface start-up mode, configure corresponding with the interface start-up mode Application processing strategie;
The self-starting request of the application program is handled using processing strategie according to described.
A2, method as described in a1, corresponding with the interface start-up mode application processing strategie of the configuration include:
Permission is opened certainly by calling service interface to judge whether the application program has;
If so, starting the application program, otherwise, judge whether the caller of the application program is system application;
If so, starting the application program, otherwise, judge whether the application program is system application;
If so, starting the application program, otherwise, judge whether the application program is in operating status;
If so, start the application program, otherwise, judge the application program caller and the application program Packet name it is whether consistent;
If so, start the application program, and otherwise, application program described in No starting.
A3, as described in A2 method, it is described to open permission certainly by calling service interface to judge whether the application program has Include:
The identification information of the application program is identified by calling interface to judge whether the application program has and open certainly Permission.
A4, the method as described in any one of A1-A3, the corresponding self-starting mode of the acquisition application program include:
By obtaining the corresponding self-starting mode of the application program in framework layers of calling detection function.
A5, the method as described in A4, described by described using journey to obtain in framework layers of calling detection function Before the corresponding self-starting mode of sequence, the method also includes:
Whether the Starting mode for judging the application program is interface Starting mode;
If so, starting the application program according to the behavioral data of user's operation, the application program pair is otherwise obtained The self-starting mode answered.
A6, method as described in a5, the method also includes:
The processing record that the application program self-starting is counted according to prefixed time interval, extremely by the storage of processing record In cache file.
A7, the method as described in A6, the method also includes:
When the processing record in the cache file is greater than preset threshold, processing record is updated to preset data In library.
B8, a kind of processing unit of application program self-starting, comprising:
Acquiring unit, the self-starting for receiving application program are requested, and the corresponding self-starting mode of application program is obtained;
Configuration unit, for when the corresponding self-starting mode of application program is interface start-up mode, configuration to connect with described Mouth start-up mode is corresponding to apply processing strategie;
Processing unit, for being handled using processing strategie the self-starting request of the application program according to described.
B9, the device as described in B8, the configuration unit include:
First judgment module, for opening permission certainly by calling service interface to judge whether the application program has;
The first judgment module, if specifically for by calling service interface to judge that the application program has from the power that opens Limit, then start the application program;
Second judgment module, if for by calling service interface to judge that the application program from permission is opened, does not judge Whether the caller of the application program is system application;
Second judgment module, if the caller specifically for the application program is system application, described in starting Application program;
Third judgment module judges the application program if the caller for the application program is not system application It whether is system application;
The third judgment module starts the application program if being system application specifically for the application program;
4th judgment module judges whether the application program is in if not being system application for the application program Operating status;
4th judgment module, if specifically for the application program be it is in operating status, start the application Program;
5th judgment module judges the tune of the application program if being not in operating status for the application program Whether the packet name of user and the application program is consistent;
5th judgment module, if the packet name of caller and the application program specifically for the application program Unanimously, then start the application program;
5th judgment module, if being specifically also used to the caller of the application program and the packet of the application program Name is inconsistent, then application program described in No starting.
B10, the device as described in B9,
The first judgment module judges specifically for identifying the identification information of the application program by calling interface Whether the application program has is opened permission certainly.
B11, the device as described in any one of B8-B10,
The acquiring unit, specifically for by obtaining the application program in framework layers of calling detection function Corresponding self-starting mode.
B12, device as described in b11, described device further include:
Judging unit, for judging whether the Starting mode of the application program is interface Starting mode;
The judging unit, if the Starting mode specifically for the application program is interface Starting mode, according to The behavioral data of family operation starts the application program;
The judging unit obtains if the Starting mode for being specifically also used to the application program is not interface Starting mode The corresponding self-starting mode of the application program.
B13, as described in B12 device, described device further include:
Statistic unit, the processing for counting the application program self-starting according to prefixed time interval record, will be described Processing record storage is into cache file.
B14, the device as described in B13, described device further include:
Updating unit, for when the processing record in the cache file is greater than preset threshold, the processing to be recorded It is updated in initialized data base.
C15, a kind of mobile terminal, including processor and memory:
The memory is used to store the program for executing any one of A1 to A7 the method;
The processor is configured to for executing the program stored in the memory.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
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 and not represent the superiority and inferiority of each embodiment for distinguishing 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, In Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, 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, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the optimization method of positioning system performance according to an embodiment of the present invention And some or all functions of some or all components in device.The present invention is also implemented as executing institute here Some or all device or device programs of the method for description are (for example, computer program and computer program produce Product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or to appoint What other forms provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (13)

1. a kind of processing method of application program self-starting characterized by comprising
The self-starting request for receiving application program, obtains the corresponding self-starting mode of application program;
When the corresponding self-starting mode of application program is interface start-up mode, answer corresponding with the interface start-up mode is configured Use processing strategie;
The self-starting request of the application program is handled using processing strategie according to described;
Wherein, configuration application processing strategie corresponding with the interface start-up mode includes:
Permission is opened certainly by calling service interface to judge whether the application program has;
If so, starting the application program, otherwise, judge whether the caller of the application program is system application;
If the caller of the application program is system application, starts the application program, otherwise, judge the application program It whether is system application;
If the application program is system application, starts the application program, otherwise, judge whether the application program is in Operating status;
If judging, the application program is in operating status, starts the application program, otherwise, judges the application program Whether the packet name of caller and the application program is consistent;
If the packet name of the caller of the application program and the application program is consistent, start the application program, otherwise, Application program described in No starting.
2. the method according to claim 1, wherein described by calling service interface to judge the application program Whether have from opening permission and includes:
The identification information of the application program is identified by calling interface to judge whether the application program has and open permission certainly.
3. method according to claim 1 or 2, which is characterized in that the corresponding self-starting mode of the acquisition application program Include:
By obtaining the corresponding self-starting mode of the application program in framework layers of calling detection function.
4. according to the method described in claim 3, it is characterized in that, described by framework layers of calling detection function Before obtaining the corresponding self-starting mode of the application program, the method also includes:
Whether the Starting mode for judging the application program is interface Starting mode;
If so, starting the application program according to the behavioral data of user's operation, it is corresponding otherwise to obtain the application program Self-starting mode.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The processing record that the application program self-starting is counted according to prefixed time interval, by processing record storage to caching In file.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
When the processing record in the cache file is greater than preset threshold, processing record is updated to initialized data base In.
7. a kind of processing unit of application program self-starting characterized by comprising
Acquiring unit, the self-starting for receiving application program are requested, and the corresponding self-starting mode of application program is obtained;
Configuration unit, for when the corresponding self-starting mode of application program is interface start-up mode, configuration to be opened with the interface Dynamic model formula is corresponding to apply processing strategie;
Processing unit, for being handled using processing strategie the self-starting request of the application program according to described;
Wherein, the configuration unit includes:
First judgment module, for opening permission certainly by calling service interface to judge whether the application program has;
The first judgment module, if specifically for opening permission certainly by calling service interface to judge that the application program has, Start the application program;
Second judgment module, if for by call service interface judge the application program not oneself open permission, described in judgement Whether the caller of application program is system application;
Second judgment module starts the application if the caller specifically for the application program is system application Program;
Whether third judgment module judges the application program if the caller for the application program is not system application For system application;
The third judgment module starts the application program if being system application specifically for the application program;
4th judgment module judges whether the application program is in operation if not being system application for the application program State;
4th judgment module, if specifically for the application program be it is in operating status, start the application program;
5th judgment module judges the caller of the application program if being not in operating status for the application program And whether the packet name of the application program is consistent;
5th judgment module, if the Bao Mingyi of caller and the application program specifically for the application program It causes, then starts the application program;
5th judgment module, if be specifically also used to the application program caller and the application program packet name not Unanimously, then application program described in No starting.
8. device according to claim 7, which is characterized in that
The first judgment module judges described specifically for identifying the identification information of the application program by calling interface Whether application program has is opened permission certainly.
9. device according to claim 7 or 8, which is characterized in that
The acquiring unit, specifically for by corresponding to obtain the application program in framework layers of calling detection function Self-starting mode.
10. device according to claim 9, which is characterized in that described device further include:
Judging unit, for judging whether the Starting mode of the application program is interface Starting mode;
The judging unit is grasped if the Starting mode specifically for the application program is interface Starting mode according to user The behavioral data of work starts the application program;
The judging unit, if the Starting mode for being specifically also used to the application program is not interface Starting mode, described in acquisition The corresponding self-starting mode of application program.
11. device according to claim 10, which is characterized in that described device further include:
Statistic unit, the processing for counting the application program self-starting according to prefixed time interval records, by the processing Record storage is into cache file.
12. device according to claim 11, which is characterized in that described device further include:
Updating unit, for the processing being recorded and is updated when the processing record in the cache file being greater than preset threshold Into initialized data base.
13. a kind of mobile terminal, which is characterized in that including processor and memory:
The memory is used to store the program that perform claim requires any one of 1 to 6 the method;
The processor is configured to for executing the program stored in the memory.
CN201710056726.0A 2017-01-25 2017-01-25 A kind of processing method, device and the mobile terminal of application program self-starting Active CN106843977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710056726.0A CN106843977B (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
CN201710056726.0A CN106843977B (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
CN106843977A CN106843977A (en) 2017-06-13
CN106843977B true CN106843977B (en) 2019-11-05

Family

ID=59121172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710056726.0A Active CN106843977B (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) CN106843977B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107831886B (en) * 2017-11-21 2020-06-26 Oppo广东移动通信有限公司 Control method and device for associated starting application, storage medium and intelligent terminal
CN108759855A (en) * 2018-05-16 2018-11-06 深圳市云智易联科技有限公司 A kind of interface display method and car-mounted terminal of car-mounted terminal
CN108958830B (en) * 2018-06-06 2021-09-17 Oppo广东移动通信有限公司 Application program starting method and device, storage medium and terminal
CN112835656A (en) * 2019-11-01 2021-05-25 科美诊断技术股份有限公司 Client starting method and device
CN116048647B (en) * 2022-07-15 2023-10-20 荣耀终端有限公司 Method for controlling background application to be self-started and electronic equipment

Family Cites Families (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
CN104462978B (en) * 2014-12-24 2017-09-15 北京奇虎科技有限公司 A kind of method and apparatus of application program rights management
CN106201574B (en) * 2016-06-22 2020-02-14 Oppo广东移动通信有限公司 Application interface starting method and device

Also Published As

Publication number Publication date
CN106843977A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106843977B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN106874089B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN106874086B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN106874048B (en) A kind of processing method, device and the mobile terminal of application program self-starting
US8893222B2 (en) Security system and method for the android operating system
CN104484223B (en) A kind of Android system application method for closing and device
CN104360794A (en) Method and device for controlling window pop-up through full screen-identifying mode
CN112118459A (en) Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium
CN107885535A (en) A kind of system start method, system switching method and device
CN103778012B (en) The method and device of change terminal operator's informaiton
US9652223B2 (en) Method and apparatus for executing integrated application program
CN105095749A (en) Status bar notification takeover method and device
CN110868693A (en) Application program flow control method, terminal device and storage medium
CN108563472B (en) Service plug-in loading method and device based on multi-open application
CN106874088B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN111626606B (en) Business rule processing method, device, equipment, system and storage medium
CN106802819A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN103530180B (en) Method and device for switching storage space of application programs
CN103927191B (en) Resource allocation method and resource allocation device for invoking function
CN107621939B (en) Application optimization method and device
CN106911730A (en) A kind of cloud disk service device accesses moving method and device
CN109947488A (en) Object initialization method, apparatus, equipment and the storage medium of general utility functions module
CN109254805A (en) A kind of application self-start method, terminal installation and readable storage medium storing program for executing
CN105631318B (en) A kind of acquisition methods and device of registration table key assignments
CN112130900B (en) User information management method, system, equipment and medium for BMC

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
TA01 Transfer of patent application right

Effective date of registration: 20170721

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.

GR01 Patent grant
GR01 Patent grant