Application program storage and starting method and device, equipment and medium

By compressing applications in the storage unit of embedded devices, freeing up space to store compressed packages for new applications, the problem of insufficient storage space for devices cannot be upgraded, and the ability to add new functions on embedded devices is realized.

CN120104581APending Publication Date: 2025-06-06SICHUAN ILINK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510103450.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

Embedded devices cannot be upgraded or added new features when there is insufficient storage space, resulting in the inability to add new applications to existing devices.

Method used

By compressing the originally stored applications in the storage unit, freeing up space to store the compressed packages of the new application, and decompressing the compressed packages at startup to enable the startup of the application.

Benefits of technology

In the case of insufficient storage space for embedded devices, new applications can be added, avoiding the dilemma of insufficient space in the device and saving storage space through compression and decompression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104581A_ABST
    Figure CN120104581A_ABST
Patent Text Reader

Abstract

The invention discloses an application program storage and starting method and device, equipment and a medium, relates to the technical field of communication, and aims to solve the problem that a new function cannot be added due to insufficient storage space of existing embedded equipment. The method comprises the steps of obtaining a compressed package of a first application program and an embedded device; compressing a second application program originally stored in the storage unit to obtain a target residual space of the storage unit; the compressed package of the first application program is stored in the target residual space, and a target program compressed package is obtained; and decompressing the target program compressed package and then starting the target program compressed package. According to the application program storage and starting method provided by the invention, the originally stored application program is compressed to provide space for the embedded equipment so as to add a new application program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an application storage and startup method, device, equipment and medium. Background Art

[0002] An embedded device is a device that integrates hardware and software and can work independently. It is mainly composed of an embedded processor, related supporting hardware and an embedded software system. Embedded devices usually have many pre-installed functions, but for cost considerations, the device's memory unit (RAM) and storage unit (flash) are usually very limited. However, sometimes in order to make the device have more functions, it is necessary to maximize the support functions, or iteratively upgrade old products. However, the storage space of the embedded devices that have been shipped is fixed. If there is not enough storage space, it will be impossible to add new applications to the existing embedded devices. Therefore, how to add new applications when the storage space of the embedded device is insufficient has become a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0003] The purpose of the present invention is to provide an application storage and startup method, device, equipment and medium, which are used to solve the problem that when the embedded device has already left the factory, if there is insufficient storage space, it will be impossible to upgrade or add new functions.

[0004] In order to achieve the above object, the present invention provides the following technical solutions:

[0005] In a first aspect, the present invention provides a method for storing and starting an application program, comprising:

[0006] Obtaining a compressed package of a first application and an embedded device; the embedded device includes a storage unit; the compressed package of the first application is a newly added application compressed package;

[0007] Compressing the second application originally stored in the storage unit to obtain a target remaining space of the storage unit;

[0008] storing the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program;

[0009] The target program compressed package is decompressed and then started.

[0010] Optionally, the embedded device further includes a memory unit, and the decompressing the target program compressed package and before starting the package further includes:

[0011] Determining whether the remaining memory of the memory unit is less than a preset memory value;

[0012] If the remaining memory is less than a preset memory value, configuring the storage unit to run partitions;

[0013] If the remaining memory is greater than the preset memory value, the memory unit is configured to run partitions.

[0014] Optionally, when the storage unit includes a solidified first system partition, a user partition, and a first data partition; the second application is stored in the first system partition; and configuring the storage unit to run the partition includes:

[0015] The user partition is determined as the operation partition of the storage unit.

[0016] Optionally, configuring the storage unit to run the partition includes:

[0017] The storage unit is divided into a second system partition, an application partition, a running partition and a second data partition; a third application is stored in the application partition, and the third application is an application in the second application with a historical call number less than a preset number; a fourth application is stored in the second system partition, and the fourth application is an application in the second application with a historical call number greater than a preset number.

[0018] Optionally, compressing the second application originally stored in the storage unit to obtain a target remaining space of the storage unit includes:

