Method for Information Processing and Related Device
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorHui Li
Life of this patent
Estimating the term…
Abstract
A method for information processing is provided, which includes the follows. Whether a target OAT file corresponding to a target DEX file that an application relies on is missing is detected, in response to a start control instruction for the application detected. Existence of a backup target OAT file is detected when the target OAT file is missing. A hard-link file configured to back up the target OAT file is determined, and the target OAT file is read from the hard-link file, when the backup target OAT file exists. Validity of the target OAT file is verified. The target OAT file is loaded when the target OAT file is valid.
Claims20
A method for information processing, comprising:
- detecting whether a target OAT file corresponding to a target DEX file that an application relies on is missing, in response to a start control instruction for the application detected;
- detecting existence of a backup target OAT file when the target OAT file is missing;
- determining a hard-link file configured to back up the target OAT file and reading the target OAT file from the hard-link file, when the backup target OAT file exists;
- verifying validity of the target OAT file;
- loading the target OAT file when the target OAT file is valid;
- and
- wherein verifying validity of the target OAT file comprises:
- determining whether the number of offset arrays of the target OAT file is equal to that of data types of the target DEX file;
- determining that the target OAT file is valid based on a determination that the number of the offset arrays of the target OAT file is equal to that of the data types of the target DEX file;
- and
- determining that the target OAT file is invalid based on a determination that the number of the offset arrays of the target OAT file is not equal to that of the data types of the target DEX file.
A method for information processing, comprising:
- detecting whether a target OAT file corresponding to a target DEX file that an application relies on is missing, in response to a start control instruction for the application detected;
- detecting existence of a backup target OAT file when the target OAT file is missing, determining a hard-link file configured to back up the target OAT file and reading the target OAT file from the hard-link file, when the backup target OAT file exists;
- verifying validity of the target OAT file;
- loading the target OAT file when the target OAT file is valid;
- determining whether the target OAT file is complete when the target OAT file is invalid;
- determining uncompiled target data of the target DEX file and obtaining target compiled data by compiling the uncompiled target data, based on a determination that the target OAT file is incomplete;
- and
- adding the target compiled data into the target OAT file and loading the target OAT file.
A terminal, comprising:
- a memory storing executable program codes;
- and
- a processor coupled with the memory;
- a fingerprint recognition module, configured to collect fingerprint image;
- wherein the processor is configured to call the executable program codes stored in the memory to:
- detect whether a target OAT file corresponding to a target DEX file that an application relies on is missing, in response to a start control instruction for the application detected;
- detect existence of a backup target OAT file when the target OAT file is missing,
- determine a hard-link file configured to back up the target OAT file and read the target OAT file from the hard-link file, when the backup target OAT file exists;
- verify validity of the target OAT file;
- load the target OAT file when the target OAT file is valid;
- and
- wherein the processor configured to call the executable program codes stored in the memory to verify validity of the target OAT file is configured to call the executable program codes stored in the memory to:
- determine whether the number of offset arrays of the target OAT file is equal to that of data types of the target DEX file;
- determine that the target OAT file is valid based on a determination that the number of the offset arrays of the target OAT file is equal to that of the data types of the target DEX file;
- and
- determine that the target OAT file is invalid based on a determination that the number of the offset arrays of the target OAT file is not equal to that of the data types of the target DEX file.
Dependencies are inferred from the claim text.