A method, device, equipment and medium for uninstalling an application

By creating a system directory and database list that supports user operations in the Android system, allowing users to uninstall applications that cannot be uninstalled by the system by default, the problem of waste of storage space is solved and more efficient use of storage space is achieved.

CN113849198BActive Publication Date: 2025-04-11GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111145358.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2025-04-11
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

The system applications that are built in the Android system cannot be uninstalled, resulting in wasted storage space and the system APPs that are not used by users take up space.

Method used

When executing system application compilation, create a system directory that supports user operations, store applications that cannot be uninstalled by the system to this directory, and record the application package name and application type to the database list. When the same type of target application exists, update the application package name in the database list to ensure that only one application package name is stored in the list. Uninstall the application when the application package name of the pending application does not exist in the database list.

Benefits of technology

By supporting users to uninstall the system's own applications, the utilization rate of storage space is effectively improved and the problem of unused applications taking up space is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849198B_ABST
    Figure CN113849198B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, apparatus, device and medium for uninstalling an application. When executing system application compilation, a system directory that supports user operations is created; the system default non-uninstallable applications are stored in the system directory, and the application package name and application type corresponding to the application are recorded in a database list. When there is a target application with the same application type as that in the database list, the application package name in the database list can be updated based on the target application, so that only one application package name of the same type of application is stored in the database list. For multiple applications of the same type, only the application package name and application type corresponding to one application required by the user can be retained in the database list, and the remaining applications of the same type can all be uninstalled, effectively improving the utilization rate of storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software management technology, and in particular to a method, apparatus, device and computer-readable storage medium for uninstalling an application. Background Art

[0002] The current Android system comes with some system applications (Application, APP), and these APPs cannot be deleted. The reason why the Android system sets some APPs to be non-uninstallable is to avoid missing functions. For example, when a user downloads an MP3 music file, if the user has not downloaded a music APP and uninstalls the system's built-in music APP, then this type of file will not be able to play. Therefore, the system comes with some APPs that do not support uninstallation.

[0003] However, in actual device system usage, many apps that come with the system are almost never used by users. For example, users generally do not use the music app that comes with the system, but may use music apps such as QQ Music or NetEase Cloud Music. However, the system music app does not support uninstallation, resulting in a waste of storage space.

[0004] It can be seen that how to improve the utilization rate of storage space is a problem that technical personnel in this field need to solve. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, apparatus, device and computer-readable storage medium for uninstalling an application, which can improve the utilization of storage space.

[0006] In order to solve the above technical problems, an embodiment of the present application provides a method for uninstalling an application, comprising:

[0007] When executing system application compilation, create a system directory that supports user operations;

[0008] Storing the system default non-uninstallable applications in the system directory, and recording the application package names and application types corresponding to the applications in a database list;

[0009] When there is a target application of the same application type as that in the database list, based on the target application, completing the updating of the application package name in the database list, so that only one application package name of the same type of application is stored in the database list;

[0010] When the application package name of the application to be processed does not exist in the database list, the application to be processed is uninstalled.

[0011] Optionally, when there is a target application of the same application type as that in the database list, completing the updating of the application package name in the database list based on the target application includes:

[0012] Upon receiving a download instruction of a target application, determining whether there is an application type identical to the target application in the database list;

[0013] If the database list contains an application of the same type as the target application, the application package name of the target application replaces the application package name corresponding to the same application type in the database list.

[0014] Optionally, when there is a target application of the same application type as that in the database list, completing the updating of the application package name in the database list based on the target application includes:

[0015] Upon receiving a download instruction of a target application, determining whether there is an application type identical to the target application in the database list;

[0016] If the same application type as the target application exists in the database list, displaying an option including the application package name of the target application and the application package name corresponding to the same application type as the target application;

[0017] When a confirmation instruction carrying a non-uninstallable application package name is received, the application package name in the database list is updated based on the non-uninstallable application package name; wherein the non-uninstallable application package name is the application package name of the target application or the application package name corresponding to the same application type as the target application.

