Method for optimizing dalvik byte codes on basis of memory loading
A technology of memory loading and optimization method, which is applied in the direction of program loading/starting, memory system, electronic digital data processing, etc. It can solve the problems of reducing program startup efficiency and increasing the risk of being cracked, so as to improve the attack resistance and enhance the The effect of start-up efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] The present invention will be further elaborated below in conjunction with the accompanying drawings.
[0031] A dalvik bytecode optimization method based on memory loading, which includes the following steps:
[0032] Step 1, read the encrypted DEX file, decrypt and decompress it, and save the decrypted and decompressed DEX file in the stack memory in the form of bytecode;
[0033] In step 1, the local method is called at the java layer to decrypt and decompress the DEX file.
[0034] Step 2: Use reflection to call the openDexFile method of DexFile, parse the DEX file bytecode in step 1 to obtain a DexOrJar structure, load the content of the DexOrJar structure into the hash table of the userDexFile structure in gDvm, and finally return to store the DEX file The pointer to the DexOrJar structure of the information, recorded as the cookie value;
[0035] The cookie value obtained in step 2 is the value corresponding to the loaded dex, which can be used later to access ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

