CN105955789B - A kind of application program discharging method, device and equipment - Google Patents

A kind of application program discharging method, device and equipment Download PDF

Info

Publication number
CN105955789B
CN105955789B CN201610334272.4A CN201610334272A CN105955789B CN 105955789 B CN105955789 B CN 105955789B CN 201610334272 A CN201610334272 A CN 201610334272A CN 105955789 B CN105955789 B CN 105955789B
Authority
CN
China
Prior art keywords
application program
mark
module
application
unloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610334272.4A
Other languages
Chinese (zh)
Other versions
CN105955789A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610334272.4A priority Critical patent/CN105955789B/en
Publication of CN105955789A publication Critical patent/CN105955789A/en
Application granted granted Critical
Publication of CN105955789B publication Critical patent/CN105955789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Abstract

The embodiment of the invention discloses application program discharging methods, comprising: the unloading operation received for destination application instructs;Preconfigured the first processing function for unloading application program is called according to unloading operation instruction;When judging that needing to close the corresponding device manager tab opened of destination application switchs by running the first processing function, the preconfigured second processing function for pass hull closure manager option switches is called in triggering;After through operation second processing function pass hull closure manager option switches, the unloading to destination application is completed by the first processing function.The invention also discloses application program discharge mechanisms, the technical issues of conventional unloading manner occurred in the prior art does not unload application program can solve using the present invention, improve the safety of mobile electronic device, it can be realized and quickly and easily unload application program, can satisfy the demand that user easily intelligently unloads application program.

Description

