CN110086925A - A kind of application processing method and mobile terminal - Google Patents

A kind of application processing method and mobile terminal Download PDF

Info

Publication number
CN110086925A
CN110086925A CN201910241636.8A CN201910241636A CN110086925A CN 110086925 A CN110086925 A CN 110086925A CN 201910241636 A CN201910241636 A CN 201910241636A CN 110086925 A CN110086925 A CN 110086925A
Authority
CN
China
Prior art keywords
application
ancillary service
packet name
switch
white list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910241636.8A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910241636.8A priority Critical patent/CN110086925A/en
Publication of CN110086925A publication Critical patent/CN110086925A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of application processing methods, comprising: detection is currently entering the application on foreground, and obtains the packet name of the application;Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;In the case where the judgment result is yes, the corresponding auxiliary functional switch of the ancillary service is opened;If the determination result is NO, close the auxiliary functional switch, the embodiment of the invention also discloses a kind of mobile terminal and computer readable storage mediums, solve the problems, such as that the switch of ancillary service in the related technology can influence the performance of mobile phone always on from the background, ancillary service switch is just opened when needing to open, reduce the influence to handset capability, improves user experience.

Description

A kind of application processing method and mobile terminal
Technical field
The present invention relates to mobile communication technology field more particularly to a kind of application processing methods and mobile terminal.
Background technique
Robbing red packet at present, wisdom, which is known in the tools such as screen, may use ancillary service, wherein ancillary service is A kind of mechanism that android is provided can search interface element, realize that simulation is clicked.
In the prior art, when using ancillary service, need to open the auxiliary functional switch in setting, once it opens It opens, some logics and process in frame in relation to ancillary service will be triggered, wherein communicating comprising many binder, so auxiliary It helps service switch when backstage is normally opened, the performance of mobile phone may be influenced.
The switch of ancillary service in the related technology aiming at the problem that backstage is always on to influence the performance of mobile phone, Solution is not yet proposed at present.
Summary of the invention
It is a primary object of the present invention to propose a kind of application processing method and mobile terminal, it is intended to solve in the related technology Ancillary service switch is in backstage always on the problem of being influenced on the performance of mobile phone.
To achieve the above object, the embodiment of the present invention proposes a kind of application processing method, comprising:
Detection is currently entering the application on foreground, and obtains the packet name of the application;
Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;
In the case where the judgment result is yes, the corresponding auxiliary functional switch of the ancillary service is opened;
If the determination result is NO, the auxiliary functional switch is closed.
Optionally, closing the auxiliary functional switch includes:
The ancillary service switch is closed in setting database by way of ancillary service field writing.
Optionally, detection is currently entering the application on foreground, and the packet name for obtaining the application includes:
AMS, which is serviced, by application management in system framework monitors whether foreground application switches;
Listen to switch in the case where, obtain the packet name of the application.
Optionally, before detecting the application for being currently entering foreground, and obtain the packet name of the application, the method is also wrapped It includes:
For the application setting white list for needing ancillary service;
The packet name for needing the application of ancillary service is saved in the white list.
Optionally, the method also includes:
Receive the change directive for changing the white list;
The packet name of the application in the white list is changed according to the change directive.
According to another aspect of an embodiment of the present invention, a kind of mobile terminal is additionally provided, the mobile terminal includes: processing Device, memory and communication bus, wherein
The communication bus, for realizing the connection communication between the processor and the memory;
The processor, for executing the application processing function stored in memory, to perform the steps of
Detection is currently entering the application on foreground, and obtains the packet name of the application;
Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;
In the case where the judgment result is yes, the corresponding auxiliary functional switch of the ancillary service is opened;
If the determination result is NO, the auxiliary functional switch is closed.
Optionally, the processor is also used to execute application processing function, to perform the steps of
The ancillary service switch is closed in setting database by way of ancillary service field writing.
Optionally, the processor is also used to execute application processing function, to perform the steps of
AMS, which is serviced, by application management in system framework monitors whether foreground application switches;
Listen to switch in the case where, obtain the packet name of the application.
Optionally, the processor is also used to execute application processing function, to perform the steps of
Before detecting the application for being currently entering foreground, and obtain the packet name of the application, to need answering for ancillary service With setting white list;
The packet name for needing the application of ancillary service is saved in the white list.
Optionally, the processor is also used to execute application processing function, to perform the steps of
Receive the change directive for changing the white list;
The packet name of the application in the white list is changed according to the change directive.
According to another aspect of an embodiment of the present invention, a kind of computer readable storage medium, the computer are additionally provided Readable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processor It executes, the step of to realize above-mentioned application processing method.
Through the invention, detection is currently entering the application on foreground, and obtains the packet name of the application;According to the application Whether packet name judges the application in the pre-set white list for opening ancillary service;The case where judging result, which is, is Under, open the corresponding auxiliary functional switch of the ancillary service;If the determination result is NO, the miscellaneous function is closed Switch solves the problems, such as that the switch of ancillary service in the related technology can influence the performance of mobile phone always on from the background, Ancillary service switch is just opened when needing to open, and is reduced the influence to handset capability, is improved user experience.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of application processing method according to an embodiment of the present invention;
Fig. 4 is the block diagram of mobile terminal according to an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out whole monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment 1
Based on above-mentioned mobile terminal, the embodiment of the invention provides a kind of application processing method, Fig. 3 is according to the present invention The flow chart of the application processing method of embodiment, as shown in figure 3, method includes the following steps:
Step S301, detection are currently entering the application on foreground, and obtain the packet name of the application;
Whether step S302 judges the application in pre-set unlatching ancillary service according to the packet name of the application In white list;
Step S303 opens the corresponding auxiliary functional switch of the ancillary service in the case where the judgment result is yes;
Step S304 closes the auxiliary functional switch if the determination result is NO.
S301 to S303 through the above steps, detection are currently entering the application on foreground, and obtain the packet name of the application;Root Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;In judging result In the case where being, the corresponding auxiliary functional switch of the ancillary service is opened;If the determination result is NO, institute is closed State auxiliary functional switch, solve the switch of ancillary service in the related technology backstage is always on can performance to mobile phone shadow Loud problem just opens ancillary service switch when needing to open, reduces the influence to handset capability, improve user Experience.
Optionally, above-mentioned steps S304, closing the auxiliary functional switch can specifically include: by writing setting database The mode of middle ancillary service field closes the ancillary service switch.
For example, wechat application has been set in advance in white list, when detecting that foreground application is switched to wechat, wechat is determined After in white list, ancillary service is just automatically turned on, is beaten by way of writing the ancillary service field in setting database The ancillary service switch is opened, the function of robbing red packet may be implemented.When detecting that foreground application switches, such as switch from wechat For certain player, and the player is detected not in white list, will pass through the ancillary service field write in setting database Mode close ancillary service switch, reduce the influence to mobile terminal performance.
In the embodiment of the present invention, detection is currently entering the application on foreground, and the packet name for obtaining the application specifically can wrap It includes: AMS being serviced by application management in system framework and monitors whether foreground application switches;Listening to the feelings to switch Under condition, the packet name of the application is obtained.
In the embodiment of the present invention, whether detection current application is in foreground, can use counting module to applying after starting The interface operation of program executes counting processing, and judges that application program is foreground or running background according to counting, and specially answers It is completed with the interface creating of program and counting module counts when screen is visible plus I, the interface of application program are invisible in screen And counting module counting subtracts I when not destroyed;When the count value of the counting module is O, application program is in running background, institute When stating the count value of counting module not equal to O, application program is in front stage operation.
It is designed, Android application program circle using Android application program interface from the inherent characteristics for being created to destruction The intrinsic calling sequence in face is: onCreateO to onStartO to onResumeO to onPauseO is extremely onStopOSonDestroyO。
When Android application program starts and creates application, application program itself calls onCreateO, when application program circle Face creation is completed and calls onStartO when screen is visible, when Application Program Interface is visible in screen and can be with User interaction when call onResumeO, when Application Program Interface it is visible in screen but cannot with user interaction when It waits and calls onPauseO, when Application Program Interface calls onStopO when screen can't see the page, when using journey OnDestroyO is called when destroyed in sequence interface.
Feature is called according to Android application program interface function, in conjunction with technical solution of the present invention, of the invention is detailed Embodiment are as follows: the OnstartO and OnstopO of each Application Program Interface safeguard an integer variable appCount, in A circle On startup, onStart () is variable appCount+ Ι in face, and when the interface A is exited, onStopO is variable appCount- Ι; On startup, variable appCount+ Ι equally in onStartO, when the interface B is exited, handle becomes in onStopO at 13 interfaces SappCount-1;Then, whether judgment variable appCount, which is equal to O, can be obtained by apply whether be in foreground, when When appCount is equal to O, current application is in running background, when appCount is not equal to O, before current application is at In platform operation.
Generally, due to having multiple interfaces in an application, each interface respectively carries out an integer variable appCount Processing meeting relative increase overhead, therefore, it may be considered that uniformly handled, processing mode is using application program to itself Interface is called and is monitored, and monitored results are returned to counting module, and counting module carries out counting adjustment according to returning the result. All related interfaces of application program itself, specific implementation side are listened to using the global class Applicat1n of itself by representing Formula are as follows: one class BaseApplicat1n of creation inherits the global class Applicat1n for representing and applying itself;? It is registered in onCreateO in BaseApplicat1n using registerActivityLifecyIcleCalIbacks method Monitor all activity classes callback method onActivityStopped (Activityactivity) and onActivityStarted(Activityactivity);In onActivityStarted (Activityactivity) method It is middle appCount+1, appCount-1 in onActivityStopped (Activityactivity) method;Judgement becomes Whether whether amount appCount is equal to 0 can be obtained by using in foreground, and current application is just located if appCount is equal to O In running background, when appCount is not equal to O, current application is in front stage operation.
The embodiment of the present invention, before detecting the application for being currently entering foreground, and obtain the packet name of the application, to need The application setting white list of ancillary service;The packet name for needing the application of ancillary service is saved in the white list.
In an alternative embodiment, the embodiment of the present invention can also change white list, receive and change the white list Change directive;The packet name of the application in the white list is changed according to the change directive.For example, short message application before does not exist In white list, short message can be added in white list by way of changing white list, neatly white list can be carried out Management.
The embodiment of the present invention, the switching of foreground application is monitored by ApplicationManagerService, and dynamic is controlled Ancillary service switch processed, so that this switch is only needing what is come into force to be just opened when applying on foreground.
Often require that auxiliary functional switch is normally opened on backstage using the application of ancillary service for red packet etc. is robbed at present, so that Interface element is searched with ancillary service, realizes that simulation is clicked.But the scope of actually these applications is often limited, such as Rob red packet generally and can only be needed when wechat is on foreground using.So one can be preset for the application of ancillary service to be used Its a need to come into force white list of application opens auxiliary functional switch, otherwise when judging that the application in white list enters foreground Turn off auxiliary functional switch, the range of auxiliary functional switch unlatching is limited with this, avoids switching normally opened, influences performance.Specific packet It includes:
Step 1: the ApplicationManagerService in frame can monitor the switching of foreground application, preceding When platform application is cut, the packet name of foreground more recent application is obtained.
Step 2: when packet name is within white list, illustrating that the needs of ancillary service at this time come into force, at this time by writing Setting number Ancillary service switch can be opened according to the mode of library service field, so that ancillary service comes into force, the tools such as red packet is robbed and is able to Normal use.If packet name not in the column of white list, illustrates that ancillary service at this time does not need to come into force, at this time by writing Setting number Ancillary service switch can be closed according to the mode of library service field.
It can according to need the switch of flexible control ancillary service with this, so that the application that this switch only comes into force in needs It is just opened at foreground.
Because the write operation of Setting database needs system permission, in the above way only have system application that can just do It arrives.
Through the embodiment of the present invention, it is possible to reduce system, which is applied, influences performance when using ancillary service.
Embodiment 2
According to another aspect of an embodiment of the present invention, a kind of mobile terminal is additionally provided, Fig. 4 is according to embodiments of the present invention Mobile terminal block diagram, as shown in figure 4, the mobile terminal includes: processor 110, memory 109 and communication bus, In,
The communication bus, for realizing the connection communication between the processor 110 and the memory 109;
The processor 110, for executing the application processing function stored in memory 109, to perform the steps of
Detection is currently entering the application on foreground, and obtains the packet name of the application;
Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;
In the case where the judgment result is yes, the corresponding auxiliary functional switch of the ancillary service is opened;
If the determination result is NO, the auxiliary functional switch is closed.
Optionally, the processor 110 is also used to execute application processing function, to perform the steps of
The ancillary service switch is closed in setting database by way of ancillary service field writing.
Optionally, the processor 110 is also used to execute application processing function, to perform the steps of
AMS, which is serviced, by application management in system framework monitors whether foreground application switches;
Listen to switch in the case where, obtain the packet name of the application.
Optionally, the processor 110 is also used to execute application processing function, to perform the steps of
Before detecting the application for being currently entering foreground, and obtain the packet name of the application, to need answering for ancillary service With setting white list;
The packet name for needing the application of ancillary service is saved in the white list.
Optionally, the processor 110 is also used to execute application processing function, to perform the steps of
Receive the change directive for changing the white list;
The packet name of the application in the white list is changed according to the change directive.
Embodiment 3
According to another aspect of an embodiment of the present invention, a kind of computer readable storage medium, the computer are additionally provided Readable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processor It executes, to realize the following steps of above-mentioned application processing method:
S11, detection are currently entering the application on foreground, and obtain the packet name of the application;
Whether S12 judges the application in the pre-set white name for opening ancillary service according to the packet name of the application Dan Zhong;
S13 opens the corresponding auxiliary functional switch of the ancillary service in the case where the judgment result is yes;
S14 closes the auxiliary functional switch if the determination result is NO.
Through the embodiment of the present invention, detection is currently entering the application on foreground, and obtains the packet name of the application;According to described Whether the packet name of application judges the application in the pre-set white list for opening ancillary service;It is yes in judging result In the case of, open the corresponding auxiliary functional switch of the ancillary service;If the determination result is NO, the auxiliary is closed Functional switch, solving the switch of ancillary service in the related technology can ask what the performance of mobile phone was influenced always on from the background Topic just opens ancillary service switch when needing to open, reduces the influence to handset capability, improve user experience.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of application processing method characterized by comprising
Detection is currently entering the application on foreground, and obtains the packet name of the application;
Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;
In the case where the judgment result is yes, the corresponding auxiliary functional switch of the ancillary service is opened;
If the determination result is NO, the auxiliary functional switch is closed.
2. the method according to claim 1, wherein closing the auxiliary functional switch and including:
The ancillary service switch is closed in setting database by way of ancillary service field writing.
3. the method according to claim 1, wherein detection is currently entering the application on foreground, and being answered described in acquisition Packet name includes:
AMS, which is serviced, by application management in system framework monitors whether foreground application switches;
Listen to switch in the case where, obtain the packet name of the application.
4. according to the method in any one of claims 1 to 3, which is characterized in that it is currently entering the application on foreground in detection, And before obtaining the packet name of the application, the method also includes:
For the application setting white list for needing ancillary service;
The packet name for needing the application of ancillary service is saved in the white list.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Receive the change directive for changing the white list;
The packet name of the application in the white list is changed according to the change directive.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes: processor, memory and communication bus, wherein
The communication bus, for realizing the connection communication between the processor and the memory;
The processor, for executing the application processing function stored in memory, to perform the steps of
Detection is currently entering the application on foreground, and obtains the packet name of the application;
Judge the application whether in the pre-set white list for opening ancillary service according to the packet name of the application;
In the case where the judgment result is yes, the corresponding auxiliary functional switch of the ancillary service is opened;
If the determination result is NO, the auxiliary functional switch is closed.
7. mobile terminal according to claim 6, which is characterized in that the processor is also used to execute using processing journey Sequence, to perform the steps of
The ancillary service switch is closed in setting database by way of ancillary service field writing.
8. mobile terminal according to claim 6, which is characterized in that the processor is also used to execute using processing journey Sequence, to perform the steps of
AMS, which is serviced, by application management in system framework monitors whether foreground application switches;
Listen to switch in the case where, obtain the packet name of the application.
9. the mobile terminal according to any one of claim 6 to 8, which is characterized in that the processor is also used to execute Application processing function, to perform the steps of
Before detecting the application for being currently entering foreground, and obtain the packet name of the application, to need the application of ancillary service to set Set white list;
The packet name for needing the application of ancillary service is saved in the white list.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize in claim 1 to 5 The step of described in any item application processing methods.
CN201910241636.8A 2019-03-28 2019-03-28 A kind of application processing method and mobile terminal Pending CN110086925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910241636.8A CN110086925A (en) 2019-03-28 2019-03-28 A kind of application processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910241636.8A CN110086925A (en) 2019-03-28 2019-03-28 A kind of application processing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN110086925A true CN110086925A (en) 2019-08-02

