WO2017088414A1 - Method and device for processing application programs and electronic apparatus - Google Patents

Method and device for processing application programs and electronic apparatus Download PDF

Info

Publication number
WO2017088414A1
WO2017088414A1 PCT/CN2016/083730 CN2016083730W WO2017088414A1 WO 2017088414 A1 WO2017088414 A1 WO 2017088414A1 CN 2016083730 W CN2016083730 W CN 2016083730W WO 2017088414 A1 WO2017088414 A1 WO 2017088414A1
Authority
WO
WIPO (PCT)
Prior art keywords
target application
application
preset
source file
file corresponding
Prior art date
Application number
PCT/CN2016/083730
Other languages
French (fr)
Chinese (zh)
Inventor
徐仕猛
Original Assignee
北京金山安全软件有限公司
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 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2017088414A1 publication Critical patent/WO2017088414A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Definitions

  • the present invention relates to the field of computer applications, and in particular, to a method, an apparatus, and an electronic device for processing an application.
  • the electronic device when the electronic device is shipped from the factory, many applications are forced to be installed by the manufacturer in the electronic device, and the application that is forced to be installed is also commonly referred to as a preset application.
  • the preset application is forced to run by the electronic device, and the user cannot uninstall the preset application through the conventional uninstallation means.
  • the source file corresponding to the preset application occupies storage space, and the running of the preset application occupies memory space.
  • An object of the embodiments of the present invention is to provide a processing method, an apparatus, and an electronic device for reducing application space and memory space.
  • an embodiment of the present invention discloses a processing method of an application, including:
  • the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  • the method may further include:
  • the determining, by the target application in the electronic device, whether the target application is For pre-built applications you can include:
  • the determining, by the target application in the electronic device, whether the target application is a preset application may include:
  • the preset rule may include: the latest usage time of the target application is the same as the installation time; or when the latest usage time of the target application is different from the installation time, the current time and the current time The difference between the latest usage time of the target application is greater than the first preset threshold;
  • the method may further include:
  • the preset rule may include: the number of times the target application is used in the preset time period is less than a second preset threshold;
  • the method may further include:
  • the method may further include:
  • the source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
  • the source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
  • the method may further include:
  • the method may further include:
  • the target application to be restored is restored by using the package file corresponding to the target application to be restored.
  • an embodiment of the present invention discloses a processing device for an application, which is applied to an electronic device, where the device includes: a first determining module, a second determining module, and a first processing module, where
  • the first determining module is configured to determine, according to a target application in the electronic device, whether the target application is a preset application;
  • the second determining module is configured to determine, when the first determining module determines that the target application is a preset application, whether the target application meets a preset rule;
  • the first processing module is configured to: when the second determining module determines that the target application meets a preset rule, package the source file corresponding to the target application, and after the packaging is completed, The source file corresponding to the target application is deleted.
  • the device may further include: a third determining module and a second processing module, where
  • the third determining module is configured to determine whether the target application is in an operating state
  • the second processing module is configured to close the target application if the third determining module determines that the target application is in an running state.
  • the first determining module is specifically configured to:
  • the first determining module may include: obtaining a submodule and a determining submodule, where
  • the obtaining submodule is configured to obtain, according to the attribute information of the target application, a value of the second identification information of the target application for the target application;
  • the determining submodule is configured to determine, according to the value of the second identifier information of the target application obtained by the obtaining submodule, whether the target application is a preset application.
  • the preset rule may include: the latest usage time of the target application is the same as the installation time; or when the latest usage time of the target application is different from the installation time, the current time and the current time The difference between the latest usage time of the target application is greater than the first preset threshold;
  • the device may further include:
  • the first obtaining module is configured to obtain an installation time and a recent usage time of the target application.
  • the preset rule may include: the number of times the target application is used within a preset time period. Less than the second preset threshold;
  • the device may further include:
  • a second obtaining module configured to obtain the number of times the target application is used within a preset time period.
  • the device may further include: a first adding module and a first determining module, where
  • the first adding module is configured to add third identifier information of each target application that meets the preset rule to the first list;
  • the first determining module is configured to determine, as a target application to be processed, a target application corresponding to the third identifier information selected by the user from the first list;
  • the first processing module is configured to: package the source file corresponding to the target application to be processed, and delete the source file corresponding to the target application to be processed after the packaging is completed.
  • the device may further include: a fourth determining module and a third processing module, where
  • the fourth determining module is configured to determine whether the target application has an upgrade file
  • the third processing module is configured to delete the upgrade file if the fourth determining module determines that the target application has an upgrade file.
  • the device may further include: a second adding module, a second determining module, and a fourth processing module, where
  • the second adding module is configured to add fourth identifier information of the target application to the second list
  • the second determining module is configured to determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list;
  • the fourth processing module is configured to recover the target application to be restored by using the package file corresponding to the target application to be restored.
  • an embodiment of the present invention provides an electronic device including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory.
  • a circuit board Provided on a circuit board; a power circuit for powering various circuits or devices of the electronic device; a memory for storing executable program code; and a processor for executing the executable program code by reading executable program code stored in the memory
  • Corresponding program for processing a method for executing an application according to any of the above-described embodiments of the present invention.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to execute A processing method of an application program according to any of the above embodiments of the present invention.
  • an embodiment of the present invention provides an application program, where the application is used to execute a processing method of an application program according to any one of the foregoing embodiments of the present invention at runtime.
  • the source file corresponding to the preset application is packaged, and after the package is completed, the source file corresponding to the application is preset. delete.
  • the file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space.
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 1 is a first schematic flowchart of a method for processing an application according to an embodiment of the present invention
  • FIG. 2 is a second schematic flowchart of a method for processing an application according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a third process of a method for processing an application according to an embodiment of the present invention.
  • FIG. 4 is a fourth schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart diagram of a fifth processing method of an application program according to an embodiment of the present disclosure
  • FIG. 6 is a sixth schematic flowchart of a method for processing an application according to an embodiment of the present disclosure
  • FIG. 7 is a schematic flowchart diagram of a seventh processing method of an application program according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a first processing apparatus of an application program according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a second structure of an apparatus for processing an application according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a third structure of an apparatus for processing an application according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of a fourth structure of an apparatus for processing an application according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram showing a fifth structure of an apparatus for processing an application according to an embodiment of the present invention.
  • FIG. 13 is a sixth structural diagram of a processing device of an application program according to an embodiment of the present invention.
  • FIG. 14 is a seventh structural diagram of a processing device of an application program according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method, an apparatus, and an electronic device for processing an application.
  • a method for processing an application program provided by an embodiment of the present invention is described in detail below.
  • the embodiment of the present invention is preferably applied to an iOS operating system (iOS is a handheld operating system developed by Apple) or an Android operating system (Android system is a Linux-based free and open source code).
  • the operating system or the Windows Phone operating system (Windows Phone is a mobile phone operating system issued by Microsoft Corporation) electronic device, of course, is also applicable to other electronic devices, the present invention is not limited thereto.
  • FIG. 1 is a first schematic flowchart of a method for processing an application according to an embodiment of the present disclosure, which may include:
  • S101 Determine, according to the target application in the electronic device, whether the target application is a preset application, and if yes, execute S102.
  • the target application is any one of the applications in the electronic device.
  • S103 The source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  • determining whether the target application is a preset application may be in two ways.
  • the first manner may include: determining, for the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device, and if yes, indicating the target application
  • the program is a pre-built application.
  • the application list of the electronic device can store various information of the application, such as the name, icon, size, and the like of the application.
  • the application list of the electronic device may store whether the application is the information of the preset application.
  • the information is “Yes”, which is the target application.
  • the program is the first identification information of the preset application; for the non-preset application, the information is "No".
  • it is determined whether the target application is a preset application it is only necessary to determine whether the first identification information "Yes" of the target application is stored in the application list, and if so, the target application is a preset application.
  • the second method may include: obtaining, by the target application, a value of the second identifier information of the target application according to the attribute information of the target application;
  • the attribute information of the preset application has a unified system identifier, such as FLAG_SYSTEM, and the value of the second identification information of the target application may be obtained from the attribute information of the target application.
  • some operating systems provide a function that can determine whether the target application is a preset application, and if the return value of the function is 1, it indicates that the target application is a preset application, if the return value of the function A value of 0 means the target application is not a preset application. Using the return value of the function as the value of the second identification information of the target application, determining whether the target application is a preset application according to the value of the second identification information of the target application.
  • the preset rule may include: the latest usage time of the target application is the same as the installation time; or the latest usage time of the target application is different from the installation time. In the case, the difference between the current time and the latest usage time of the target application is greater than the first preset threshold.
  • the preset rule may also be: the number of times the target application is used within a preset time period is less than a second preset threshold.
  • the preset rule may also be: simultaneously satisfying that the difference between the current time and the latest usage time of the target application is greater than a first preset threshold, and the target application is used less than the second in the preset time period. Preset threshold.
  • the foregoing preset rules may be uniformly set for all applications in the electronic device, or different rules may be set for different applications, and are not limited herein.
  • the source file corresponding to the preset application is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted.
  • the file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space.
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 2 is a second schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 2 is based on the embodiment shown in FIG. 1. Before S103, the following two steps are added.
  • S104 Determine whether the target application is in an running state, if yes, execute S105, and if no, execute S103.
  • the target application A determines that the preset application is determined by S101, and determines that the preset rule is met according to S102. If it is determined by S104 that A is in the running state, A is first closed, and then the source file corresponding to A is packaged, and packaged. After the completion, delete the source file corresponding to A.
  • the target application before the target application is processed, it is determined whether it is in a running state. If the target application is in a running state, it is first closed, and then processed to avoid the target application. During the running process, the corresponding source files are forcibly packaged to cause file loss or damage.
  • FIG. 3 is a third schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 3 is based on the embodiment shown in FIG. 1, and before S102, S106 is added.
  • S106 Obtain an installation time and a recent usage time of the target application.
  • S102 can include S102A and S102B.
  • S102A Determine whether the latest usage time of the target application is the same as the installation time. If yes, execute S103, if no, execute S102B.
  • S102B Determine whether a difference between the current time and the latest usage time of the target application is greater than a first preset threshold, and if yes, execute S103.
  • the latest usage time of the target application is the time when the user last actively uses the target application, and can also be understood as the last running time of the target application in the foreground. If the target application's most recent usage time is the same as its installation time, it means that the user has never used the target application, indicating that the target application needs to be processed.
  • the first preset threshold may be different for different target applications.
  • the first preset threshold for the target application of the alarm class may be set higher, such as 6-12 months; the first preset threshold for the target application of the communication class may be set lower, such as 1 About month.
  • the first preset thresholds of different target applications may also be the same, and are not described herein.
  • the target application Assuming that the difference between the current time and the latest usage time of the target application is 2 months, and the first preset threshold corresponding to the target application is 1 month, it indicates that the target application satisfies the preset rule and needs to be processed.
  • the target application does not satisfy the preset rule, and does not need deal with.
  • the processing of the target application is S103: the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  • an application that has never been used by a user and an application that is not frequently used The source file corresponding to the program is packaged, and after the package is completed, the corresponding source file is deleted. Respect the user's usage habits while saving storage space and memory space.
  • FIG. 4 is a fourth schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 4 is based on the embodiment shown in FIG. 1. Before S102, S107 is added.
  • S102 may be S102C: determining whether the number of uses of the target application in the preset time period is less than a second preset threshold, and if yes, executing S103.
  • the number of times the target application is used in the preset time period is the number of times the user actively uses the target application within the preset time period, and can also be understood as the number of times the target application runs in the foreground within the preset time period.
  • the preset time period and the second preset threshold may be different for different target applications.
  • the preset time period for the target application of the alarm clock type can be set to one week
  • the second preset threshold value can be set to 2 times
  • the preset time period for the target application of the communication type can be set to one month
  • the second The preset threshold can be set to 3 times.
  • the preset time period and the second preset threshold of different target applications may also be the same, and are not described herein.
  • a target application has a preset time period of 1 week and a second preset threshold of 4 times. If the number of times the user actively uses the target application within one week is less than 4 times, it means that the target application satisfies the preset rule and needs to be processed; if the number of times the user actively uses the target application within one week is greater than or equal to 4 times, It means that the target application does not meet the preset rules and does not need to be processed.
  • the processing of the target application is S103: the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  • the source file corresponding to the application that the user has never used and the application that is not frequently used are packaged, and after the packaging is completed, the corresponding source file is deleted. Respect the user's usage habits while saving storage space and memory space.
  • FIG. 5 is a fifth schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 5 is based on the embodiment shown in FIG. 1. Before S103, the following steps are added:
  • S109 Determine a target application corresponding to the third identifier information selected by the user from the first list as a target application to be processed.
  • S103 is S103A: the source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
  • the first list stores third identification information of the preset application to be processed.
  • the third identification information may be an application name, an ID, an icon, etc., and may also include an application's latest usage time. Various information such as the size of the memory is not limited herein. In this embodiment, the third identification information is the name of the application.
  • the target applications named A, B, and C are judged as preset applications by S101, and the S102 determines that the preset rules are met, adds A, B, and C to the first list, and presents the first list to the user.
  • the application in the first list can be ranked according to the user's rating of the application or the usage heat of the application.
  • the application in the first list may be divided into three levels, the first level is an application that is suggested to be processed by the user, the second level is an application that is not recommended by the user, and the third level is that the user cannot process Applications such as system-level applications with information such as android and Google.
  • the names of the first-level applications can be ranked first, the names of the second-level applications are listed later, and the names of the third-level applications can be in a state that the user cannot select, or not in the first Shown to the user in the list.
  • the name of the second-level application can be arbitrarily selected.
  • a and B are second-level applications
  • C is the first-level application
  • C defaults to the selection state
  • the user does not perform an anti-checking operation on C
  • both A and B are selected.
  • the processing of A, B, and C may include: packaging the source files corresponding to A, B, and C, and deleting the source files corresponding to A, B, and C after the packaging is completed.
  • a "one-click clean" button can be set to enable the user to batch process the application corresponding to the name in the first list selected by the user. It is also possible to process the application while the user selects the name of the application.
  • the third identifier information of the preset application is added to the first list for the user to select, and the third identifier information selected by the user is used.
  • the source file corresponding to the preset application package is packaged, and after the package is completed, the source file corresponding to the preset application is deleted. Fully respect the user's choice, more friendly and more user-friendly, and the file generated by the package is smaller than the storage space occupied by the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. .
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 6 is a sixth schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 6 is based on the embodiment shown in FIG. 1. Before S103, the following two steps are added.
  • the target application is a preset application that conforms to the preset rule and has undergone an upgrade operation
  • the user still cannot uninstall the target application by a conventional uninstallation means, and cannot directly process it according to S103.
  • the upgrade file should be deleted first, so that it becomes a preset application that has not been upgraded, and then the source file corresponding to the target application is packaged. After the package is completed, the target application is correspondingly The source file is deleted.
  • the upgrade file is deleted first, so that it becomes a preset application that has not been upgraded, and then the preset application is used.
  • the corresponding source file is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted.
  • the file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space.
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 7 is a seventh schematic flowchart of a method for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 7 is based on the embodiment shown in FIG. 1. After S103, the following three steps are added.
  • S112 Add fourth identification information of the target application to the second list.
  • S113 Determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list.
  • S114 Restore the target application to be restored by using the package file corresponding to the target application to be restored.
  • the user can also restore the target application whose corresponding source file is deleted.
  • the specific recovery operation may be: adding the fourth identification information of the target application that has been processed to the second list.
  • the second list stores the fourth identification information of the preset application that has been processed.
  • the fourth identification information may be a name, an ID, an icon, or the like of the application, and may include various information such as the latest usage time of the application, the size of the memory, and the like, and is not limited herein.
  • the fourth identification information is the same as the third identification information, and is the name of the application.
  • the second list is presented to the user to cause the user to select the name of the preset application in the second list.
  • the second list and the first list may be the same display interface, and for the preset application that has been processed, a “restore” button may be added to enable the user to perform recovery operations.
  • the second list can also be another presentation interface containing the name of the preset application that has been processed.
  • the application corresponding to the fourth identification information selected by the user from the second list is determined as the target application to be restored.
  • a "one-click recovery" button can be set to enable the user to perform batch recovery on the application corresponding to the name in the second list selected by the user. It is also possible to restore the application while the user selects the name of an application.
  • the recovering the target application to be restored may include: unpacking the determined package file corresponding to the target application to be restored. After unpacking, the application can find its corresponding source file when it runs, so that it runs normally.
  • the embodiment of the present invention further provides a processing device for an application.
  • FIG. 8 is a first schematic structural diagram of a processing device of an application program according to an embodiment of the present invention, including: a first determining module 201, a second determining module 202, and a first processing module 203, where
  • the first determining module 201 is configured to determine, according to the target application in the electronic device, whether the target application is a preset application;
  • the second determining module 202 is configured to determine, when the first determining module 201 determines that the target application is a preset application, whether the target application meets a preset rule;
  • the first processing module 203 is configured to: when the second determining module 202 determines that the target application meets the preset rule, package the source file corresponding to the target application, and after the packaging is completed, the target is The source file corresponding to the application is deleted.
  • the first determining module 201 is specifically configured to:
  • the first determining module 201 may include: obtaining a submodule and a determining submodule (not shown), where
  • Obtaining a sub-module configured to obtain, according to the attribute information of the target application, a value of the second identification information of the target application, for the target application;
  • a first determining submodule configured to determine, according to the value of the second identification information of the target application obtained by the obtaining submodule, whether the target application is a preset application.
  • the source file corresponding to the preset application is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted.
  • the file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space.
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 9 is a second schematic structural diagram of an apparatus for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 9 adds a third judging module 204 and a second processing to the embodiment shown in FIG. Module 205, wherein
  • the third determining module 204 is configured to determine whether the target application is in an operating state
  • the second processing module 205 is configured to: when the third determining module 204 determines that the target application is in an operating state, close the target application.
  • the target application before the target application is processed, it is determined whether it is in a running state. If the target application is in a running state, it is first closed, and then processed to avoid the target application. During the running process, the corresponding source files are forcibly packaged to cause file loss or damage.
  • FIG. 10 is a third schematic structural diagram of an apparatus for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 10 adds the first obtaining module 206 to the embodiment shown in FIG.
  • the first obtaining module 206 is configured to obtain an installation time and a latest usage time of the target application.
  • the preset rule includes: the latest usage time of the target application is the same as the installation time; or in a case where the latest usage time of the target application is different from the installation time, the current time and the target application The difference in the most recently used time is greater than the first predetermined threshold.
  • the source file corresponding to the application that the user has never used and the application that is not frequently used are packaged, and after the package is completed, the corresponding source file is deleted. Respect the user's usage habits while saving storage space and memory space.
  • FIG. 11 is a schematic diagram of a fourth structure of an apparatus for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 11 adds a second obtaining module 207 to the embodiment shown in FIG.
  • the first obtaining module 207 is configured to obtain the number of uses of the target application within a preset time period.
  • the preset rule includes: the number of times the target application is used within a preset time period is less than a second preset threshold.
  • the source file corresponding to the application that the user has never used and the application that is not frequently used are packaged, and after the package is completed, the corresponding source file is deleted.
  • Saving storage space Respect the user's usage habits while keeping the memory space.
  • FIG. 12 is a schematic diagram of a fifth structure of an apparatus for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 12 adds a first adding module 208 and a first determination based on the embodiment shown in FIG. Module 209, wherein
  • a first adding module 208 configured to add third identifier information of each target application that meets the preset rule to the first list
  • a first determining module 209 configured to determine, as a target application to be processed, a target application corresponding to the third identifier information selected by the user from the first list;
  • the first processing module 203 is specifically configured to: package the source file corresponding to the target application to be processed, and delete the source file corresponding to the target application to be processed after the packaging is completed.
  • the third identifier information of the preset application is added to the first list for the user to select, and the third identifier information selected by the user is used.
  • the source file corresponding to the preset application package is packaged, and after the package is completed, the source file corresponding to the preset application is deleted. Fully respect the user's choice, more friendly and more user-friendly, and the file generated by the package is smaller than the storage space occupied by the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. .
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 13 is a schematic diagram of a sixth structure of an apparatus for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 13 adds the fourth judging module 210 and the third processing to the embodiment shown in FIG. Module 211, wherein
  • the fourth determining module 210 is configured to determine whether the target application has an upgrade file
  • the third processing module 211 is configured to delete the upgrade file if the fourth determining module 210 determines that the target application has an upgrade file.
  • the upgrade file is deleted first, so that it becomes a preset application that has not been upgraded, and then the preset application is used.
  • the corresponding source file is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted.
  • the file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space.
  • the electronic device since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • FIG. 14 is a schematic diagram of a seventh structure of an apparatus for processing an application according to an embodiment of the present invention.
  • the embodiment shown in FIG. 14 adds a second adding module 212, a second determining module 213, and a fourth processing module 214, based on the embodiment shown in FIG.
  • a second adding module 212 configured to add fourth identifier information of the target application to the second list
  • a second determining module 213, configured to determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list;
  • the fourth processing module 214 is configured to recover the target application to be restored by using the package file corresponding to the target application to be restored.
  • the second adding module 212, the second determining module 213, and the fourth processing module 214 may be added to the embodiments shown in FIG. 9, FIG. 10, FIG. 11, FIG. 12, and FIG.
  • the electronic device may include: a housing 1501, a processor 1502, a memory 1503, a circuit board 1504, and a power circuit 1505.
  • the circuit board 1504 is disposed in the shell. Inside the space enclosed by the body 1501, the processor 1502 and the memory 1503 are disposed on the circuit board 1504; the power supply circuit 1505 is configured to supply power to each circuit or device of the electronic device; the memory 1503 is configured to store executable program code; the processor 1502 The program corresponding to the executable program code is executed by reading the executable program code stored in the memory 1503 for executing the processing method of the application program according to any of the above-described embodiments of the present invention.
  • the electronic device exists in a variety of forms including, but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • electronic devices include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • electronic devices include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • the source file corresponding to the preset application is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted. Bale The generated file occupies less storage space than the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
  • an embodiment of the present invention further provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform the implementation of the present invention.
  • the processing method of the application provided by the example; wherein the processing method of the application provided by the embodiment of the present invention may include:
  • the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  • the method further includes: before the packaging the source file corresponding to the target application, the method further includes:
  • the determining, by the target application in the electronic device, whether the target application is a preset application includes:
  • the determining, by the target application in the electronic device, whether the target application is a preset application includes:
  • the preset rule includes: the latest usage time of the target application is the same as the installation time; or the current time and the target application if the latest usage time of the target application is different from the installation time.
  • the difference between the latest usage time of the program is greater than the first preset threshold;
  • the method further includes:
  • the preset rule includes: the target application is used less than the preset time period. Two preset thresholds;
  • the method further includes:
  • the method further includes: before the packaging the source file corresponding to the target application, the method further includes:
  • the source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
  • the source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
  • the method further includes: before the packaging the source file corresponding to the target application, the method further includes:
  • the method further includes:
  • the target application to be restored is restored by using the package file corresponding to the target application to be restored.
  • the embodiment of the present invention further provides an application program, which is used to perform the processing method of the application program provided by the embodiment of the present invention.
  • the processing method of the application program provided by the embodiment of the present invention may include:
  • the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  • the method further includes: before the packaging the source file corresponding to the target application, the method further includes:
  • the determining, by the target application in the electronic device, whether the target application is a preset application includes:
  • the determining, by the target application in the electronic device, whether the target application is a preset application includes:
  • the preset rule includes: the latest usage time of the target application is the same as the installation time; or the current time and the target application if the latest usage time of the target application is different from the installation time.
  • the difference between the latest usage time of the program is greater than the first preset threshold;
  • the method further includes:
  • the preset rule includes: the number of times the target application is used within a preset time period is less than a second preset threshold;
  • the method further includes:
  • the method further includes: before the packaging the source file corresponding to the target application, the method further includes:
  • the source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
  • the source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
  • the method further includes: before the packaging the source file corresponding to the target application, the method further includes:
  • the method further includes:
  • the target application to be restored is restored by using the package file corresponding to the target application to be restored.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.