[0018] Optionally, it also includes:

[0019] When the application to be put on the shelf is transmitted to the server, if the application to be put on the shelf matches the application type contained in the system directory, a type identifier is set for the application to be put on the shelf;

[0020] Accordingly, before determining whether there is an application type identical to the target application in the database list, the method further includes:

[0021] Upon receiving a download instruction of a target application, determining whether the target application has a type identifier;

[0022] If the target application has a type identifier, executing the step of determining whether there is an application type identical to the target application in the database list;

[0023] If the target application does not have a type identifier, downloading of the target application is performed.

[0024] Optionally, when the application package name of the to-be-processed application does not exist in the database list, uninstalling the to-be-processed application includes:

[0025] Upon receiving an application uninstallation instruction, determining whether there is an application of the same type as the application to be uninstalled in the database list;

[0026] If the database list contains an application of the same type as the application to be uninstalled, determining whether the application package name of the application to be uninstalled exists in the database list;

[0027] If the application package name of the application to be uninstalled does not exist in the database list, displaying an uninstall option of the application to be uninstalled;

[0028] When a confirmation instruction of the uninstall option is received, the application to be uninstalled is uninstalled.

[0029] Optionally, it also includes:

[0030] When receiving a file opening instruction, selecting an application that matches the file type of the file;

[0031] When the number of the matched applications is at least two and the application package name of one of the matched applications is recorded in the database list, displaying adjustment options of the matched application;

[0032] Based on the application package name carried in the adjustment instruction, the application package name in the database list is updated.

[0033] Optionally, it also includes:

[0034] Determine whether there are multiple application programs of the same application type as that in the database list;

[0035] If there are multiple applications of the same application type as in the database list, then display the application package names of the multiple applications;

[0036] Based on the non-uninstallable application selected from the multiple application programs, the application package name in the database list is updated.

[0037] The embodiment of the present application also provides a device for uninstalling an application, including a creation unit, a storage unit, an update unit, and an uninstallation unit;

[0038] The creation unit is used to create a system directory supporting user operations when executing system application compilation;

[0039] The storage unit is used to store the application programs that cannot be uninstalled by default in the system directory, and record the application package names and application types corresponding to the application programs in the database list;

[0040] The updating unit is used to complete the update of the application package name in the database list based on the target application when there is a target application of the same application type as that in the database list, so that only one application package name of the same type of application is stored in the database list;

[0041] The uninstallation unit is used to uninstall the application to be processed when the application package name of the application to be processed does not exist in the database list.

[0042] Optionally, the updating unit includes a determining subunit and a replacing subunit;

[0043] The judging subunit is used to judge whether there is an application type identical to the target application in the database list when receiving a download instruction of the target application;

[0044] The replacement subunit is used to replace the application package name corresponding to the same application type in the database list with the application package name of the target application if the same application type as the target application exists in the database list.

[0045] Optionally, the updating unit includes a judging subunit, a displaying subunit and an updating subunit;

[0046] The judging subunit is used to judge whether there is an application type identical to the target application in the database list when receiving a download instruction of the target application;

[0047] The display subunit is used to display options including the application package name of the target application and the application package name corresponding to the same application type as the target application if the same application type as the target application exists in the database list;

[0048] The update sub-unit is used to complete the update of the application package name in the database list according to the non-uninstallable application package name when receiving a confirmation instruction carrying the non-uninstallable application package name; wherein the non-uninstallable application package name is the application package name of the target application or the application package name corresponding to the same application type as the target application.

[0049] Optionally, it also includes a setting unit, a judging unit and a downloading unit;

[0050] The setting unit is used for setting a type identifier for the application to be put on the shelf when the application to be put on the shelf is transmitted to the server, if the application to be put on the shelf matches the application type included in the system directory;

[0051] Accordingly, before determining whether there is an application type identical to the target application in the database list, the method further includes:

[0052] The judging unit is configured to judge whether the target application has a type identifier upon receiving a download instruction of the target application; if the target application has a type identifier, trigger the judging subunit to execute the step of judging whether there is an application of the same type as the target application in the database list;