Family

ID=67413801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910241636.8A Pending CN110086925A (en) 2019-03-28 2019-03-28 A kind of application processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN110086925A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609716A (en) * 2019-09-02 2019-12-24 秒针信息技术有限公司 Method and device for monitoring auxiliary function
CN111898117A (en) * 2020-04-26 2020-11-06 广州视源电子科技股份有限公司 Mutually exclusive application processing method, device, terminal and storage medium
CN114463730A (en) * 2021-07-15 2022-05-10 荣耀终端有限公司 Page identification method and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160174132A1 (en) * 2013-07-10 2016-06-16 Ciaran Hynes Method and apparatus for limiting the use of a mobile communications device
CN106462697A (en) * 2016-09-09 2017-02-22 北京小米移动软件有限公司 Auxiliary service management method and apparatus
CN108647070A (en) * 2018-04-18 2018-10-12 Oppo广东移动通信有限公司 Information prompting method, device, mobile terminal and computer-readable medium
CN108710795A (en) * 2018-04-18 2018-10-26 Oppo广东移动通信有限公司 Information cuing method, device, mobile terminal and storage medium
CN109117200A (en) * 2018-06-27 2019-01-01 努比亚技术有限公司 A kind of application open method, terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160174132A1 (en) * 2013-07-10 2016-06-16 Ciaran Hynes Method and apparatus for limiting the use of a mobile communications device
CN106462697A (en) * 2016-09-09 2017-02-22 北京小米移动软件有限公司 Auxiliary service management method and apparatus
CN108647070A (en) * 2018-04-18 2018-10-12 Oppo广东移动通信有限公司 Information prompting method, device, mobile terminal and computer-readable medium
CN108710795A (en) * 2018-04-18 2018-10-26 Oppo广东移动通信有限公司 Information cuing method, device, mobile terminal and storage medium
CN109117200A (en) * 2018-06-27 2019-01-01 努比亚技术有限公司 A kind of application open method, terminal and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609716A (en) * 2019-09-02 2019-12-24 秒针信息技术有限公司 Method and device for monitoring auxiliary function
CN111898117A (en) * 2020-04-26 2020-11-06 广州视源电子科技股份有限公司 Mutually exclusive application processing method, device, terminal and storage medium
CN114463730A (en) * 2021-07-15 2022-05-10 荣耀终端有限公司 Page identification method and terminal equipment
CN114463730B (en) * 2021-07-15 2023-07-14 荣耀终端有限公司 Page identification method and terminal equipment

