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

Verification method and apparatus of APK file package

A verification method and a verification device technology are applied in the security field and can solve the problems of low security and the like

Active Publication Date: 2015-09-30
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for verifying an APK file package, to at least solve the technical problem of low security for verifying an APK file package in the prior art

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
  • Verification method and apparatus of APK file package
  • Verification method and apparatus of APK file package
  • Verification method and apparatus of APK file package

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] According to the embodiment of the present invention, a method embodiment that can be executed by the device embodiment of the present application is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0022] According to an embodiment of the present invention, a method for verifying an APK file package is provided.

[0023] Optionally, in this embodiment, the method for verifying the above-mentioned APK file package can be applied to such as figure 1 In the hardware environment formed by the mobile terminal 102 and the server 104 shown. Such as figure 1 As shown, the mobile terminal 102 is connected to the server 104 through a network. The above-mentioned net...

Embodiment 2

[0046] According to an embodiment of the present invention, there is also provided an APK file package verification device for implementing the above-mentioned APK file package verification method, and the APK file package verification device is mainly used to implement the above content of the embodiments of the present invention The verification method of the APK file package provided, the following is a specific introduction to the verification device of the APK file package provided by the embodiment of the present invention:

[0047] Figure 5 is a schematic diagram of a verification device for an APK file package according to an embodiment of the present invention, such as Figure 5 As shown, the verification device of the APK file package mainly includes an acquisition unit 10, a reading unit 20, a writing unit 30, a calculation unit 40, a sending unit 50 and a receiving unit 60, wherein:

[0048] The obtaining unit 10 is used to obtain the constituent files of the APK...

Embodiment 3

[0067] According to an embodiment of the present invention, a mobile terminal for implementing the above APK file package verification method is also provided, such as Figure 6 As shown, the mobile terminal mainly includes a processor 601, a display 602, a data interface 603, a memory 604 and a network interface 605, wherein:

[0068] The data interface 603 mainly transmits the APK file package issued by the server 104 to the processor 601 through data transmission.

[0069] The network interface 605 is mainly used for network communication with the server, and transmits the APK file package issued by the server 104 to the processor 401 through network communication, or sends related requests of the mobile terminal to the server.

[0070] The memory 604 is mainly used for storing intermediate files in the APK file package verification process.

[0071] The display 602 is mainly used to display the verification result of the APK file package.

[0072] Processor 601 is mainly...

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 verification method and apparatus of an APK file package. The verification method comprises: obtaining a component file of a to-be-verified APK file package; reading the content of the component file; writing the read content into a first object file; calculating a first verification value of the first object file; sending a verification request containing the first verification value to a server issuing the to-be-verified APK file package; and receiving a verification result. Under the circumstances that the server receives the verification request, the to-be-verified APK file package is verified according to the first verification value and a second verification value and the verification result is returned, wherein the second verification value is a verification value, stored by the server, of the target APK file package. The to-be-verified APK file package and the target APK file package have identical identifier information. With the method and apparatus, a technical problem of low safety of verification of the APK file package in the prior art can be solved, thereby improving the verification accuracy of the APK file package.

Description

technical field [0001] The invention relates to the field of security technology, in particular to a method and device for verifying an APK file package. Background technique [0002] As the installer APK file package of the Android system, it mainly consists of Assets storing application resources, library file Lib referenced by the application, signature file Meta-inf, resource file Res, configuration file AndroidManifest.xml, and compiled code Classes. dex and the compiled binary resource file Resources.arsc. [0003] In the process of verifying the APK file package, the method adopted in the prior art is to verify based on the signature file Meta-inf in the APK file package. This verification method is due to utilizing the signature file to verify the APK file package. Overall verification, for the case where the APK file package has been illegally tampered with but the signature file has not changed, the verification can still pass, resulting in a decrease in the secur...

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
IPC IPC(8): H04L29/06
CPCH04L63/12
Inventor 李洋
Owner TENCENT TECH (SHENZHEN) 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