Method and system for realizing VMP protection at Android end

An implementation method and a technology for implementing a system, applied in software maintenance/management, program code conversion, code compilation, etc., can solve problems such as application compatibility and performance not being guaranteed, APK code leaking, inability to install or run, etc. The effect of reducing the risk of APP source code leakage, reducing the risk of APP source code leakage, and saving human and financial resources

Active Publication Date: 2021-07-16
福建省天奕网络科技有限公司
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The source APK is unprotected and uploaded to other platforms, the security of the APK cannot be guaranteed, and the APK code may leak, resulting in security issues
[0005] 2. Uploading to other hardening platforms requires spending money for hardening. It may often cost tens of thousands of a year for an APP. If the company has hundreds of apps that need to be hardened, then the money spent on VMP hardening every year will be a lot, which is not cost-effective.
[0006] 3. If other platforms are used for VMP hardening, the application compatibility and performance after hardening cannot be guaranteed, and the hardened APK may not be installed or run on certain versions of Android.
[0007] 4. Usually, some functions and methods related to communication with the server or data transmission in the source APK are written using JNI, which is troublesome to implement

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
  • Method and system for realizing VMP protection at Android end
  • Method and system for realizing VMP protection at Android end

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described below in conjunction with the accompanying drawings.

[0025] see figure 1 Shown, the implementation method of a kind of Android end VMP protection of the present invention, described implementation method comprises the following steps:

[0026] Step S1, use the JAVA function to develop the function of the application, and introduce the JNI function, and compile the JAVA function or JNI function to generate the .cpp format file of the so file as pro.cpp;

[0027] Step S2, define a function A, check the CodeItem of the function A, and copy the CodeItem of the function A;

[0028] Step S3, delete all the codes of function A, and define a JNI function with the same name as function A under the category where function A is located, so that the parameter types are consistent;

[0029] Step S4, define all the hexadecimal data of CodeItem as byte array in pro.cpp, copy the definition of CodeItem in the source code of Android sy...

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 provides a method for realizing VMP protection at Android end, which comprises the following steps of S1, developing an application function by using a JAVA function, compiling the JAVA function or a JNI function to generate a. Cpp format file of a so file, and naming the. Cpp format file as pro.cpp; s2, defining a function A, and copying CodeItem of the function A; s3, deleting all codes of the function A, and defining a JNI function with the same name as the function A under the category of the function A; s4, copying the definition of CodeItem in the source code of the Android system to the cpp file; s5, defining a function A and an interpreter function in the cpp file, and calling the interpreter function in the function A; step S6, converting the byte array of the CodeItem into the CodeItem defined in the cpp file in an interpreter function, and then defining a virtual register; step S7, taking out the instructions in the CodeItem one by one; step S8, compiling the APK through a compiler. According to the invention, the VMP protection of the APP can be completed at the start time of the APP.

Description

technical field [0001] The invention relates to the technical field of Android application reinforcement, in particular to a method and system for implementing VMP protection on Android. Background technique [0002] On the Android side, the security of games and apps is becoming more and more important. The hardening technology is constantly iterating, from the overall hardening of the first generation of DEX, the second generation of function extraction to the third generation of the introduction of VMP to harden the application (the code part protected by this software is executed on the virtual machine, which makes the protected program difficult to be analyzed. and cracking. The use of disassembler and MAP files allows you to quickly select the code that needs to be protected to avoid cracking). The purpose of strengthening games and applications is to increase the difficulty of reverse analysis and protect games and application data from being modified or running logic...

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): G06F8/41G06F8/70
CPCG06F8/41G06F8/70
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