CN113849198A - Method, device, equipment and medium for uninstalling application program - Google Patents

Method, device, equipment and medium for uninstalling application program Download PDF

Info

Publication number
CN113849198A
CN113849198A CN202111145358.XA CN202111145358A CN113849198A CN 113849198 A CN113849198 A CN 113849198A CN 202111145358 A CN202111145358 A CN 202111145358A CN 113849198 A CN113849198 A CN 113849198A
Authority
CN
China
Prior art keywords
application
application program
database list
type
program
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
CN202111145358.XA
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111145358.XA priority Critical patent/CN113849198A/en
Publication of CN113849198A publication Critical patent/CN113849198A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment and a medium for unloading an application program, wherein a system catalog supporting user operation is created when system application compiling is executed; and storing the application programs which are defaulted by the system and can not be uninstalled into a system directory, and recording the application package names and the application types corresponding to the application programs into a database list. When there is a target application of the same type as the application in the database list, the update of the application package names in the database list may be done based on the target application, so that only one application package name in the same type of application is stored in the database list. For a plurality of application programs under the same type, only the application package name and the application type corresponding to one application program required by a user can be reserved under the database list, and the rest application programs of the same type can execute unloading operation, so that the utilization rate of the storage space is effectively improved.

Description

Method, device, equipment and medium for uninstalling application program
Technical Field
The present application relates to the field of software management technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for uninstalling an application.
Background
Currently, some system Applications (APPs) are carried in the android system, and these APPs cannot be deleted. The reason why the android system sets a part of the APP to be non-uninstallable is to avoid the loss of functions. For example, when a user downloads a music file in the MP3 format, if the user does not download the music APP and also downloads the music APP of the system itself, the file cannot be played. Therefore, the system may have a portion of its own APPs that do not support offloading.
However, in actual device system use, many system-owned APPs are almost never used by users, for example, a system-owned music APP user generally does not use, but may use QQ music or a music APP like internet cloud. But the system music APP is missing and does not support the unloading function, so that the waste of the storage space is caused.
Therefore, how to improve the utilization rate of the storage space is a problem to be solved by those skilled in the art.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a device, and a computer-readable storage medium for uninstalling an application, which can improve the utilization rate of a storage space.
To solve the foregoing technical problem, an embodiment of the present application provides a method for uninstalling an application program, including:
when the system application compiling is executed, a system directory supporting user operation is created;
storing the application programs which are defaulted by the system and can not be uninstalled to the system catalog, and recording the application package names and the application types corresponding to the application programs to a database list;
when a target application program with the same application type as that in the database list exists, updating the application package names in the database list is completed based on the target application program, so that only one application package name in the application programs with the same type is stored in the database list;
and when the application package name of the application program to be processed does not exist in the database list, uninstalling the application program to be processed.
Optionally, when there is a target application program of the same application type as the application type in the database list, completing the update of the application package name in the database list based on the target application program includes:
when a downloading instruction of a target application program is received, judging whether an application type identical to that of the target application program exists in the database list or not;
and if the database list has the same application type as the target application program, replacing the application package name of the target application program with the application package name corresponding to the same application type in the database list.
Optionally, when there is a target application program of the same application type as the application type in the database list, completing the update of the application package name in the database list based on the target application program includes:
when a downloading instruction of a target application program is received, judging whether an application type identical to that of the target application program exists in the database list or not;
if the application type same as the target application program exists in the database list, showing options including the application package name of the target application program and the application package name corresponding to the application type same as the target application program;
when a confirmation instruction carrying a non-uninstallable application package name is received, updating the application package name in the database list according to the non-uninstallable application package name; the name of the non-uninstallable application package is the name of the application package of the target application program or the name of the application package corresponding to the same application type as the target application program.
Optionally, the method further comprises:
when the application program to be uploaded is transmitted to the server, if the application program to be uploaded is matched with the application type contained in the system catalog, setting a type identifier for the application program to be uploaded;
correspondingly, before the determining whether the same application type as the target application exists in the database list, the method further includes:
when a downloading instruction of a target application program is received, judging whether the target application program has a type identifier;
if the target application program has a type identifier, executing the step of judging whether the database list has the same application type as the target application program;
and if the target application program does not have the type identification, downloading the target application program.
Optionally, the uninstalling the to-be-processed application when the application package name of the to-be-processed application does not exist in the database list includes:
when an application program unloading instruction is received, judging whether the database list has the same application type as the application program to be unloaded;
if the application type identical to the application program to be uninstalled exists in the database list, judging whether the application package name of the application program to be uninstalled exists in the database list;
if the application package name of the application program to be uninstalled does not exist in the database list, the uninstalling option of the application program to be uninstalled is displayed;
and when a confirmation instruction of the uninstalling option is received, uninstalling the application program to be uninstalled.
Optionally, the method further comprises:
when a file opening instruction is received, selecting an application program matched with the file type of the file;
when the number of the matched application programs is at least two and the application package name of one of the matched application programs is recorded in the database list, displaying the adjustment options of the matched application programs;
and finishing updating the application package name in the database list based on the application package name carried in the adjusting instruction.
Optionally, the method further comprises:
judging whether the number of the application programs with the same application type in the database list is multiple or not;
if the number of the application programs of the same application type in the database list is multiple, displaying the application package names of the multiple application programs;
and completing the updating of the application package name in the database list based on the non-uninstallable application program selected from the plurality of application programs.
The embodiment of the application also provides a device for uninstalling the application program, which comprises a creating unit, a storage unit, an updating unit and an uninstalling unit;
the creating unit is used for creating a system directory supporting user operation when the system application compilation is executed;
the storage unit is used for storing the application programs which are defaulted by the system and can not be unloaded to the system catalog, and recording the application package names and the application types corresponding to the application programs to a database list;
the updating unit is used for completing the updating of the application package names in the database list based on the target application program when the target application program with the same application type as that in the database list exists, so that only one application package name in the application programs with the same type is stored in the database list;
the uninstalling unit is used for uninstalling the application program to be processed when the application package name of the application program to be processed does not exist in the database list.
Optionally, the updating unit includes a judging subunit and a replacing subunit;
the judging subunit is configured to, when a download instruction of a target application program is received, judge whether an application type identical to the target application program exists in the database list;
and the replacing subunit is configured to replace, if the same application type as the target application program exists in the database list, the application package name of the target application program with the application package name corresponding to the same application type in the database list.
Optionally, the updating unit includes a judging subunit, a displaying subunit and an updating subunit;
the judging subunit is configured to, when a download instruction of a target application program is received, judge whether an application type identical to the target application program exists in the database list;
the display subunit is configured to display, if the application type that is the same as the target application program exists in the database list, an option including an application package name of the target application program and an application package name corresponding to the application type that is the same as the target application program;
the updating subunit is configured to, when receiving a confirmation instruction carrying a non-uninstallable application package name, complete updating of the application package name in the database list according to the non-uninstallable application package name; the name of the non-uninstallable application package is the name of the application package of the target application program or the name of the application package corresponding to the same application type as the target application program.
Optionally, the system further comprises a setting unit, a judging unit and a downloading unit;
the setting unit is used for setting a type identifier for the application program to be shelved if the application program to be shelved is matched with the application type contained in the system catalog when the application program to be shelved is transmitted to the server;
correspondingly, before the determining whether the same application type as the target application exists in the database list, the method further includes:
the judging unit is used for judging whether the target application program has a type identifier or not when a downloading instruction of the target application program is received; if the target application program has a type identifier, triggering the judging subunit to execute the step of judging whether the application type same as the target application program exists in the database list or not;
the downloading unit is used for executing the downloading of the target application program if the target application program does not have the type identifier.
Optionally, the uninstalling unit is configured to, when an application uninstalling instruction is received, determine whether an application type identical to an application to be uninstalled exists in the database list;
if the application type identical to the application program to be uninstalled exists in the database list, judging whether the application package name of the application program to be uninstalled exists in the database list; if the application package name of the application program to be uninstalled does not exist in the database list, the uninstalling option of the application program to be uninstalled is displayed; and when a confirmation instruction of the uninstalling option is received, uninstalling the application program to be uninstalled.
Optionally, the system further comprises a selecting unit and a display unit;
the selecting unit is used for selecting an application program matched with the file type of the file when receiving a file opening instruction;
the display unit is used for displaying the adjustment options of the matched application programs when the number of the matched application programs is at least two and the application package name of one of the matched application programs is recorded in the database list;
and the updating unit is used for finishing the updating of the application package name in the database list based on the application package name carried in the adjusting instruction.
Optionally, the display device further comprises a number judgment unit and a display unit;
the number judging unit is used for judging whether the number of the application programs with the same application type in the database list is multiple or not;
the display unit is used for displaying the application package names of a plurality of application programs if the number of the application programs of the same application type in the database list is multiple;
and the updating unit is used for finishing updating the application package name in the database list based on the non-uninstallable application program selected from the plurality of application programs.
An embodiment of the present application further provides an apparatus for uninstalling an application, including:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method of uninstalling an application as described above.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for uninstalling an application program as described above.
According to the technical scheme, when the system application compiling is executed, a system directory supporting the user operation is created; storing the application programs which are defaulted by the system and can not be unloaded to a system directory, and recording the application package names and the application types corresponding to the application programs to a database list; the applications stored to the system directory may support the offload function and thus may support subsequent updates to the application types and application package names contained in the database list. The uninstall function may not be displayed for the application program corresponding to each application package name in the database list. When there is a target application program of the same application type as that in the database list, in order to avoid occupation of system storage resources by multiple application programs of the same type, updating of application package names in the database list may be completed based on the target application program, so that only one application package name in the application programs of the same type is stored in the database list, and the application package names of the remaining application programs may be stored outside the database list. The pending application may be uninstalled when the application package name of the pending application does not exist in the database listing. In the technical scheme, for a plurality of application programs of the same type, only the application package name of one application program required by a user can be reserved in the database list, and the rest application programs of the same type can execute unloading operation, so that the utilization rate of the storage space is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for uninstalling an application according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for uninstalling an application according to an embodiment of the present application;
fig. 3 is a block diagram of an apparatus for uninstalling an application according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The terms "including" and "having," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Next, a method for uninstalling an application provided in an embodiment of the present application is described in detail. Fig. 1 is a flowchart of a method for uninstalling an application according to an embodiment of the present application, where the method includes:
s101: when system application compilation is performed, a system directory supporting user operations is created.
The application program is mainly suitable for terminal equipment such as a mobile phone, a smart watch, a personal computer and the like. For convenience of description, the application program on the mobile phone is taken as an example for description.
Currently, the application programs of the android system are compiled under a system default directory such as/system/app/directory or/system/priv-app at the time of compiling. The APP under the system default directory cannot be unloaded, and the user has no authority to adjust the APP recorded in the system default directory.
Therefore, in the embodiment of the application, in order to adjust the application program which is not uninstallable by default, a system directory supporting user operation, such as/system/preload/, may be created again when the system application compilation is executed.
S102: and storing the application programs which are defaulted by the system and can not be uninstalled into a system directory, and recording the application package names and the application types corresponding to the application programs into a database list.
Wherein the application stored to the system directory may support the offload function.
In an initial state, the application program which is defaulted by the system and can not be uninstalled can be stored in the system directory, the application package name and the application type corresponding to the application program which is defaulted by the system and can not be uninstalled are stored in the newly created system directory, and the user can uninstall the application program in the system directory according to actual requirements because the system directory supports user operation.
The application program corresponding to the application package name contained in the database list can be used for realizing some basic functions commonly used by the user, and the user is guaranteed to have better use experience. In practical application, the uninstalling option may not be displayed for the application program corresponding to the application package name included in the database list, so that the user cannot directly execute the uninstalling operation for the application program corresponding to the application package name in the database list, thereby ensuring the implementation of the basic function of the device.
S103: when there is a target application program of the same application type as that in the database list, updating the application package names in the database list is completed based on the target application program, so that only one application package name in the application programs of the same type is stored in the database list.
When there is a target application of the same type as the application in the database list, it is explained that there are a plurality of applications of the same type. The functions realized by the application programs of the same type are similar, and a user generally only uses one application program which is used to the user by himself when the user actually uses the application programs, so that other application programs of the same type are idle.
In order to reduce the occupation of the system storage space by these idle applications, in this embodiment of the present application, when there is a target application of the same type as the application in the database list, the update of the application package name in the database list may be completed based on the target application. In specific implementation, the application package name of the target application program can replace the application package name corresponding to the same application type in the database list; and the application package names contained in the database list can be still reserved according to the requirements of users, and the target application package names are stored in other storage spaces except the database list.
S104: and when the application program to be processed does not exist in the system catalog, uninstalling the application program to be processed.
The updating of the application package names in the database list is to make only one application package name in the same type of application program stored in the database list, and other application package names in the same type stored outside the database list, so that the user can uninstall the application program corresponding to the application package name outside the database list.
The pending application refers to an application that the user currently needs to perform uninstallation. The pending application may be uninstalled as long as it does not exist in the system directory.
In practical application, when an application uninstalling instruction is received, whether the application type same as the application to be uninstalled exists in the database list can be judged. And if the application type identical to the application program to be uninstalled exists in the database list, judging whether the application package name of the application program to be uninstalled exists in the database list. If the application package name of the application program to be uninstalled does not exist in the database list, the uninstalling option of the application program to be uninstalled can be displayed, and the user can uninstall the application program to be uninstalled by clicking the uninstalling option of the application program to be uninstalled.
For the processing system, clicking the uninstalling option of the application program to be uninstalled by the user is equivalent to inputting a confirmation instruction of the uninstalling option, and at this time, the processing system can uninstall the application program to be uninstalled.
In practical application, for an application program corresponding to an application package name outside a database list, the android system can automatically determine not to give an uninstalling option according to whether the application program is uninstallable.
According to the technical scheme, when the system application compiling is executed, a system directory supporting the user operation is created; storing the application programs which are defaulted by the system and can not be unloaded to a system directory, and recording the application package names and the application types corresponding to the application programs to a database list; the applications stored to the system directory may support the offload function and thus may support subsequent updates to the application types and application package names contained in the database list. The uninstall function may not be displayed for the application program corresponding to each application package name in the database list. When there is a target application program of the same application type as that in the database list, in order to avoid occupation of system storage resources by multiple application programs of the same type, updating of application package names in the database list may be completed based on the target application program, so that only one application package name in the application programs of the same type is stored in the database list, and the application package names of the remaining application programs may be stored outside the database list. The pending application may be uninstalled when the application package name of the pending application does not exist in the database listing. In the technical scheme, for a plurality of application programs of the same type, only the application package name of one application program required by a user can be reserved in the database list, and the rest application programs of the same type can execute unloading operation, so that the utilization rate of the storage space is effectively improved.
In consideration of practical application, the application program actively downloaded by the user is generally the application program used by the user. When the application program of the same type as the application program exists in the database list, the application program is duplicated functionally, in order to unload the duplicated application program, the application package name of the application program actively downloaded by the user can be directly replaced by the application package name of the application program of the same application type as the application program in the database list, and the replaced application package name is stored in a storage space outside the database list. Since the replaced application package name is stored outside the database list, the replaced application program can be uninstalled.
In specific implementation, when a downloading instruction of a target application program is received, whether the application type same as that of the target application program exists in a database list or not can be judged; and if the application type identical to the target application program exists in the database list, replacing the application package name of the target application program with the application package name corresponding to the identical application type in the database list.
In the embodiment of the application, when the application program of the same type as the target application program actively downloaded by the user exists in the database list, the application package name of the target application program actively downloaded by the user is directly replaced by the application package name corresponding to the same application type in the database list, so that the application package name of the application program of the same type as the target application program is removed from the database list, the unloading operation of the application program of the same type as the target application program can be realized, and the occupation of a system storage space by a plurality of application programs of the same type is reduced.
Considering that in practical applications, a user may not know what types of applications exist in a system catalog, and thus a target application of the same type as the application in the database list is downloaded in the application market, the user may prefer to use an application corresponding to an application package name of the same type as the target application in the database list, compared to the target application.
Therefore, in practical application, when a downloading instruction of a target application program is received, whether the application type same as the target application program exists in the database list can be judged; if the application type same as the target application program exists in the database list, options including the application package name of the target application program and the application package name corresponding to the application type same as the target application program are displayed.
The user can select one application program required by the user according to the application package name of the target application program and the application package name of the application program of the same type as the target application program contained in the options.
Taking a mobile phone as an example, in practical application, icons of application programs can be directly displayed on a mobile phone interface, a determination option can be set beside each icon of the application program, and a user can click the determination option beside the icon of the application program when needing to use the application program. For a processing system of a mobile phone, a determination option clicked by a user is a determination instruction, and an application package name of an application program corresponding to the determination option is recorded in a database list, so that the application program is not supported to be uninstalled.
When the system receives a confirmation instruction carrying the name of the non-uninstallable application packet, updating the name of the application packet in the database list according to the name of the non-uninstallable application packet; the non-uninstallable application package name may be an application package name of the target application program or an application package name of an application program of the same type as the target application program.
For example, when the application program which cannot be uninstalled by default of the mobile phone comprises music software a, and the user downloads music software B, an icon of music software a and an icon of music software B can be simultaneously shown on the interface of the mobile phone, and a confirmation option can be set beside each icon. Assuming that the user selects the music software B, the user can click on the confirmation option of the icon of the music software B, and accordingly, the mobile phone processing system replaces the application package name of the music software a in the database list with the application package name of the music software B. At this time, the application package name of the music software a is removed to the storage space outside the database list, so that the uninstallation of the music software a can be realized.
In the embodiment of the application, when the application program of the same type as the target application program actively downloaded by the user exists in the database list, the application package name of the application program of the same type is displayed, so that the user can conveniently and intuitively know which application programs of the same type exist, the required application program can be selected according to the use habit of the user, the application package name of the application program selected by the user is stored in the database list, and the application package name of the application program unselected by the user is arranged outside the database list, so that the application program unselected by the user can be unloaded, and the occupation of the system storage space by the unselected application program is avoided.
In the embodiment of the application, in order to improve the efficiency of the system for identifying the application, the type identifier may be set for the application at the stage of installing the application. In the embodiment of the present application, it is mainly to identify whether there is an application package name that is the same as an application type included in the database list, so in the stage of installing an application program, a type identifier may be set only for an application program that is the same as the application type included in the database list.
In a specific implementation, when the application program to be shelved is transmitted to the server, if the application program to be shelved is matched with the application type included in the database list, the application program to be shelved sets a type identifier.
Correspondingly, when a downloading instruction of the target application program is received, whether the target application program has the type identifier is judged; if the target application program has the type identifier, it indicates that the application program which needs to be downloaded currently may be duplicated with the application program corresponding to the application package name included in the database list, and at this time, the step of determining whether the application type same as the target application program exists in the database list may be performed. If the target application program does not have the type identifier, it indicates that the application program which needs to be downloaded currently and the application program corresponding to the application package name contained in the database list are not repeated, and the target application program can be directly downloaded at this time.
By setting the type identifier for the application program with the same application type as the application type contained in the database list in the application program uploading stage, whether the currently downloaded application program has the function repetition with the application program corresponding to the application type of the database list can be quickly determined directly depending on whether the application program has the type identifier or not in the subsequent application program downloading process, so that the application program with the function repetition is unloaded, and the processing efficiency of the application program is improved.
In practical application, a plurality of application programs with the same type may exist in the system, so that a user can adjust the application programs which cannot be unloaded according to the self requirement, and the system can select the application programs matched with the file types of the files when receiving a file opening instruction; and when the number of the matched application programs is at least two and the application package names of one of the matched application programs are recorded in the database list, showing the adjustment options of the matched application programs.
The presented adjustment options may include which application currently belongs to the application under the system catalog. When the user needs to adjust the application programs in the system directory, the user can click the adjustment option corresponding to the application program when selecting which application program to adjust to the system directory.
For the processing system, clicking the adjustment option corresponding to the application program by the user is equivalent to inputting an adjustment instruction, and each application program has the name of the corresponding application package. The processing system may complete the update of the application package name in the database list based on the application package name carried in the adjustment instruction.
Besides displaying the adjustment options of the application programs when a file opening instruction is received, the system can actively judge whether the number of the application programs of the same application type as that in the database list is multiple or not after the updating of the application package name in the database list is completed based on the target application program; if the number of the application programs of the same application type in the database list is multiple, displaying the application package names of the multiple application programs; updating the application package names in the database list is completed based on a non-uninstallable application program selected from the plurality of application programs.
By displaying a plurality of application programs of the same type, a user can conveniently select one application program as a non-uninstallable application program according to own habits, and flexible change of application package names in a database list is realized.
Fig. 2 is a schematic structural diagram of an apparatus for uninstalling an application according to an embodiment of the present application, including a creating unit 21, a storing unit 22, an updating unit 23, and an uninstalling unit 24;
a creating unit 21 configured to create a system directory supporting a user operation when performing system application compilation;
the storage unit 22 is used for storing the application programs which are defaulted by the system and can not be uninstalled to a system directory, and recording the application package names and the application types corresponding to the application programs to a database list;
an updating unit 23, configured to, when there is a target application program of the same application type as that in the database list, complete updating of the application package names in the database list based on the target application program, so that only one application package name in the application programs of the same type is stored in the database list;
and the unloading unit 24 is used for unloading the application program to be processed when the application package name of the application program to be processed does not exist in the database list.
Optionally, the updating unit includes a judging subunit and a replacing subunit;
the judging subunit is used for judging whether the application type same as the target application program exists in the database list or not when a downloading instruction of the target application program is received;
and the replacing subunit is used for replacing the application package name of the target application program with the application package name corresponding to the same application type in the database list if the application type same as the target application program exists in the database list.
Optionally, the updating unit includes a judging subunit, a displaying subunit and an updating subunit;
the judging subunit is used for judging whether the application type same as the target application program exists in the database list or not when a downloading instruction of the target application program is received;
the display subunit is used for displaying the options including the application package name of the target application program and the application package name corresponding to the application type same as the target application program if the application type same as the target application program exists in the database list;
the updating subunit is used for completing the updating of the application packet names in the database list according to the non-uninstallable application packet names when receiving the confirmation instruction carrying the non-uninstallable application packet names; the non-uninstallable application package name is the application package name of the target application program or the application package name corresponding to the same application type as the target application program.
Optionally, the system further comprises a setting unit, a judging unit and a downloading unit;
the setting unit is used for setting a type identifier for the application program to be shelved if the application program to be shelved is matched with the application type contained in the system catalog when the application program to be shelved is transmitted to the server;
correspondingly, before the step of judging whether the application type identical to the target application program exists in the database list, the method further comprises the following steps:
the judging unit is used for judging whether the target application program has the type identification or not when a downloading instruction of the target application program is received; if the target application program has the type identification, triggering the judging subunit to execute the step of judging whether the application type same as the target application program exists in the database list or not;
and the downloading unit is used for executing the downloading of the target application program if the target application program does not have the type identifier.
Optionally, the uninstalling unit is configured to, when an application uninstalling instruction is received, determine whether an application type identical to the application to be uninstalled exists in the database list;
if the application type identical to the application program to be uninstalled exists in the database list, judging whether the application package name of the application program to be uninstalled exists in the database list; if the application package name of the application program to be uninstalled does not exist in the database list, the uninstalling option of the application program to be uninstalled is displayed; and when a confirmation instruction of the uninstalling option is received, uninstalling the application program to be uninstalled.
Optionally, the system further comprises a selecting unit and a display unit;
the selecting unit is used for selecting an application program matched with the file type of the file when receiving a file opening instruction;
the display unit is used for displaying the adjustment options of the matched application programs when the number of the matched application programs is at least two and the application package name of one of the matched application programs is recorded in the database list;
and the updating unit is used for finishing updating the application package names in the database list based on the application package names carried in the adjusting instruction.
Optionally, the display device further comprises a number judgment unit and a display unit;
the number judging unit is used for judging whether the number of the application programs of the same application type in the database list is multiple or not;
the display unit is used for displaying the application package names of the application programs if the number of the application programs of the same application type in the database list is multiple;
and the updating unit is used for finishing updating the application package names in the database list based on the non-uninstallable application programs selected from the plurality of application programs.
The description of the features in the embodiment corresponding to fig. 2 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, when the system application compiling is executed, a system directory supporting the user operation is created; storing the application programs which are defaulted by the system and can not be unloaded to a system directory, and recording the application package names and the application types corresponding to the application programs to a database list; the applications stored to the system directory may support the offload function and thus may support subsequent updates to the application types and application package names contained in the database list. The uninstall function may not be displayed for the application program corresponding to each application package name in the database list. When there is a target application program of the same application type as that in the database list, in order to avoid occupation of system storage resources by multiple application programs of the same type, updating of application package names in the database list may be completed based on the target application program, so that only one application package name in the application programs of the same type is stored in the database list, and the application package names of the remaining application programs may be stored outside the database list. The pending application may be uninstalled when the application package name of the pending application does not exist in the database listing. In the technical scheme, for a plurality of application programs of the same type, only the application package name of one application program required by a user can be reserved in the database list, and the rest application programs of the same type can execute unloading operation, so that the utilization rate of the storage space is effectively improved.
Fig. 3 is a structural diagram of an apparatus for uninstalling an application according to an embodiment of the present application, and as shown in fig. 3, the apparatus for uninstalling an application includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for uninstalling an application program as in the above embodiments when executing a computer program.
The device for uninstalling the application provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the method for unloading an application program disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, system directories, non-offloadable applications, and the like.
In some embodiments, the device for uninstalling an application may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in FIG. 3 does not constitute a limitation on the devices to uninstall an application and may include more or fewer components than those shown.
It is understood that, if the method for uninstalling an application program in the above embodiment is implemented in the form of a software functional unit and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for uninstalling an application program as described above.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
A method, an apparatus, a device, and a computer-readable storage medium for uninstalling an application program provided in the embodiments of the present application are described above in detail. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
A method, apparatus, device and computer-readable storage medium for uninstalling an application provided by the present application are described above in detail. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method of uninstalling an application, comprising:
when the system application compiling is executed, a system directory supporting user operation is created;
storing the application programs which are defaulted by the system and can not be uninstalled to the system catalog, and recording the application package names and the application types corresponding to the application programs to a database list;
when a target application program with the same application type as that in the database list exists, updating the application package names in the database list is completed based on the target application program, so that only one application package name in the application programs with the same type is stored in the database list;
and when the application package name of the application program to be processed does not exist in the database list, uninstalling the application program to be processed.
2. The method for uninstalling an application according to claim 1, wherein said completing the update of the application package name in the database list based on the target application when there is the target application of the same type as the application in the database list comprises:
when a downloading instruction of a target application program is received, judging whether an application type identical to that of the target application program exists in the database list or not;
and if the database list has the same application type as the target application program, replacing the application package name of the target application program with the application package name corresponding to the same application type in the database list.
3. The method for uninstalling an application according to claim 1, wherein said completing the update of the application package name in the database list based on the target application when there is the target application of the same type as the application in the database list comprises:
when a downloading instruction of a target application program is received, judging whether an application type identical to that of the target application program exists in the database list or not;
if the application type same as the target application program exists in the database list, showing options including the application package name of the target application program and the application package name corresponding to the application type same as the target application program;
when a confirmation instruction carrying a non-uninstallable application package name is received, updating the application package name in the database list according to the non-uninstallable application package name; the name of the non-uninstallable application package is the name of the application package of the target application program or the name of the application package corresponding to the same application type as the target application program.
4. A method of uninstalling an application according to claim 2 or 3, further comprising:
when the application program to be uploaded is transmitted to the server, if the application program to be uploaded is matched with the application type contained in the system catalog, setting a type identifier for the application program to be uploaded;
correspondingly, before the determining whether the same application type as the target application exists in the database list, the method further includes:
when a downloading instruction of a target application program is received, judging whether the target application program has a type identifier;
if the target application program has a type identifier, executing the step of judging whether the database list has the same application type as the target application program;
and if the target application program does not have the type identification, downloading the target application program.
5. The method for uninstalling an application according to claim 4, wherein the uninstalling the application to be processed when the application package name of the application to be processed does not exist in the database list comprises:
when an application program unloading instruction is received, judging whether the database list has the same application type as the application program to be unloaded;
if the application type identical to the application program to be uninstalled exists in the database list, judging whether the application package name of the application program to be uninstalled exists in the database list;
if the application package name of the application program to be uninstalled does not exist in the database list, the uninstalling option of the application program to be uninstalled is displayed;
and when a confirmation instruction of the uninstalling option is received, uninstalling the application program to be uninstalled.
6. The method of uninstalling an application according to claim 1, further comprising:
when a file opening instruction is received, selecting an application program matched with the file type of the file;
when the number of the matched application programs is at least two and the application package name of one of the matched application programs is recorded in the database list, displaying the adjustment options of the matched application programs;
and finishing updating the application package name in the database list based on the application package name carried in the adjusting instruction.
7. The method of uninstalling an application according to claim 1, further comprising:
judging whether the number of the application programs with the same application type in the database list is multiple or not;
if the number of the application programs of the same application type in the database list is multiple, displaying the application package names of the multiple application programs;
and completing the updating of the application package name in the database list based on the non-uninstallable application program selected from the plurality of application programs.
8. An apparatus for uninstalling an application program, comprising a creating unit, a storing unit, an updating unit and an uninstalling unit;
the creating unit is used for creating a system directory supporting user operation when the system application compilation is executed;
the storage unit is used for storing the application programs which are not uninstallable by default in the system to the system catalog;
the updating unit is used for completing the updating of the application package names in the database list based on the target application program when the target application program with the same application type as that in the database list exists, so that only one application package name in the application programs with the same type is stored in the database list;
the uninstalling unit is used for uninstalling the application program to be processed when the application package name of the application program to be processed does not exist in the database list.
9. An apparatus for uninstalling an application, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the method of uninstalling an application according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of uninstalling an application according to any one of claims 1 to 7.
CN202111145358.XA 2021-09-28 2021-09-28 Method, device, equipment and medium for uninstalling application program Pending CN113849198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111145358.XA CN113849198A (en) 2021-09-28 2021-09-28 Method, device, equipment and medium for uninstalling application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111145358.XA CN113849198A (en) 2021-09-28 2021-09-28 Method, device, equipment and medium for uninstalling application program