[0053] The downloading unit is used to execute downloading of the target application if the target application does not have a type identifier.

[0054] Optionally, the uninstallation unit is used to determine whether there is an application type that is the same as the application to be uninstalled in the database list when receiving the application uninstallation instruction;

[0055] If the database list contains an application of the same type as the application to be uninstalled, determine whether the application package name of the application to be uninstalled exists in the database list; if the application package name of the application to be uninstalled does not exist in the database list, display an uninstall option for the application to be uninstalled; and upon receiving a confirmation instruction for the uninstall option, uninstall the application to be uninstalled.

[0056] Optionally, it also includes a selection unit and a display unit;

[0057] The selection unit is used to select an application matching the file type of the file upon receiving a file opening instruction;

[0058] The display unit is used to display adjustment options of the matching application when the number of the matching application is at least two and the application package name of one of the matching application is recorded in the database list;

[0059] The updating unit is used to complete the update of the application package name in the database list based on the application package name carried in the adjustment instruction.

[0060] Optionally, it also includes a number judgment unit and a display unit;

[0061] The number determination unit is used to determine whether there are multiple application programs of the same application type as in the database list;

[0062] The display unit is used to display the application package names of multiple application programs if there are multiple application programs of the same application type as in the database list;

[0063] The updating unit is used to complete the update of the application package name in the database list based on the non-uninstallable application selected from the multiple applications.

[0064] The present application also provides a device for uninstalling an application, including:

[0065] Memory for storing computer programs;

[0066] A processor is used to execute the computer program to implement the steps of the method for uninstalling the application as described above.

[0067] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for uninstalling an application are implemented as described above.

[0068] It can be seen from the above technical solution that when executing system application compilation, a system directory that supports user operations is created; the system default non-uninstallable applications are stored in the system directory, and the application package name and application type corresponding to the application are recorded in the database list; the applications stored in the system directory can support the uninstall function, so that the subsequent update of the application type and application package name contained in the database list can be supported. The uninstall function may not be displayed for the applications corresponding to each application package name in the database list. When there is a target application with the same application type as the application in the database list, in order to avoid the occupation of system storage resources by multiple applications of the same type, the application package name in the database list can be updated based on the target application, so that only one application package name of the same type of application is stored in the database list, and the application package names of the remaining applications can be stored outside the database list. When the application package name of the application to be processed does not exist in the database list, the application to be processed can be uninstalled. In this technical solution, for multiple applications of the same type, only the application package name of one application required by the user can be retained in the database list, and the remaining applications of the same type can all perform the uninstall operation, which effectively improves the utilization of storage space. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0070] Figure 1 A flowchart of a method for uninstalling an application provided in an embodiment of the present application;

[0071] Figure 2 A schematic diagram of the structure of a device for uninstalling an application provided in an embodiment of the present application;

[0072] Figure 3 A structural diagram of a device for uninstalling an application provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0074] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0075] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0076] Next, a method for uninstalling an application provided by an embodiment of the present application is described in detail. Figure 1 A flowchart of a method for uninstalling an application provided in an embodiment of the present application, the method comprising:

[0077] S101: When executing system application compilation, create a system directory that supports user operations.

[0078] Applications are mainly applicable to terminal devices, such as mobile phones, smart watches, personal computers, etc. For the sake of convenience, the application programs on mobile phones are used as an example for introduction.

[0079] Currently, Android system applications are compiled into the system default directory, such as / system / app / or / system / priv-app. Apps in the system default directory cannot be uninstalled, and users do not have the authority to adjust the apps recorded in the system default directory.

[0080] Therefore, in an embodiment of the present application, in order to adjust the system default non-uninstallable applications, a system directory that supports user operations, such as / system / preload / , can be recreated when executing system application compilation.

[0081] S102: Storing the system default non-uninstallable applications in the system directory, and recording the application package names and application types corresponding to the applications in a database list.