[0019] The third application program stored in the application partition is compressed to obtain a target remaining space.

[0020] Optionally, CRC check information is stored at the tail of the target program compressed package; a first directory is established in the storage unit, and the target program compressed package is stored in the first directory; a second directory is established in the running partition; and the decompressing and starting the target program compressed package includes:

[0021] Finding the compressed package to be started in the first directory according to the calling instruction; the compressed package to be started is a compressed package in the target program compressed package that matches the calling instruction;

[0022] Determine the integrity of the compressed package to be started according to the CRC check information, and when the compressed package to be started is complete, decompress the compressed package to be started and store it in the second directory to obtain the target program;

[0023] The target program is called and started.

[0024] Optionally, the calling of the target program, after starting the target program, further includes:

[0025] After the target program is called, the target program in the running partition is deleted.

[0026] Compared with the prior art, the application storage and startup method provided by the present invention compresses the second application originally stored in the storage unit to obtain the target remaining space of the storage unit. When the storage space is insufficient, space can be freed up for the compressed package of the newly added first application to be stored in the target remaining space, wherein the newly added first application is also stored in the form of a compressed package, further saving space, and can be started by decompressing the compressed package at startup. The present invention can realize the addition of applications when the storage space of the embedded device is insufficient. It avoids the problem that when the embedded device has insufficient space, it cannot be upgraded and can only be eliminated.

[0027] In a second aspect, the present invention provides an application storage and startup device, comprising:

[0028] A data acquisition module, used to acquire a compressed package of a first application and an embedded device; the embedded device includes a storage unit; the compressed package of the first application is a newly added compressed package of an application;

[0029] A compression module, used for compressing the second application originally stored in the storage unit to obtain a target remaining space of the storage unit;

[0030] A storage module, used for storing the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program;

[0031] The startup module is used to start the target program after decompressing the compressed package.

[0032] In a third aspect, the present invention provides an application storage and startup device, comprising:

[0033] A communication unit / communication interface, used to obtain a compressed package of a first application and an embedded device; the embedded device includes a storage unit; the compressed package of the first application is a newly added application compressed package;

[0034] A processing unit / processor, configured to compress the second application originally stored in the storage unit to obtain a target remaining space of the storage unit;

[0035] storing the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program;

[0036] The target program compressed package is decompressed and then started.

[0037] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, the application storage and startup method is implemented.

[0038] Compared with the prior art, the beneficial effects of the second aspect device type solution, the third aspect equipment type solution, and the fourth aspect computer-readable storage medium type solution provided by the present invention are the same as the beneficial effects of the double-sided printing method described in the above technical solutions, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0040] Figure 1 A flowchart of a method for storing and starting an application provided by the present invention;

[0041] Figure 2 A schematic diagram of the memory of an embedded device when the memory unit provided by the present invention is sufficient;

[0042] Figure 3 A schematic diagram of the storage unit partitioning and solidification provided by the present invention;

[0043] Figure 4 A schematic diagram of the partition configuration of the storage unit provided by the present invention;

[0044] Figure 5 A schematic diagram of the structure of an application storage and startup device provided by the present invention;

[0045] Figure 6 A schematic diagram of the structure of an application storage and startup device provided by the present invention. DETAILED DESCRIPTION

[0046] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0047] It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0048] In the present invention, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b, c can be single or multiple.

[0049] There are mainly the following situations where embedded devices have insufficient storage space: 1. The storage unit space is insufficient, but there is free memory space to maximize support for more application functions; 2. The storage unit partitions are fixed, and the system partition space in the storage unit is insufficient: the storage unit space is sufficient and multi-partition management is performed. When adding functions in the new version, the system partition has insufficient remaining space, but the user partition is sufficient. Since the partitions of the old product are fixed, the system partition cannot be increased to place the new application; 3. Both storage space and memory space are insufficient.