Abstract

A method and a device for processing application programs and an electronic apparatus: when a preset application program conforms to a preset rule (S102), packing a source file corresponding to the preset application program, and deleting the source file corresponding to the preset application program after packing is completed (S103). The file generated from packing takes up less storage space than the source file corresponding to the preset application program, and the source file corresponding to the preset application program is deleted, thus saving storage space. Furthermore, since the source file corresponding to the preset application program is deleted, when the electronic apparatus forcibly operates the preset application program, the source file corresponding to the preset application program cannot be found, such that the application program cannot be operated, which saves memory space.

Description

应用程序的处理方法、装置及电子设备Application processing method, device and electronic device
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2015年11月25日提交的、发明名称为“信息的推送方法及装置”的、中国专利申请号“201510828592.0”的优先权。The present application claims the priority of the Chinese patent application No. 201510828592.0, filed on November 25, 2015 by the Beijing Jinshan Security Software Co., Ltd., entitled "Pushing Method and Apparatus for Information".
技术领域Technical field
本发明涉及计算机应用领域,特别涉及一种应用程序的处理方法、装置及电子设备。The present invention relates to the field of computer applications, and in particular, to a method, an apparatus, and an electronic device for processing an application.
背景技术Background technique
随着互联网行业的不断发展,手机、平板电脑等电子设备安装的应用程序越来越多,实现的功能也越来越多。With the continuous development of the Internet industry, there are more and more applications for installing electronic devices such as mobile phones and tablet computers, and more and more functions are being implemented.
但是在电子设备出厂时,电子设备中会被厂商强制安装很多应用程序,强制安装的应用程序也通常被称为预置应用程序。预置应用程序会被电子设备强制运行,且用户不能通过常规卸载手段,卸载预置应用程序。预置应用程序对应的源文件占用存储空间,预置应用程序的运行占用内存空间。However, when the electronic device is shipped from the factory, many applications are forced to be installed by the manufacturer in the electronic device, and the application that is forced to be installed is also commonly referred to as a preset application. The preset application is forced to run by the electronic device, and the user cannot uninstall the preset application through the conventional uninstallation means. The source file corresponding to the preset application occupies storage space, and the running of the preset application occupies memory space.
发明内容Summary of the invention
本发明实施例的目的在于提供一种应用程序的处理方法、装置及电子设备,以减少存储空间和内存空间的占用。An object of the embodiments of the present invention is to provide a processing method, an apparatus, and an electronic device for reducing application space and memory space.
为达到上述目的,本发明实施例公开了一种应用程序的处理方法,包括:To achieve the above objective, an embodiment of the present invention discloses a processing method of an application, including:
针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;Determining, for the target application in the electronic device, whether the target application is a preset application;
如果是,判断所述目标应用程序是否符合预设规则;If yes, determining whether the target application meets a preset rule;
如果符合,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。If yes, the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
可选的,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还可以包括:Optionally, before the packaging the source file corresponding to the target application, the method may further include:
判断所述目标应用程序是否处于运行状态;Determining whether the target application is in a running state;
如果所述目标应用程序处于运行状态,关闭所述目标应用程序。If the target application is running, close the target application.
可选的,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否 为预置应用程序,可以包括:Optionally, the determining, by the target application in the electronic device, whether the target application is For pre-built applications, you can include:
针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
可选的,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,可以包括:Optionally, the determining, by the target application in the electronic device, whether the target application is a preset application, may include:
针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;Obtaining, by the target application, a value of the second identifier information of the target application according to the attribute information of the target application;
根据所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。Determining whether the target application is a preset application according to a value of the second identification information of the target application.
可选的,所述预设规则可以包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值;Optionally, the preset rule may include: the latest usage time of the target application is the same as the installation time; or when the latest usage time of the target application is different from the installation time, the current time and the current time The difference between the latest usage time of the target application is greater than the first preset threshold;
在所述判断所述目标应用程序是否符合预设规则之前,所述方法还可以包括:Before the determining whether the target application meets the preset rule, the method may further include:
获得所述目标应用程序的安装时间和最近使用时间。Obtain the installation time and the most recent usage time of the target application.
可选的,所述预设规则可以包括:所述目标应用程序在预设时间段内的使用次数小于第二预设阈值;Optionally, the preset rule may include: the number of times the target application is used in the preset time period is less than a second preset threshold;
在所述判断所述目标应用程序是否符合预设规则之前,所述方法还可以包括:Before the determining whether the target application meets the preset rule, the method may further include:
获得所述目标应用程序在预设时间段内的使用次数。Obtaining the number of uses of the target application within a preset time period.
可选的,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还可以包括:Optionally, before the packaging the source file corresponding to the target application, the method may further include:
将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;Adding third identification information of each target application that meets the preset rule to the first list;
将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;Determining, by the target application corresponding to the third identifier information selected by the user from the first list, as a target application to be processed;
所述将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除,包括:The source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
可选的,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还可以包括:Optionally, before the packaging the source file corresponding to the target application, the method may further include:
判断所述目标应用程序是否存在升级文件;Determining whether the target application has an upgrade file;
如果存在,删除所述升级文件。If present, delete the upgrade file.
可选的,所述方法还可以包括: Optionally, the method may further include:
将所述目标应用程序的第四标识信息添加至第二列表;Adding fourth identification information of the target application to the second list;
将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序;Determining, by the target application corresponding to the fourth identifier information selected by the user from the second list, a target application to be restored;
利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The target application to be restored is restored by using the package file corresponding to the target application to be restored.
为达到上述目的,本发明实施例公开了一种应用程序的处理装置,应用于电子设备,所述装置包括:第一判断模块、第二判断模块和第一处理模块,其中,In order to achieve the above object, an embodiment of the present invention discloses a processing device for an application, which is applied to an electronic device, where the device includes: a first determining module, a second determining module, and a first processing module, where
所述第一判断模块,用于针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;The first determining module is configured to determine, according to a target application in the electronic device, whether the target application is a preset application;
所述第二判断模块,用于在所述第一判断模块判断所述目标应用程序为预置应用程序的情况下,判断所述目标应用程序是否符合预设规则;The second determining module is configured to determine, when the first determining module determines that the target application is a preset application, whether the target application meets a preset rule;
所述第一处理模块,用于在所述第二判断模块判断所述目标应用程序符合预设规则的情况下,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。The first processing module is configured to: when the second determining module determines that the target application meets a preset rule, package the source file corresponding to the target application, and after the packaging is completed, The source file corresponding to the target application is deleted.
可选的,所述装置还可以包括:第三判断模块和第二处理模块,其中,Optionally, the device may further include: a third determining module and a second processing module, where
所述第三判断模块,用于判断所述目标应用程序是否处于运行状态;The third determining module is configured to determine whether the target application is in an operating state;
所述第二处理模块,用于在所述第三判断模块判断所述目标应用程序处于运行状态的情况下,关闭所述目标应用程序。The second processing module is configured to close the target application if the third determining module determines that the target application is in an running state.
可选的,所述第一判断模块,具体可以用于:Optionally, the first determining module is specifically configured to:
针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
可选的,所述第一判断模块,可以包括:获得子模块和判断子模块,其中,Optionally, the first determining module may include: obtaining a submodule and a determining submodule, where
所述获得子模块,用于针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;The obtaining submodule is configured to obtain, according to the attribute information of the target application, a value of the second identification information of the target application for the target application;
所述判断子模块,用于根据所述获得子模块获得的所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。The determining submodule is configured to determine, according to the value of the second identifier information of the target application obtained by the obtaining submodule, whether the target application is a preset application.
可选的,所述预设规则可以包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值;Optionally, the preset rule may include: the latest usage time of the target application is the same as the installation time; or when the latest usage time of the target application is different from the installation time, the current time and the current time The difference between the latest usage time of the target application is greater than the first preset threshold;
所述装置还可以包括:The device may further include:
第一获得模块,用于获得所述目标应用程序的安装时间和最近使用时间。The first obtaining module is configured to obtain an installation time and a recent usage time of the target application.
可选的,所述预设规则可以包括:所述目标应用程序在预设时间段内的使用次数 小于第二预设阈值;Optionally, the preset rule may include: the number of times the target application is used within a preset time period. Less than the second preset threshold;
所述装置还可以包括:The device may further include:
第二获得模块,用于获得所述目标应用程序在预设时间段内的使用次数。And a second obtaining module, configured to obtain the number of times the target application is used within a preset time period.
可选的,所述装置还可以包括:第一添加模块和第一确定模块,其中,Optionally, the device may further include: a first adding module and a first determining module, where
所述第一添加模块,用于将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;The first adding module is configured to add third identifier information of each target application that meets the preset rule to the first list;
所述第一确定模块,用于将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;The first determining module is configured to determine, as a target application to be processed, a target application corresponding to the third identifier information selected by the user from the first list;
所述第一处理模块,具体用于:将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The first processing module is configured to: package the source file corresponding to the target application to be processed, and delete the source file corresponding to the target application to be processed after the packaging is completed.
可选的,所述装置还可以包括:第四判断模块和第三处理模块,其中,Optionally, the device may further include: a fourth determining module and a third processing module, where
所述第四判断模块,用于判断所述目标应用程序是否存在升级文件;The fourth determining module is configured to determine whether the target application has an upgrade file;
所述第三处理模块,用于在所述第四判断模块判断所述目标应用程序存在升级文件的情况下,删除所述升级文件。The third processing module is configured to delete the upgrade file if the fourth determining module determines that the target application has an upgrade file.
可选的,所述装置还可以包括:第二添加模块、第二确定模块和第四处理模块,其中,Optionally, the device may further include: a second adding module, a second determining module, and a fourth processing module, where
所述第二添加模块,用于将所述目标应用程序的第四标识信息添加至第二列表;The second adding module is configured to add fourth identifier information of the target application to the second list;
所述第二确定模块,用于将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序;The second determining module is configured to determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list;
所述第四处理模块,用于利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The fourth processing module is configured to recover the target application to be restored by using the package file corresponding to the target application to be restored.
为达到上述目的,本发明实施例提供了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本发明上述任一项实施例所述的应用程序的处理方法。To achieve the above objective, an embodiment of the present invention provides an electronic device including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory. Provided on a circuit board; a power circuit for powering various circuits or devices of the electronic device; a memory for storing executable program code; and a processor for executing the executable program code by reading executable program code stored in the memory Corresponding program for processing a method for executing an application according to any of the above-described embodiments of the present invention.
为达到上述目的,本发明实施例提供了一种存储介质,其中,该存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备执行本发明上述任一项实施例所述的应用程序的处理方法。To achieve the above objective, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to execute A processing method of an application program according to any of the above embodiments of the present invention.
为达到上述目的,本发明实施例提供了一种应用程序,其中,该应用程序用于在运行时执行本发明上述任一项实施例所述的应用程序的处理方法。 In order to achieve the above object, an embodiment of the present invention provides an application program, where the application is used to execute a processing method of an application program according to any one of the foregoing embodiments of the present invention at runtime.
由上述的方案可见,在本实施例中,在预置应用程序符合预设规则的情况下,将预置应用程序对应的源文件打包,在打包完成后,将预置应用程序对应的源文件删除。打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。It can be seen that, in the embodiment, in the case that the preset application meets the preset rule, the source file corresponding to the preset application is packaged, and after the package is completed, the source file corresponding to the application is preset. delete. The file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, any product or method embodying the present invention necessarily does not necessarily require all of the advantages described above to be achieved at the same time.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的应用程序的处理方法的第一种流程示意图;FIG. 1 is a first schematic flowchart of a method for processing an application according to an embodiment of the present invention;
图2为本发明实施例提供的应用程序的处理方法的第二种流程示意图;2 is a second schematic flowchart of a method for processing an application according to an embodiment of the present invention;
图3为本发明实施例提供的应用程序的处理方法的第三种流程示意图;3 is a schematic diagram of a third process of a method for processing an application according to an embodiment of the present invention;
图4为本发明实施例提供的应用程序的处理方法的第四种流程示意图;4 is a fourth schematic flowchart of a method for processing an application according to an embodiment of the present invention;
图5为本发明实施例提供的应用程序的处理方法的第五种流程示意图;FIG. 5 is a schematic flowchart diagram of a fifth processing method of an application program according to an embodiment of the present disclosure;
图6为本发明实施例提供的应用程序的处理方法的第六种流程示意图;FIG. 6 is a sixth schematic flowchart of a method for processing an application according to an embodiment of the present disclosure;
图7为本发明实施例提供的应用程序的处理方法的第七种流程示意图;FIG. 7 is a schematic flowchart diagram of a seventh processing method of an application program according to an embodiment of the present disclosure;
图8为本发明实施例提供的应用程序的处理装置的第一种结构示意图;FIG. 8 is a schematic structural diagram of a first processing apparatus of an application program according to an embodiment of the present disclosure;
图9为本发明实施例提供的应用程序的处理装置的第二种结构示意图;FIG. 9 is a schematic diagram of a second structure of an apparatus for processing an application according to an embodiment of the present disclosure;
图10为本发明实施例提供的应用程序的处理装置的第三种结构示意图;FIG. 10 is a schematic diagram of a third structure of an apparatus for processing an application according to an embodiment of the present disclosure;
图11为本发明实施例提供的应用程序的处理装置的第四种结构示意图;FIG. 11 is a schematic diagram of a fourth structure of an apparatus for processing an application according to an embodiment of the present invention;
图12为本发明实施例提供的应用程序的处理装置的第五种结构示意图;FIG. 12 is a schematic diagram showing a fifth structure of an apparatus for processing an application according to an embodiment of the present invention;
图13为本发明实施例提供的应用程序的处理装置的第六种结构示意图;FIG. 13 is a sixth structural diagram of a processing device of an application program according to an embodiment of the present invention;
图14为本发明实施例提供的应用程序的处理装置的第七种结构示意图;FIG. 14 is a seventh structural diagram of a processing device of an application program according to an embodiment of the present invention;
图15为本发明实施例提供的一种电子设备的结构示意图。FIG. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了解决现有技术问题,本发明实施例提供了一种应用程序的处理方法、装置及电子设备。下面首先对本发明实施例提供的一种应用程序的处理方法进行详细说明。In order to solve the prior art problem, an embodiment of the present invention provides a method, an apparatus, and an electronic device for processing an application. A method for processing an application program provided by an embodiment of the present invention is described in detail below.
需要说明的是,本发明的实施例优选适用于安装了iOS操作系统(iOS是由苹果公司开发的手持设备操作系统)、或安卓操作系统(Android系统是一种基于Linux的自由及开放源代码的操作系统)、或Windows Phone操作系统(Windows Phone是微软公司发布的一款手机操作系统)的电子设备,当然也适用于其他电子设备,本发明对此不作限定。It should be noted that the embodiment of the present invention is preferably applied to an iOS operating system (iOS is a handheld operating system developed by Apple) or an Android operating system (Android system is a Linux-based free and open source code). The operating system), or the Windows Phone operating system (Windows Phone is a mobile phone operating system issued by Microsoft Corporation) electronic device, of course, is also applicable to other electronic devices, the present invention is not limited thereto.
图1为本发明实施例提供的应用程序的处理方法的第一种流程示意图,可以包括:FIG. 1 is a first schematic flowchart of a method for processing an application according to an embodiment of the present disclosure, which may include:
S101:针对电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,如果是,执行S102。S101: Determine, according to the target application in the electronic device, whether the target application is a preset application, and if yes, execute S102.
目标应用程序为该电子设备中的任意一个应用程序。The target application is any one of the applications in the electronic device.
S102:判断所述目标应用程序是否符合预设规则,如果是,执行S103。S102: Determine whether the target application meets a preset rule, and if yes, execute S103.
S103:将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。S103: The source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
具体的,针对电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,可以有两种方式。Specifically, for the target application in the electronic device, determining whether the target application is a preset application may be in two ways.
第一种方式可以包括:针对所述目标应用程序,判断电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息,如果有,表示所述目标应用程序为预置应用程序。The first manner may include: determining, for the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device, and if yes, indicating the target application The program is a pre-built application.
在实际应用中,电子设备的应用程序列表中可以存储应用程序的各种信息,比如,应用程序的名称、图标、大小等等。在本发明所示实施例中,电子设备的应用程序列表中可以存储应用程序是否为预置应用程序的信息,对于预置应用程序,该信息为“是”,此即为表示所述目标应用程序为预置应用程序的第一标识信息;对于非预置应用程序,该信息为“否”。当判断目标应用程序是否为预置应用程序时,只需判断在应用程序列表中是否存储有目标应用程序的第一标识信息“是”,如果有,则表示目标应用程序为预置应用程序。In an actual application, the application list of the electronic device can store various information of the application, such as the name, icon, size, and the like of the application. In the embodiment of the present invention, the application list of the electronic device may store whether the application is the information of the preset application. For the preset application, the information is “Yes”, which is the target application. The program is the first identification information of the preset application; for the non-preset application, the information is "No". When it is determined whether the target application is a preset application, it is only necessary to determine whether the first identification information "Yes" of the target application is stored in the application list, and if so, the target application is a preset application.
第二种方式,可以包括:针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;The second method may include: obtaining, by the target application, a value of the second identifier information of the target application according to the attribute information of the target application;
根据所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。 Determining whether the target application is a preset application according to a value of the second identification information of the target application.
在实际应用中,预置应用程序的属性信息中都有统一的系统标识,比如FLAG_SYSTEM,可以从目标应用程序的属性信息中获得所述目标应用程序的第二标识信息的值。具体的,一些操作系统提供了可以判断目标应用程序是否为预置应用程序的函数,调用该函数,如果函数的返回值为1,则表示目标应用程序为预置应用程序,如果函数的返回值为0,则表示目标应用程序不为预置应用程序。将所述函数的返回值作为所述目标应用程序的第二标识信息的值,根据所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。In the actual application, the attribute information of the preset application has a unified system identifier, such as FLAG_SYSTEM, and the value of the second identification information of the target application may be obtained from the attribute information of the target application. Specifically, some operating systems provide a function that can determine whether the target application is a preset application, and if the return value of the function is 1, it indicates that the target application is a preset application, if the return value of the function A value of 0 means the target application is not a preset application. Using the return value of the function as the value of the second identification information of the target application, determining whether the target application is a preset application according to the value of the second identification information of the target application.
判断所述目标应用程序是否符合预设规则,该预设规则可以包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值。Determining whether the target application meets a preset rule, the preset rule may include: the latest usage time of the target application is the same as the installation time; or the latest usage time of the target application is different from the installation time. In the case, the difference between the current time and the latest usage time of the target application is greater than the first preset threshold.
该预设规则还可以为:所述目标应用程序在预设时间段内的使用次数小于第二预设阈值。The preset rule may also be: the number of times the target application is used within a preset time period is less than a second preset threshold.
该预设规则还可以为:同时满足当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值,和所述目标应用程序在预设时间段内的使用次数小于第二预设阈值。The preset rule may also be: simultaneously satisfying that the difference between the current time and the latest usage time of the target application is greater than a first preset threshold, and the target application is used less than the second in the preset time period. Preset threshold.
上述预设规则可以针对该电子设备内所有应用程序统一设置,也可以针对不同应用程序设置不同的规则,在此不作限制。The foregoing preset rules may be uniformly set for all applications in the electronic device, or different rules may be set for different applications, and are not limited herein.
应用本发明图1所示实施例,在预置应用程序符合预设规则的情况下,将预置应用程序对应的源文件打包,在打包完成后,将预置应用程序对应的源文件删除。打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 1 of the present invention, when the preset application conforms to the preset rule, the source file corresponding to the preset application is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted. The file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
图2为本发明实施例提供的应用程序的处理方法的第二种流程示意图,本发明图2所示实施例在图1所示实施例的基础上,在S103之前,增加以下两个步骤,FIG. 2 is a second schematic flowchart of a method for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 2 is based on the embodiment shown in FIG. 1. Before S103, the following two steps are added.
S104:判断所述目标应用程序是否处于运行状态,如果是,执行S105,如果否,执行S103。S104: Determine whether the target application is in an running state, if yes, execute S105, and if no, execute S103.
S105:关闭所述目标应用程序。S105: Close the target application.
假设目标应用程序A,经S101判断为预置应用程序,经S102判断符合预设规则,经S104判断,A处于运行状态,则先将A关闭,然后将A对应的源文件进行打包,在打包完成后,将A对应的源文件删除。 Assume that the target application A determines that the preset application is determined by S101, and determines that the preset rule is met according to S102. If it is determined by S104 that A is in the running state, A is first closed, and then the source file corresponding to A is packaged, and packaged. After the completion, delete the source file corresponding to A.
需要说明的是,上述以目标应用程序A为例进行说明,仅为本发明的一具体实例,并不构成对本发明的限定。It should be noted that the above description of the target application A is merely an example of the present invention and is not intended to limit the present invention.
应用本发明图2所示实施例,在对目标应用程序进行处理之前,先判断其是否处于运行状态,如果目标应用程序处于运行状态,先将其关闭,再对其进行处理,避免目标应用程序在运行过程中,强行将其对应的源文件进行打包造成文件丢失或损坏等情况。Applying the embodiment shown in FIG. 2 of the present invention, before the target application is processed, it is determined whether it is in a running state. If the target application is in a running state, it is first closed, and then processed to avoid the target application. During the running process, the corresponding source files are forcibly packaged to cause file loss or damage.
图3为本发明实施例提供的应用程序的处理方法的第三种流程示意图,本发明图3所示实施例在图1所示实施例的基础上,在S102之前,增加S106。FIG. 3 is a third schematic flowchart of a method for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 3 is based on the embodiment shown in FIG. 1, and before S102, S106 is added.
S106:获得所述目标应用程序的安装时间和最近使用时间。S106: Obtain an installation time and a recent usage time of the target application.
S102可以包括S102A和S102B。S102 can include S102A and S102B.
S102A:判断所述目标应用程序的最近使用时间与安装时间是否相同,如果是,执行S103,如果否,执行S102B。S102A: Determine whether the latest usage time of the target application is the same as the installation time. If yes, execute S103, if no, execute S102B.
S102B:判断当前时间与所述目标应用程序的最近使用时间的差值是否大于第一预设阈值,如果是,执行S103。S102B: Determine whether a difference between the current time and the latest usage time of the target application is greater than a first preset threshold, and if yes, execute S103.
所述目标应用程序的最近使用时间为用户最近一次主动使用该目标应用程序的时间,也可以理解为该目标应用程序最近一次在前台的运行时间。如果该目标应用程序的最近使用时间与其安装时间相同,则表示用户从未使用过该目标应用程序,则表示该目标应用程序需要处理。The latest usage time of the target application is the time when the user last actively uses the target application, and can also be understood as the last running time of the target application in the foreground. If the target application's most recent usage time is the same as its installation time, it means that the user has never used the target application, indicating that the target application needs to be processed.
如果该目标应用程序的最近使用时间与其安装时间不同,则进一步判断当前时间与该目标应用程序的最近使用时间的差值是否大于第一预设阈值。在实际应用中,针对不同的目标应用程序,该第一预设阈值可以不同。比如,针对闹钟类的目标应用程序的第一预设阈值可以设置较高一些,如6-12个月;针对通讯类的目标应用程序的第一预设阈值可以设置较低一些,如1个月左右。当然,不同目标应用程序的第一预设阈值也可以相同,在此不作赘述。If the latest usage time of the target application is different from the installation time, it is further determined whether the difference between the current time and the latest usage time of the target application is greater than a first preset threshold. In practical applications, the first preset threshold may be different for different target applications. For example, the first preset threshold for the target application of the alarm class may be set higher, such as 6-12 months; the first preset threshold for the target application of the communication class may be set lower, such as 1 About month. Of course, the first preset thresholds of different target applications may also be the same, and are not described herein.
假设当前时间与该目标应用程序的最近使用时间的差值为2个月,该目标应用程序对应的第一预设阈值为1个月,则表示该目标应用程序满足预设规则,需要处理。Assuming that the difference between the current time and the latest usage time of the target application is 2 months, and the first preset threshold corresponding to the target application is 1 month, it indicates that the target application satisfies the preset rule and needs to be processed.
假设当前时间与该目标应用程序的最近使用时间的差值为2个月,该目标应用程序对应的第一预设阈值为6个月,则表示该目标应用程序不满足预设规则,不需要处理。Assuming that the difference between the current time and the latest usage time of the target application is 2 months, and the first preset threshold corresponding to the target application is 6 months, it indicates that the target application does not satisfy the preset rule, and does not need deal with.
对目标应用程序的处理即为S103:将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。The processing of the target application is S103: the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
应用本发明图3所示实施例,将用户从未使用过的应用程序和不经常使用的应用 程序对应的源文件进行打包,在打包完成后,将其对应的源文件删除。在节省存储空间和内存空间的同时,尊重用户使用习惯。Applying the embodiment shown in FIG. 3 of the present invention, an application that has never been used by a user and an application that is not frequently used The source file corresponding to the program is packaged, and after the package is completed, the corresponding source file is deleted. Respect the user's usage habits while saving storage space and memory space.
图4为本发明实施例提供的应用程序的处理方法的第四种流程示意图,本发明图4所示实施例在图1所示实施例的基础上,在S102之前,增加S107。FIG. 4 is a fourth schematic flowchart of a method for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 4 is based on the embodiment shown in FIG. 1. Before S102, S107 is added.
S107:获得所述目标应用程序在预设时间段内的使用次数。S107: Obtain the number of uses of the target application within a preset time period.
S102可以为S102C:判断所述目标应用程序在预设时间段内的使用次数是否小于第二预设阈值,如果是,执行S103。S102 may be S102C: determining whether the number of uses of the target application in the preset time period is less than a second preset threshold, and if yes, executing S103.
目标应用程序在预设时间段内的使用次数,为预设时间段内,用户主动使用该目标应用程序的次数,也可以理解为预设时间段内,该目标应用程序在前台运行的次数。The number of times the target application is used in the preset time period is the number of times the user actively uses the target application within the preset time period, and can also be understood as the number of times the target application runs in the foreground within the preset time period.
在实际应用中,针对不同的目标应用程序,该预设时间段和第二预设阈值可以不同。比如,针对闹钟类的目标应用程序的预设时间段可以设置为一周,第二预设阈值可以设置为2次;针对通讯类的目标应用程序的预设时间段可以设置为一个月,第二预设阈值可以设置为3次。当然,不同目标应用程序的预设时间段和第二预设阈值也可以相同,在此不作赘述。In an actual application, the preset time period and the second preset threshold may be different for different target applications. For example, the preset time period for the target application of the alarm clock type can be set to one week, the second preset threshold value can be set to 2 times; the preset time period for the target application of the communication type can be set to one month, the second The preset threshold can be set to 3 times. Certainly, the preset time period and the second preset threshold of different target applications may also be the same, and are not described herein.
假设某一目标应用程序的预设时间段为1周,第二预设阈值为4次。如果1周内用户主动使用该目标应用程序的次数小于4次,则表示该目标应用程序满足预设规则,需要处理;如果1周内用户主动使用该目标应用程序的次数大于或等于4次,则表示该目标应用程序不满足预设规则,不需要处理。Suppose a target application has a preset time period of 1 week and a second preset threshold of 4 times. If the number of times the user actively uses the target application within one week is less than 4 times, it means that the target application satisfies the preset rule and needs to be processed; if the number of times the user actively uses the target application within one week is greater than or equal to 4 times, It means that the target application does not meet the preset rules and does not need to be processed.
对该目标应用程序的处理即为S103:将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。The processing of the target application is S103: the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
应用本发明图4所示实施例,将用户从未使用过的应用程序和不经常使用的应用程序对应的源文件进行打包,在打包完成后,将其对应的源文件删除。在节省存储空间和内存空间的同时,尊重用户使用习惯。Applying the embodiment shown in FIG. 4 of the present invention, the source file corresponding to the application that the user has never used and the application that is not frequently used are packaged, and after the packaging is completed, the corresponding source file is deleted. Respect the user's usage habits while saving storage space and memory space.
图5为本发明实施例提供的应用程序的处理方法的第五种流程示意图,本发明图5所示实施例在图1所示实施例的基础上,在S103之前,增加如下步骤:FIG. 5 is a fifth schematic flowchart of a method for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 5 is based on the embodiment shown in FIG. 1. Before S103, the following steps are added:
S108:将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表。S108: Add third identification information of each target application that meets the preset rule to the first list.
S109:将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序。S109: Determine a target application corresponding to the third identifier information selected by the user from the first list as a target application to be processed.
S103为S103A:将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。S103 is S103A: the source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
在实际应用中,第一列表中存储需要处理的预置应用程序的第三标识信息。第三标识信息可以为应用程序的名称、ID或图标等,还可以包括应用程序的最近使用时间, 所占内存大小等各种信息,在此不作限制。在本实施例中,第三标识信息为应用程序的名称。In an actual application, the first list stores third identification information of the preset application to be processed. The third identification information may be an application name, an ID, an icon, etc., and may also include an application's latest usage time. Various information such as the size of the memory is not limited herein. In this embodiment, the third identification information is the name of the application.
假设名称为A、B和C的目标应用程序,经S101判断为预置应用程序,经S102判断符合预设规则,将A、B和C添加到第一列表,并将第一列表展示给用户,以使用户对第一列表中的应用程序的名称进行选择。通过设置第一列表,可以清楚地向用户展示,哪些应用程序为预置应用程序,并且需要处理。具体的,可以根据用户对应用程序的评分或应用程序的使用热度,对第一列表中的应用程序分级。在本实施例中,可以将第一列表中的应用程序分为三级,第一级为建议用户处理的应用程序,第二级为不建议用户处理的应用程序,第三级为用户不能处理的应用程序,比如带有android、Google等信息的系统级应用。在第一列表中,可以将第一级应用程序的名称排在前面,第二级应用程序的名称排在后面,第三级应用程序的名称可以为用户不能选择的状态,也可以不在第一列表中展示给用户。对于第一级应用程序的名称,可以默认为选择状态,当然用户也可以反勾选,第二级应用程序的名称用户可以任意选择。Assume that the target applications named A, B, and C are judged as preset applications by S101, and the S102 determines that the preset rules are met, adds A, B, and C to the first list, and presents the first list to the user. To allow the user to select the name of the application in the first list. By setting the first list, it is clear to the user which applications are pre-built and need to be processed. Specifically, the application in the first list can be ranked according to the user's rating of the application or the usage heat of the application. In this embodiment, the application in the first list may be divided into three levels, the first level is an application that is suggested to be processed by the user, the second level is an application that is not recommended by the user, and the third level is that the user cannot process Applications such as system-level applications with information such as android and Google. In the first list, the names of the first-level applications can be ranked first, the names of the second-level applications are listed later, and the names of the third-level applications can be in a state that the user cannot select, or not in the first Shown to the user in the list. For the name of the first-level application, you can default to the selection state. Of course, the user can also deselect it. The name of the second-level application can be arbitrarily selected.
假设A和B都为第二级应用程序,C为第一级应用程序,C默认为选择状态,用户没有对C进行反勾选操作,并且对A和B都进行了选择。对A、B和C进行处理,可以包括:将A、B和C对应的源文件打包,在打包完成后,将A、B和C对应的源文件删除。Assume that both A and B are second-level applications, C is the first-level application, C defaults to the selection state, the user does not perform an anti-checking operation on C, and both A and B are selected. The processing of A, B, and C may include: packaging the source files corresponding to A, B, and C, and deleting the source files corresponding to A, B, and C after the packaging is completed.
在实际应用中,可以设置“一键清理“的按钮,使用户对其选择的、第一列表中的名称对应的应用程序进行批量处理。也可以在用户选择某应用程序的名称的同时对该应用程序进行处理。In practical applications, a "one-click clean" button can be set to enable the user to batch process the application corresponding to the name in the first list selected by the user. It is also possible to process the application while the user selects the name of the application.
需要说明的是,上述以目标应用程序A、B和C为例进行说明,仅为本发明的一具体实例,并不构成对本发明的限定。It should be noted that the above description of the target applications A, B, and C is merely an example of the present invention and is not intended to limit the present invention.
应用本发明图5所示实施例,在预置应用程序符合预设规则的情况下,将预置应用程序的第三标识信息添加到第一列表供用户选择,将用户选择的第三标识信息对应的预置应用程序对应的源文件打包,在打包完成后,将预置应用程序对应的源文件删除。充分尊重用户的选择,更友好更人性化,并且打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 5 of the present invention, if the preset application meets the preset rule, the third identifier information of the preset application is added to the first list for the user to select, and the third identifier information selected by the user is used. The source file corresponding to the preset application package is packaged, and after the package is completed, the source file corresponding to the preset application is deleted. Fully respect the user's choice, more friendly and more user-friendly, and the file generated by the package is smaller than the storage space occupied by the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. . Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
图6为本发明实施例提供的应用程序的处理方法的第六种流程示意图,本发明图6所示实施例在图1所示实施例的基础上,在S103之前,增加以下两个步骤, FIG. 6 is a sixth schematic flowchart of a method for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 6 is based on the embodiment shown in FIG. 1. Before S103, the following two steps are added.
S110:判断所述目标应用程序是否存在升级文件,如果是,执行S111,如果否,执行S103。S110: Determine whether the target application has an upgrade file, if yes, execute S111, if no, execute S103.
S111:删除升级文件。S111: Delete the upgrade file.
如果所述目标应用程序为符合预设规则的预置应用程序,并且进行过升级操作,用户仍不能通过常规卸载手段,卸载所述目标应用程序,也不能直接按照S103将其处理。此时应该先将其升级文件删除,使之变为未进行过升级操作的预置应用程序,再将所述目标应用程序对应的源文件打包,在打包完成后,将所述目标应用程序对应的源文件删除。If the target application is a preset application that conforms to the preset rule and has undergone an upgrade operation, the user still cannot uninstall the target application by a conventional uninstallation means, and cannot directly process it according to S103. At this point, the upgrade file should be deleted first, so that it becomes a preset application that has not been upgraded, and then the source file corresponding to the target application is packaged. After the package is completed, the target application is correspondingly The source file is deleted.
应用本发明图6所示实施例,针对进行过升级操作的预置应用程序,先将其升级文件删除,使之变为未进行过升级操作的预置应用程序,再将该预置应用程序对应的源文件打包,在打包完成后,将该预置应用程序对应的源文件删除。打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 6 of the present invention, for the preset application that has undergone the upgrade operation, the upgrade file is deleted first, so that it becomes a preset application that has not been upgraded, and then the preset application is used. The corresponding source file is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted. The file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
图7为本发明实施例提供的应用程序的处理方法的第七种流程示意图,本发明图7所示实施例在图1所示实施例的基础上,在S103之后,增加以下三个步骤,FIG. 7 is a seventh schematic flowchart of a method for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 7 is based on the embodiment shown in FIG. 1. After S103, the following three steps are added.
S112:将所述目标应用程序的第四标识信息添加至第二列表。S112: Add fourth identification information of the target application to the second list.
S113:将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序。S113: Determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list.
S114:利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。S114: Restore the target application to be restored by using the package file corresponding to the target application to be restored.
其中,上述S112、S113和S114也可以在图2、图3、图4、图5或图6所示实施例的基础上增加。The above S112, S113 and S114 may also be added to the embodiment shown in FIG. 2, FIG. 3, FIG. 4, FIG. 5 or FIG.
对于已经被处理的目标应用程序,即,已经将其对应的源文件打包,并在打包完成后,将其对应的源文件删除的目标应用程序,用户还可以对其进行恢复。For the target application that has been processed, that is, the target application that has been packaged with its corresponding source file and deleted after the packaging is completed, the user can also restore the target application whose corresponding source file is deleted.
具体的恢复操作可以为:将已经被处理的目标应用程序的第四标识信息添加至第二列表。The specific recovery operation may be: adding the fourth identification information of the target application that has been processed to the second list.
在实际应用中,第二列表中存储已经被处理的预置应用程序的第四标识信息。该第四标识信息可以为应用程序的名称、ID或图标等,还可以包括该应用程序的最近使用时间,所占内存大小等各种信息,在此不做限制。在本实施例中,该第四标识信息与第三标识信息类型相同,均为应用程序的名称。 In an actual application, the second list stores the fourth identification information of the preset application that has been processed. The fourth identification information may be a name, an ID, an icon, or the like of the application, and may include various information such as the latest usage time of the application, the size of the memory, and the like, and is not limited herein. In this embodiment, the fourth identification information is the same as the third identification information, and is the name of the application.
将第二列表展示给用户,以使用户对第二列表中的预置应用程序的名称进行选择。在实际应用中,第二列表与第一列表可以为同一个展示界面,对于已经被处理的预置应用程序,可以增加“恢复”按钮,以使用户对其进行恢复操作。当然第二列表也可以为另一个展示界面,包含已经被处理的预置应用程序的名称。The second list is presented to the user to cause the user to select the name of the preset application in the second list. In an actual application, the second list and the first list may be the same display interface, and for the preset application that has been processed, a “restore” button may be added to enable the user to perform recovery operations. Of course, the second list can also be another presentation interface containing the name of the preset application that has been processed.
将用户从第二列表中选择的第四标识信息对应的应用程序,确定为待恢复目标应用程序。在实际应用中,可以设置“一键恢复“的按钮,使用户对其选择的、第二列表中的名称对应的应用程序进行批量恢复。也可以在用户选择某应用程序的名称的同时对该应用程序进行恢复。The application corresponding to the fourth identification information selected by the user from the second list is determined as the target application to be restored. In practical applications, a "one-click recovery" button can be set to enable the user to perform batch recovery on the application corresponding to the name in the second list selected by the user. It is also possible to restore the application while the user selects the name of an application.
对所述待恢复目标应用程序进行恢复,可以包括:将所确定的待恢复目标应用程序对应的打包文件解包。解包后,该应用程序在运行时,便可以找到其对应的源文件,从而正常运行。The recovering the target application to be restored may include: unpacking the determined package file corresponding to the target application to be restored. After unpacking, the application can find its corresponding source file when it runs, so that it runs normally.
应用本发明图7所示实施例,对于已经被处理的预置应用程序,为用户提供恢复该应用程序的选择,充分尊重用户的选择,更友好更人性化。Applying the embodiment shown in FIG. 7 of the present invention, for the preset application that has been processed, the user is provided with the option of restoring the application, fully respecting the user's choice, and being more friendly and humanized.
与上述的方法实施例相对应,本发明实施例还提供一种应用程序的处理装置。Corresponding to the foregoing method embodiments, the embodiment of the present invention further provides a processing device for an application.
图8为本发明实施例提供的应用程序的处理装置的第一种结构示意图,包括:第一判断模块201、第二判断模块202和第一处理模块203,其中,FIG. 8 is a first schematic structural diagram of a processing device of an application program according to an embodiment of the present invention, including: a first determining module 201, a second determining module 202, and a first processing module 203, where
第一判断模块201,用于针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;The first determining module 201 is configured to determine, according to the target application in the electronic device, whether the target application is a preset application;
第二判断模块202,用于在第一判断模块201判断所述目标应用程序为预置应用程序的情况下,判断所述目标应用程序是否符合预设规则;The second determining module 202 is configured to determine, when the first determining module 201 determines that the target application is a preset application, whether the target application meets a preset rule;
第一处理模块203,用于在第二判断模块202判断所述目标应用程序符合预设规则的情况下,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。The first processing module 203 is configured to: when the second determining module 202 determines that the target application meets the preset rule, package the source file corresponding to the target application, and after the packaging is completed, the target is The source file corresponding to the application is deleted.
在本发明所示的一个实施例中,第一判断模块201,具体可以用于:In an embodiment of the present invention, the first determining module 201 is specifically configured to:
针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
在本发明所示的另一个实施例中,第一判断模块201,可以包括:获得子模块和判断子模块(图中未示出),其中,In another embodiment of the present invention, the first determining module 201 may include: obtaining a submodule and a determining submodule (not shown), where
获得子模块,用于针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;Obtaining a sub-module, configured to obtain, according to the attribute information of the target application, a value of the second identification information of the target application, for the target application;
第一判断子模块,用于根据所述获得子模块获得的所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。 a first determining submodule, configured to determine, according to the value of the second identification information of the target application obtained by the obtaining submodule, whether the target application is a preset application.
应用本发明图8所示实施例,在预置应用程序符合预设规则的情况下,将预置应用程序对应的源文件打包,在打包完成后,将预置应用程序对应的源文件删除。打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 8 of the present invention, in the case that the preset application conforms to the preset rule, the source file corresponding to the preset application is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted. The file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
图9为本发明实施例提供的应用程序的处理装置的第二种结构示意图,本发明图9所示实施例在图8所示实施例的基础上,增加第三判断模块204和第二处理模块205,其中,FIG. 9 is a second schematic structural diagram of an apparatus for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 9 adds a third judging module 204 and a second processing to the embodiment shown in FIG. Module 205, wherein
第三判断模块204,用于判断所述目标应用程序是否处于运行状态;The third determining module 204 is configured to determine whether the target application is in an operating state;
第二处理模块205,用于在第三判断模块204判断所述目标应用程序处于运行状态的情况下,关闭所述目标应用程序。The second processing module 205 is configured to: when the third determining module 204 determines that the target application is in an operating state, close the target application.
应用本发明图9所示实施例,在对目标应用程序进行处理之前,先判断其是否处于运行状态,如果目标应用程序处于运行状态,先将其关闭,再对其进行处理,避免目标应用程序在运行过程中,强行将其对应的源文件进行打包造成文件丢失或损坏等情况。Applying the embodiment shown in FIG. 9 of the present invention, before the target application is processed, it is determined whether it is in a running state. If the target application is in a running state, it is first closed, and then processed to avoid the target application. During the running process, the corresponding source files are forcibly packaged to cause file loss or damage.
图10为本发明实施例提供的应用程序的处理装置的第三种结构示意图,本发明图10所示实施例在图8所示实施例的基础上,增加第一获得模块206,FIG. 10 is a third schematic structural diagram of an apparatus for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 10 adds the first obtaining module 206 to the embodiment shown in FIG.
第一获得模块206,用于获得所述目标应用程序的安装时间和最近使用时间。The first obtaining module 206 is configured to obtain an installation time and a latest usage time of the target application.
所述预设规则包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值。The preset rule includes: the latest usage time of the target application is the same as the installation time; or in a case where the latest usage time of the target application is different from the installation time, the current time and the target application The difference in the most recently used time is greater than the first predetermined threshold.
应用本发明图10所示实施例,将用户从未使用过的应用程序和不经常使用的应用程序对应的源文件进行打包,在打包完成后,将其对应的源文件删除。在节省存储空间和内存空间的同时,尊重用户使用习惯。Applying the embodiment shown in FIG. 10 of the present invention, the source file corresponding to the application that the user has never used and the application that is not frequently used are packaged, and after the package is completed, the corresponding source file is deleted. Respect the user's usage habits while saving storage space and memory space.
图11为本发明实施例提供的应用程序的处理装置的第四种结构示意图,本发明图11所示实施例在图8所示实施例的基础上,增加第二获得模块207,FIG. 11 is a schematic diagram of a fourth structure of an apparatus for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 11 adds a second obtaining module 207 to the embodiment shown in FIG.
第一获得模块207,用于获得所述目标应用程序在预设时间段内的使用次数。The first obtaining module 207 is configured to obtain the number of uses of the target application within a preset time period.
所述预设规则包括:所述目标应用程序在预设时间段内的使用次数小于第二预设阈值。The preset rule includes: the number of times the target application is used within a preset time period is less than a second preset threshold.
应用本发明图11所示实施例,将用户从未使用过的应用程序和不经常使用的应用程序对应的源文件进行打包,在打包完成后,将其对应的源文件删除。在节省存储空 间和内存空间的同时,尊重用户使用习惯。Applying the embodiment shown in FIG. 11 of the present invention, the source file corresponding to the application that the user has never used and the application that is not frequently used are packaged, and after the package is completed, the corresponding source file is deleted. Saving storage space Respect the user's usage habits while keeping the memory space.
图12为本发明实施例提供的应用程序的处理装置的第五种结构示意图,本发明图12所示实施例在图8所示实施例的基础上,增加第一添加模块208和第一确定模块209,其中,FIG. 12 is a schematic diagram of a fifth structure of an apparatus for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 12 adds a first adding module 208 and a first determination based on the embodiment shown in FIG. Module 209, wherein
第一添加模块208,用于将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;a first adding module 208, configured to add third identifier information of each target application that meets the preset rule to the first list;
第一确定模块209,用于将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;a first determining module 209, configured to determine, as a target application to be processed, a target application corresponding to the third identifier information selected by the user from the first list;
第一处理模块203,具体可以用于:将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The first processing module 203 is specifically configured to: package the source file corresponding to the target application to be processed, and delete the source file corresponding to the target application to be processed after the packaging is completed.
应用本发明图12所示实施例,在预置应用程序符合预设规则的情况下,将预置应用程序的第三标识信息添加到第一列表供用户选择,将用户选择的第三标识信息对应的预置应用程序对应的源文件打包,在打包完成后,将预置应用程序对应的源文件删除。充分尊重用户的选择,更友好更人性化,并且打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 12 of the present invention, if the preset application meets the preset rule, the third identifier information of the preset application is added to the first list for the user to select, and the third identifier information selected by the user is used. The source file corresponding to the preset application package is packaged, and after the package is completed, the source file corresponding to the preset application is deleted. Fully respect the user's choice, more friendly and more user-friendly, and the file generated by the package is smaller than the storage space occupied by the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. . Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
图13为本发明实施例提供的应用程序的处理装置的第六种结构示意图,本发明图13所示实施例在图8所示实施例的基础上,增加第四判断模块210和第三处理模块211,其中,FIG. 13 is a schematic diagram of a sixth structure of an apparatus for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 13 adds the fourth judging module 210 and the third processing to the embodiment shown in FIG. Module 211, wherein
第四判断模块210,用于判断所述目标应用程序是否存在升级文件;The fourth determining module 210 is configured to determine whether the target application has an upgrade file;
第三处理模块211,用于在第四判断模块210判断所述目标应用程序存在升级文件的情况下,删除所述升级文件。The third processing module 211 is configured to delete the upgrade file if the fourth determining module 210 determines that the target application has an upgrade file.
应用本发明图13所示实施例,针对进行过升级操作的预置应用程序,先将其升级文件删除,使之变为未进行过升级操作的预置应用程序,再将该预置应用程序对应的源文件打包,在打包完成后,将该预置应用程序对应的源文件删除。打包生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 13 of the present invention, for the preset application that has undergone the upgrade operation, the upgrade file is deleted first, so that it becomes a preset application that has not been upgraded, and then the preset application is used. The corresponding source file is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted. The file generated by the package is smaller than the storage space of the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
图14为本发明实施例提供的应用程序的处理装置的第七种结构示意图,本发明图 14所示实施例在图8所示实施例的基础上,增加第二添加模块212、第二确定模块213和第四处理模块214,其中,FIG. 14 is a schematic diagram of a seventh structure of an apparatus for processing an application according to an embodiment of the present invention. The embodiment shown in FIG. 14 adds a second adding module 212, a second determining module 213, and a fourth processing module 214, based on the embodiment shown in FIG.
第二添加模块212,用于将所述目标应用程序的第四标识信息添加至第二列表;a second adding module 212, configured to add fourth identifier information of the target application to the second list;
第二确定模块213,用于将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序;a second determining module 213, configured to determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list;
第四处理模块214,用于利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The fourth processing module 214 is configured to recover the target application to be restored by using the package file corresponding to the target application to be restored.
其中,上述第二添加模块212、第二确定模块213和第四处理模块214,也可以在图9、图10、图11、图12和图13所示实施例的基础上增加。The second adding module 212, the second determining module 213, and the fourth processing module 214 may be added to the embodiments shown in FIG. 9, FIG. 10, FIG. 11, FIG. 12, and FIG.
应用本发明图14所示实施例,对于已经被处理的预置应用程序,为用户提供恢复该预置应用程序的选择,充分尊重用户的选择,更友好更人性化。Applying the embodiment shown in FIG. 14 of the present invention, for the preset application that has been processed, the user is provided with the option of restoring the preset application, fully respecting the user's choice, and being more friendly and humanized.
图15为本发明实施例提供的一种电子设备的结构示意图,该电子设备可以包括:壳体1501、处理器1502、存储器1503、电路板1504和电源电路1505,其中,电路板1504安置在壳体1501围成的空间内部,处理器1502和存储器1503设置在电路板1504上;电源电路1505,用于为电子设备的各个电路或器件供电;存储器1503用于存储可执行程序代码;处理器1502通过读取存储器1503中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本发明上述任一项实施例所述的应用程序的处理方法。15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device may include: a housing 1501, a processor 1502, a memory 1503, a circuit board 1504, and a power circuit 1505. The circuit board 1504 is disposed in the shell. Inside the space enclosed by the body 1501, the processor 1502 and the memory 1503 are disposed on the circuit board 1504; the power supply circuit 1505 is configured to supply power to each circuit or device of the electronic device; the memory 1503 is configured to store executable program code; the processor 1502 The program corresponding to the executable program code is executed by reading the executable program code stored in the memory 1503 for executing the processing method of the application program according to any of the above-described embodiments of the present invention.
该电子设备以多种形式存在,包括但不限于:The electronic device exists in a variety of forms including, but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类电子设备包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such electronic devices include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类电子设备包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such electronic devices include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的移动电子装置。(5) Other mobile electronic devices with data interaction functions.
应用本发明图15所示实施例,在预置应用程序符合预设规则的情况下,将预置应用程序对应的源文件打包,在打包完成后,将预置应用程序对应的源文件删除。打包 生成的文件比预置应用程序对应的源文件占用的存储空间小,且删除了预置应用程序对应的源文件,节省了存储空间的占用。并且由于删除了预置应用程序对应的源文件,使得电子设备在强制运行预置应用程序时,无法找到预置应用程序对应的源文件,进而预置应用程序不能运行,节省了内存空间的占用。Applying the embodiment shown in FIG. 15 of the present invention, when the preset application conforms to the preset rule, the source file corresponding to the preset application is packaged, and after the packaging is completed, the source file corresponding to the preset application is deleted. Bale The generated file occupies less storage space than the source file corresponding to the preset application, and the source file corresponding to the preset application is deleted, which saves the storage space. Moreover, since the source file corresponding to the preset application is deleted, the electronic device cannot find the source file corresponding to the preset application when the preset application is forcibly operated, and the preset application cannot be run, thereby saving the occupation of the memory space. .
另外,本发明实施例还提供了一种存储介质,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备执行本发明实施例所提供的应用程序的处理方法;其中,本发明实施例所提供的应用程序的处理方法,可以包括:In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform the implementation of the present invention. The processing method of the application provided by the example; wherein the processing method of the application provided by the embodiment of the present invention may include:
针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;Determining, for the target application in the electronic device, whether the target application is a preset application;
如果是,判断所述目标应用程序是否符合预设规则;If yes, determining whether the target application meets a preset rule;
如果符合,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。If yes, the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
其中,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method further includes: before the packaging the source file corresponding to the target application, the method further includes:
判断所述目标应用程序是否处于运行状态;Determining whether the target application is in a running state;
如果所述目标应用程序处于运行状态,关闭所述目标应用程序。If the target application is running, close the target application.
其中,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,包括:The determining, by the target application in the electronic device, whether the target application is a preset application, includes:
针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
其中,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,包括:The determining, by the target application in the electronic device, whether the target application is a preset application, includes:
针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;Obtaining, by the target application, a value of the second identifier information of the target application according to the attribute information of the target application;
根据所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。Determining whether the target application is a preset application according to a value of the second identification information of the target application.
其中,所述预设规则包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值;The preset rule includes: the latest usage time of the target application is the same as the installation time; or the current time and the target application if the latest usage time of the target application is different from the installation time. The difference between the latest usage time of the program is greater than the first preset threshold;
在所述判断所述目标应用程序是否符合预设规则之前,所述方法还包括:Before the determining whether the target application meets the preset rule, the method further includes:
获得所述目标应用程序的安装时间和最近使用时间。Obtain the installation time and the most recent usage time of the target application.
其中,所述预设规则包括:所述目标应用程序在预设时间段内的使用次数小于第 二预设阈值;The preset rule includes: the target application is used less than the preset time period. Two preset thresholds;
在所述判断所述目标应用程序是否符合预设规则之前,所述方法还包括:Before the determining whether the target application meets the preset rule, the method further includes:
获得所述目标应用程序在预设时间段内的使用次数。Obtaining the number of uses of the target application within a preset time period.
其中,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method further includes: before the packaging the source file corresponding to the target application, the method further includes:
将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;Adding third identification information of each target application that meets the preset rule to the first list;
将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;Determining, by the target application corresponding to the third identifier information selected by the user from the first list, as a target application to be processed;
所述将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除,包括:The source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
其中,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method further includes: before the packaging the source file corresponding to the target application, the method further includes:
判断所述目标应用程序是否存在升级文件;Determining whether the target application has an upgrade file;
如果存在,删除所述升级文件。If present, delete the upgrade file.
其中,所述方法还包括:The method further includes:
将所述目标应用程序的第四标识信息添加至第二列表;Adding fourth identification information of the target application to the second list;
将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序;Determining, by the target application corresponding to the fourth identifier information selected by the user from the second list, a target application to be restored;
利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The target application to be restored is restored by using the package file corresponding to the target application to be restored.
另外,本发明实施例还提供了一种应用程序,用于执行本发明实施例所提供的应用程序的处理方法;其中,本发明实施例所提供的应用程序的处理方法,可以包括:In addition, the embodiment of the present invention further provides an application program, which is used to perform the processing method of the application program provided by the embodiment of the present invention. The processing method of the application program provided by the embodiment of the present invention may include:
针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;Determining, for the target application in the electronic device, whether the target application is a preset application;
如果是,判断所述目标应用程序是否符合预设规则;If yes, determining whether the target application meets a preset rule;
如果符合,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。If yes, the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
其中,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method further includes: before the packaging the source file corresponding to the target application, the method further includes:
判断所述目标应用程序是否处于运行状态;Determining whether the target application is in a running state;
如果所述目标应用程序处于运行状态,关闭所述目标应用程序。If the target application is running, close the target application.
其中,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,包括: The determining, by the target application in the electronic device, whether the target application is a preset application, includes:
针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
其中,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,包括:The determining, by the target application in the electronic device, whether the target application is a preset application, includes:
针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;Obtaining, by the target application, a value of the second identifier information of the target application according to the attribute information of the target application;
根据所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。Determining whether the target application is a preset application according to a value of the second identification information of the target application.
其中,所述预设规则包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值;The preset rule includes: the latest usage time of the target application is the same as the installation time; or the current time and the target application if the latest usage time of the target application is different from the installation time. The difference between the latest usage time of the program is greater than the first preset threshold;
在所述判断所述目标应用程序是否符合预设规则之前,所述方法还包括:Before the determining whether the target application meets the preset rule, the method further includes:
获得所述目标应用程序的安装时间和最近使用时间。Obtain the installation time and the most recent usage time of the target application.
其中,所述预设规则包括:所述目标应用程序在预设时间段内的使用次数小于第二预设阈值;The preset rule includes: the number of times the target application is used within a preset time period is less than a second preset threshold;
在所述判断所述目标应用程序是否符合预设规则之前,所述方法还包括:Before the determining whether the target application meets the preset rule, the method further includes:
获得所述目标应用程序在预设时间段内的使用次数。Obtaining the number of uses of the target application within a preset time period.
其中,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method further includes: before the packaging the source file corresponding to the target application, the method further includes:
将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;Adding third identification information of each target application that meets the preset rule to the first list;
将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;Determining, by the target application corresponding to the third identifier information selected by the user from the first list, as a target application to be processed;
所述将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除,包括:The source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
其中,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method further includes: before the packaging the source file corresponding to the target application, the method further includes:
判断所述目标应用程序是否存在升级文件;Determining whether the target application has an upgrade file;
如果存在,删除所述升级文件。If present, delete the upgrade file.
其中,所述方法还包括:The method further includes:
将所述目标应用程序的第四标识信息添加至第二列表;Adding fourth identification information of the target application to the second list;
将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序; Determining, by the target application corresponding to the fourth identifier information selected by the user from the second list, a target application to be restored;
利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The target application to be restored is restored by using the package file corresponding to the target application to be restored.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。 The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。One of ordinary skill in the art can understand that all or part of the steps in implementing the above method embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, which is referred to herein. Storage media such as ROM/RAM, disk, CD, etc.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (21)

  1. 一种应用程序的处理方法,其特征在于,应用于电子设备,所述方法包括:An application processing method is characterized in that it is applied to an electronic device, and the method includes:
    针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;Determining, for the target application in the electronic device, whether the target application is a preset application;
    如果是,判断所述目标应用程序是否符合预设规则;If yes, determining whether the target application meets a preset rule;
    如果符合,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。If yes, the source file corresponding to the target application is packaged, and after the packaging is completed, the source file corresponding to the target application is deleted.
  2. 根据权利要求1所述的方法,其特征在于,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method according to claim 1, wherein before the packaging the source file corresponding to the target application, the method further comprises:
    判断所述目标应用程序是否处于运行状态;Determining whether the target application is in a running state;
    如果所述目标应用程序处于运行状态,关闭所述目标应用程序。If the target application is running, close the target application.
  3. 根据权利要求1或2所述的方法,其特征在于,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,包括:The method according to claim 1 or 2, wherein the determining, by the target application in the electronic device, whether the target application is a preset application comprises:
    针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
  4. 根据权利要求1或2所述的方法,其特征在于,所述针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序,包括:The method according to claim 1 or 2, wherein the determining, by the target application in the electronic device, whether the target application is a preset application comprises:
    针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;Obtaining, by the target application, a value of the second identifier information of the target application according to the attribute information of the target application;
    根据所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。Determining whether the target application is a preset application according to a value of the second identification information of the target application.
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,所述预设规则包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值;The method according to any one of claims 1 to 4, wherein the preset rule comprises: the latest usage time of the target application is the same as the installation time; or the latest usage time of the target application If the installation time is different, the difference between the current time and the latest usage time of the target application is greater than the first preset threshold;
    在所述判断所述目标应用程序是否符合预设规则之前,所述方法还包括:Before the determining whether the target application meets the preset rule, the method further includes:
    获得所述目标应用程序的安装时间和最近使用时间。Obtain the installation time and the most recent usage time of the target application.
  6. 根据权利要求1至4任意一项所述的方法,其特征在于,所述预设规则包括:所述目标应用程序在预设时间段内的使用次数小于第二预设阈值;The method according to any one of claims 1 to 4, wherein the preset rule comprises: the number of times the target application is used within a preset time period is less than a second preset threshold;
    在所述判断所述目标应用程序是否符合预设规则之前,所述方法还包括:Before the determining whether the target application meets the preset rule, the method further includes:
    获得所述目标应用程序在预设时间段内的使用次数。 Obtaining the number of uses of the target application within a preset time period.
  7. 根据权利要求1至6任意一项所述的方法,其特征在于,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein before the packaging the source file corresponding to the target application, the method further comprises:
    将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;Adding third identification information of each target application that meets the preset rule to the first list;
    将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;Determining, by the target application corresponding to the third identifier information selected by the user from the first list, as a target application to be processed;
    所述将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除,包括:The source file corresponding to the target application is packaged, and after the package is completed, the source file corresponding to the target application is deleted, including:
    将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The source file corresponding to the target application to be processed is packaged, and after the packaging is completed, the source file corresponding to the target application to be processed is deleted.
  8. 根据权利要求1至7任意一项所述的方法,其特征在于,在所述将所述目标应用程序对应的源文件进行打包之前,所述方法还包括:The method according to any one of claims 1 to 7, wherein before the packaging the source file corresponding to the target application, the method further comprises:
    判断所述目标应用程序是否存在升级文件;Determining whether the target application has an upgrade file;
    如果存在,删除所述升级文件。If present, delete the upgrade file.
  9. 根据权利要求1至8任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    将所述目标应用程序的第四标识信息添加至第二列表;Adding fourth identification information of the target application to the second list;
    将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序;Determining, by the target application corresponding to the fourth identifier information selected by the user from the second list, a target application to be restored;
    利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The target application to be restored is restored by using the package file corresponding to the target application to be restored.
  10. 一种应用程序的处理装置,其特征在于,应用于电子设备,所述装置包括:第一判断模块、第二判断模块和第一处理模块,其中,An application processing device is characterized in that it is applied to an electronic device, and the device includes: a first determining module, a second determining module, and a first processing module, wherein
    所述第一判断模块,用于针对所述电子设备中的目标应用程序,判断所述目标应用程序是否为预置应用程序;The first determining module is configured to determine, according to a target application in the electronic device, whether the target application is a preset application;
    所述第二判断模块,用于在所述第一判断模块判断所述目标应用程序为预置应用程序的情况下,判断所述目标应用程序是否符合预设规则;The second determining module is configured to determine, when the first determining module determines that the target application is a preset application, whether the target application meets a preset rule;
    所述第一处理模块,用于在所述第二判断模块判断所述目标应用程序符合预设规则的情况下,将所述目标应用程序对应的源文件进行打包,在打包完成后,将所述目标应用程序对应的源文件删除。The first processing module is configured to: when the second determining module determines that the target application meets a preset rule, package the source file corresponding to the target application, and after the packaging is completed, The source file corresponding to the target application is deleted.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:第三判断模块和第二处理模块,其中,The device according to claim 10, wherein the device further comprises: a third determining module and a second processing module, wherein
    所述第三判断模块,用于判断所述目标应用程序是否处于运行状态;The third determining module is configured to determine whether the target application is in an operating state;
    所述第二处理模块,用于在所述第三判断模块判断所述目标应用程序处于运行状 态的情况下,关闭所述目标应用程序。The second processing module is configured to determine, in the third determining module, that the target application is in operation In the case of the state, the target application is closed.
  12. 根据权利要求10或11所述的装置,其特征在于,所述第一判断模块,具体用于:The device according to claim 10 or 11, wherein the first determining module is specifically configured to:
    针对所述目标应用程序,判断所述电子设备的应用程序列表中是否存储有表示所述目标应用程序为预置应用程序的第一标识信息。And determining, by the target application, whether the first identifier information indicating that the target application is a preset application is stored in the application list of the electronic device.
  13. 根据权利要求10或11所述的装置,其特征在于,所述第一判断模块,包括:获得子模块和判断子模块,其中,The device according to claim 10 or 11, wherein the first determining module comprises: obtaining a submodule and a determining submodule, wherein
    所述获得子模块,用于针对所述目标应用程序,根据所述目标应用程序的属性信息,获得所述目标应用程序的第二标识信息的值;The obtaining submodule is configured to obtain, according to the attribute information of the target application, a value of the second identification information of the target application for the target application;
    所述判断子模块,用于根据所述获得子模块获得的所述目标应用程序的第二标识信息的值,判断所述目标应用程序是否为预置应用程序。The determining submodule is configured to determine, according to the value of the second identifier information of the target application obtained by the obtaining submodule, whether the target application is a preset application.
  14. 根据权利要求10至13任意一项所述的装置,其特征在于,所述预设规则包括:所述目标应用程序的最近使用时间与安装时间相同;或在所述目标应用程序的最近使用时间与安装时间不相同的情况下,当前时间与所述目标应用程序的最近使用时间的差值大于第一预设阈值;The device according to any one of claims 10 to 13, wherein the preset rule comprises: the latest usage time of the target application is the same as the installation time; or the latest usage time of the target application If the installation time is different, the difference between the current time and the latest usage time of the target application is greater than the first preset threshold;
    所述装置还包括:The device also includes:
    第一获得模块,用于获得所述目标应用程序的安装时间和最近使用时间。The first obtaining module is configured to obtain an installation time and a recent usage time of the target application.
  15. 根据权利要求10至13任意一项所述的装置,其特征在于,所述预设规则包括:所述目标应用程序在预设时间段内的使用次数小于第二预设阈值;The device according to any one of claims 10 to 13, wherein the preset rule comprises: the number of times the target application is used within a preset time period is less than a second preset threshold;
    所述装置还包括:The device also includes:
    第二获得模块,用于获得所述目标应用程序在预设时间段内的使用次数。And a second obtaining module, configured to obtain the number of times the target application is used within a preset time period.
  16. 根据权利要求10至15任意一项所述的装置,其特征在于,所述装置还包括:第一添加模块和第一确定模块,其中,The device according to any one of claims 10 to 15, wherein the device further comprises: a first adding module and a first determining module, wherein
    所述第一添加模块,用于将每个符合预设规则的目标应用程序的第三标识信息添加至第一列表;The first adding module is configured to add third identifier information of each target application that meets the preset rule to the first list;
    所述第一确定模块,用于将用户从所述第一列表中选择的所述第三标识信息对应的目标应用程序确定为待处理目标应用程序;The first determining module is configured to determine, as a target application to be processed, a target application corresponding to the third identifier information selected by the user from the first list;
    所述第一处理模块,具体用于:将所述待处理目标应用程序对应的源文件进行打包,在打包完成后,将所述待处理目标应用程序对应的源文件删除。The first processing module is configured to: package the source file corresponding to the target application to be processed, and delete the source file corresponding to the target application to be processed after the packaging is completed.
  17. 根据权利要求10至16任意一项所述的装置,其特征在于,所述装置还包括:第四判断模块和第三处理模块,其中,The device according to any one of claims 10 to 16, wherein the device further comprises: a fourth determining module and a third processing module, wherein
    所述第四判断模块,用于判断所述目标应用程序是否存在升级文件; The fourth determining module is configured to determine whether the target application has an upgrade file;
    所述第三处理模块,用于在所述第四判断模块判断所述目标应用程序存在升级文件的情况下,删除所述升级文件。The third processing module is configured to delete the upgrade file if the fourth determining module determines that the target application has an upgrade file.
  18. 根据权利要求10至17任意一项所述的装置,其特征在于,所述装置还包括:第二添加模块、第二确定模块和第四处理模块,其中,The device according to any one of claims 10 to 17, wherein the device further comprises: a second adding module, a second determining module, and a fourth processing module, wherein
    所述第二添加模块,用于将所述目标应用程序的第四标识信息添加至第二列表;The second adding module is configured to add fourth identifier information of the target application to the second list;
    所述第二确定模块,用于将用户从所述第二列表中选择的所述第四标识信息对应的目标应用程序,确定为待恢复目标应用程序;The second determining module is configured to determine, as the target application to be restored, the target application corresponding to the fourth identifier information selected by the user from the second list;
    所述第四处理模块,用于利用所述待恢复目标应用程序对应的打包文件,对所述待恢复目标应用程序进行恢复。The fourth processing module is configured to recover the target application to be restored by using the package file corresponding to the target application to be restored.
  19. 一种电子设备,其特征在于,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行权利要求1至9任意一项所述的应用程序的处理方法。An electronic device, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed in the circuit a power circuit for powering various circuits or devices of an electronic device; a memory for storing executable program code; and a processor for executing a program corresponding to the executable program code by reading executable program code stored in the memory And a processing method for executing the application according to any one of claims 1 to 9.
  20. 一种存储介质,其特征在于,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备:A storage medium, wherein the storage medium stores one or more modules, when the one or more modules are executed by an electronic device, causing the electronic device to:
    执行权利要求1至9任意一项所述的应用程序的处理方法。A method of processing an application according to any one of claims 1 to 9.
  21. 一种应用程序,其特征在于,用于在运行时,执行权利要求1至9任意一项所述的应用程序的处理方法。 An application program for performing a processing method of an application according to any one of claims 1 to 9 at runtime.
