CN111913763A - Method for stopping preinstalled application program, terminal and storage medium - Google Patents

Method for stopping preinstalled application program, terminal and storage medium Download PDF

Info

Publication number
CN111913763A
CN111913763A CN202010935334.3A CN202010935334A CN111913763A CN 111913763 A CN111913763 A CN 111913763A CN 202010935334 A CN202010935334 A CN 202010935334A CN 111913763 A CN111913763 A CN 111913763A
Authority
CN
China
Prior art keywords
application program
installed application
application
processor
management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010935334.3A
Other languages
Chinese (zh)
Inventor
李果
刘亚国
宋小龙
罗企
葛贤亮
董航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010935334.3A priority Critical patent/CN111913763A/en
Publication of CN111913763A publication Critical patent/CN111913763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention relates to the technical field of mobile terminals, and discloses a method for stopping a preinstalled application program, a terminal and a storage medium. The method comprises the steps of selecting a pre-installed application program needing to be stopped; calling and setting an application program hidden interface through a management application program to stop the pre-installed application program; the management application program is an application program with the authority of a device manager, so that the android preinstalled application program is stopped under the condition that the root authority is not acquired.

Description

Method for stopping preinstalled application program, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a method for stopping a pre-installed application program, a terminal and a storage medium.
Background
In daily life, a user is generally required to install various applications on a terminal to implement diversified functions, such as a communication application that implements a social function, a game application that implements an entertainment function, and the like. And when the user does not need the function, the user only needs to uninstall the installed application program, so that the occupation of the memory on the terminal is reduced. However, the terminal not only includes the third-party application program downloaded by the user, but also includes the application program preinstalled when the system leaves the factory, when the preinstalled application program is uninstalled, the user is required to acquire the root authority, and when the root authority is not acquired, the user cannot uninstall the preinstalled application program.
The inventors found that at least the following problems exist in the related art: the user has a large limitation in deleting the preinstalled application program by obtaining the root right, and different system versions have different root rights, so that the specific root right needs to be searched based on the system versions. On the other hand, with the continuous improvement of the security of the operating system, the user cannot easily acquire the root right on the internet, and the uninstallation of the preinstalled application program cannot be realized under the condition that the root right is not acquired, so that the operability is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a method for stopping a preinstalled application program, which can be used for stopping an android preinstalled application program under the condition that root authority is not acquired.
In order to solve the above technical problem, an embodiment of the present invention provides a method for deactivating a pre-installed application, including: selecting a pre-installed application program to be stopped; calling and setting an application program hidden interface through a management application program to stop the pre-installed application program; the management application program is an application program with the authority of a device manager.
An embodiment of the present invention further provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for deactivating the pre-installed application.
An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for deactivating a pre-installed application.
Compared with the prior art, the method and the device for deactivating the preinstalled application program have the advantages that the preinstalled application program is uninstalled by using the application program with the device manager authority, the application program with the device manager authority can call a set application program hidden interface (setappilicationhidden) in a system, and the set application program hidden interface is changed to deactivate the preinstalled application program. The method and the device have the advantages that the preinstalled application program is stopped in a mode of calling the system interface, root permission does not need to be acquired, realization difficulty is low, and feasibility is high.
In addition, the device manager authority for managing the application specifically includes: and calling the authority of the system native device management interface. Therefore, the deactivation method of the pre-installed application program can be compatible with most android system versions, and the compatibility is improved.
In addition, the device administrator permission is specifically set through an android debug bridge command.
In addition, selecting a pre-installed application to be disabled includes: view installed applications in the system; pre-installed applications that need to be deactivated are selected among the installed applications.
In addition, after viewing the installed applications in the system, the method further comprises the following steps: displaying the installed applications in an application list form for a user to select from the installed applications; selecting a preinstalled application program needing to be stopped from installed applications, comprising: and determining the pre-installed application program needing to be stopped according to the received user instruction. The installed applications are displayed in a list form for selection of a user, and the user can visually check required contents and conveniently make a selection.
In addition, after selecting the pre-installed application program to be stopped, the method further comprises the following steps: stopping running the pre-installed application program; the method for disabling the preinstalled application program by calling and setting the hidden interface of the application program through the management application program comprises the following steps: and after the pre-installed application program stops running, the management application program calls and sets an application program hidden interface to stop the pre-installed application program. Before the pre-installed application program is stopped, the pre-installed application program is guaranteed to stop running, and successful unloading and thorough unloading are guaranteed.
In addition, stopping running the pre-installed application includes: and clearing the running process of the pre-installed application program in the background. The mode of clearing the background running program stops the running of the pre-installed application program to be uninstalled.
In addition, after the pre-installed application is deactivated by calling and setting the hidden interface of the application through the management application, the method further comprises the following steps: and restarting the pre-installed application program.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flowchart of a method for deactivating a pre-installed application in accordance with a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for deactivating a pre-installed application in accordance with a second embodiment of the present invention;
fig. 3 is a schematic configuration diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in various embodiments of the invention, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a method for deactivating a preinstalled application, including: selecting a pre-installed application program to be stopped; calling and setting an application program hidden interface through a management application program to stop the pre-installed application program; the management application program is an application program with the authority of a device manager, so that the android preinstalled application program is disabled under the condition that the root authority is not acquired. The following is a detailed description of the implementation details of the method for deactivating a preinstalled application program according to the present embodiment, and the following is provided only for the sake of understanding and is not necessary for implementing the present embodiment.
The method for deactivating a preinstalled application program according to this embodiment is shown in fig. 1, and includes:
step 101, selecting a pre-installed application program to be deactivated.
Specifically, the installed applications in the terminal system are checked, the installed applications are divided according to the pre-installed applications and the third-party applications, and the pre-installed applications are displayed to the user so that the user can select the pre-installed applications needing to be deactivated. For example, the pre-installed application and the third-party application are respectively displayed in two different interfaces, when the user selects the pre-installed application option, the pre-installed application list is displayed for the user, and when the user selects the third-party application, the third-party application list is displayed for the user. Each displayed application program corresponds to one option box, and a user can determine the selected application program to be deactivated by clicking the option box. And after the user finishes the selection, sending an instruction to inform the management application program of the pre-installed application program required to be stopped, so that the management application program stops the pre-installed application program according to the instruction. The application selected by the user to be deactivated may be a pre-installed application or may be a third party application. The number of the selected application programs to be deactivated can be one or multiple, and when the number of the selected application programs to be deactivated is multiple, the management application program deactivates the selected application programs one by one, so that omission is avoided.
And 102, calling and setting an application program hidden interface through the management application program to stop the pre-installed application program.
Specifically, the management application is an application having the device manager authority. After the management application program is installed to the terminal, whether the management application program has the authority of a device manager is detected, and if the management application program does not have the authority of the device manager, the management application program is set as the device manager of the system through an Android Debug Bridge (adb) command by utilizing options of a system developer. After the management application is set as a device manager of the system, the management application has a device manager (DevicePolicyManager) authority, and can call an interface in the authority, wherein the interface in the authority at least comprises: setting a hidden interface (setappplicationHidden) of an application program, calling the hidden interface (setappplicationHidden) of the application program by the management application program, setting parameters in the interface to be 'false', and realizing the deactivation of the preinstalled application program.
In addition, after the pre-installed application is disabled, the setup hidden application interface (setappticationhidden) may be called again to enable the pre-installed application, and when the pre-installed application is enabled again, the hidden application interface (setappticationhidden) is called and a parameter in the interface is set to "true" to enable the re-enablement of the pre-installed application.
In addition, the called hidden interface (setappilicationhidden) of the application program is the native interface of the android system, so that the deactivation method of the preinstalled application program in the embodiment can be adapted to the versions of most android systems, and has good compatibility.
Compared with the prior art, the method and the device for deactivating the preinstalled application program have the advantages that the preinstalled application program is uninstalled by using the application program with the device manager authority, the application program with the device manager authority can call a set application program hidden interface (setappilicationhidden) in a system, and the set application program hidden interface is changed to deactivate the preinstalled application program. The method and the device have the advantages that the preinstalled application program is stopped in a mode of calling the system interface, root permission does not need to be acquired, realization difficulty is low, and feasibility is high.
In the second embodiment of the present invention, before the application program hidden interface is set through the management application program call to disable the preinstalled application program, it is required to ensure that the preinstalled application program has stopped running, so as to ensure successful uninstallation and thorough uninstallation.
Fig. 2 shows a method for deactivating a preinstalled application program according to this embodiment, which includes:
step 201, selecting a pre-installed application program to be stopped.
Step 202, stop running the pre-installed application.
Specifically, when the pre-installed application stops running, the pre-installed application may be exited first, and the running process of the pre-installed application in the background is cleared, so as to ensure that the running of the pre-installed application stops completely. In addition, in order to ensure that the background continuously runs, some application programs store a group of data information in the system so as to ensure that the removed software can be automatically restarted after deleting the background process, and for this reason, whether the data information of the pre-installed application program is stored in the system needs to be searched, if so, the data information is deleted, so that the pre-installed application program is ensured not to have residual information in the system, and the pre-installed application program is more thoroughly stopped.
And step 203, the application program hidden interface is called and set through the management application program to stop the pre-installed application program.
Specifically, after the pre-installed application completely stops running, the pre-installed application is deactivated, thereby ensuring that the pre-installed application can be successfully deactivated and more completely deactivated.
In this embodiment, after the pre-installed application is selected, the application in which the pre-installed application is running is stopped, and after the pre-installed application stops running, the management application calls and sets the application hiding interface to stop the pre-installed application, so as to ensure successful uninstallation and thorough uninstallation.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the invention is directed to a terminal, as shown in fig. 3, comprising at least one processor 301; and a memory 302 communicatively coupled to the at least one processor 301; the memory 302 stores instructions executable by the at least one processor 301, and the instructions are executed by the at least one processor 301, so that the at least one processor 301 can execute the method for deactivating the pre-installed application program in any of the above-mentioned method embodiments.
Where the memory 302 and the processor 301 are coupled in a bus, the bus may comprise any number of interconnected buses and bridges, the buses coupling one or more of the various circuits of the processor 301 and the memory 302. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 301 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 301.
The processor 301 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 302 may be used to store data used by processor 301 in performing operations.
A fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A method for deactivating a pre-installed application, comprising:
selecting a pre-installed application program to be stopped;
calling and setting an application program hidden interface through a management application program to stop the pre-installed application program; wherein the management application is an application with device manager rights.
2. The method of claim 1, wherein the managing device manager permissions of the application specifically comprises: and calling the authority of the system native device management interface.
3. The method of claim 1, wherein the device administrator privileges are specifically set via android debug bridge commands.
4. The method of claim 1, wherein selecting the pre-installed application to be disabled comprises:
view installed applications in the system;
selecting a pre-installed application program needing to be stopped from the installed applications.
5. The method of deactivating a pre-installed application of claim 4, further comprising, after an application has been installed in the viewing system:
displaying the installed applications in an application list form for a user to select from the installed applications;
the selecting a pre-installed application program needing to be stopped from the installed applications comprises the following steps:
and determining the pre-installed application program needing to be deactivated according to the received user instruction.
6. The method of claim 1, further comprising, after selecting the pre-installed application to be deactivated:
stopping running the pre-installed application program;
the step of disabling the pre-installed application program by setting an application program hidden interface through the management application program call comprises the following steps:
and after the pre-installed application program stops running, calling and setting an application program hidden interface through a management application program to stop the pre-installed application program.
7. The method of claim 6, wherein the stopping the pre-installed application comprises:
and clearing the running process of the pre-installed application program in the background.
8. The method of claim 1, further comprising, after the pre-installed application is deactivated by the management application calling to set the hidden application interface, the steps of:
and restarting the pre-installed application program.
9. A terminal, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of deactivating a pre-installed application program according to any of claims 1 to 8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of deactivating a pre-installed application program according to any one of claims 1 to 8.
CN202010935334.3A 2020-09-08 2020-09-08 Method for stopping preinstalled application program, terminal and storage medium Pending CN111913763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010935334.3A CN111913763A (en) 2020-09-08 2020-09-08 Method for stopping preinstalled application program, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010935334.3A CN111913763A (en) 2020-09-08 2020-09-08 Method for stopping preinstalled application program, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111913763A true CN111913763A (en) 2020-11-10