[0050] In order to solve the problem that the storage space of the above embedded device is insufficient and new applications cannot be added, the present invention provides an application storage and startup method, device, equipment and medium, which will be described below with reference to the accompanying drawings.

[0051] join Figure 1 The present invention provides an application storage and startup method, such as Figure 1As shown, the method comprises the following steps:

[0052] Step 101: Obtain a compressed package of a first application and an embedded device;

[0053] The embedded device includes a storage unit and a memory unit; the compressed package of the first application is a newly added application compressed package;

[0054] Optionally, when the first application is a commonly used program, the first application is stored in a non-compressed form.

[0055] Step 102: compressing the second application originally stored in the storage unit to obtain a target remaining space of the storage unit;

[0056] The second application may be fully or partially compressed according to the remaining space of the storage unit to save storage space. For example, when the remaining space of the storage unit is greater than a preset space threshold, only infrequently used applications are compressed, and frequently used applications are not compressed. When the remaining space of the storage unit is less than the preset space threshold, all applications are compressed.

[0057] The compression algorithm can adopt common algorithms such as LZMA, Bzip2, Deflate, etc.

[0058] Step 103: storing the compressed package of the first application program in the target remaining space to obtain a compressed package of the target program;

[0059] The target program compressed package includes a compressed package of the first application program and a compressed package corresponding to the compressed second application program; CRC check information is stored at the end of the target program compressed package, which is used to check the integrity of the compressed package;

[0060] Optionally, a first directory is established in the storage unit, and the target program compressed package is stored in the first directory.

[0061] Newly added applications are stored in compressed packages, which can further save storage space.

[0062] Step 104: decompress the target program compressed package and then start it.

[0063] Since the target program compressed package is stored in compressed form, a running space needs to be allocated when the application is started to store the decompressed application for the application to run. A second directory is established in the running partition;

[0064] Specifically, step 104 specifically includes the following steps: find the compressed package to be started in the first directory according to the calling instruction; the compressed package to be started is the compressed package in the target program compressed package that matches the calling instruction; determine the integrity of the compressed package to be started according to the CRC check information, and when the compressed package to be started is complete, decompress the compressed package to be started and store it in the second directory to obtain the target program; call the target program and start the target program. If the system needs to call other applications, repeat step 104 by analogy.

[0065] As an optional manner, the calling of the target program, after starting the target program, further includes:

[0066] When the target program is called, the target program in the running partition is deleted to make room for subsequent system calls to other applications.

[0067] The present invention compresses the second application originally stored in the storage unit to obtain the target remaining space of the storage unit. When the storage space is insufficient, space can be freed up for the compressed package of the newly added first application to be stored in the target remaining space, wherein the newly added first application is also stored in the form of a compressed package, further saving space, and can be started by decompressing the compressed package at startup. The present invention can realize the addition of applications when the storage space of the embedded device is insufficient. It avoids the problem that when the embedded device has insufficient space, it cannot be upgraded and can only be eliminated. In addition, a running space is configured for the application to be decompressed, stored and run, so that the application is started.

[0068] based on Figure 1 The present invention also provides some specific implementation methods as follows.

[0069] As an optional method, before decompressing the target program compressed package and starting it, the method further includes:

[0070] Determining whether the remaining memory of the memory unit is less than a preset memory value;

[0071] If the remaining memory is less than a preset memory value, configuring the storage unit to run partitions;

[0072] If the remaining memory is greater than the preset memory value, the memory unit is configured to run partitions.

[0073] See also Figure 2When the remaining space of the memory unit is greater than the preset memory value, it means that the remaining space of the memory unit is sufficient. At this time, when designing the embedded software architecture, the second application originally stored in the storage unit is fully or partially compressed according to the remaining space of the storage unit, and the compressed application is placed in the first directory of the storage space. Configure the running partition A1 area in the memory unit for the virtual file system, and establish a second directory in the virtual file system to place the decompressed application; after the system is started, the file system and the second directory are virtualized for use when the system calls the program; during the system operation, when the application X needs to be called, the compressed package to be started corresponding to X is found in the first directory, and the integrity of the file is confirmed by CRC check. After the check passes, it is decompressed to the second directory, and the system calls the decompressed application X in the second directory to start and run the application X.

