Check patentability & draft patents in minutes with Patsnap Eureka AI!

Code processing method and device

A processing method and code technology, which is applied in the field of code processing methods and devices, can solve the problems that the logical relationship of JAVA source code is easy to be cracked, and the code is not completely confused, so as to increase the difficulty and expand the scope of confusion.

Inactive Publication Date: 2019-08-02
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a code processing method and device, the purpose of which is to solve the problem that the logical relationship in the JAVA source code after APP decompilation is easily deciphered due to incomplete code confusion

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
  • Code processing method and device
  • Code processing method and device
  • Code processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] figure 1 It is an example diagram of an application scenario of a code processing method and device disclosed in this application, including: a terminal installed with an APP packaging tool used on the Android platform and a code processing device provided by this application, wherein this application provides A code processing means may be installed in the terminal.

[0053] The purpose of a code processing device provided by the application is: in addition to confusing codes (class names and other non-class name codes in JAVA source code files) that are not referenced by XML codes in JAVA source codes in APP source codes, Obfuscate the code referenced by the XML code in the JAVA source code, and ensure that the referenced code can be found from the obfuscated JAVA source code during the running of the XML code; furthermore, on the premise that the compiled APP can run normally , increasing the difficulty of obtaining logic from the decompiled JAVA source code of the ...

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 a code processing method and device, and the method comprises the steps: obtaining a source code which comprises a first type of codes and a second type of codes, and the second type of codes at least comprises a part of codes in the first type of codes, so that the first type of codes are called by the second type of codes in the process of operating the source code; confusing the first type of codes to obtain confused codes; wherein the obfuscated code comprises a target obfuscated code serving as an obfuscation result of a part of codes; recording the corresponding relation between the part of codes and the target obfuscated codes, replacing the part of codes in the second type of codes with the target obfuscated codes according to the corresponding relation, andachieving the effect of increasing the difficulty of obtaining the logic relation from the first type of codes after APP decompilation on the premise of ensuring that the compiled APP can run normally.

Description

technical field [0001] The present application relates to the field of electronic information, in particular to a code processing method and device. Background technique [0002] The APP source code includes JAVA source code and XML code. In order to reduce the risk of source code leakage caused by decompiling the source code, the Android platform usually uses the Proguard tool to confuse the JAVA source code during the process of packaging the APP source code. The goal is to replace the JAVA source code with meaningless characters. [0003] Usually, some code in the JAVA source code may be referenced in the XML code: for example, some codes in the four major components of the JAVA source code, Activity, Service, BroadcastReceiver, ContentProvider, and View, etc., are referenced in the XML code. For the compiled APP, in the process of running the XML code, if the code referenced by the XML code cannot be found from the JAVA source code, the APP will not run normally. There...

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 BEIJING QIYI CENTURY SCI & TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More