[0082] Among them, applications stored in the system directory can support uninstallation function.

[0083] In the initial state, the system default non-uninstallable applications can be stored in the system directory, and the application package names and application types corresponding to the system default non-uninstallable applications can be stored in the newly created system directory. Since the system directory supports user operations, users can uninstall the applications under the system directory according to actual needs.

[0084] The applications corresponding to the application package names included in the database list can be used to implement some basic functions commonly used by users, ensuring that users have a good user experience. In actual applications, the uninstall option may not be displayed for the applications corresponding to the application package names included in the database list, so that users cannot directly uninstall the applications corresponding to the application package names in the database list, thereby ensuring the implementation of basic functions of the device.

[0085] S103: When there is a target application of the same application type as that in the database list, based on the target application, the application package name in the database list is updated so that only one application package name of the same type of application is stored in the database list.

[0086] When there is a target application of the same application type as the one in the database list, it means that there are multiple applications of the same type. Applications of the same type implement similar functions, and users generally only use one application they are accustomed to when actually using it, thus leaving other applications of the same type idle.

[0087] In order to reduce the occupation of system storage space by these idle applications, in the embodiment of the present application, when there is a target application of the same application type as in the database list, the application package name in the database list can be updated based on the target application. In a specific implementation, the application package name of the target application can replace the application package name corresponding to the same application type in the database list; or, according to user needs, the application package name included in the database list can be retained, and the target application package name can be stored in other storage spaces outside the database list.

[0088] S104: When the application to be processed does not exist in the system directory, uninstall the application to be processed.

[0089] The purpose of updating the application package name in the database list is to ensure that only one application package name of the same type of application is stored in the database list, while other application package names of the same type are stored outside the database list. Users can uninstall the application corresponding to the application package name outside the database list.

[0090] The pending application refers to the application that the user currently needs to uninstall. As long as the pending application does not exist in the system directory, the pending application can be uninstalled.

[0091] In actual applications, when an application uninstallation instruction is received, it can be determined whether there is an application of the same type as the application to be uninstalled in the database list. If there is an application of the same type as the application to be uninstalled in the database list, it is determined whether the application package name of the application to be uninstalled exists in the database list. If the application package name of the application to be uninstalled does not exist in the database list, an uninstallation option of the application to be uninstalled can be displayed, and the user can uninstall the application to be uninstalled by clicking the uninstallation option of the application to be uninstalled.

[0092] For the processing system, the user clicking the uninstall option of the application to be uninstalled is equivalent to inputting a confirmation instruction for the uninstall option, and the processing system can uninstall the application to be uninstalled.

[0093] In actual applications, for applications corresponding to application package names outside the database list, the Android system can automatically decide whether to provide an uninstall option based on whether the application can be uninstalled.

[0094] It can be seen from the above technical solution that when executing system application compilation, a system directory that supports user operations is created; the system default non-uninstallable applications are stored in the system directory, and the application package name and application type corresponding to the application are recorded in the database list; the applications stored in the system directory can support the uninstall function, so that the subsequent update of the application type and application package name contained in the database list can be supported. The uninstall function may not be displayed for the applications corresponding to each application package name in the database list. When there is a target application with the same application type as the application in the database list, in order to avoid the occupation of system storage resources by multiple applications of the same type, the application package name in the database list can be updated based on the target application, so that only one application package name of the same type of application is stored in the database list, and the application package names of the remaining applications can be stored outside the database list. When the application package name of the application to be processed does not exist in the database list, the application to be processed can be uninstalled. In this technical solution, for multiple applications of the same type, only the application package name of one application required by the user can be retained in the database list, and the remaining applications of the same type can all perform the uninstall operation, which effectively improves the utilization of storage space.

[0095] Considering that in actual applications, the applications actively downloaded by users are generally the applications that users are accustomed to using. When there is an application of the same type as the application in the database list, it will cause duplication of applications in terms of functionality. In order to uninstall the duplicated applications, the application package name of the application actively downloaded by the user can be directly replaced with the application package name of the same application type as the application in the database list. At this time, the replaced application package name will be stored in the storage space outside the database list. Since the replaced application package name is stored outside the database list, the replaced application can be uninstalled.