Family

ID=73267948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010935334.3A Pending CN111913763A (en) 2020-09-08 2020-09-08 Method for stopping preinstalled application program, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111913763A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298320A1 (en) * 2011-12-13 2014-10-02 Huawei Device Co., Ltd. Preinstalled Application Management Method for Mobile Terminal and Mobile Terminal
CN104123165A (en) * 2014-07-31 2014-10-29 北京金山安全软件有限公司 Application program unloading method and device and mobile terminal
CN104317628A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Mobile terminal and storage space cleaning method thereof
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN105808225A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Application program management method and device as well as terminal
US20160285854A1 (en) * 2013-11-15 2016-09-29 Beijing Qihoo Technology Company Limited Android-based mobile equipment security protection method, and device
CN106201619A (en) * 2016-07-15 2016-12-07 绿网天下(福建)网络科技股份有限公司 A kind of method customizing management and control mobile phone
US20190235884A1 (en) * 2016-09-06 2019-08-01 Jrd Communication Inc. Method and system for disabling non-deletable application in mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298320A1 (en) * 2011-12-13 2014-10-02 Huawei Device Co., Ltd. Preinstalled Application Management Method for Mobile Terminal and Mobile Terminal
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
US20160285854A1 (en) * 2013-11-15 2016-09-29 Beijing Qihoo Technology Company Limited Android-based mobile equipment security protection method, and device
CN104123165A (en) * 2014-07-31 2014-10-29 北京金山安全软件有限公司 Application program unloading method and device and mobile terminal
CN104317628A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Mobile terminal and storage space cleaning method thereof
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN105808225A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Application program management method and device as well as terminal
CN106201619A (en) * 2016-07-15 2016-12-07 绿网天下(福建)网络科技股份有限公司 A kind of method customizing management and control mobile phone
US20190235884A1 (en) * 2016-09-06 2019-08-01 Jrd Communication Inc. Method and system for disabling non-deletable application in mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TONNY.LEE: "Device Admin 简单实践", 《HTTPS://WWW.CNBLOGS.COM/TONNY-LI/P/7097553.HTML》, pages 1 - 8 *
专杀牛牛: "使用ADB删除***预装的软件", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/150776307》, pages 1 - 14 *