Publications (1)

Publication Number Publication Date
CN113849198A true CN113849198A (en) 2021-12-28

Family

ID=78980456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111145358.XA Pending CN113849198A (en) 2021-09-28 2021-09-28 Method, device, equipment and medium for uninstalling application program

Country Status (1)

Country Link
CN (1) CN113849198A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691037A (en) * 2022-03-18 2022-07-01 阿里巴巴(中国)有限公司 System and method for managing unloading card name space and processing input/output request

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691037A (en) * 2022-03-18 2022-07-01 阿里巴巴(中国)有限公司 System and method for managing unloading card name space and processing input/output request

Similar Documents

Publication Publication Date Title
US9256479B2 (en) App icon processing method and communication terminal
EP2907099B1 (en) Testing framework for applications
US20070226334A1 (en) Mobile terminal and software update method
EP3125110A1 (en) Software upgrade method and terminal
US20130339937A1 (en) Dynamic application management
CN103324507A (en) Method and apparatus for updating terminal preset application program
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
US9501270B2 (en) System and method for providing customized resources on a handheld electronic device
CN106445580A (en) Method and device for BMC (Baseboard Management Controller) with external upgrading
CN110750286B (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
CN105354065A (en) Multi-product software upgrading method and terminal
JP6092905B2 (en) Method and electronic apparatus for operating a plurality of operating systems
CN110113391B (en) Client online method and device and client operation method and device
CN113849198A (en) Method, device, equipment and medium for uninstalling application program
EP1648148B1 (en) Cellular phone with automatic program update method
CN100399271C (en) Online updating method for electronic appliances
CN104105077A (en) Mobile phone upgrading method and device
KR101353063B1 (en) Method for Operating Firmware Over The Air and Apparatus Thereof
CN107656745A (en) A kind of data processing method, terminal and computer-readable medium
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
CN108334360A (en) Method, apparatus, storage medium and the computer equipment of application program dynamic load
JP6317058B2 (en) Information processing apparatus, information processing system, information processing program, and information processing method
KR20090005906A (en) Apparatus and method for performing data backup in portable terminal
CN111142913A (en) Hot updating method and equipment for iOS system application program

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