[0074] See also Figure 3 and Figure 4 When the remaining space of the memory unit is less than the preset memory value, it means that the remaining space of the memory unit is insufficient and the running partition cannot be configured. Therefore, it is necessary to configure the running partition in the storage unit to start and run the application.

[0075] For the case where the storage unit partition has been solidified, such as Figure 3 As shown, the storage unit already includes the first system partition A2, the user partition B2, the first data partition B3, and the second application is stored in the first system partition; because the storage unit is solidified, the partition cannot be modified. When the remaining space reserved for the first system partition is insufficient, the second application stored in the first system partition is partially or completely compressed to obtain the target remaining space; the newly added application compression package is stored in the target remaining space in the first system partition. When the user partition memory is sufficient, configuring the storage unit to run the partition includes: determining the user partition as the running partition of the storage unit. After the system is started, a first directory is established in the first system partition, and a second directory is established in the user partition for the system to use when it needs to call the compressed application; during the operation of the system, when it is necessary to call the compressed application, such as application 5, first find the compressed application 5 in the first directory of the first system partition, and after verifying that the compressed package is complete, decompress it to the second directory. The system calls the decompressed application 5 in the second directory to complete the startup and operation of application 5. It should be understood that the solidification of the storage unit means that the storage unit is partitioned before leaving the factory, and the storage unit cannot be partitioned later.

[0076] Exemplarily, the second application includes applications 1 to 6, which are all placed in the first system partition in an uncompressed manner. After new requirements or function iterations, the newly added applications are applications 7 and 8. Due to insufficient storage space in the first system partition, they cannot be placed in the system partition in an uncompressed manner. Therefore, infrequently called applications 5, 6, and 7 can be selected for compressed storage, and frequently used applications 1, 2, 3, 4, and 8 are still placed in the first system partition in an uncompressed manner.

[0077] For the case where the storage unit is not fixed partition, such as Figure 4 As shown, configuring the storage unit to run the partition includes:

[0078] The second application is divided into a third application and a fourth application according to the number of historical calls of each program in the second application, wherein the third application is an application whose number of historical calls in the second application is less than a preset number; the fourth application is an application whose number of historical calls in the second application is greater than a preset number; then the storage unit is divided into a second system partition A3 area, an application partition B3 area, a running partition C3 area and a second data partition D3 area; wherein the third application is stored in the application partition, and the fourth application is stored in the second system partition. The application partition is used to store compressed programs, and the second system partition is used to store programs that cannot be compressed or are not compressed.

[0079] At this time, compressing the second application originally stored in the storage unit to obtain the target remaining space of the storage unit includes: compressing the third application stored in the application partition to obtain the target remaining space. When the newly added application is an infrequently used program, the newly added application is compressed and stored in the application partition; when the newly added application is a frequently used program, the application is stored in the second system partition. After the system is started, the program in the application partition is decompressed into the running partition as needed, and the decompressed application is called at the same time.

[0080] The embodiment of the present invention can divide the functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0081] In the case of dividing each functional module into corresponding functional modules, Figure 5 FIG. 2 shows a schematic diagram of the structure of an application storage and startup device provided by the present invention. Figure 5As shown, the device comprises:

[0082] The data acquisition module 501 is used to acquire a compressed package of a first application and an embedded device; the embedded device includes a storage unit; the compressed package of the first application is a newly added compressed package of an application;

[0083] A compression module 502, configured to compress the second application originally stored in the storage unit to obtain a target remaining space of the storage unit;

[0084] The storage module 503 is used to store the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program;

[0085] The startup module 504 is used to decompress the target program compressed package and then start it.

[0086] Optionally, the device further includes: running a partition configuration module, which may specifically include:

[0087] A judging unit, used to judge whether the remaining memory of the memory unit is less than a preset memory value;

[0088] A storage unit configuration unit, configured to configure a running partition for the storage unit if the remaining memory is less than a preset memory value;

[0089] The memory unit configuration unit is used to configure the memory unit to run the partition if the remaining memory is greater than the preset memory value.

[0090] Optionally, when the storage unit includes a solidified first system partition, a user partition, and a first data partition; the storage unit configuration unit may be specifically configured to determine the user partition as the running partition of the storage unit.

[0091] Optionally, the storage unit configuration unit can also be used to: divide the storage unit into a second system partition, an application partition, a running partition and a second data partition; a third application is stored in the application partition, and the third application is an application in the second application whose historical call times are less than a preset number of times; a fourth application is stored in the second system partition, and the fourth application is an application in the second application whose historical call times are greater than a preset number of times.

[0092] Optionally, the compression module 502 may be used to:

[0093] The third application program stored in the application partition is compressed to obtain a target remaining space.

[0094] Optionally, CRC check information is stored at the tail of the target program compressed package; a first directory is established in the storage unit, and the target program compressed package is stored in the first directory; a second directory is established in the running partition; and the startup module 504 may include:

[0095] a compressed package to be started determining unit, configured to find the compressed package to be started in the first directory according to the calling instruction; the compressed package to be started is a compressed package in the target program compressed package that matches the calling instruction;

[0096] a checking and decompression unit, configured to determine the integrity of the compressed package to be started according to the CRC check information, and when the compressed package to be started is complete, decompress the compressed package to be started and store it in the second directory to obtain a target program;

[0097] The start-up and operation unit is used to call the target program and start the target program.

[0098] Optionally, the device further includes a cleaning module, which is used to delete the target program in the running partition after the target program is called.

[0099] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the interaction between various modules. It can be understood that in order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of various functions. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0100] In the case of using the corresponding integrated unit, Figure 6 FIG. 2 is a schematic diagram showing a structure of an application storage and startup device provided by the present invention. Figure 6 As shown, the device includes: a communication unit / communication interface, used to obtain a compressed package of a first application and an embedded device; the embedded device includes a storage unit; the compressed package of the first application is a newly added application compressed package;

[0101] A processing unit / processor, configured to compress the second application originally stored in the storage unit to obtain a target remaining space of the storage unit;

[0102] storing the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program;

[0103] The target program compressed package is decompressed and then started.

[0104] Among them, the processing module can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of the present invention. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module can be a transceiver, a transceiver circuit or a communication interface, and the like. The storage module can be a memory.

[0105] like Figure 6 As shown, the processor may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention. The communication interface may be one or more. The communication interface may use any transceiver-like device for communicating with other devices or communication networks.

[0106] like Figure 6 As shown, the terminal device may further include a communication line. The communication line may include a path to transmit information between the components.

[0107] Optional, such as Figure 6 As shown, the terminal device may further include a memory. The memory is used to store computer-executable instructions for executing the solution of the present invention, and the execution is controlled by the processor. The processor is used to execute the computer-executable instructions stored in the memory, thereby implementing the method provided by the embodiment of the present invention.

[0108] like Figure 6As shown, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor through a communication line. The memory may also be integrated with the processor.

[0109] Optionally, the computer-executable instructions in the embodiment of the present invention may also be referred to as application program codes, which is not specifically limited in the embodiment of the present invention.

[0110] In a specific implementation, as an example, Figure 6 As shown, the processor may include one or more CPUs, such as Figure 6 CPU0 and CPU1 in.

[0111] In a specific implementation, as an example, Figure 6 As shown, the terminal device may include multiple processors, such as Figure 6 Each of these processors can be a single-core processor or a multi-core processor.

[0112] On the one hand, a computer-readable storage medium is provided, in which instructions are stored, and when the instructions are executed, the application storage and startup method is implemented.

[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present invention is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (SSD).

[0114] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0115] Although the present invention has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present invention. Accordingly, this specification and the accompanying drawings are merely exemplary illustrations of the present invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present invention. Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, the present invention is intended to include such modifications and variations if they fall within the scope of the claims of the present invention and their equivalents.

Claims

1. A method for storing and starting an application, characterized in that: include: Obtain a compressed package of the first application and an embedded device; The embedded device includes a storage unit; The compressed package of the first application is a newly added compressed package of the application; Compressing the second application originally stored in the storage unit to obtain a target remaining space of the storage unit; storing the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program; The target program compressed package is decompressed and then started.

2. The method for storing and starting an application according to claim 1, characterized in that: The embedded device further includes a memory unit, and before decompressing the target program compressed package and starting it, the embedded device further includes: Determining whether the remaining memory of the memory unit is less than a preset memory value; If the remaining memory is less than a preset memory value, configuring the storage unit to run partitions; If the remaining memory is greater than the preset memory value, the memory unit is configured to run partitions.

3. The application storage and startup method according to claim 2, characterized in that: When the storage unit includes a solidified first system partition, a user partition, and a first data partition; The second application is stored in the first system partition; The configuring the storage unit to run the partition comprises: The user partition is determined as the operation partition of the storage unit.

4. The application storage and startup method according to claim 2, characterized in that: The configuring the storage unit to run the partition comprises: The storage unit is divided into a second system partition, an application partition, a running partition and a second data partition; a third application is stored in the application partition, and the third application is an application in the second application with a historical call number less than a preset number; a fourth application is stored in the second system partition, and the fourth application is an application in the second application with a historical call number greater than a preset number.

5. The application storage and startup method according to claim 4, characterized in that: The compressing the second application originally stored in the storage unit to obtain the target remaining space of the storage unit includes: The third application program stored in the application partition is compressed to obtain a target remaining space.

6. The application storage and startup method according to claim 2, characterized in that: The tail of the target program compressed package stores CRC check information; the storage unit establishes a first directory, and the target program compressed package is stored in the first directory; A second directory is established in the running partition; and the decompressing and starting the target program compressed package includes: Finding the compressed package to be started in the first directory according to the calling instruction; the compressed package to be started is a compressed package in the target program compressed package that matches the calling instruction; Determine the integrity of the compressed package to be started according to the CRC check information, and when the compressed package to be started is complete, decompress the compressed package to be started and store it in the second directory to obtain the target program; The target program is called and started.

7. The application storage and startup method according to claim 6, characterized in that: The calling of the target program, after starting the target program, further comprises: After the target program is called, the target program in the running partition is deleted.

8. An application storage and startup device, characterized in that: include: A data acquisition module, used to acquire a compressed package of the first application and an embedded device; The embedded device includes a storage unit; The compressed package of the first application is a newly added compressed package of the application; A compression module, used for compressing the second application originally stored in the storage unit to obtain a target remaining space of the storage unit; A storage module, used for storing the compressed package of the first application program in the target remaining space to obtain a compressed package of the target program; The target program compressed package includes a compressed package of the first application program and a compressed package corresponding to the compressed second application program; The startup module is used to start the target program after decompressing the compressed package.

9. An application storage and launching device, characterized in that: include: A communication unit / communication interface, used to obtain a compressed package of the first application and an embedded device; The embedded device includes a storage unit; The compressed package of the first application is a newly added compressed package of the application; A processing unit / processor, configured to compress the second application originally stored in the storage unit to obtain a target remaining space of the storage unit; storing the compressed package of the first application program in the target remaining space to obtain a target program compressed package; the target program compressed package includes the compressed package of the first application program and the compressed package corresponding to the compressed second application program; The target program compressed package is decompressed and then started.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the application storage and startup method described in any one of claims 1 to 7 is implemented.