Similar Documents

Publication Publication Date Title
CN106874232B (en) Charging method, device and terminal of Universal Serial Bus (USB)
CN107832105B (en) Application program starting method, starting device and computer readable storage medium
CN105809055A (en) Access control method and device, and related equipment
CN104573497A (en) Processing method and device for starting items
CN113849199B (en) Method and device for cross-system installation of application, electronic equipment and storage medium
CN112000382A (en) Linux system starting method and device and readable storage medium
US20190235884A1 (en) Method and system for disabling non-deletable application in mobile terminal
US20220006841A1 (en) Remote management of a user device
CN109271792B (en) Terminal peripheral control method and device based on Android local layer hook
WO2019042283A1 (en) Management and control method for application, terminal, and storage medium
EP3608774A1 (en) Method for programming and terminal device
CN107368738B (en) Root prevention method and Root prevention device for intelligent equipment
CN111913763A (en) Method for stopping preinstalled application program, terminal and storage medium
CN108573153A (en) A kind of onboard operations system and its implementation
KR101461319B1 (en) Methods and device for upgrading firmware of set-top box
CN110968852B (en) Virtual machine password management method, system, equipment and computer storage medium
CN109800567B (en) Method and device for monitoring foreground application starting and terminal equipment
CN115562807A (en) Method and system for mounting dynamic equipment for android container in kubernets environment
CN113836529A (en) Process detection method, device, storage medium and computer equipment
CN111427603B (en) Application program upgrading method and device
CN111026609B (en) Information auditing method, system, equipment and computer readable storage medium
CN111859367A (en) Screen locking password setting method, terminal and computer readable storage medium
CN111552537A (en) Theme switching method and device, computer equipment and storage medium
CN113282363A (en) Method and device for optimizing hybrid APP
EP3722981A1 (en) System and method for applying patches to executable codes

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