CN110213443A - Prevent third party's desktop application self-start method, mobile terminal and storage medium - Google Patents

Prevent third party's desktop application self-start method, mobile terminal and storage medium Download PDF

Info

Publication number
CN110213443A
CN110213443A CN201910464943.2A CN201910464943A CN110213443A CN 110213443 A CN110213443 A CN 110213443A CN 201910464943 A CN201910464943 A CN 201910464943A CN 110213443 A CN110213443 A CN 110213443A
Authority
CN
China
Prior art keywords
party
desktop application
desktop
application
applying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910464943.2A
Other languages
Chinese (zh)
Other versions
CN110213443B (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.)
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 CN201910464943.2A priority Critical patent/CN110213443B/en
Publication of CN110213443A publication Critical patent/CN110213443A/en
Application granted granted Critical
Publication of CN110213443B publication Critical patent/CN110213443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses one kind to prevent third party's desktop application self-start method, mobile terminal and storage medium, it is described that prevent third party's desktop application self-start method include: to detect when listening to home key events wait notify in applying with the presence or absence of third party's desktop application;If wait notify that there are third party's desktop applications in applying, and the home event is notified to the other application wait notify non-third party's desktop application in applying, for display system desktop.Through the invention, stop carrying out home key events notice to third party's desktop application, destroy third party's desktop application and notified to execute the process flow of self-triggered program according to home key events, avoid third party's desktop application and illegally change mobile terminal desktop.

Description

