Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Target apk source code acquisition method, electronic equipment and medium

An acquisition method and source code technology, applied in the field of target apk source code acquisition, can solve the problem of inability to directly acquire source code, etc., and achieve the effect of extensive use value

Active Publication Date: 2021-05-07
ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the corresponding source code cannot be obtained directly for the hardened APK to be detected

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
  • Target apk source code acquisition method, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] Also include between the step S3 and the step S4:

[0040] Step S301, storing all the dex files acquired in the step S102 into the second dex file set, and deduplicating the same dex files.

[0041] The second dex file set is updated through step S301, so that the dex files of the target apk in the second dex file set are more comprehensive and reliable.

Embodiment 2

[0043] In the step S2, the dex file corresponding to each preset bytecode feature is named after the starting address of the memory, and the steps between the steps S3 and S4 also include:

[0044] Step S112, obtaining the starting address of each target apk memory code;

[0045] Step S113, judging whether the starting address of each target apk memory code exists in the corresponding name information set of the dex file in the second dex file set, if not, then execute step S114;

[0046] Step S114, obtain the corresponding code segment based on the memory address and memory size of the target apk, and name it with the starting address of the target apk memory, obtain the dex file corresponding to the target apk, and store it in the second dex Documentation centralized.

[0047] Judging by the start address of the target apk memory code, when the start address of the target apk memory code exists in the corresponding name information set of the dex file in the second dex file...

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 relates to a target apk source code obtaining method, electronic equipment and a medium, and the method comprises the steps: S1, employing a pre-configured first hook function to detect whether a preset callback function of a target apk is executed, and if yes, executing a step S2; s2, traversing a memory space in which the target apk runs, obtaining all dex files corresponding to preset byte code features in the memory in which the target apk runs, and forming a first dex file set; s3, obtaining a hash value of each dex file in the first dex file set, judging whether the hash value of each dex file in the first dex file set belongs to a preset Android system framework hash value set or not, and if yes, deleting the corresponding dex file from the first dex file set to obtain a second dex file set; and S4, performing decompilation based on each dex file in the second dex file set to obtain a source code corresponding to the target apk. According to the method, the source code can be quickly and accurately obtained from the reinforced to-be-detected APK.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for acquiring target apk source codes, electronic equipment and media. Background technique [0002] With the rapid development of Android technology, a large number of Android installation packages (Android Package, referred to as APK) have been developed. In order to avoid APKs from being disassembled and analyzed, most of the APKs are reinforced by a reinforcement program and then put on the shelves for users to download. However, as the number of APKs increases, a large number of risky APKs also appear. Therefore, it is necessary to perform risk detection on APKs, which requires obtaining the source code of the APKs to be detected for security analysis. However, it is impossible to directly obtain the corresponding source code for the hardened APK to be detected. Therefore, how to obtain the source code of the reinforced APK to be detected has become a tec...

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/56
CPCG06F21/563Y02D10/00
Inventor 董霖方毅叶新江徐啟东周程
Owner ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products