[0096] In a specific implementation, when a download instruction for a target application is received, it can be determined whether there is an application type identical to the target application in the database list; if there is an application type identical to the target application in the database list, the application package name of the target application replaces the application package name corresponding to the same application type in the database list.

[0097] In an embodiment of the present application, when there is an application of the same type as the target application actively downloaded by the user in the database list, the application package name of the target application actively downloaded by the user is directly replaced with the application package name corresponding to the same application type in the database list, so that the application package name of the application of the same type as the target application is removed from the database list, thereby realizing the uninstallation operation of the application of the same type as the target application, reducing the occupation of system storage space by multiple applications of the same type.

[0098] Considering that in actual applications, users may not know what types of applications exist in the system directory, and thus download a target application of the same type as the application in the database list in the application market, compared to the target application, the user may be more inclined to use the application corresponding to the application package name of the same type as the target application in the database list.

[0099] Therefore, in actual applications, when a download instruction for a target application is received, it can be determined whether there is an application type that is the same as the target application in the database list; if there is an application type that is the same as the target application in the database list, an option including the application package name of the target application and the application package name corresponding to the application type that is the same as the target application is displayed.

[0100] The user can select an application that he or she needs based on the application package name that includes the target application and the application package names of applications of the same type as the target application in the options.

[0101] Taking a mobile phone as an example, in actual applications, the icons of applications can be directly displayed on the mobile phone interface, and a confirmation option can be set next to each application icon. If the user needs to use the application, he can click the confirmation option next to the application icon. For the processing system of the mobile phone, the confirmation option clicked by the user is the confirmation instruction, and the application package name corresponding to the confirmation option is recorded in the database list, so that the uninstallation of the application is not supported.

[0102] When the system receives a confirmation instruction carrying a non-uninstallable application package name, it completes the update of the application package name in the database list based on the non-uninstallable application package name; wherein, the non-uninstallable application package name can be the application package name of the target application or the application package name of an application of the same type as the target application.

[0103] For example, when the default non-uninstallable applications on a mobile phone include music software A, and the user downloads music software B, the icons of music software A and music software B can be displayed on the mobile phone interface at the same time, and a confirmation option can be set next to each icon. Assuming that the user selects music software B, the user can click the confirmation option of the music software B icon. Correspondingly, the mobile phone processing system will replace the application package name of music software A in the database list with the application package name of music software B. At this time, the application package name of music software A will be removed to the storage space outside the database list, so that music software A can be uninstalled.

[0104] In an embodiment of the present application, when there is an application of the same type as the target application actively downloaded by the user in the database list, by displaying the application package names of the applications of the same type, the user can intuitively understand which applications of the same type are, and thus can select the required application according to his or her own usage habits. The application package names of the applications selected by the user are stored in the database list, and the application package names of the applications not selected by the user are set outside the database list, so that the applications not selected by the user can be uninstalled, thereby avoiding the unselected applications from occupying system storage space.

[0105] In the embodiment of the present application, in order to improve the efficiency of the system in identifying applications, a type identifier can be set for the application during the application listing stage. In the embodiment of the present application, the main purpose is to identify whether there is an application package name that is the same as the application type included in the database list. Therefore, during the application listing stage, a type identifier can be set only for applications that are the same as the application type included in the database list.

[0106] In a specific implementation, when the application to be listed is transmitted to the server, if the application to be listed matches the application type included in the database list, a type identifier is set for the application to be listed.

[0107] Accordingly, when receiving the download instruction of the target application, it is determined whether the target application has a type identifier; if the target application has a type identifier, it means that the application currently to be downloaded may be repeated with the application corresponding to the application package name included in the database list, and at this time, the step of determining whether there is an application type of the same as the target application in the database list can be performed. If the target application does not have a type identifier, it means that the application currently to be downloaded is not repeated with the application corresponding to the application package name included in the database list, and at this time, the download of the target application can be directly executed.

