Application program protection method and apparatus, and wearable device
By writing applications to the application area and backup area on the wearable device and using CRC algorithm to check effectiveness, the device does not start due to application exceptions is solved, and the application security update and version fallback is achieved to ensure the device is running normally.
Patent Information
- Application Number
- CN202510897845.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-01
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-07-01
AI Technical Summary
The application of wearable devices may cause the device to not start or the OTA function abnormally after abnormal rewritten, and the prior art is difficult to effectively protect the integrity of the application.
On the wearable device, write the application to the application area and the backup area for the first time, and check the program's validity through the CRC algorithm, and perform version rollback when it is invalid; periodically check the validity of the backup area program to ensure that the backup area program is effective, and write the application area program to the backup area if necessary.
Ensure that the application can run normally under abnormal conditions, prevent tampering, and implement security updates and version fallbacks of the application.
Smart Images

Figure CN120408646A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to application protection technology, and more particularly, to an application protection method, apparatus, and wearable device. Background Art
[0002] Wearable devices are emerging electronic devices, such as smart rings. Due to their small device form and lack of physical external interfaces, OTA (Over-The-Air) has become a key means for application update and maintenance.
[0003] When an application is tampered with, such as abnormal erasure of the application, it may cause the device not to start or the OTA function to be abnormal. Summary of the Invention
[0004] An object of the present invention is to provide a new technical solution for an application protection method.
[0005] According to a first aspect of the present invention, there is provided an application protection method, including: When the application is first downloaded to the wearable device, the application is respectively written to the application area and the backup area for the first time; When the wearable device is powered on or reset, check whether the application in the application area is valid. If the application in the application area is invalid, write the application in the backup area to the application area and overwrite the original application in the application area; and, Periodically check whether the application in the backup area is valid. If the application in the backup area is invalid and the application in the application area is valid, write the application in the application area to the backup area and overwrite the original application in the backup area.
[0006] Optionally, the method further includes: When upgrading the application based on OTA, write the latest version of the application to the backup area and overwrite the original application in the backup area; When it is determined that the application in the application area is valid, write the latest version of the application in the backup area to the application area and overwrite the original application in the application area, and at the same time write the application in the application area to the backup area and overwrite the latest version of the application in the backup area.
[0007] Optionally, the method further includes: In the case where the application in the application area is determined to be invalid, write the latest version of the application in the backup area to the application area and overwrite the original application in the application area, while retaining the latest version of the application in the backup area.
[0008] Optionally, the writing of the application in the backup area to the application area and overwriting the original application in the application area includes: Using the bootloader program, write the application in the backup area to the application area and overwrite the original application in the application area.
[0009] Optionally, the bootloader program is set with write lock permission.
[0010] Optionally, after the application is first written to the application area, after the application in the backup area is written to the application area and overwrites the original application in the application area, and after the latest version of the application in the backup area is written to the application area and overwrites the original application in the application area, the method further includes: Set the write lock permission for the application area.
[0011] Optionally, the checking of whether the application in the application area is valid includes: Using the CRC algorithm, determine the actual check value corresponding to the application in the application area; Obtain the correspondence between the current version information of the application in the application area, the pre-stored version information and the check value; According to the current version information of the application in the application area, the correspondence between the pre-stored version information and the check value, determine the pre-stored check value corresponding to the application in the application area; According to the actual check value corresponding to the application in the application area and the pre-stored check value corresponding to the application in the application area, determine whether the application in the application area is valid.
[0012] Optionally, the periodic checking of whether the application in the backup area is valid includes: Using the CRC algorithm, determine the actual check value corresponding to the application in the backup area; Obtain the correspondence between the current version information of the application in the backup area, the pre-stored version information and the check value; According to the current version information of the application in the backup area, the correspondence between the pre-stored version information and the check value, determine the pre-stored check value corresponding to the application in the backup area; Determine whether the application program in the backup area is valid according to the actual check value corresponding to the application program in the backup area and the pre-stored check value corresponding to the application program in the backup area.
[0013] According to a second aspect of the present invention, there is provided an application program protection device, including: An application program writing module, configured to, when an application program is first downloaded to a wearable device, write the application program to an application program area and a backup area for the first time respectively; A first checking and writing module, configured to, when the wearable device is powered on or reset, check whether the application program in the application program area is valid, and when the application program in the application program area is invalid, write the application program in the backup area to the application program area and overwrite the original application program in the application program area; and, A second checking and writing module, configured to periodically check whether the application program in the backup area is valid, and when the application program in the backup area is invalid and the application program in the application program area is valid, write the application program in the application program area to the backup area and overwrite the original application program in the backup area.
[0014] According to a third aspect of the present invention, there is provided a wearable device, including a memory and a processor, where the memory stores a computer program, and the computer program is used to control the processor to operate to execute the method according to any one of the first aspects.
[0015] The present disclosure provides an application program protection method. When an application program is first downloaded to a wearable device, the application program is written to an application program area and a backup area for the first time respectively. When the application program in the application program area is invalid, the application program in the backup area is written to the application program area and overwrites the original application program in the application program area, so that version rollback can be performed when the application program in the application program area is abnormal, ensuring the normal operation of the application program. In addition, periodically check whether the application program in the backup area is valid, which plays a role in guarding the application program in the backup area. When the application program in the backup area is invalid and the application program in the application program area is valid, the application program in the application program area is written to the backup area and overwrites the original application program in the backup area, ensuring that the application program in the backup area is valid. When the application program in the application program area is invalid, a valid version can be provided to the application program area.
[0016] Through the following detailed description of the exemplary embodiments of the present specification with reference to the accompanying drawings, the features and advantages of the embodiments of the present specification will become clear. Description of the Drawings
[0017] The accompanying drawings incorporated in and forming a part of this specification illustrate embodiments of the specification and, together with the description, serve to explain the principles of the embodiments of the specification.
[0018] Figure 1 It is a schematic flowchart of an application protection method according to an embodiment of the present invention.
[0019] Figure 2 It is a schematic diagram of a storage area according to an embodiment of the present invention.
[0020] Figure 3 It is a schematic diagram of an application protection method according to an embodiment of the present invention.
[0021] Figure 4 It is a schematic diagram of an application protection method according to an embodiment of the present invention.
[0022] Figure 5 It is a principle block diagram of an application protection device according to an embodiment of the present invention.
[0023] Figure 6 It is a schematic structural diagram of a wearable device according to an embodiment of the present invention. Detailed Embodiments
[0024] Now, various exemplary embodiments of this specification will be described in detail with reference to the accompanying drawings.
[0025] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way a limitation on the embodiments of this specification, their applications, or uses.
[0026] It should be noted that like reference numerals and letters denote like items in the following drawings, and thus, once an item is defined in one drawing, further discussion thereof is not required in subsequent drawings.
[0027] To solve the above technical problems, an embodiment of the present disclosure provides an application protection method. When an application is first downloaded to a wearable device, the application is first written into the application area and the backup area respectively. When the application in the application area is invalid, the application in the backup area is written into the application area to overwrite the original application in the application area, so that version rollback can be performed when the application in the application area is abnormal, ensuring the normal operation of the application. In addition, the application in the backup area is periodically checked for validity to protect the application in the backup area. When the application in the backup area is invalid and the application in the application area is valid, the application in the application area is written into the backup area to overwrite the original application in the backup area, ensuring that the application in the backup area is valid. When the application in the application area is invalid, a valid version can be provided to the application area.
[0028] In an embodiment of the present invention, an application protection method is provided. According to Figure 1 as shown, the application protection method of this embodiment includes the following steps S110 to S130.
[0029] Step S110, when an application is first downloaded to a wearable device, the application is first written into the application area and the backup area respectively.
[0030] The application written into the application area and the application written into the backup area are both valid applications.
[0031] When the application runs, the application in the application area is executed.
[0032] Step S120, when the wearable device is powered on or reset, check whether the application in the application area is valid. When the application in the application area is invalid, write the application in the backup area into the application area to overwrite the original application in the application area.
[0033] In some embodiments, checking whether the application in the application area is valid specifically includes: using the CRC algorithm to determine the actual check value corresponding to the application in the application area; obtaining the correspondence between the current version information of the application in the application area, the pre-stored version information, and the check value; determining the pre-stored check value corresponding to the application in the application area according to the correspondence between the current version information of the application in the application area, the pre-stored version information, and the check value; and determining whether the application in the application area is valid according to the actual check value corresponding to the application in the application area and the pre-stored check value corresponding to the application in the application area.
[0034] The CRC algorithm (Cyclic Redundancy Check algorithm) can be the CRC-16 algorithm or the CRC-32 algorithm. This algorithm is used to detect whether an application has errors or has been tampered with. Specifically, using the CRC-16 algorithm or the CRC-32 algorithm, a polynomial division operation is performed on the application to generate a check code with a fixed length as the actual check value of the application.
[0035] The pre-stored check value of the application is the check value determined based on the CRC algorithm according to the corresponding version of the application.
[0036] When the actual check value corresponding to the application in the application area is consistent with the pre-stored check value corresponding to the application in the application area, it is determined that the application in the application area is valid. When the actual check value corresponding to the application in the application area is inconsistent with the pre-stored check value corresponding to the application in the application area, it is determined that the application in the application area is invalid, and there may be a problem of being tampered with.
[0037] When the application in the application area is invalid, the application in the backup area is written into the application area and overwrites the original application in the application area. This can ensure that when the application in the application area is abnormal, version rollback can be performed to ensure the normal operation of the application.
[0038] In some embodiments, the bootloader is used to write the application in the backup area into the application area and overwrite the original application in the application area.
[0039] The bootloader is a program used to boot the installation or update of the application.
[0040] In this embodiment, the bootloader is set with write lock permission. This prevents the bootloader from being tampered with, and thus avoids the inability to perform the transfer operation of writing the application in the backup area into the application area after the application is upgraded based on OTA due to the bootloader being tampered with.
[0041] Step S130, periodically check whether the application in the backup area is valid. When the application in the backup area is invalid and the application in the application area is valid, write the application in the application area into the backup area and overwrite the original application in the backup area.
[0042] In some embodiments, the actual check value corresponding to the application program in the backup area is determined using the CRC algorithm; the corresponding relationship between the current version information, the pre-stored version information, and the check value of the application program in the backup area is obtained; the pre-stored check value corresponding to the application program in the backup area is determined according to the corresponding relationship between the current version information, the pre-stored version information, and the check value of the application program in the backup area; and whether the application program in the backup area is valid is determined based on the actual check value and the pre-stored check value corresponding to the application program in the backup area.
[0043] When the actual check value corresponding to the application program in the backup area is consistent with the pre-stored check value corresponding to the application program in the backup area, it is determined that the application program in the backup area is valid. When the actual check value corresponding to the application program in the backup area is inconsistent with the pre-stored check value corresponding to the application program in the backup area, it is determined that the application program in the backup area is invalid, and there may be a problem of being tampered with.
[0044] Periodically checking whether the application program in the backup area is valid serves to monitor the application program in the backup area. When the application program in the backup area is invalid and the application program in the application area is valid, the application program in the application area is written into the backup area to overwrite the original application program in the backup area, ensuring that the application program in the backup area is valid. When the application program in the application area is invalid, a valid version can be provided to the application area.
[0045] In some embodiments, the method further includes: when the application program is upgraded based on OTA, writing the latest version of the application program into the backup area to overwrite the original application program in the backup area; when it is determined that the application program in the application area is valid, writing the latest version of the application program in the backup area into the application area to overwrite the original application program in the application area, and at the same time writing the application program in the application area into the backup area to overwrite the latest version of the application program in the backup area.
[0046] When the application program is upgraded based on OTA, when it is determined that the application program in the application area is valid, the latest version of the application program in the backup area is exchanged with the original application program in the application area. On the one hand, the upgrade of the application program in the application area is achieved. On the other hand, since the application program in the application area is valid, after the exchange, it is ensured that the application program in the backup area is valid. When the application program in the application area is invalid, a valid version can be provided to the application area.
[0047] In this embodiment, the method further includes: when it is determined that the application program in the application area is invalid, writing the latest version of the application program in the backup area into the application area to overwrite the original application program in the application area, and at the same time retaining the latest version of the application program in the backup area.
[0048] When upgrading an application based on OTA, when it is determined that the application in the application area is invalid, the latest version of the application in the backup area is exchanged with the original application in the application area. On the one hand, the upgrade of the application in the application area is realized. On the other hand, since the application in the application area is invalid, the application in the application area is no longer written to the backup area to overwrite the latest version of the application in the backup area, but the latest version of the application in the backup area is retained to ensure that the application in the backup area is valid. When the application in the application area is invalid, a valid version can be provided to the application area.
[0049] In some embodiments, after the application is first written to the application area, after the application in the backup area is written to the application area to overwrite the original application in the application area, and after the latest version of the application in the backup area is written to the application area to overwrite the original application in the application area, the method further includes: setting the write lock permission for the application area. This prevents the application in the application area from being tampered with.
[0050] When it is necessary to write to the application area, unlock the write to the application area to enable the write operation. After completing the write operation to the application area, set the write lock permission for the application area again.
[0051] Figure 2 The schematic diagram of the storage area according to an embodiment of the present invention is shown. According to Figure 2 As shown, the storage area is divided into a bootloader storage partition, an app storage partition, and an mcuboot_secodary storage partition. The bootloader storage partition stores the bootloader program. The app storage partition is the application area involved in any of the above embodiments. The mcuboot_secodary storage partition is the backup area involved in any of the above embodiments.
[0052] Combined with Figure 2 As shown, the application protection method provided by the present invention will be described below with two specific embodiments.
[0053] The application protection method provided by one of the embodiments includes the following steps S301 to S305.
[0054] Step S301, when the application is first downloaded to the wearable device, write the application to the app storage partition and the mcuboot_secodary storage partition for the first time respectively.
[0055] Step S302, after completing the first write to the app storage partition, set the write lock permission for the app storage partition.
[0056] Step S303: When the wearable device is powered on or reset, check whether the application in the app storage partition is valid. If it is invalid, unlock the write lock permission for the app storage partition, and then write the application in the mcuboot_secodary storage partition to the app storage partition to overwrite the original application in the app storage partition.
[0057] Step S304: After completing the re-writing of the app storage partition, set the write lock permission for the app storage partition.
[0058] Step S305: Periodically check whether the application in the mcuboot_secodary storage partition is valid. When the application in the mcuboot_secodary storage partition is invalid and the application in the application area is valid, write the application in the app storage partition to the mcuboot_secodary storage partition to overwrite the original application in the mcuboot_secodary storage partition.
[0059] The application protection method provided by another embodiment includes the following steps S401 to S404.
[0060] Step S401: When the application is first downloaded to the wearable device, write the application to the app storage partition and the mcuboot_secodary storage partition for the first time respectively.
[0061] Step S402: After completing the first writing of the app storage partition, set the write lock permission for the app storage partition.
[0062] Step S403: When the application is upgraded based on OTA, write the latest version of the application to the mcuboot_secodary storage partition to overwrite the original application in the mcuboot_secodary storage partition.
[0063] Step S404: When it is determined that the application in the app storage partition is valid, unlock the write lock permission for the app storage partition, and then write the latest version of the application in the mcuboot_secodary storage partition to the app storage partition to overwrite the original application in the app storage partition. At the same time, write the application in the app storage partition to the mcuboot_secodary storage partition to overwrite the latest version of the application in the mcuboot_secodary storage partition.
[0064] Step S405: When it is determined that the application in the app storage partition is invalid, unlock the write lock permission for the app storage partition, then write the latest version of the application in the mcuboot_secodary storage partition into the app storage partition to overwrite the original application in the app storage partition, and at the same time retain the latest version of the application in the mcuboot_secodary storage partition.
[0065] An embodiment of the present invention also provides an application protection device. According to Figure 5 As shown, the application protection device 500 includes an application writing module 510, a first checking and writing module 520, and a second checking and writing module 530.
[0066] The application writing module 510 is used to write the application into the application area and the backup area for the first time when the application is first downloaded to the wearable device.
[0067] The first checking and writing module 520 is used to check whether the application in the application area is valid when the wearable device is powered on or reset. When the application in the application area is invalid, write the application in the backup area into the application area to overwrite the original application in the application area.
[0068] The second checking and writing module 530 is used to periodically check whether the application in the backup area is valid. When the application in the backup area is invalid and the application in the application area is valid, write the application in the application area into the backup area to overwrite the original application in the backup area.
[0069] In some embodiments, the application protection device 500 further includes an upgrade writing module. The upgrade writing module is used to write the latest version of the application into the backup area to overwrite the original application in the backup area when the application is upgraded based on OTA; when it is determined that the application in the application area is valid, write the latest version of the application in the backup area into the application area to overwrite the original application in the application area, and at the same time write the application in the application area into the backup area to overwrite the latest version of the application in the backup area.
[0070] In this embodiment, the upgrade writing module is further used to write the latest version of the application in the backup area into the application area to overwrite the original application in the application area when it is determined that the application in the application area is invalid, and at the same time retain the latest version of the application in the backup area.
[0071] In some embodiments, the first checking and writing module 520 is further configured to use the bootloader to write the application program in the backup area to the application area and overwrite the original application program in the application area.
[0072] The bootloader is set with write lock permission.
[0073] In some embodiments, after the application program is first written to the application area, after the application program in the backup area is written to the application area and overwrites the original application program in the application area, and after the latest version of the application program in the backup area is written to the application area and overwrites the original application program in the application area, the device further includes a permission setting module. The permission setting module is configured to set write lock permission for the application area.
[0074] In some embodiments, the first checking and writing module 520 is configured to use the CRC algorithm to determine the actual check value corresponding to the application program in the application area; obtain the correspondence between the current version information, the pre-stored version information and the check value of the application program in the application area; determine the pre-stored check value corresponding to the application program in the application area according to the correspondence between the current version information, the pre-stored version information and the check value of the application program in the application area; and determine whether the application program in the application area is valid according to the actual check value corresponding to the application program in the application area and the pre-stored check value corresponding to the application program in the application area.
[0075] In some embodiments, the second checking and writing module 530 is further configured to use the CRC algorithm to determine the actual check value corresponding to the application program in the backup area; obtain the correspondence between the current version information, the pre-stored version information and the check value of the application program in the backup area; determine the pre-stored check value corresponding to the application program in the backup area according to the correspondence between the current version information, the pre-stored version information and the check value of the application program in the backup area; and determine whether the application program in the backup area is valid according to the actual check value corresponding to the application program in the backup area and the pre-stored check value corresponding to the application program in the backup area.
[0076] An embodiment of the present invention further provides a wearable device, as Figure 6 shown. The wearable device 600 includes a memory 620 and a processor 610. The memory 620 stores a computer program, and the computer program is used to control the processor 610 to operate to execute the application program protection method provided in any of the above embodiments.
[0077] The embodiments in this specification are all described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments.
[0078] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain implementations, multitasking and parallel processing are also possible or may be advantageous.
[0079] Embodiments of the present specification may be systems, methods, and / or computer program products. A computer program product may include a computer-readable storage medium having thereon computer instructions for causing a processor to implement various aspects of the embodiments of the present specification.
[0080] A computer-readable storage medium may be a tangible device that can retain and store computer instructions for use by a computer instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punch card or raised structures in a groove having computer instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not to be construed as an instantaneous signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0081] The computer instructions described herein may be downloaded from the computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. A network adapter or network interface in each computing / processing device receives the computer instructions from the network and forwards the computer instructions for storage in the computer-readable storage medium in each computing / processing device.
[0082] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present specification. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of computer instructions, which contain one or more executable computer instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions. As is well known to those skilled in the art, implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
[0083] The embodiments of the present specification have been described above. The above description is exemplary and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art in the technical field without departing from the scope of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, the practical application, or the improvement of the technology in the market, or to enable other ordinary skilled persons in the technical field to understand the embodiments disclosed herein.
Claims
1. An application protection method, characterized in that, Including: When the application is first downloaded to the wearable device, write the application to the application area and the backup area for the first time respectively; When the wearable device is powered on or reset, check whether the application in the application area is valid. If the application in the application area is invalid, write the application in the backup area to the application area and overwrite the original application in the application area; And, Periodically check whether the application in the backup area is valid. If the application in the backup area is invalid and the application in the application area is valid, write the application in the application area to the backup area and overwrite the original application in the backup area.
2. The method according to claim 1, characterized in that, The method further includes: When upgrading the application based on OTA, write the latest version of the application to the backup area and overwrite the original application in the backup area; When it is determined that the application in the application area is valid, write the latest version of the application in the backup area to the application area and overwrite the original application in the application area, and at the same time write the application in the application area to the backup area and overwrite the latest version of the application in the backup area.
3. The method according to claim 2, wherein The method further includes: When it is determined that the application in the application area is invalid, write the latest version of the application in the backup area to the application area and overwrite the original application in the application area, and at the same time retain the latest version of the application in the backup area.
4. The method according to claim 1, wherein The writing the application in the backup area to the application area and overwriting the original application in the application area includes: Using the bootloader program, write the application in the backup area to the application area and overwrite the original application in the application area.
5. The method according to claim 4, wherein The bootloader program is set with write lock permission.
6. The method according to claim 2, wherein After writing the application to the application area for the first time, after writing the application in the backup area to the application area and overwriting the original application in the application area, and after writing the latest version of the application in the backup area to the application area and overwriting the original application in the application area, the method further includes: Set the write lock permission for the application area.
7. According to the method described in any one of claims 1-6, characterized in that, The checking whether the application in the application area is valid includes: Using the CRC algorithm, determine the actual check value corresponding to the application in the application area; Obtain the corresponding relationship between the current version information of the application in the application area, the pre-stored version information and the check value; According to the current version information of the application in the application area and the corresponding relationship between the pre-stored version information and the check value, determine the pre-stored check value corresponding to the application in the application area; According to the actual check value corresponding to the application in the application area and the pre-stored check value corresponding to the application in the application area, determine whether the application in the application area is valid.
8. The method according to any one of claims 1-6, characterized in that The periodically checking whether the application in the backup area is valid includes: Using the CRC algorithm, determine the actual check value corresponding to the application program in the backup area; Obtain the corresponding relationship between the current version information of the application program in the backup area, the pre-stored version information, and the check value; According to the corresponding relationship between the current version information of the application program in the backup area, the pre-stored version information, and the check value, determine the pre-stored check value corresponding to the application program in the backup area; According to the actual check value corresponding to the application program in the backup area and the pre-stored check value corresponding to the application program in the backup area, determine whether the application program in the backup area is valid.
9. An application protection device, characterized in that, It includes: An application program writing module, configured to, when the application program is first downloaded to the wearable device, write the application program to the application area and the backup area for the first time respectively; A first check and writing module, configured to, when the wearable device is powered on or reset, check whether the application program in the application area is valid, and when the application program in the application area is invalid, write the application program in the backup area to the application area and overwrite the original application program in the application area; And, A second check and writing module, configured to periodically check whether the application program in the backup area is valid, and when the application program in the backup area is invalid and the application program in the application area is valid, write the application program in the application area to the backup area and overwrite the original application program in the backup area.
10. A wearable device, characterized in that, It includes a memory and a processor, and the memory stores a computer program, and the computer program is used to control the processor to operate to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Application program backup recovery method, device, and computer-readable storage medium
CN109408282A
Application program updating method, nonvolatile memory, storage medium and household appliance
CN112527365A
Application program upgrading method and device, electronic equipment and storage medium
CN116360831A
Program upgrading method and electronic equipment
CN117971272A
Program updating method and device, electronic equipment and computer storage medium
CN119415111A