PCT/CN2016/083730 2015-11-25 2016-05-27 Method and device for processing application programs and electronic apparatus WO2017088414A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510828592.0A CN105468411A (en) 2015-11-25 2015-11-25 Application processing method and device and electronic equipment
CN201510828592.0 2015-11-25

Publications (1)

Publication Number Publication Date
WO2017088414A1 true WO2017088414A1 (en) 2017-06-01

Family

ID=55606149

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083730 WO2017088414A1 (en) 2015-11-25 2016-05-27 Method and device for processing application programs and electronic apparatus

Country Status (2)

Country Link
CN (1) CN105468411A (en)
WO (1) WO2017088414A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888688A (en) * 2019-11-21 2020-03-17 维沃移动通信有限公司 Electronic equipment setting and restoring method and electronic equipment
CN111949280A (en) * 2020-08-12 2020-11-17 深圳市友华软件科技有限公司 Method and device for ensuring correct installation of pre-installed plug-in unit when being delivered from factory
CN112256273A (en) * 2020-10-20 2021-01-22 网易(杭州)网络有限公司 Application program packaging method and device and electronic equipment
CN113725114A (en) * 2021-08-31 2021-11-30 杭州广立微电子股份有限公司 Method for screening MOS (Metal oxide semiconductor) device with leakage path
CN110888688B (en) * 2019-11-21 2024-04-19 维沃移动通信有限公司 Setting restoration method of electronic equipment and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468411A (en) * 2015-11-25 2016-04-06 北京金山安全软件有限公司 Application processing method and device and electronic equipment
CN106066770A (en) * 2016-05-25 2016-11-02 北京小米移动软件有限公司 Memory space management and device
CN111273944B (en) * 2018-12-05 2024-01-30 三六零科技集团有限公司 Method and device for generating program file and uploading program file to code warehouse

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521031A (en) * 2011-12-13 2012-06-27 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN104317608A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Management method and device for pre-installed application program in mobile terminal and client
CN104461504A (en) * 2014-11-06 2015-03-25 深圳市金立通信设备有限公司 Managing method of terminal application program
EP2887212A1 (en) * 2013-12-17 2015-06-24 StepNexus Ltd System, method and personalizable portable device in which application code libraries are distributed in a compressed form
CN105468411A (en) * 2015-11-25 2016-04-06 北京金山安全软件有限公司 Application processing method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222027B (en) * 2011-06-20 2017-07-04 中兴通讯股份有限公司 Terminal factory reset method and device
CN103309729A (en) * 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Terminal and application program management method
CN102831035B (en) * 2012-08-20 2015-11-18 腾讯科技(深圳)有限公司 The method of backup information and device
CN103631617A (en) * 2013-11-01 2014-03-12 北京奇虎科技有限公司 Method and device for unloading system application on terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521031A (en) * 2011-12-13 2012-06-27 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
EP2887212A1 (en) * 2013-12-17 2015-06-24 StepNexus Ltd System, method and personalizable portable device in which application code libraries are distributed in a compressed form
CN104317608A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Management method and device for pre-installed application program in mobile terminal and client
CN104461504A (en) * 2014-11-06 2015-03-25 深圳市金立通信设备有限公司 Managing method of terminal application program
CN105468411A (en) * 2015-11-25 2016-04-06 北京金山安全软件有限公司 Application processing method and device and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888688A (en) * 2019-11-21 2020-03-17 维沃移动通信有限公司 Electronic equipment setting and restoring method and electronic equipment
CN110888688B (en) * 2019-11-21 2024-04-19 维沃移动通信有限公司 Setting restoration method of electronic equipment and electronic equipment
CN111949280A (en) * 2020-08-12 2020-11-17 深圳市友华软件科技有限公司 Method and device for ensuring correct installation of pre-installed plug-in unit when being delivered from factory
CN111949280B (en) * 2020-08-12 2023-11-14 深圳市友华软件科技有限公司 Method and device for ensuring correct installation of preassembled plug-in components in factory
CN112256273A (en) * 2020-10-20 2021-01-22 网易(杭州)网络有限公司 Application program packaging method and device and electronic equipment
CN112256273B (en) * 2020-10-20 2023-11-24 网易(杭州)网络有限公司 Application program packaging method and device and electronic equipment
CN113725114A (en) * 2021-08-31 2021-11-30 杭州广立微电子股份有限公司 Method for screening MOS (Metal oxide semiconductor) device with leakage path
CN113725114B (en) * 2021-08-31 2023-09-19 杭州广立微电子股份有限公司 Method for screening MOS device with leakage path