[0108] By setting a type identifier for applications of the same type as those included in the database list during the application listing phase, when subsequently downloading applications, it can be directly based on whether the application has a type identifier to quickly determine whether the currently downloaded application has duplicate functions with the application corresponding to the application type in the database list, thereby achieving the uninstallation of applications with duplicate functions and improving application processing efficiency.

[0109] In actual applications, there may be multiple applications of the same type in the system. In order to facilitate users to adjust non-uninstallable applications according to their own needs, the system can select an application that matches the file type of the file when receiving a file open instruction; when the number of matching applications is at least two and the application package name of one of the matching applications is recorded in the database list, the adjustment options of the matching application are displayed.

[0110] The displayed adjustment options may include which application currently belongs to the application under the system directory. When the user needs to adjust the application under the system directory, the user selects which application to adjust to the system directory, and then clicks the adjustment option corresponding to the application.

[0111] For the processing system, the user clicking the adjustment option corresponding to the application is equivalent to inputting an adjustment instruction. Each application has its corresponding application package name. The processing system can complete the update of the application package name in the database list based on the application package name carried in the adjustment instruction.

[0112] In addition to displaying adjustment options for an application upon receiving a file open instruction, the system may also, after completing the update of the application package name in the database list based on the target application, proactively determine whether there are multiple applications of the same application type as in the database list; if there are multiple applications of the same application type as in the database list, display the application package names of multiple applications; and complete the update of the application package name in the database list based on a non-uninstallable application selected from multiple applications.

[0113] By displaying multiple applications of the same type, it is convenient for users to select an application as a non-uninstallable application according to their own habits, thereby achieving flexible change of application package names in the database list.

[0114] Figure 2 A schematic diagram of the structure of a device for uninstalling an application provided in an embodiment of the present application, comprising a creation unit 21, a storage unit 22, an update unit 23 and an uninstallation unit 24;

[0115] A creation unit 21, used to create a system directory supporting user operations when executing system application compilation;

[0116] The storage unit 22 is used to store the application programs that cannot be uninstalled by default in the system directory, and record the application package names and application types corresponding to the application programs in a database list;

[0117] An updating unit 23, configured to complete updating of the application package name in the database list based on the target application when there is a target application of the same application type as that in the database list, so that only one application package name of the same type of application is stored in the database list;

[0118] The uninstallation unit 24 is configured to uninstall the application to be processed when the application package name of the application to be processed does not exist in the database list.

[0119] Optionally, the updating unit includes a determining subunit and a replacing subunit;

[0120] A determination subunit, configured to determine whether there is an application type identical to the target application in the database list upon receiving a download instruction of the target application;

[0121] The replacement subunit is used to replace the application package name corresponding to the same application type in the database list with the application package name of the target application if the same application type as the target application exists in the database list.

[0122] Optionally, the updating unit includes a judging subunit, a displaying subunit and an updating subunit;

[0123] A determination subunit, configured to determine whether there is an application type identical to the target application in the database list upon receiving a download instruction of the target application;

[0124] A display subunit, for displaying options including an application package name of the target application and an application package name corresponding to the same application type as the target application if there is an application type same as the target application in the database list;

[0125] The update subunit is used to complete the update of the application package name in the database list based on the non-uninstallable application package name when receiving a confirmation instruction carrying the non-uninstallable application package name; wherein the non-uninstallable application package name is the application package name of the target application or the application package name corresponding to the same application type as the target application.

[0126] Optionally, it also includes a setting unit, a judging unit and a downloading unit;

[0127] A setting unit, configured to set a type identifier for the application to be put on the shelf when the application to be put on the shelf is transmitted to the server, if the application to be put on the shelf matches the application type included in the system directory;

[0128] Accordingly, before determining whether there is an application type identical to the target application in the database list, the following is also included:

