dalvik bytecode optimization method based on memory loading

A technology of memory loading and optimization methods, which is applied in the direction of program loading/starting, code compiling, program code conversion, etc., which can solve the problems of increasing the risk of being cracked and reducing the efficiency of program startup, so as to improve the attack resistance and startup efficiency effect
CN106775843BActive Publication Date: 2020-04-28SICHUAN CHANGHONG ELECTRIC CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SICHUAN CHANGHONG ELECTRIC CO LTD
Publication Date
2020-04-28

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention discloses a method for optimizing dalvik byte codes on the basis of memory loading. The method includes steps of 1, decrypting and decompressing read encrypted DEX (developing excellence) files and then storing the decrypted and decompressed DEX files in stack memories in byte code forms; 2, parsing byte codes of the DEX files obtained at the step 1 by the aid of openDexFile processes for reflecting and invoking DexFile to obtain a DexOrJar structures, loading contents of the DexOrJar structure into hash tables of userDexFile structures in gDvm, returning DexOrJar structure pointers with stored DEX file information and denoting the DexOrJar structure pointers as cookie values; 3, defining local processes loadDex and transmitting byte arrays and byte sizes of the DEX files; 4, rewriting class loaders and loading specified classes. The method has the advantages that the DEX files are decrypted, decompressed, stored and loaded in the memories in the byte code forms all along after being read, encrypted and compressed, and can be protected to a great extent, and accordingly the anti-attack performance of reinforced APK (Android packages) can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of mobile terminal application security, in particular to a dalvik bytecode optimization method based on memory loading. Background technique

[0002] According to the latest sales statistics of smart terminals, China's Android system has occupied more than 73% of the mobile terminal market share, and various Android applications are also growing exponentially and involving more and more businesses, covering entertainment, payment, life, etc. each field. Since the language used by the android platform software is JAVA, and the binary code compiled from the JAVA source code is very easy to be decompiled, the android application program is easily damaged by hackers through secondary packaging, tampering, malicious injection and other means. Therefore, application security issues have become a hot spot for developers / publishers / users.

[0003] At present, the mainstream application software hardening measures in the ma...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More