A kind of application program discharging method, device and equipment
Technical field
The present invention relates to computer fields, especially application program discharging method, application program discharge mechanism and mobile electricity Sub- equipment.
Background technique
With the development of electronics technology and development of Mobile Internet technology, the function of electronic equipment (especially smart phone) is got over Come more powerful, as long as user installs various application programs according to the demand of itself on an electronic device, various things can be completed Business.
In the prior art, in the various third-party applications of user installation, often with the presence of some third-party applications Indecent behavior is included in backstage and under the table carries out various behaviors influential on user, and consumes the flow and equipment of user Electricity.Moreover, these third-party applications have a kind of more special mode often to prevent user from unloading them, exactly pass through Guidance user inadvertently has registered the equipment manager information of third-party application, then when third-party application has registered system After equipment manager, even if user wants to unload these applications some day, by conventional unloading manner will not unload these Using being unfavorable for the operating experience of user so that user be caused to be utilized without knowing it by these third-party applications With safety.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of application program discharging method, application program Discharge mechanism and mobile electronic device can solve the conventional unloading manner occurred in the prior art and do not unload application program The technical issues of, and can quickly and easily unload application program.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention discloses a kind of application program discharging method, Include:
The unloading operation received for destination application instructs;
Preconfigured the first processing function for unloading application program is called according to unloading operation instruction;
Judge to need to close the corresponding equipment opened of the destination application by running the first processing function When manager option switches, triggering is called preconfigured for closing the second processing letter of the device manager tab switch Number;
After by running the second processing function closing device manager tab switch, at described first Manage unloading of the function completion to the destination application.
With reference to first aspect, in the first possible implementation, the first processing function includes that system assures reason Unloading application function deletePackageX in service;It is described that preconfigured be used for is called according to unloading operation instruction Before the first processing function for unloading application program, further includes:
Setting closes the corresponding equipment management opened of application program for triggering in the deletePackageX function The subfunction of device option switches;Wherein,
The subfunction is used to judge whether to need to close the corresponding equipment management option switches opened of application program It closes, and when the judgment result is yes, triggering is called preconfigured for closing the second of the device manager tab switch Handle function.
The possible implementation of with reference to first aspect the first, in the second possible implementation, the triggering It calls preconfigured for closing before the second processing function of the device manager tab switch, further includes:
By running the subfunction, the mark of the destination application is obtained;
Judge that the destination application identifies whether to be present in preset first list mark, or described in judgement Destination application identify whether there is no with preset second list mark in;
When the judgment result is yes, then judge to need to close the corresponding equipment manager opened of the destination application Option switches.
The possible implementation of second with reference to first aspect, in the third possible implementation, the judgement The destination application identifies whether to be present in preset first list mark or judge the destination application Identify whether there is no with preset second list mark in front of, further includes:
The first list mark or second list mark are generated by security module;Or
The first list mark or second list mark are generated according to the selection of the list selection instruction of input;Or
Receive the first list mark or second list mark of cloud server push.
The possible implementation of second with reference to first aspect, in the fourth possible implementation, described first List Identification or second list mark are stored by way of following at least one:
File mode storage;
Database mode storage;
Cloud server mode stores.
With reference to first aspect, in a fifth possible implementation, further includes:
The control instruction for controlling whether to start the application program discharging method is received, and according to the control instruction The application program discharging method is closed in control starting.
Perhaps second of the first possible implementation of first aspect or first aspect with reference to first aspect The 4th kind of possible implementation perhaps the third possible implementation of first aspect or first aspect is possible 5th kind of possible implementation of implementation or first aspect, in a sixth possible implementation, the triggering It calls preconfigured for closing before the second processing function of the device manager tab switch, further includes:
Management class of the information preservation that the corresponding device manager tab of application program is switched in equipment strategy manager In;
It is described to include: by running the second processing function and closing the device manager tab and switch
By the cancellation equipment manager permission function in the management class of the equipment strategy manager, the target is closed The corresponding device manager tab switch opened of application program.
Second aspect of the embodiment of the present invention discloses a kind of application program discharge mechanism, comprising:
Command reception module, for receiving the unloading operation instruction for being directed to destination application;
First calling module, it is preconfigured for unloading application program for being called according to unloading operation instruction First processing function;
Calling module is triggered, for judging to need to close the target application journey by running the first processing function When the device manager tab switch that ordered pair should be opened, triggering is called preconfigured for closing the device manager tab The second processing function of switch;
Unload module is used for after by running the second processing function closing device manager tab switch, The unloading to the destination application is completed by the first processing function.
In conjunction with second aspect, in the first possible implementation, the first processing function includes that system assures reason Unloading application function deletePackageX in service;Described device further include:
Subfunction setup module is pre-configured with for being called in first calling module according to unloading operation instruction For unload application program first processing function before, in the deletePackageX function setting for trigger close Close the subfunction of the corresponding device manager tab switch opened of application program;Wherein,
The subfunction is used to judge whether to need to close the corresponding equipment management option switches opened of application program It closes, and when the judgment result is yes, is called by triggering calling module triggering preconfigured for closing the equipment The second processing function of manager option switches.
In conjunction with the first possible implementation of second aspect, in the second possible implementation, described device Further include:
Identifier acquisition module, it is preconfigured for closing the equipment for being called in triggering calling module triggering Before the second processing function of manager option switches, by running the subfunction, the mark of the destination application is obtained Know;
Judgment module is identified, identifies whether to be present in preset first list mark for judge the destination application In knowledge, or judge the destination application identify whether there is no with preset second list mark in;
When the judgment result is yes, then judge to need to close the corresponding equipment manager opened of the destination application Option switches.
In conjunction with second of possible implementation of second aspect, in the third possible implementation, described device Further include:
Identifier generation module, for judging that the destination application identifies whether to exist in the mark judgment module In preset first list mark in or judge the destination application identify whether be not present and preset secondary series Before in table mark, the first list mark is generated by security module or the second list identifies;Or according to input The selection of list selection instruction generate first list mark or second list mark;Or it receives cloud server and pushes away The first list mark or second list mark sent.
In conjunction with second of possible implementation of second aspect, in the fourth possible implementation, described first List Identification or second list mark are stored by way of following at least one:
File mode storage;
Database mode storage;
Cloud server mode stores.
In conjunction with second aspect, in a fifth possible implementation, further includes:
Start control module, for receiving the control instruction for controlling whether to start the application program discharging method, And starting is controlled according to the control instruction or closes the application program discharging method.
In conjunction with second of second aspect perhaps the first possible implementation of second aspect or second aspect The 4th kind of possible implementation perhaps the third possible implementation of second aspect or second aspect is possible 5th kind of possible implementation of implementation or second aspect, in a fifth possible implementation, described device Further include:
Information preservation module, it is preconfigured for closing the equipment for being called in triggering calling module triggering Before the second processing function of manager option switches, by the information preservation of the corresponding device manager tab switch of application program In the management class of equipment strategy manager;
Closedown module needs to close the corresponding opening of the destination application for judging in the triggering calling module Device manager tab switch after, pass through the cancellation equipment manager permission letter in the management class of the equipment strategy manager Number closes the corresponding device manager tab switch opened of the destination application.
The third aspect of the embodiment of the present invention discloses a kind of mobile electronic device, including processor, memory and input Device and output device;Wherein, the processor is executed by executing the application program Uninstaller stored in the memory It is above-mentioned in a first aspect, second of possible reality of the first possible implementation of first aspect or first aspect Existing mode perhaps the third possible implementation of first aspect or the 4th kind of possible implementation of first aspect, Or the 5th kind of possible implementation of first aspect, application program discharging method in a sixth possible implementation Overall Steps.
Fourth aspect of the embodiment of the present invention discloses a kind of computer storage medium, and the computer storage medium is stored with Program, described program include the first possible realization side of first aspect of the embodiment of the present invention or first aspect when executing Formula perhaps first aspect second of possible implementation perhaps the third possible implementation of first aspect or 5th kind of possible implementation or first party of the 4th kind of possible implementation of first aspect perhaps first aspect The Overall Steps of application program discharging method in the 6th kind of possible implementation in face.
Implement the embodiment of the present invention, by preconfigured the first processing function for unloading application program and is used for The second processing function of pass hull closure manager option switches is being judged to need to close the corresponding opening of the destination application Device manager tab switch when, by run the second processing function close destination application open equipment manager Option switches, and then the unloading to the destination application is completed, it can solve the conventional unloading manner occurred in the prior art The technical issues of not unloading application program improves the safety of mobile electronic device, and user is not necessarily to set by entering The equipment manager interface in application is set, then operates the equipment manager choosing that the destination application closed and need to unload is opened , the tedious steps of unloading operation are finally executed again, can be realized and quickly and easily unload application program, and it is light to can satisfy user Pine intelligently unloads the demand of application program.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of application program discharging method provided in an embodiment of the present invention;
Fig. 2 is the method flow of another embodiment of application program discharging method provided by the invention;
Fig. 3 is the structural schematic diagram of application program discharge mechanism provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another embodiment of application program discharge mechanism provided by the invention;
Fig. 5 is the structural schematic diagram of another embodiment of application program discharge mechanism provided by the invention;
Fig. 6 is the structural schematic diagram of another embodiment of application program discharge mechanism provided by the invention;
Fig. 7 is the structural schematic diagram of another embodiment of application program discharge mechanism provided by the invention;
Fig. 8 is the structural schematic diagram of another embodiment of application program discharge mechanism provided by the invention;
Fig. 9 is the structural schematic diagram of mobile electronic device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The flow diagram of application program discharging method provided in an embodiment of the present invention as shown in Figure 1, including walk as follows It is rapid:
Step S100: the unloading operation received for destination application instructs;
Specifically, when user wants to unload some application program, (application program is that the target in the embodiment of the present invention is answered With program) when, unloading operation instruction can be inputted to mobile electronic device, be somebody's turn to do then the mobile electronic device receives to be directed to The unloading operation of destination application instructs.
It should be noted that the unloading operation instruction in the embodiment of the present invention may include the long-pressing destination application Icon, and be dragged in and delete in case;Or enter application program management interface, then choose the destination application to be deleted Operation;Or voice input instruction unloads the information etc. of the destination application, the embodiment of the present invention is with no restriction.
Step S102: preconfigured the first processing for unloading application program is called according to unloading operation instruction Function;
Specifically, technological development personnel or other users can be pre-configured with the first processing function, the first processing function For executing the operation of unloading application program, need to close the corresponding equipment opened of the destination application including first judging whether Manager option switches, and the final processing for executing the unloading application program.
It should be noted that the equipment manager in the embodiment of the present invention is a registration information of system, application program More more advanced permissions can be obtained by opening the equipment manager.The first processing function in the embodiment of the present invention can Think that (be equivalent to the function is increased one based on operating system framework to the completely new function as defined in operating system that meets New function), or to the function that the existing function of operating system is modified, the embodiment of the present invention is not limited System, as long as meeting the embodiment of the present invention first handles the protection model that processing function described in function both falls within the embodiment of the present invention It encloses.
Further, such as the first processing function of the embodiment of the present invention may include system packet management service Unloading application function deletePackageX in PackageManagerService, it is pre- being called according to unloading operation instruction It can also include: in the deletePackageX function before the first processing function for unloading application program first configured The subfunction of the corresponding device manager tab switch opened of application program is closed in middle setting for triggering;The subfunction is for sentencing It is disconnected whether to need to close the corresponding equipment management option switches opened of application program, and when the judgment result is yes, touching Hair, which executes, calls the preconfigured second processing function for being used to close the device manager tab switch in step S104 Step.
Step S104: judge that needing to close the destination application correspondence beats by running the first processing function When the device manager tab switch opened, triggering is called preconfigured for closing the of device manager tab switch Two processing functions;
Specifically, technological development personnel or other users can be pre-configured with second processing function, the second processing function For closing device manager tab switch;Judge to need to close the target application when by running the first processing function When the corresponding device manager tab opened of program switchs, which, which triggers, calls the second processing function, and Run the second processing function.Second processing function in the embodiment of the present invention can meet operating system rule for completely new Fixed function (being equivalent to the function is based on the increased new function of operating system framework), or to operating system The function modified of existing function, the embodiment of the present invention with no restriction, as long as meeting at the embodiment of the present invention second Processing function described in reason function both falls within the protection scope of the embodiment of the present invention.
Step S106: after by running the second processing function closing device manager tab switch, pass through The first processing function completes the unloading to the destination application.
Specifically, after the device manager tab switch which registers the destination application is closed, So the first processing function can smoothly unload the destination application.
Further, the method stream of another embodiment of application program discharging method provided by the invention as shown in Figure 2 Journey may comprise steps of:
Step S200: the unloading operation received for destination application instructs;
Step S202: it is called according to unloading operation instruction preconfigured for unloading application program DeletePackageX function;
Specifically, step S200 and step S202 can be with reference to the step S100 and step S102 in above-mentioned Fig. 1 embodiment Description, which is not described herein again.
Step S204: it is beaten by what is be arranged in the deletePackageX function for triggering closing application program correspondence The subfunction for the device manager tab switch opened, obtains the mark of the destination application;
Specifically, the subfunction of operation of being triggered obtains the mark of the destination application first, which can wrap The mark that can uniquely indicate the destination application such as include but be not limited to the title of destination application, version number.
Step S206: judging that the destination application identifies whether to be present in preset first list mark, or Person judge the destination application identify whether there is no with preset second list mark in;
Specifically, the embodiment of the present invention can be by being arranged a set of judgment mechanism, such as setting first list identifies or the Two List Identifications, first list mark can be understood as blacklist, and second list mark can be understood as white list, if sentencing The mark of the disconnected destination application out (is equivalent to when being present in preset first list mark and is present in blacklist), or If person judges (to be equivalent to and be not present in when the mark of the destination application is not present with the preset second list mark White list), show to default pass hull closure manager option switches, that is to say, that judge to need to close the destination application The corresponding device manager tab switch opened, executes step S208;Otherwise, judge not needing to close the target application journey The device manager tab switch that ordered pair should be opened, executes step S212.
It should be noted that the embodiment of the present invention can generate first list mark or the secondary series by security module Table mark;Or first list mark or second list mark are generated according to the list selection instruction selection of user's input; Or receive the first list mark or second list mark of cloud server push.First list mark or this Two List Identifications can be updated or modify according to user's self-demand.Also, first list mark or the secondary series Table mark is stored by way of following at least one:
File mode storage;
Database mode storage;
Cloud server mode stores.
Step S208: it by the cancellation equipment manager permission function in the management class of the equipment strategy manager, closes Close the corresponding device manager tab switch opened of the destination application;
It specifically, may include switching the corresponding device manager tab of application program before executing step S208 Information preservation is in the management class of equipment strategy manager DevicePolicyManager;So call preconfigured be used for The second processing function for closing the device manager tab switch can be specifically by the management of the equipment strategy manager Cancellation equipment manager permission RemoveActiveAdmin function in class closes setting for the corresponding opening of the destination application Standby manager option switches;That is the second processing function in the embodiment of the present invention can be to be somebody's turn to do RemoveActiveAdmin function.
Step S210: it after closing the device manager tab switch, is completed by the deletePackageX function Unloading to the destination application.
Step S212: prompt user's dismount failure.
Specifically, step S212 is not limited to prompt user's dismount failure, can also unload unsuccessful original for prompt user Cause, or prompt user further unload required operating procedure etc..
It should be noted that the destination application in each embodiment of the present invention may include more than two using journey Sequence, i.e. the application program discharging method of the embodiment of the present invention can be unloaded for batch, and specific implementation can be according to above-mentioned Method flow application program is unloaded one by one, can also the execution above method stream parallel to multiple application programs simultaneously Cheng Jinhang unloading.
It should also be noted that, the embodiment of the present invention can also include: to receive for controlling whether to start the application program The control instruction of discharging method, and starting is controlled according to the control instruction or closes the application program discharging method.Namely It says, the application program discharging method of the embodiment of the present invention can be beaten to user's property of can choose by the way that a functional switch is arranged The offloading functions are closed on or off, are conveniently used for neatly managing the mobile electronic device of oneself.
Implement the embodiment of the present invention, by preconfigured the first processing function for unloading application program and is used for The second processing function of pass hull closure manager option switches is being judged to need to close the corresponding opening of the destination application Device manager tab switch when, by run the second processing function close destination application open equipment manager Option switches, and then the unloading to the destination application is completed, it can solve the conventional unloading manner occurred in the prior art The technical issues of not unloading application program improves the safety of mobile electronic device, and user is not necessarily to set by entering The equipment manager interface in application is set, then operates the equipment manager choosing that the destination application closed and need to unload is opened , the tedious steps of unloading operation are finally executed again, can be realized and quickly and easily unload application program, and it is light to can satisfy user Pine intelligently unloads the demand of application program.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention also it is corresponding provide it is a kind of using journey Sequence discharge mechanism, the structural schematic diagram of application program discharge mechanism provided in an embodiment of the present invention as shown in Figure 3, application program Discharge mechanism 30 may include: command reception module 300, the first calling module 302, triggering calling module 304 and Unload module 306, wherein
Command reception module 300 is used to receive the unloading operation instruction for destination application;
First calling module 302 is used to be called according to unloading operation instruction preconfigured for unloading application program First processing function;
Triggering calling module 304 is used to judge to need to close the target application by running the first processing function When the corresponding device manager tab opened of program switchs, triggering is called preconfigured for closing the equipment manager choosing The second processing function of item switch;
Unload module 306 is used to close the device manager tab switch by running the second processing function Afterwards, the unloading to the destination application is completed by the first processing function.
Specifically, the first processing function in the embodiment of the present invention includes the unloading application function in system packet management service deletePackageX;The structural representation of another embodiment of application program discharge mechanism provided by the invention as shown in Figure 4 Figure, application program discharge mechanism 30 include command reception module 300, the first calling module 302, triggering calling module 304 and unload It carries outside module 306, can also include subfunction setup module 308, be used in the first calling module 302 according to the unloading operation Before preconfigured the first processing function for unloading application program is called in instruction, in the deletePackageX function The subfunction of the corresponding device manager tab switch opened of application program is closed in middle setting for triggering;Wherein,
The subfunction is used to judge whether to need to close the corresponding equipment management option switches opened of application program It closes, and when the judgment result is yes, is called by the triggering triggering of calling module 304 preconfigured for closing the equipment pipe Manage the second processing function of device option switches.
Further, the structure of another embodiment of application program discharge mechanism provided by the invention as shown in Figure 5 is shown It is intended to, application program discharge mechanism 30 includes command reception module 300, the first calling module 302, triggering calling module 304, unloads It carries outside module 306 and subfunction setup module 308, can also include: identifier acquisition module 3010 and mark judgment module 3012, Wherein
Identifier acquisition module 3010 is used to call in the triggering triggering of calling module 304 preconfigured for closing described set Before the second processing function of standby manager option switches, by running the subfunction, the destination application is obtained Mark;
What mark judgment module 3012 was used to judge the destination application identifies whether to be present in preset first row Table mark in, or judge the destination application identify whether there is no with preset second list identify in;
When the judgment result is yes, then judge to need to close the corresponding equipment manager opened of the destination application Option switches.
Still further, the structure of another embodiment of application program discharge mechanism provided by the invention as shown in Figure 6 Schematic diagram, application program discharge mechanism 30 include command reception module 300, the first calling module 302, triggering calling module 304, Outside Unload module 306, subfunction setup module 308, identifier acquisition module 3010 and mark judgment module 3012, it can also wrap It includes: identifier generation module 3014, wherein
Identifier generation module 3014 is used to judge identifying whether for the destination application in mark judgment module 3012 It is present in front of preset first list mark, the first list mark or the second list mark is generated by security module Know;Or the first list mark or second list mark are generated according to the selection of the list selection instruction of input;Or Receive the first list mark or second list mark of cloud server push.
In the embodiment of the present invention first list mark or second list mark can by way of following at least one into Row storage:
File mode storage;
Database mode storage;
Cloud server mode stores.
Still further, the structure of another embodiment of application program discharge mechanism provided by the invention as shown in Figure 7 Schematic diagram, application program discharge mechanism 30 include command reception module 300, the first calling module 302, triggering calling module 304, Unload module 306, subfunction setup module 308, identifier acquisition module 3010, mark judgment module 3012 and identifier generation module It can also include: starting control module 3016 outside 3016, wherein
Starting control module 3016 is for receiving for controlling whether that the control for starting the application program discharging method refers to It enables, and starting is controlled according to the control instruction or closes the application program discharging method.
Still further, the structure of another embodiment of application program discharge mechanism provided by the invention as shown in Figure 8 Schematic diagram, application program discharge mechanism 30 include command reception module 300, the first calling module 302, triggering calling module 304, Unload module 306, subfunction setup module 308, identifier acquisition module 3010, mark judgment module 3012, identifier generation module 3016 and starting control module 3016 outside, can also include: information preservation module 3018 and closedown module 3020, wherein
Information preservation module 3018 is used to call in the triggering triggering of calling module 304 preconfigured for closing described set Before the second processing function of standby manager option switches, the information of the corresponding device manager tab switch of application program is protected There are in the management class of equipment strategy manager;
Closedown module 3020 is used to judge that needing to close the destination application correspondence beats in triggering calling module 304 After the device manager tab switch opened, pass through the cancellation equipment manager permission in the management class of the equipment strategy manager Function closes the corresponding device manager tab switch opened of the destination application.
Referring to Fig. 9, Fig. 9 is the structural schematic diagram of mobile electronic device provided in an embodiment of the present invention.The mobile electron Equipment 90 can be intelligent mobile terminal (such as mobile phone), and mobile electronic device 90 includes: radio frequency (English: radio Frequency, RF) circuit 901, the memory 902 for being stored with one or more computer programs, input unit 903, output dress Set 904, sensor 905, voicefrequency circuit 906, Wireless Fidelity (English: wireless fidelity, WiFi) module 907 including There are the components such as processor 908 and the power supply 909 of one or more processing cores.It will be understood by those skilled in the art that Fig. 9 Shown in mobile electronic device structure do not constitute the restriction to mobile electronic device, may include than illustrate it is more or less Component, perhaps combine certain components or different component layouts.Wherein:
RF circuit 901 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or more processors 908 is transferred to handle;In addition, the data for being related to uplink are sent to base station.It is logical Often, RF circuit 901 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, user identity Module (English: subscriber identity module, SIM) card, transceiver, coupler, low-noise amplifier (English Text: low noise amplifier, LNA), duplexer etc..In addition, RF circuit 901 can also by wireless communication with network or Other mobile electronic device equipment are communicated.Any communication standard or agreement can be used in the wireless communication, including but not It is limited to global system for mobile communications (English: global system of mobile communication, GSM), general packet Wireless service (English: general packet radio service, GPRS), CDMA (English: code division Multiple access, CDMA), wideband code division multiple access (English: wideband code division multiple Access, WCDMA), long term evolution (English: long term evolution, LTE), Email, short message service (English Text: short messaging service, SMS) etc..
Memory 902 can be used for storing computer program and module, and processor 908 is stored in memory by operation 902 computer program and module, thereby executing various function application and data processing.Memory 902 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be made according to mobile electronic device 90 With data (such as photo, audio data, the video data, acquisition described in the embodiment of the present invention shot created User state information etc.) etc..In addition, memory 902 may include high-speed random access memory, it can also include non-volatile Memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, it stores Device 902 can also include Memory Controller, to provide the access of processor 908 and input unit 903 to memory 902.
Input unit 903 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 903 may include touching Sensitive surfaces 9031 and other input equipments 9032.Touch sensitive surface 9031, also referred to as touch display panel or Trackpad can be received Collecting the touch operation of user on it or nearby, (for example user is being touched using any suitable object or attachment such as finger, stylus Operation on sensitive surfaces 9031 or near touch sensitive surface 9031), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface 9031 may include both touch detecting apparatus and touch controller.Wherein, touch detection fills The touch orientation of detection user is set, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 908, and can receive Order that processor 908 is sent simultaneously is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Multiple types realize touch sensitive surface 9031.In addition to touch sensitive surface 9031, input unit 903 can also include other input equipments 9032.Specifically, other input equipments 9032 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Output device 904 can be used for showing information input by user or be supplied to the information of user and mobile electron is set Standby 90 various graphic user interfaces, these graphic user interfaces can be by figure, text, icon, video and any combination thereof To constitute.Output device 904 may include display panel 9041, and optionally, display panel 9041 can use liquid crystal display (English Text: liquid crystal display, LCD), Organic Light Emitting Diode (English: organic light-emitting Diode, OLED) etc. forms configure.Further, touch sensitive surface 9031 can cover display panel 9041, work as touch sensitive surface After 9031 detect touch operation on it or nearby, processor 908 is sent to determine the type of touch event, is then located It manages device 908 and provides corresponding visual output on display panel 9041 according to the type of touch event.Although touch-sensitive in Fig. 9 Surface 9031 and display panel 9041 are to realize input and input function as two independent components, but in certain implementations In example, touch sensitive surface 9031 and display panel 9041 can be integrated and realize and output and input function.
Mobile electronic device 90 may also include at least one sensor 905, such as range sensor, optical sensor, movement Sensor and other sensors.Specifically, range sensor is for detecting described in the mobile electronic device screen and covering The distance between object of mobile electronic device, optical sensor are used to detect the light letter of the mobile electronic device external environment Number.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, the application that can be used to identify 90 posture of mobile electronic device is (such as horizontal Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for shifting The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor that dynamic electronic equipment 90 can also configure, this Place repeats no more.
Voicefrequency circuit 906, loudspeaker 9061, microphone 9062 can provide the audio between user and mobile electronic device 90 Interface.Electric signal after the audio data received conversion can be transferred to loudspeaker 9061, by loudspeaker by voicefrequency circuit 906 9061 are converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 9062, by audio Circuit 906 is converted to audio data after receiving, then by after the processing of audio data output processor 908, through RF circuit 901 to send It exports to memory 902 to such as another equipment, or by audio data to be further processed.Voicefrequency circuit 906 is also possible to Including earphone jack, to provide the communication of peripheral hardware earphone Yu mobile electronic device 90.
WiFi belongs to short range wireless transmission technology, and mobile electronic device 90 can help user by WiFi module 907 It sends and receive e-mail, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 shows WiFi module 907, but it is understood that, and it is not belonging to must be configured into for mobile electronic device 90, completely It can according to need within the scope of not changing the essence of the invention and omit.
Processor 908 is the control centre of mobile electronic device 90, entirely mobile electric using various interfaces and connection The various pieces of sub- equipment 90, by running or execute the computer program being stored in memory 902 and/or module, and The data being stored in memory 902 are called, the various functions and processing data of mobile electronic device 90 are executed, thus to movement Electronic equipment 90 carries out integral monitoring.Optionally, processor 908 may include one or more processing cores;Preferably, processor 908 can integrate application processor and modem processor, wherein the main processing operation system of application processor, user interface With application program etc., modem processor mainly handles wireless communication.It is understood that above-mentioned modem processor It can not be integrated into processor 908.
Mobile electronic device 90 further includes the power supply 909 (such as battery) powered to all parts, it is preferred that power supply can be with It is logically contiguous by power-supply management system and processor 908, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.Power supply 909 can also include one or more direct currents or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile electronic device 90 can also include camera, bluetooth module etc., and details are not described herein again.Tool In embodiments of the present invention, the output device 904 (or input unit 903) of electronic equipment is touch-screen display to body, mobile electricity Sub- equipment 90 further includes the computer program for having memory 902, processor 908 and one or more, wherein one or more Computer program is stored in memory 902, and processor 908 is used to that memory 902 (nonvolatile memory) to be called to store The program of application program unloading executes following steps.
The unloading operation instruction for destination application is received by input unit 903;
Preconfigured the first processing function for unloading application program is called according to unloading operation instruction;
Judge to need to close the corresponding equipment opened of the destination application by running the first processing function When manager option switches, triggering is called preconfigured for closing the second processing letter of the device manager tab switch Number;
After by running the second processing function closing device manager tab switch, at described first Manage unloading of the function completion to the destination application.
Specifically, the first processing function includes the unloading application function in system packet management service deletePackageX;Processor 908 calls preconfigured for unloading application program according to unloading operation instruction Before first processing function, it can also be performed:
Setting closes the corresponding equipment management opened of application program for triggering in the deletePackageX function The subfunction of device option switches;Wherein,
The subfunction is used to judge whether to need to close the corresponding equipment management option switches opened of application program It closes, and when the judgment result is yes, triggering is called preconfigured for closing the second of the device manager tab switch Handle function.
Specifically, the triggering of processor 908 is called preconfigured for closing the of device manager tab switch Before two processing functions, it can also be performed:
By running the subfunction, the mark of the destination application is obtained;
Judge that the destination application identifies whether to be present in preset first list mark, or described in judgement Destination application identify whether there is no with preset second list mark in;
When the judgment result is yes, then judge to need to close the corresponding equipment manager opened of the destination application Option switches.
Specifically, what processor 908 judged the destination application identifies whether to be present in preset first list mark Before knowledge, it can also be performed:
The first list mark or second list mark are generated by security module;Or
The first list mark or second list mark are generated according to the selection of the list selection instruction of input;Or
Receive the first list mark or second list mark of cloud server push.
Specifically, the first list mark or second list mark are deposited by way of following at least one Storage:
File mode storage;
Database mode storage;
Cloud server mode stores.
Specifically, processor 908 can also be performed:
The control instruction for controlling whether to start the application program discharging method is received by input unit 903, and Starting is controlled according to the control instruction or closes the application program discharging method.
Specifically, the triggering of processor 908 is called preconfigured for closing the of device manager tab switch Before two processing functions, it can also be performed:
Management class of the information preservation that the corresponding device manager tab of application program is switched in equipment strategy manager In;
Processor 908 is specifically included by running the second processing function closing device manager tab switch:
By the cancellation equipment manager permission function in the management class of the equipment strategy manager, the target is closed The corresponding device manager tab switch opened of application program.
It should be noted that the application program discharge mechanism 30 or mobile electronic device 90 in the embodiment of the present invention can be The electronic equipments such as personal computer or mobile intelligent terminal, tablet computer;It will be appreciated that application program discharge mechanism 30 or shifting The function of each module can correspond to the specific reality with reference to Fig. 1 in above-mentioned each method embodiment to Fig. 2 embodiment in dynamic electronic equipment 90 Existing mode, which is not described herein again.
In conclusion implementing the embodiment of the present invention, pass through preconfigured the first processing letter for unloading application program Second processing functions several and for pass hull closure manager option switches, are judging to need to close the target application journey When the device manager tab switch that ordered pair should be opened, close what destination application was opened by running the second processing function Device manager tab switch, and then complete unloading to the destination application, can solve occur in the prior art it is normal The technical issues of rule unloading manner does not unload application program, improves the safety of mobile electronic device, and user is not necessarily to By the equipment manager interface entered in setting application, then operate the equipment that the destination application closed and need to unload is opened Manager option finally executes the tedious steps of unloading operation again, can be realized and quickly and easily unloads application program, Ke Yiman Sufficient user easily intelligently unloads the demand of application program.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (11)

1. a kind of application program discharging method characterized by comprising
The unloading operation received for destination application instructs;Wherein, the destination application includes more than two answers Use program;
Preconfigured the first processing function for unloading application program is called according to unloading operation instruction;Described first Processing function includes the unloading application function deletePackageX function in system packet management service;Described It is provided in deletePackageX function and closes the corresponding device manager tab switch opened of application program for triggering Subfunction;
Judge whether to need to close the corresponding equipment pipe opened of described two above application programs by running the subfunction Device option switches are managed, and when the judgment result is yes, is used in the management class of the preconfigured equipment strategy manager of triggering calling In the cancellation equipment manager permission function for closing the device manager tab switch;The cancellation equipment manager permission letter Number preserves the information of the corresponding device manager tab switch of application program;
After by running the cancellation equipment manager permission function closing device manager tab switch, by described DeletePackageX function is completed at the same time the unloading to described two above application programs;
Wherein, described to judge whether to need to close the corresponding opening of described two above application programs by running the subfunction Device manager tab switch, comprising: the mark that the application program is obtained by running the subfunction judges the mesh Mark application program identify whether exist with preset List Identification, determined the need for closing described two according to judging result The corresponding device manager tab switch opened of a above application program.
2. the method as described in claim 1, which is characterized in that preconfigured equipment strategy manager is called in the triggering For closing before the cancellation equipment manager permission function of the device manager tab switch in management class, further includes:
By running the subfunction, the mark of the destination application is obtained;
Judge that the destination application identifies whether to be present in preset first list mark, or judges the target Application program identify whether there is no with preset second list mark in;
When the judgment result is yes, then judge to need to close the corresponding device manager tab opened of the destination application Switch.
3. method according to claim 2, which is characterized in that the judgement destination application identifies whether to exist In preset first list mark in or judge the destination application identify whether be not present and preset secondary series Before in table mark, further includes:
The first list mark or second list mark are generated by security module;Or
The first list mark or second list mark are generated according to the selection of the list selection instruction of input;Or
Receive the first list mark or second list mark of cloud server push.
4. method according to claim 2, which is characterized in that the first list mark or second list mark pass through Following at least one mode is stored:
File mode storage;
Database mode storage;
Cloud server mode stores.
5. the method as described in claim 1, which is characterized in that further include:
The control instruction for controlling whether to start the application program discharging method is received, and is controlled according to the control instruction Start or close the application program discharging method.
6. a kind of application program discharge mechanism characterized by comprising
Command reception module, for receiving the unloading operation instruction for being directed to destination application;Wherein, the destination application Including more than two application programs;
First calling module, it is preconfigured for unloading the first of application program for being called according to unloading operation instruction Handle function;The first processing function includes the unloading application function deletePackageX letter in system packet management service Number;
Subfunction setup module, for calling preconfigured use according to unloading operation instruction in first calling module Before the first processing function of unloading application program, setting is answered for triggering to close in the deletePackageX function With the subfunction of the corresponding device manager tab switch opened of program;
Calling module is triggered, for judging whether to need to close described two above application programs by running the subfunction The corresponding device manager tab switch opened, and when the judgment result is yes, preconfigured equipment strategy pipe is called in triggering It manages in the management class of device for closing the cancellation equipment manager permission function of the device manager tab switch;
Unload module, for being opened by running the cancellation equipment manager permission function closing device manager tab Guan Hou is completed at the same time the unloading to described two above application programs by the deletePackageX function;
Wherein, described device further includes identifier acquisition module and mark judgment module;
The identifier acquisition module, for obtaining the mark of the application program by running the subfunction;
The mark judgment module, for judge the destination application identify whether exist and preset List Identification In, it is determined the need for closing the corresponding device manager tab opened of described two above application programs according to judging result Switch.
7. device as claimed in claim 6, which is characterized in that
The identifier acquisition module, for calling preconfigured equipment strategy manager in the triggering calling module triggering For passing through operation institute before closing the cancellation equipment manager permission function of the device manager tab switch in management class Subfunction is stated, the mark of the destination application is obtained;
The mark judgment module identifies whether to be present in preset first list mark for judge the destination application In knowledge, or judge the destination application identify whether there is no with preset second list mark in;
When the judgment result is yes, then judge to need to close the corresponding device manager tab opened of the destination application Switch.
8. device as claimed in claim 7, which is characterized in that described device further include:
Identifier generation module, for it is described mark judgment module judge the destination application identify whether to be present in it is pre- If first list mark in or judge the destination application identify whether be not present and preset second list mark Before in knowledge, the first list mark is generated by security module or the second list identifies;Or the column according to input The selection of table selection instruction generates the first list mark or second list mark;Or receive cloud server push The first list mark or second list mark.
9. device as claimed in claim 7, which is characterized in that the first list mark or second list mark pass through Following at least one mode is stored:
File mode storage;
Database mode storage;
Cloud server mode stores.
10. device as claimed in claim 6, which is characterized in that further include:
Start control module, for receiving the control instruction for controlling whether to start the application program discharging method, and root Starting is controlled according to the control instruction or closes the application program discharging method.
11. a kind of mobile electronic device, which is characterized in that including processor, memory and input unit and output device;Its In, the processor requires any one of 1-5 by executing the application program Uninstaller stored in the memory, perform claim The method.
CN201610334272.4A 2016-05-18 2016-05-18 A kind of application program discharging method, device and equipment Active CN105955789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610334272.4A CN105955789B (en) 2016-05-18 2016-05-18 A kind of application program discharging method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610334272.4A CN105955789B (en) 2016-05-18 2016-05-18 A kind of application program discharging method, device and equipment

Publications (2)

Publication Number Publication Date
CN105955789A CN105955789A (en) 2016-09-21
CN105955789B true CN105955789B (en) 2019-08-16

Family

ID=56912604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610334272.4A Active CN105955789B (en) 2016-05-18 2016-05-18 A kind of application program discharging method, device and equipment

Country Status (1)

Country Link
CN (1) CN105955789B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709285B (en) * 2016-11-23 2020-03-17 北京小米移动软件有限公司 Display method and device of application lock interface
CN108681668B (en) * 2018-04-18 2021-03-12 Oppo广东移动通信有限公司 Equipment manager management method and device and mobile terminal
CN116737258A (en) * 2022-09-30 2023-09-12 荣耀终端有限公司 Method and related device for unloading application

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009288937A (en) * 2008-05-28 2009-12-10 Brother Ind Ltd Installation system and program
CN104091120B (en) * 2014-06-10 2017-12-19 北京金山安全软件有限公司 Android system malicious program processing method and device
CN104123499B (en) * 2014-07-18 2017-09-01 北京金山安全软件有限公司 Method and device for recognizing software for resisting uninstallation by using Android device manager
CN104123165B (en) * 2014-07-31 2017-12-01 北京金山安全软件有限公司 Application program unloading method and device and mobile terminal
CN104392176A (en) * 2014-12-12 2015-03-04 北京奇虎科技有限公司 Mobile terminal and method for intercepting device manager authority thereof

Also Published As

Publication number Publication date
CN105955789A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105306682B (en) The method and device of network connection switch is automatically closed
CN107092520B (en) Recommended method, device, storage medium and the mobile terminal of application program
CN103500002B (en) The method of application program management, device and terminal unit
CN104735671B (en) A kind of method and apparatus of identification malicious call
CN106778175B (en) Interface locking method and device and terminal equipment
CN104571787B (en) A kind of message display method and communication terminal
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN103345355A (en) Screen-locking interface display control method, device and terminal device
CN106484555B (en) The method and mobile terminal of abnormality detection and recovery
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN104618223B (en) A kind of management method of information recommendation, device and system
CN104899080A (en) Method and apparatus for switching real-time image in instant messaging
CN104571838A (en) Method and device for quickly starting application program
CN106445721B (en) The method and mobile terminal of house dog fault-tolerant processing
CN106131930A (en) A kind of WiFi network connection control method, device and terminal
CN108932093A (en) Split screen application switching method, device, storage medium and electronic equipment
CN103399705A (en) Method, device and equipment for remotely controlling terminal equipment
CN105955789B (en) A kind of application program discharging method, device and equipment
CN108804915A (en) Virus method for cleaning, storage device and electric terminal
CN105357657B (en) The construction method and device of Mesh network
CN105162930B (en) The way of recording and device of mobile terminal
CN107454270B (en) mobile terminal screen brightness control method, device and terminal
CN105808043B (en) A kind of setting method and mobile terminal of terminal applies
CN105975316A (en) Process management method and device and equipment
CN106817489B (en) The reminding method and mobile terminal of message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant