Search

CN-121996145-A - Access method, device, equipment and storage medium of physical partition

CN121996145ACN 121996145 ACN121996145 ACN 121996145ACN-121996145-A

Abstract

The embodiment of the application discloses a physical partition access method, a device, equipment and a storage medium, which are used for carrying out data access operation on a physical partition for application program version upgrading in terminal equipment according to a data access instruction, so that the storage space of a user is enlarged, and the system resources are saved. The method provided by the embodiment of the application is applied to the terminal equipment, and comprises the steps of detecting a data access instruction, and carrying out data access operation on a target partition according to the data access instruction, wherein the target partition comprises a dynamic partition in the terminal equipment.

Inventors

  • QIU CHANGPING

Assignees

  • 深圳市欢太科技有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (12)

  1. 1. A method for accessing a physical partition, the method being applied to a terminal device, the method comprising: Detecting a data access instruction; And carrying out data access operation on a target partition according to the data access instruction, wherein the target partition comprises a dynamic partition in the terminal equipment.
  2. 2. The method of claim 1, wherein the data access instruction comprises a read data instruction or a write data instruction, and wherein performing a data access operation on the target partition according to the data access instruction comprises: and performing data reading operation on the target partition according to the data reading instruction, or, And according to the data writing instruction, performing data writing operation on the target partition.
  3. 3. The method according to claim 1 or 2, wherein the terminal device further comprises a user data partition, the method further comprising: Under the condition of version upgrading of a target application program, current data corresponding to the target partition is migrated to the user data partition; and under the condition that the version upgrading of the target application program is completed, migrating the current data from the user data partition to the target partition.
  4. 4. The method according to claim 3, wherein the migrating the current data corresponding to the target partition to the user data partition in the case of version upgrade of the target application program includes: and under the condition that the version of the target application program is updated and the first current residual space of the target partition is smaller than a first space threshold value, migrating the current data corresponding to the target partition to the user data partition.
  5. 5. The method of claim 3, wherein the migrating the current data from the user data partition to the target partition upon completion of the version upgrade of the target application program comprises: determining a second current residual space of the target partition under the condition that the version upgrading of the target application program is completed; migrating the current data from the user data partition to the target partition if the second current remaining space is greater than the second space threshold, or, And under the condition that the second current residual space is larger than a third space threshold and smaller than or equal to the second space threshold, migrating first target data in the current data from the user data partition to the target partition, wherein the priority of the first target data is larger than that of other data in the current data.
  6. 6. A method according to claim 3, characterized in that the method further comprises: determining a second current residual space of the target partition under the condition that the version upgrading of the target application program is completed; and if the second current residual space is smaller than or equal to a third space threshold value, the step of migrating the current data from the user data partition to the target partition is not executed.
  7. 7. The method of claim 3, wherein the current data is a second target data in the data corresponding to the target partition, and the second target data has a priority greater than a priority of other data in the data corresponding to the target partition.
  8. 8. The method according to claim 1 or 2, wherein the target partition further comprises a user data partition in the terminal device.
  9. 9. The method of claim 8, wherein the method further comprises: And under the condition that the version upgrading is carried out on the target application program and the third current residual space of the target partition is larger than or equal to the first space threshold value, or, Outputting prompt information when the version of the target application program is updated and the third current residual space of the target partition is smaller than the first space threshold, wherein the prompt information is used for prompting that the residual space is insufficient and cleaning the space; and under the condition that the fourth residual space after the cleaning space is detected to be larger than or equal to the first space threshold value, carrying out version upgrading on the target application program.
  10. 10. An access device for physical partition, wherein the device is applied to a terminal device, the device comprising: The detection module is used for detecting a data access instruction; And the access module is used for performing data access operation on a target partition according to the data access instruction, wherein the target partition comprises a dynamic partition in the terminal equipment.
  11. 11. A terminal device comprising a memory and a processor, and a transceiver, the memory storing a computer program executable on the processor, the terminal device implementing the method of any of claims 1-9 when the program is executed.
  12. 12. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-9.

Description

Access method, device, equipment and storage medium of physical partition Technical Field The present application relates to the field of data storage, and in particular, to a method, apparatus, device, and storage medium for accessing a physical partition. Background Each manufacturer of the terminal device will make some super (super) partition reservations. However, the space of the super partition is reserved mainly for version software upgrading at present, so how to improve the utilization rate of system resources is a problem to be solved urgently. Disclosure of Invention The embodiment of the application provides a physical partition access method, a device, equipment and a storage medium, which are used for carrying out data access operation on a physical partition for application program version upgrading in terminal equipment according to a data access instruction, so that the storage space of a user is enlarged, and the system resources are saved. The first aspect of the application provides a method for accessing a physical partition, which is applied to terminal equipment, and the method can comprise the steps of detecting a data access instruction, and carrying out data access operation on a target partition according to the data access instruction, wherein the target partition comprises a dynamic partition in the terminal equipment. A second aspect of the present application provides an access apparatus for physical partition, where the apparatus is applied to a terminal device, and the apparatus may include: The detection module is used for detecting a data access instruction; And the access module is used for performing data access operation on a target partition according to the data access instruction, wherein the target partition comprises a dynamic partition in the terminal equipment. A third aspect of the present application provides a terminal device, which may comprise a memory and a processor, and a transceiver, the memory storing a computer program executable on the processor, the terminal device implementing the method according to the first aspect of the present application when executing the program. A fourth aspect of the application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to the first aspect of the application. In yet another aspect, an embodiment of the application discloses a computer program product for causing a computer to perform the method according to the first aspect of the application when the computer program product is run on the computer. In yet another aspect, an embodiment of the present application discloses an application publishing platform, which is configured to publish a computer program product, where the computer program product, when run on a computer, causes the computer to perform the method according to the first aspect of the present application. From the above technical solutions, the embodiment of the present application has the following advantages: According to the embodiment of the application, the data access instruction is detected, and the data access operation is carried out on the target partition according to the data access instruction, wherein the target partition comprises a dynamic partition in the terminal equipment. And the method is used for carrying out data access operation on the physical partition for upgrading the application program version in the terminal equipment according to the data access instruction, so that the storage space of the user is enlarged, and the system resources are saved. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments and the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings. FIG. 1 is a partition table of terminal equipment of an Android system; FIG. 2 is a diagram illustrating an embodiment of a method for accessing a physical partition according to an embodiment of the present application; FIG. 3A is a diagram of the remaining spatial partitions in a dynamic partition according to an embodiment of the present application; FIG. 3B is a schematic diagram illustrating data access to the remaining spatial partitions in the dynamic partition according to an embodiment of the present application; FIG. 3C is a schematic diagram of a memory expansion in accordance with an embodiment of the present application; FIG. 4 is a diagram illustrating another embodiment of a method for accessing a physical partition according to an embodiment of the present application; fig. 5 is a schematic diagram of controlling a target partition in an OTA upgrade scenario according to an embodiment of the present application; FI