Also Published As

Publication number Publication date
CN105468411A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
WO2017088414A1 (en) Method and device for processing application programs and electronic apparatus
US20180232438A1 (en) Title display method and apparatus
US20130067448A1 (en) Application deployment
US20140372998A1 (en) App package deployment
US20140282358A1 (en) Software Product Capable of Using Zero and Third Party Applications
WO2016000544A1 (en) Method of processing application cpu usage rate anomaly, and device and mobile terminal
WO2017032265A1 (en) Application push method and apparatus, and a serving device
US10318479B2 (en) Method and device for automatically identifying junk file
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN110245279A (en) Dependent tree generation method, device, equipment and storage medium
WO2017219869A1 (en) Cache scanning method and apparatus for application program, and electronic device
CN111241040B (en) Information acquisition method and device, electronic equipment and computer storage medium
WO2016155387A1 (en) Plug-in management method and device based on mobile terminal
US8521791B2 (en) Electronic device and file management method
US20140298316A1 (en) Managing method for application program installation and electronic device
CN106484779B (en) File operation method and device
US10365798B1 (en) Feedback manager for integration with an application
US20150058869A1 (en) Reverse launch protocol
US9390090B2 (en) Concurrent long spanning edit sessions using change lists with explicit assumptions
US9785724B2 (en) Secondary queue for index process
CN111694992A (en) Data processing method and device
US9361210B2 (en) Capturing domain validations and domain element initializations
TW201715384A (en) Setting a build indicator to enable or disable a feature
CN107562423B (en) UI page development method and device
CN106557525B (en) Method and device for cleaning application program residual file and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867642

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.09.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16867642

Country of ref document: EP

Kind code of ref document: A1