A code protection method for android precompilation

A pre-compiled and code-based technology, applied in code compilation, program code conversion, program/content distribution protection, etc., can solve the problems that the original code cannot be completely protected and the password cannot be dynamically restored, so as to achieve method code protection and improve security Effect

Active Publication Date: 2018-11-20
BEIJING INSTITUTE OF TECHNOLOGYGY
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to propose a code protection method for Android precompilation aiming at the security defects that the original code in the DEX code and the OAT file in the existing code protection method cannot be completely protected and cannot be dynamically restored using a password

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A code protection method for android precompilation
  • A code protection method for android precompilation
  • A code protection method for android precompilation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] Present embodiment uses LG G4 mobile phone as implementation platform, and LG G4 mobile phone adopts Android system, and Android system version is Android5.1, and the Android application program that implements this method is a simple Notepad application, and purpose is to protect the onCreate of JAVA class TestActivity wherein method, corresponding to the target method mentioned above. In this embodiment, the Android development platform Android Studio is selected to generate the restoration unit and the Android application program, and the extraction processing unit is written and generated in C language, and the intermediate unit is written and generated through a Python script. The concrete steps of embodiment are as follows:

[0056] Step 1: Add the key loading process and the target method decryption and restoration process (realized by JNI technology) in the Android application program by the user, and store them in the .so file generated by the JNI technology, t...

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

PUM

No PUM Login to view more

Abstract

A code protection method for Android precompilation, by constructing an extraction processing unit, an intermediate processing unit and a restoration unit, modifying and processing Android application program files to protect codes. The specific method is to add the .so file in the Android application as the restore unit; when the application is installed, obtain the DEX code of the target method and the native code in the OAT file by extracting the processing unit; encrypt the native code through the intermediate unit, and embed it to the .so file, and clear the DEX code and native code; when the user runs the target method of the Android application program, the user enters the key, and the target method is normally run after the restoration process. The invention proposes a set of practicable methods aiming at the safety defect that the original code in the DEX code and the OAT file in the existing code protection method cannot be completely protected and cannot be dynamically restored by using a password.

Description

technical field [0001] The invention relates to a code protection method for Android precompilation, in particular to a method for code protection in units of JAVA methods during Android precompilation, and belongs to the technical fields of software security and communication. Background technique [0002] Code protection has always been an important topic in the field of software development. Software cracking, software piracy, and code plagiarism not only seriously damage the vested interests of developers, but also make it more difficult to improve the protection of intellectual property rights in the software industry. Therefore, scholars and developers all over the world are studying effective code protection methods. Generally, there are two commonly used methods: one is registration verification, the user is required to input the corresponding serial number before running, and the software has been verified so that the user has the authority to run the software. Sof...

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/12G06F8/41
CPCG06F8/44G06F21/125G06F21/1015
Inventor 谭毓安高天星宫含笑李元章张全新马忠梅
Owner BEIJING INSTITUTE OF TECHNOLOGYGY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products