[0129] A determination unit, configured to determine whether the target application has a type identifier upon receiving a download instruction of the target application; if the target application has a type identifier, trigger the determination subunit to execute a step of determining whether there is an application type identical to the target application in the database list;

[0130] The downloading unit is used for executing the downloading of the target application if the target application does not have a type identifier.

[0131] Optionally, the uninstallation unit is used to determine whether there is an application type identical to the application to be uninstalled in the database list when receiving the application uninstallation instruction;

[0132] If there is an application type that is the same as the application to be uninstalled in the database list, determine whether the application package name of the application to be uninstalled exists in the database list; if the application package name of the application to be uninstalled does not exist in the database list, display the uninstall option of the application to be uninstalled; when receiving a confirmation instruction for the uninstall option, uninstall the application to be uninstalled.

[0133] Optionally, it also includes a selection unit and a display unit;

[0134] A selection unit, configured to select an application matching the file type of the file upon receiving a file opening instruction;

[0135] a display unit, configured to display adjustment options of the matching application when the number of matching application programs is at least two and the application package name of one of the matching application programs is recorded in the database list;

[0136] The updating unit is used to update the application package name in the database list based on the application package name carried in the adjustment instruction.

[0137] Optionally, it also includes a number judgment unit and a display unit;

[0138] A number determination unit, used to determine whether there are multiple application programs of the same application type as in the database list;

[0139] A display unit, used for displaying application package names of multiple application programs if there are multiple application programs of the same application type as in the database list;

[0140] The updating unit is used to complete the updating of the application package name in the database list based on the non-uninstallable application selected from the multiple applications.

[0141] Figure 2 The description of the features in the corresponding embodiments can be found in Figure 1 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.

[0142] It can be seen from the above technical solution that when executing system application compilation, a system directory that supports user operations is created; the system default non-uninstallable applications are stored in the system directory, and the application package name and application type corresponding to the application are recorded in the database list; the applications stored in the system directory can support the uninstall function, so that the subsequent update of the application type and application package name contained in the database list can be supported. The uninstall function may not be displayed for the applications corresponding to each application package name in the database list. When there is a target application with the same application type as the application in the database list, in order to avoid the occupation of system storage resources by multiple applications of the same type, the application package name in the database list can be updated based on the target application, so that only one application package name of the same type of application is stored in the database list, and the application package names of the remaining applications can be stored outside the database list. When the application package name of the application to be processed does not exist in the database list, the application to be processed can be uninstalled. In this technical solution, for multiple applications of the same type, only the application package name of one application required by the user can be retained in the database list, and the remaining applications of the same type can all perform the uninstall operation, which effectively improves the utilization of storage space.

[0143] Figure 3 A structural diagram of a device for uninstalling an application provided in an embodiment of the present application, such as Figure 3 As shown, the device for uninstalling an application program includes: a memory 20 for storing a computer program;

[0144] The processor 21 is used to implement the steps of the method for uninstalling the application program in the above embodiment when executing the computer program.

[0145] The device for uninstalling the application provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0146] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the 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 to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0147] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the method for uninstalling the application disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to system directories, non-uninstallable applications, etc.

[0148] In some embodiments, the device for uninstalling the application may further include a display screen 22 , an input and output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0149] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the device for uninstalling the application program, and may include more or less components than those shown in the figure.

[0150] It is understandable that if the method for uninstalling the application in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.

[0151] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for uninstalling an application program as described above are implemented.

[0152] The functions of the functional modules of the computer-readable storage medium described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0153] The above is a detailed introduction to a method, device, equipment and computer-readable storage medium for uninstalling an application provided in an embodiment of the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0154] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0155] The above is a detailed introduction to a method, device, equipment and computer-readable storage medium for uninstalling an application provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for uninstalling an application, characterized in that: include: When executing system application compilation, create a system directory that supports user operations; Storing the system default non-uninstallable applications in the system directory, and recording the application package names and application types corresponding to the applications in a database list; When there is a target application of the same application type as that in the database list, based on the target application, completing the updating of the application package name in the database list, so that only one application package name of the same type of application is stored in the database list; When the application package name of the application to be processed does not exist in the database list, uninstalling the application to be processed; The method for uninstalling an application further includes: When receiving a file opening instruction, selecting an application that matches the file type of the file; When the number of matching applications is at least two and the application package name of one of the matching applications is recorded in the database list, adjustment options for the matching application are displayed; and based on the application package name carried in the adjustment instruction, the application package name in the database list is updated.