Prevent third party's desktop application self-start method, mobile terminal and storage medium
Technical field
The present invention relates to fields of communication technology, more particularly to prevent third party's desktop application self-start method, mobile terminal And storage medium.
Background technique
Since desktop is the application that a high-frequency uses, user's viscosity is high.In the prior art, major mobile phone vendor commercial city There is the desktop application of oneself, and forbids that third party's desktop is arranged to be default desktop.In this case, third party's desktop application is The display frequency of oneself is improved, just self-starting is realized using some abnormal operations, illegally changes mobile terminal desktop.
Summary of the invention
The main purpose of the present invention is to provide one kind to prevent third party's desktop application self-start method, mobile terminal and meter Calculation machine readable storage medium storing program for executing, it is intended to solve third party's desktop application self-starting in the prior art, illegally change mobile terminal desktop The technical issues of.
To achieve the above object, the present invention, which provides one kind, prevents third party's desktop application self-start method, described to prevent Tripartite's desktop application self-start method includes:
When listening to home key events, detect wait notify in applying with the presence or absence of third party's desktop application;
If wait notify that there are third party's desktop applications in applying, and the home event is notified to non-in applying wait notify The other application of third party's desktop application, for display system desktop.
Optionally, described to detect wait notify that the step of whether there is third party's desktop application in applying includes:
It detects wait notify in applying with the presence or absence of the desktop application for carrying desktop application mark;
If wait notify in applying exist carry desktop application mark desktop application, detect the desktop application whether be System application;
If the desktop application is not system application, it is determined that wait notify that the desktop application in applying is third square table Face application.
Optionally, whether the detection desktop application is that the step of system is applied includes:
Obtain the category information of the desktop application;
Detect whether the category information is home;
If the category information is home, it is determined that the desktop application is system application;
If the category information is not home, it is determined that the desktop application is not system application.
Optionally, if described wait notify in applying there are third party's desktop application, by the home event notify to Wait notify the other application of non-third party's desktop application in applying, after the step of display system desktop, further includes:
When receiving the getTopActivity interface call request that third party's desktop application is sent, null is returned As a result.
Optionally, described when the getTopActivity interface call request for receiving third party's desktop application transmission When, return null result the step of include:
When receiving the getTopActivity interface call request that third party's desktop application is sent, described in detection Third party call the desktop application last time getTopActivity interface time and current time time difference it is whether big In preset duration;
If third party's desktop application last time calls time and the current time of the getTopActivity interface Time difference be not more than preset duration, then return to null result.
Optionally, if described wait notify in applying there are third party's desktop application, by the home event notify to Wait notify the other application of non-third party's desktop application in applying, after the step of display system desktop, further includes:
During the system desktop is shown, monitors Activtiy and start event;
When listening to Activtiy starting event, whether the corresponding identification information of the Activtiy starting event is detected For the identification information of third party's desktop application;
If the Activtiy starts the identification information that the corresponding identification information of event is third party's desktop application, Stop starting the corresponding Activtiy of the Activtiy starting event.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include: memory, It processor and is stored on the memory and what can be run on the processor prevents third party's desktop application self-starting journey Sequence, described realize when preventing third party's desktop application self-triggered program from being executed by the processor prevent third party as described above The step of desktop application self-start method.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored on the storage medium is prevented Third party's desktop application self-triggered program, it is described to realize such as when third party's desktop application self-triggered program being prevented to be executed by processor It is upper described the step of preventing third party's desktop application self-start method.
In the present invention, when listening to home key events, detect wait notify in applying with the presence or absence of third party's desktop application; If wait notify that there are third party's desktop applications in applying, and the home event is notified to wait notify non-third square table in applying The other application of face application, for display system desktop.Through the invention, stop carrying out home key thing to third party's desktop application Part notice destroys third party's desktop application and is notified to execute the process flow of self-triggered program according to home key events, avoids Third party's desktop application illegally changes mobile terminal desktop.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that the present invention prevents third party's desktop application self-start method first embodiment;
Fig. 4 is the flow diagram that the present invention prevents third party's desktop application self-start method second embodiment;
Fig. 5 is the flow diagram that the present invention prevents third party's desktop application self-start method 3rd embodiment.
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.
In the embodiment of the present invention, third party's desktop application self-start method is prevented to be applied to mobile terminal, the terminal It can implement in a variety of manners.For example, mobile terminal involved in the present invention may include such as mobile phone, tablet computer, pen Remember the mobile terminals such as this computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA).
It will be illustrated by taking tablet computer 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 other types of mobile whole End.
Referring to Fig. 1, the hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention, the 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, storage The components such as device 109, processor 110 and power supply 111.It will be understood by those skilled in the art that terminal structure shown in Fig. 1 The restriction to mobile terminal is not constituted, mobile terminal may include components more more or fewer than diagram, or combine certain Component or different component layouts.
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 terminal 100 executes can also be provided (for example, call signal receives sound, message connects Quiet down 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 terminal 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 terminal, 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 generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 107 may include touch panel 1071 and its His input equipment 1072.Touch panel 1071, also referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user is using finger, stylus any suitable object or attachment on touch panel 1071 or near touch panel 1071 Operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detecting apparatus With two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring Signal transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is converted At contact coordinate, then processor 110 is given, and order that processor 110 is sent can be received and executed.Furthermore, it is possible to adopt Touch panel 1071 is realized with 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 to main screen page display terminal whole Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles 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.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 109 of computer storage medium Believe module, Subscriber Interface Module SIM and prevent third party's desktop application self-triggered program, processor 110 can be used for calling storage What is stored in device 109 prevents third party's desktop application self-triggered program, and executes following steps:
When listening to home key events, detect wait notify in applying with the presence or absence of third party's desktop application;
If wait notify that there are third party's desktop applications in applying, and the home event is notified to non-in applying wait notify The other application of third party's desktop application, for display system desktop.
Further, processor 110 can be used for calling what is stored in memory 109 to prevent third party's desktop application from opening certainly Dynamic program, also execution following steps:
It detects wait notify in applying with the presence or absence of the desktop application for carrying desktop application mark;
If wait notify in applying exist carry desktop application mark desktop application, detect the desktop application whether be System application;
If the desktop application is not system application, it is determined that wait notify that the desktop application in applying is third square table Face application.
Further, processor 110 can be used for calling what is stored in memory 109 to prevent third party's desktop application from opening certainly Dynamic program, also execution following steps:
Obtain the category information of the desktop application;
Detect whether the category information is home;
If the category information is home, it is determined that the desktop application is system application;
If the category information is not home, it is determined that the desktop application is not system application.
Further, processor 110 can be used for calling what is stored in memory 109 to prevent third party's desktop application from opening certainly Dynamic program, also execution following steps:
When receiving the getTopActivity interface call request that third party's desktop application is sent, null is returned As a result.
Further, processor 110 can be used for calling what is stored in memory 109 to prevent third party's desktop application from opening certainly Dynamic program, also execution following steps:
When receiving the getTopActivity interface call request that third party's desktop application is sent, described in detection Third party call the desktop application last time getTopActivity interface time and current time time difference it is whether big In preset duration;
If third party's desktop application last time calls time and the current time of the getTopActivity interface Time difference be not more than preset duration, then return to null result.
Further, processor 110 can be used for calling what is stored in memory 109 to prevent third party's desktop application from opening certainly Dynamic program, also execution following steps:
During the system desktop is shown, monitors Activtiy and start event;
When listening to Activtiy starting event, whether the corresponding identification information of the Activtiy starting event is detected For the identification information of third party's desktop application;
If the Activtiy starts the identification information that the corresponding identification information of event is third party's desktop application, Stop starting the corresponding Activtiy of the Activtiy starting event.
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.
Referring to Fig. 3, Fig. 3 is that the present invention prevents the process of third party's desktop application self-start method first embodiment from illustrating Figure.
In one embodiment, prevent third party's desktop application self-start method from including:
Step S10 is detected when listening to home key events wait notify in applying with the presence or absence of third party's desktop application;
In view of in the prior art, there are the modes that some third party's desktop applications seize system desktop are as follows: when system is supervised It hears home key events, when needing to broadcast the event to related application, which will be notified to give the third party Desktop application, when third party's desktop application receives home key events notice, if detecting, current desktop is not its own Desktop is carried out self-triggered program, so that itself desktop be called.
In the present embodiment, home key events are listened to, that is, when detecting that user clicks the operation of home key, terminal picture will Jump to desktop.At this time, it may be necessary to notify the home event to related application.In order to avoid notifying the home event to taking The third party's desktop application for obtaining acquisition home key broadcast permission (avoids third party's desktop application from receiving the broadcast of home key When, self-triggered program is executed, thus the case where itself desktop is called), need to detect wait notify in applying whether There are third party's desktop applications.
In the present embodiment, after some application obtains home key broadcast permission, system will do it record.For example, according to current Record, obtain home key broadcast permission application include: using 1, using 2, using 3, using 4, using 5, using 6, using 7, Then detect using 1, using 2, using 3, using 4, using 5, using whether there is third party's desktop application in 6, application 7.
It is described to detect wait notify that the step of whether there is third party's desktop application in applying includes: in one alternative embodiment
It detects wait notify in applying with the presence or absence of the desktop application for carrying desktop application mark;
In the present embodiment, if an application is desktop application, desktop application mark will be carried in attribute information.Cause This, detect first wait notify using (such as using 1, using 2, using 3, using 4, using 5, using 6, using 7) in whether deposit In the desktop application for carrying desktop application mark.
If wait notify in applying exist carry desktop application mark desktop application, detect the desktop application whether be System application;
In the present embodiment, if wait notify to identify using 3 in applying and using desktop application is carried in 7 attribute information, It is then desktop application using 3 and application 7, therefore, further whether detection is system application using 3 and application 7.
In the present embodiment, whether the detection desktop application is that the step of system is applied includes:
Obtain the category information of the desktop application;Detect whether the category information is home;If described Category information is home, it is determined that the desktop application is system application;If the category information is not home, Determining the desktop application not is system application.
In the present embodiment, if an application is system application, category information is home.Therefore, it obtains and answers first With 3 and application 7 category information, then further detection using 3 and application 7 category information whether be home.It is easily understood that remaining one is just third square table using that must have one in 3 and application 7 for system desktop application Face application.It is system desktop application using 7 if the category information using 7 is home;Using 3 category information It is not home, then is third party's desktop application using 3.
If the desktop application is not system application, it is determined that wait notify that the desktop application in applying is third square table Face application.
In the present embodiment, if detecting, using 3 category information be not home, that is, determines and do not answer using 3 for system With, and because carrying desktop application mark in the attribute information of application 3, i.e., it is desktop application using 3, therefore, in summary believes Breath determines that using 3 be third party's desktop application.
Step S20, if wait notify that there are third party's desktop applications in applying, and the home event is notified to wait notify The other application of non-third party's desktop application in, for display system desktop.
In the present embodiment, if wait notify using (including application 1, using 2, using 3, using 4, using 5, using 6, application 7) application 3 is third party's desktop application in, if notifying home event to needing to be notified to apply, is receiving this using 3 When home key events notify, if detecting current desktop not is the desktop of its own, self-triggered program is carried out, thus will be certainly Body desktop calls.In order to avoid such case generation, detecting wait notify that applying 3 in applying is third party's desktop application When, home event is not notified just not knowing the generation of home event using 3 (third party's desktop applications) to using 3, thus Self-triggered program is not carried out, home event is notified to wait notify the other application of non-third party's desktop application in applying (to answer With 1, using 2, using 4, using 5, using 6, using 7), so as to the normal display of system desktop.
In the present embodiment, when listening to home key events, detect wait notify to answer in applying with the presence or absence of third party's desktop With;If wait notify that there are third party's desktop applications in applying, and the home event is notified to wait notify non-third in applying The other application of square desktop application, for display system desktop.Through this embodiment, stop carrying out third party's desktop application Home key events notice destroys third party's desktop application and is notified to execute the processing stream of self-triggered program according to home key events Journey avoids third party's desktop application and illegally changes mobile terminal desktop.
Referring to Fig. 4, Fig. 4 is that the present invention prevents the process of third party's desktop application self-start method second embodiment from illustrating Figure.
In the present embodiment, after step S20, further includes:
Step S30, when receiving the getTopActivity interface call request that third party's desktop application is sent, Return to null result.
In the prior art, third party's desktop application seizes the mode one of system desktop are as follows: when system listens to home key thing Part will notify the home key events to give third party's desktop application, third when needing to broadcast the event to related application When square desktop application receives home key events notice, if detecting current desktop not is the desktop of its own, it is carried out certainly Startup program, so that itself desktop be called.In addition to mode one, third party's desktop application seizes the mode two of system desktop Are as follows: frequent calling system getTopActivity interface is currently at whether the application of front end operation is itself to know Using if it is not, self-triggered program is then executed, so that itself desktop be called.
In the present embodiment, in order to avoid third party's desktop application two carries out self-starting through the above way, when receiving the When the getTopActivity interface call request that tripartite's desktop application is sent, null result is returned.Receive some application When the getTopActivity interface call request of transmission, further judge whether the application is third party's desktop application.Sentence Break and whether carry desktop application mark in the attribute information of the application, and whether category information is home, if the application Desktop application mark is carried in attribute information, and category information is not home, it is determined that the application is that third party's desktop is answered With.Therefore, the getTopActivity interface call request sent for the application, directly return to null as a result, make this Tripartite's desktop application, which can not obtain, is currently at whether the application of front end operation is itself application, thus can not be in the above described manner Two carry out self-starting.
Further, the present invention prevents in one embodiment of third party's desktop application self-start method, and step S30 includes:
When receiving the getTopActivity interface call request that third party's desktop application is sent, described in detection Third party call the desktop application last time getTopActivity interface time and current time time difference it is whether big In preset duration;
If third party's desktop application last time calls time and the current time of the getTopActivity interface Time difference be not more than preset duration, then return to null result.
In view of third party's desktop application of some good wills can call a getTopActivity to connect every one section of duration Mouthful.Only despiteful third party's desktop application frequently (i.e. short time interval) can call getTopActivity interface, thus logical It crosses mode two and completes self-starting.In the present embodiment, when the getTopActivity interface call request for receiving certain application transmission When, if detecting, the application is third party's desktop application, further obtains the last calling getTopActivity of the application The time t1 of interface, and calculate the last time t1 for calling getTopActivity interface of the application and answered with this is currently received With the time difference T of the time t2 of the getTopActivity interface call request of transmission, then compare whether time difference T is greater than Preset duration then assert that third party's desktop application is good will, then feeds back corresponding information to the third if more than preset duration Square desktop application;If time difference T is not more than preset duration, assert that third party's desktop application is frequently being called GetTopActivity interface assert that third party's desktop application is third party's desktop application of malice, therefore, returns to null As a result, third party's desktop application, which can not be obtained, is currently at whether the application of front end operation is itself application, thus Two it can not carry out self-starting in the above described manner.
Referring to Fig. 5, Fig. 5 is that the present invention prevents the process of third party's desktop application self-start method 3rd embodiment from illustrating Figure.
In the present embodiment, after step S20, further includes:
Step S40 monitors Activtiy and starts event during the system desktop is shown;
Step S50 detects the corresponding mark of the Activtiy starting event when listening to Activtiy starting event Information whether be third party's desktop application identification information;
Step S60, if the corresponding identification information of Activtiy starting event is the mark of third party's desktop application Know information, then stops starting the corresponding Activtiy of the Activtiy starting event.
Third party's desktop application is realized outside self-starting except through aforesaid way one, mode two, can also pass through following sides Formula realizes self-starting: when detecting that system desktop is in front end operation, executing self-triggered program.
In the present embodiment, after step S20, system desktop is being shown, third party's desktop application can detect at this time System desktop is in front end operation, will execute self-triggered program.Therefore, it during system desktop is shown, monitors Activity starts event, and when listening to Activtiy starting event, it is corresponding further to detect Activtiy starting event Identification information whether be third party's desktop application identification information;If it is that Activtiy, which starts the corresponding identification information of event, The identification information of tripartite's desktop application then stops starting the corresponding Activtiy of the Activtiy starting event, to avoid Third party desktop application three executes self-triggered program in the above described manner.Specifically, can be in framework level StartActivity method work judges that if it find that the application of starting Activtiy is desktop application, and its category is non- Home then stops starting the Activtiy.
In addition, the embodiment of the present invention also proposes a kind of storage medium, being stored on the storage medium prevents third square table Self-triggered program is applied in face, and described realize when third party's desktop application self-triggered program being prevented to be executed by processor as above prevents the The step of tripartite's desktop application self-start method each embodiment.
Storage medium, that is, computer readable storage medium of the present invention, the specific embodiment of storage medium of the present invention are prevented with above-mentioned Only each embodiment of third party's desktop application self-start method is essentially identical, and this will not be repeated here.
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 system 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 system 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 system.
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 one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. one kind prevents third party's desktop application self-start method, which is characterized in that described to prevent third party's desktop application from opening certainly Dynamic method includes:
When listening to home key events, detect wait notify in applying with the presence or absence of third party's desktop application;
If wait notify that there are third party's desktop applications in applying, and the home event is notified to wait notify non-third in applying The other application of square desktop application, for display system desktop.
2. preventing third party's desktop application self-start method as described in claim 1, which is characterized in that described to detect wait notify Include: with the presence or absence of the step of third party's desktop application in
It detects wait notify in applying with the presence or absence of the desktop application for carrying desktop application mark;
If detecting whether the desktop application is system wait notify there is the desktop application for carrying desktop application mark in applying Using;
If the desktop application is not system application, it is determined that wait notify that the desktop application in applying is that third party's desktop is answered With.
3. preventing third party's desktop application self-start method as claimed in claim 2, which is characterized in that the detection table Whether face application is that the step of system is applied includes:
Obtain the category information of the desktop application;
Detect whether the category information is home;
If the category information is home, it is determined that the desktop application is system application;
If the category information is not home, it is determined that the desktop application is not system application.
4. preventing third party's desktop application self-start method as described in claim 1, which is characterized in that if described wait notify There are third party's desktop applications in, then notify the home event to wait notify non-third party's desktop application in applying Other application, after the step of display system desktop, further includes:
When receiving the getTopActivity interface call request that third party's desktop application is sent, null knot is returned Fruit.
5. preventing third party's desktop application self-start method as claimed in claim 4, which is characterized in that described to receive institute State third party's desktop application transmission getTopActivity interface call request when, return null result the step of include:
When receiving the getTopActivity interface call request that third party's desktop application is sent, the third is detected It is pre- whether the square desktop application last time calls the time of the getTopActivity interface and the time difference of current time to be greater than If duration;
If third party's desktop application last time call the getTopActivity interface time and current time when Between difference be not more than preset duration, then return to null result.
6. preventing third party's desktop application self-start method as described in claim 1, which is characterized in that if described wait notify There are third party's desktop applications in, then notify the home event to wait notify non-third party's desktop application in applying Other application, after the step of display system desktop, further includes:
During the system desktop is shown, monitors Activtiy and start event;
When listening to Activtiy starting event, detect whether the corresponding identification information of the Activtiy starting event is institute State the identification information of third party's desktop application;
If the Activtiy starts the identification information that the corresponding identification information of event is third party's desktop application, stop Start the corresponding Activtiy of the Activtiy starting event.
7. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage On device and what can be run on the processor prevents third party's desktop application self-triggered program, described to prevent third party's desktop from answering Following steps are realized when being executed with self-triggered program by the processor:
When listening to home key events, detect wait notify in applying with the presence or absence of third party's desktop application;
If wait notify that there are third party's desktop applications in applying, and the home event is notified to wait notify non-third in applying The other application of square desktop application, for display system desktop.
8. mobile terminal as claimed in claim 7, which is characterized in that described to prevent third party's desktop application self-triggered program quilt The processor also realizes following steps when executing:
It detects wait notify in applying with the presence or absence of the desktop application for carrying desktop application mark;
If detecting whether the desktop application is system wait notify there is the desktop application for carrying desktop application mark in applying Using;
If the desktop application is not system application, it is determined that wait notify that the desktop application in applying is that third party's desktop is answered With.
9. mobile terminal as claimed in claim 7, which is characterized in that described to prevent third party's desktop application self-triggered program quilt Also realizing when the processor executes prevents third party's desktop application self-starting side as described in any one of claim 3 to 6 The step of method.
10. a kind of storage medium, which is characterized in that being stored on the storage medium prevents third party's desktop application self-starting journey Sequence, it is described to realize such as any one of claims 1 to 6 institute when third party's desktop application self-triggered program being prevented to be executed by processor State the step of preventing third party's desktop application self-start method.
CN201910464943.2A 2019-05-30 2019-05-30 Method for preventing third-party desktop application from self-starting, mobile terminal and storage medium Active CN110213443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910464943.2A CN110213443B (en) 2019-05-30 2019-05-30 Method for preventing third-party desktop application from self-starting, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910464943.2A CN110213443B (en) 2019-05-30 2019-05-30 Method for preventing third-party desktop application from self-starting, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110213443A true CN110213443A (en) 2019-09-06
CN110213443B CN110213443B (en) 2021-11-02

Family

ID=67789735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910464943.2A Active CN110213443B (en) 2019-05-30 2019-05-30 Method for preventing third-party desktop application from self-starting, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110213443B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7941806B2 (en) * 2007-03-01 2011-05-10 International Business Machines Corporation Method, system and program product for optimizing communication and processing functions between disparate applications
CN102857641A (en) * 2012-09-19 2013-01-02 东莞宇龙通信科技有限公司 Method and system for preventing anti-theft mode from being broken by third-party desktop
WO2014032611A1 (en) * 2012-08-31 2014-03-06 腾讯科技(深圳)有限公司 Desktop management method and device
CN104036188A (en) * 2014-05-08 2014-09-10 北京金山安全软件有限公司 Android malicious program detection method, device and equipment
CN104333814A (en) * 2014-10-23 2015-02-04 乐视致新电子科技(天津)有限公司 Smart television desktop switching method and smart television
CN105335654A (en) * 2014-06-27 2016-02-17 北京金山安全软件有限公司 Android malicious program detection and processing method, device and equipment
CN105912366A (en) * 2016-04-14 2016-08-31 广州市久邦数码科技有限公司 Implementation method for plug-in type development of desktop application
CN106341732A (en) * 2016-09-27 2017-01-18 Tcl集团股份有限公司 Management method of desktop starter and intelligent television set
CN106936994A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of broadcast recipients, device and mobile terminal
CN106951333A (en) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 A kind of broadcast controlling method, device and mobile terminal
CN108197462A (en) * 2016-12-08 2018-06-22 武汉安天信息技术有限责任公司 It is extorted under a kind of Android system using detecting system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7941806B2 (en) * 2007-03-01 2011-05-10 International Business Machines Corporation Method, system and program product for optimizing communication and processing functions between disparate applications
WO2014032611A1 (en) * 2012-08-31 2014-03-06 腾讯科技(深圳)有限公司 Desktop management method and device
CN102857641A (en) * 2012-09-19 2013-01-02 东莞宇龙通信科技有限公司 Method and system for preventing anti-theft mode from being broken by third-party desktop
CN104036188A (en) * 2014-05-08 2014-09-10 北京金山安全软件有限公司 Android malicious program detection method, device and equipment
CN105335654A (en) * 2014-06-27 2016-02-17 北京金山安全软件有限公司 Android malicious program detection and processing method, device and equipment
CN104333814A (en) * 2014-10-23 2015-02-04 乐视致新电子科技(天津)有限公司 Smart television desktop switching method and smart television
CN105912366A (en) * 2016-04-14 2016-08-31 广州市久邦数码科技有限公司 Implementation method for plug-in type development of desktop application
CN106341732A (en) * 2016-09-27 2017-01-18 Tcl集团股份有限公司 Management method of desktop starter and intelligent television set
CN108197462A (en) * 2016-12-08 2018-06-22 武汉安天信息技术有限责任公司 It is extorted under a kind of Android system using detecting system and method
CN106936994A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of broadcast recipients, device and mobile terminal
CN106951333A (en) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 A kind of broadcast controlling method, device and mobile terminal

Also Published As

Publication number Publication date
CN110213443B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN110351704A (en) A kind of paging control method, dual-card dual-standby terminal and computer readable storage medium
CN108391025A (en) A kind of network access management method, mobile terminal and computer readable storage medium
CN108052256A (en) Message display method, mobile terminal and computer readable storage medium
CN109246315A (en) Call processing method, mobile terminal, the readable storage medium storing program for executing of game on line process
CN109379735A (en) ESIM card operating method, mobile terminal and eSIM card apparatus
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109525699A (en) Good friend's adding method, device, mobile terminal and readable storage medium storing program for executing
CN109151174A (en) Message display method, wearable device and computer readable storage medium
CN109151216A (en) Using starting method, mobile terminal, server and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108156325A (en) A kind of double-sided screen Incoming-call control method, equipment and computer readable storage medium
CN110113779A (en) Test method, system, test platform, mobile terminal and the medium of eSIM card
CN110300420A (en) A kind of quick method for searching network, mobile terminal and storage medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN109101301A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium
CN109889646A (en) A kind of call processing method, mobile terminal and storage medium
CN109818967A (en) A kind of notification method, server, mobile terminal and computer readable storage medium
CN109948368A (en) A kind of privacy authority control method, equipment and computer readable storage medium
CN109089258A (en) ESIM card operating method, mobile terminal and eSIM card apparatus
CN109462829A (en) A kind of call transfer method, equipment and computer readable storage medium
CN108833686A (en) Processing method for paging message, terminal device, network side equipment and storage medium
CN108920209A (en) Desktop display method, device and computer readable storage medium
CN110213443A (en) Prevent third party's desktop application self-start method, mobile terminal and storage medium
CN109688257A (en) A kind of communication information display methods, mobile terminal 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
GR01 Patent grant
GR01 Patent grant