Similar Documents

Publication Publication Date Title
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN110022401A (en) A kind of control parameter setting method, terminal and computer readable storage medium
CN109068167A (en) Record screen exchange method, mobile terminal, wearable device and storage medium
CN108833690A (en) authority control method, terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN109901980A (en) Serial ports log grabs circuit, method, terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN110086925A (en) A kind of application processing method and mobile terminal
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN110401806A (en) A kind of video call method of mobile terminal, mobile terminal and storage medium
CN109167882A (en) A kind of association starting control method, terminal and computer readable storage medium
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN109165042A (en) Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application
CN109684020A (en) A kind of method for switching theme, equipment and computer readable storage medium
CN109889660A (en) Temporary information recording method, storage medium and mobile terminal
CN109561221A (en) A kind of call control method, equipment and computer readable storage medium
CN109151201A (en) A kind of Anti-addiction method, mobile terminal and computer storage medium
CN109766211A (en) Method, terminal and the storage medium of shuangping san false-touch prevention
CN109462829A (en) A kind of call transfer method, equipment and computer readable storage medium
CN109257746A (en) Communication establishing method, communication means, terminal and computer readable storage medium
CN109616128A (en) Voice transmitting method, device and computer readable storage medium
CN110069291A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN110083330A (en) A kind of audio control method, equipment and computer readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802