2. The method for uninstalling an application according to claim 1, characterized in that: When there is a target application program of the same application type as that in the database list, completing the updating of the application package name in the database list based on the target application program includes: Upon receiving a download instruction of a target application, determining whether there is an application type identical to the target application in the database list; If the database list contains an application of the same type as the target application, the application package name of the target application replaces 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, characterized in that: When there is a target application program of the same application type as that in the database list, completing the updating of the application package name in the database list based on the target application program includes: Upon receiving a download instruction of a target application, determining whether there is an application type identical to the target application in the database list; If the same application type as the target application exists in the database list, displaying an option including the application package name of the target application and the application package name corresponding to the same application type as the target application; When a confirmation instruction carrying a non-uninstallable application package name is received, the application package name in the database list is updated based on the non-uninstallable application package name; wherein the non-uninstallable application package name is the application package name of the target application or the application package name corresponding to the same application type as the target application.

4. The method for uninstalling an application according to claim 2 or 3, characterized in that: Also includes: When the application to be put on the shelf is transmitted to the server, if the application to be put on the shelf matches the application type contained in the system directory, a type identifier is set for the application to be put on the shelf; Accordingly, before determining whether there is an application type identical to the target application in the database list, the method further includes: Upon receiving a download instruction of a target application, determining whether the target application has a type identifier; If the target application has a type identifier, executing the step of determining whether there is an application type identical to the target application in the database list; If the target application does not have a type identifier, downloading of the target application is performed.

5. The method for uninstalling an application according to claim 4, characterized in that: When the application package name of the to-be-processed application does not exist in the database list, uninstalling the to-be-processed application includes: Upon receiving an application uninstallation instruction, determining whether there is an application of the same type as the application to be uninstalled in the database list; If the database list contains an application of the same type as the application to be uninstalled, determining whether the application package name of the application to be uninstalled exists in the database list; If the application package name of the application to be uninstalled does not exist in the database list, displaying an uninstall option of the application to be uninstalled; When a confirmation instruction of the uninstall option is received, the application to be uninstalled is uninstalled.

6. The method for uninstalling an application according to claim 1, characterized in that: Also includes: Determine whether there are multiple application programs of the same application type as that in the database list; If there are multiple applications of the same application type as in the database list, then display the application package names of the multiple applications; Based on the non-uninstallable application selected from the multiple application programs, the application package name in the database list is updated.

7. A device for uninstalling an application, characterized in that: It includes a creation unit, a storage unit, an update unit and an uninstallation unit; The creation unit is used to create a system directory supporting user operations when executing system application compilation; The storage unit is used to store the application programs that cannot be uninstalled by default in the system directory, and record the application package names and application types corresponding to the application programs in the database list; The updating unit is used to complete the update of the application package name in the database list based on the target application when there is a target application of the same application type as that in the database list, so that only one application package name of the same type of application is stored in the database list; The uninstallation unit is used to uninstall the application to be processed when the application package name of the application to be processed does not exist in the database list. The device for uninstalling an application further includes a selection unit and a display unit; A selection unit, configured to select an application matching the file type of the file upon receiving a file opening instruction; a display unit, configured to display adjustment options of the matching application when the number of matching application programs is at least two and the application package name of one of the matching application programs is recorded in the database list; The updating unit is used to update the application package name in the database list based on the application package name carried in the adjustment instruction.

8. A device for uninstalling an application, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the method for uninstalling an application as claimed in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for uninstalling an application program as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Application program data processing method and mobile terminal

    CN106325942A

  • Method and device for uninstalling application program and terminal equipment

    CN109710278A