APK file strengthening method

A file and file length technology, applied in the direction of program/content distribution protection, etc., can solve the problem of APK file APK application being decompiled and displayed, and achieve the effect of increasing difficulty and improving security.

Inactive Publication Date: 2015-03-25
刘鹏
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a method for strengthening APK files, which solves the problem that APK files (that is, APK application programs) are easy to be decompiled and displayed, enables third-party application programs to be reinforced, and maximizes the protection of the security of APK application programs

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
  • APK file strengthening method
  • APK file strengthening method
  • APK file strengthening method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to facilitate the understanding of the technical solution of this application, the applicant first makes a further detailed introduction to the classes.dex file in the directory structure of the APK file:

[0022] The classes.dex file is a java bytecode file generated after compiling java source code. However, because the dalvik virtual machine used by Android is not compatible with the standard java virtual machine, the dex file is different from the class file in terms of file structure and opcode. The classes.dex file consists of three parts: header, index area and data area. Among them, the structure definition of the header part of the classes.dex file is shown in Table 2 below.

[0023]

[0024]

[0025] Table 2

[0026] In the Android source code, the implementation of the Dalvik virtual machine is located in the dalvik / directory, where dalvik / vm is the implementation part of the virtual machine and will be compiled into libdvm.so; and dalvik / li...

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

The invention discloses an APK file strengthening method. The APK file strengthening method comprises the steps that a source code of an APK file needing to be strengthened is divided into a first source code serving as a body part and a second source code serving as a core function part; the first source code and the second source code are coded into a first APK file and a second APK file respectively; the first APK file is decompressed, and a first classes.dex file in the first APK file is extracted; encryption processing is conducted on the second APK file, and statistics is conducted on the file length information of the encrypted second APK file; the encrypted second APK file and the file length information of the second APK file are added to the tail part of the first classes.dex file; file head information in the first classes.dex file is recalculated and updated, the first APK file is signed through a signing tool provided in an Android SDK, and the strengthened APK file is obtained. By means of the APK file strengthening method, decompilation of an existing Android reverse tool can be avoided, the difficulty of decompilation is increased, and thus the safety of the APK file can be improved to a great degree.

Description

technical field [0001] The invention relates to the field of mobile terminal application security, in particular to a method for strengthening APK files. Background technique [0002] APK (short for Android PacKage) is the Android installation package. The APK file (that is, the APK application program) is directly transferred to an Android emulator or a terminal device with an Android operating system (such as an Android smart phone) for execution and then installed. The APK file is actually in the zip format, but the suffix is ​​changed to apk, which can be directly decompressed and viewed by decompression tools (such as winrar software) on the windows system. After decompressing the APK file, the generally visible directory structure is shown in Table 1 below: [0003] [0004] Table 1 [0005] The final stage of Android application development is to package and sign, generate APK files for users to download and install, and package them into APK files such as figu...

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 Applications(China)
IPC IPC(8): G06F21/14
CPCG06F21/14
Inventor 刘鹏
Owner 刘鹏
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