Supercharge Your Innovation With Domain-Expert AI Agents!

File processing method and apparatus

A file processing and file technology, applied in the computer field, can solve problems such as verification errors

Active Publication Date: 2017-11-24
ADVANCED NEW TECH CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present application provides a file processing method and device to solve the problem of verification errors in loading Dex patch files

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
  • File processing method and apparatus
  • File processing method and apparatus
  • File processing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0029] It should be noted that during the process of DVM performing DexOpt operations on Dex files, if the classes in the Dex files refer to classes that are repeatedly defined (wherein, classes that are repeatedly defined refer to classes that exist in different Dex files but have the same definition) , the verification for this class fails. In this ...

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

Embodiments of the invention disclose a file processing method and apparatus. The method comprises the steps of determining classes contained in an application for a to-be-compiled file of the application; when the to-be-compiled file is compiled, adding classes contained in a virtual machine to the to-be-compiled file; and establishing citation relationships between the classes contained in the application and the added classes, and generating an executable file. Through the method, a mode of repeatedly defining the classes is adopted, so that the classes in the executable file are not endowed with check identifiers in a DexOpt stage, and check errors are not triggered; and therefore, the virtual machine is guaranteed to normally load patch files, and the phenomenon that the application is forcedly terminated does not occur.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a file processing method and device. Background technique [0002] Currently, for the Android (Android) system, various application programs installed on the Android system are run through its own Dalvik Virtual Machine (Dalvik Virtual Machine, DVM). [0003] Specifically, as Figure 1a As shown, in the compilation stage, the class (class) file (such as: class.jar file) of the application program developed based on the Java language can be converted into a kind of executable file suitable for DVM---Dex file (such as : class.dex file). Thus, in the running phase, the DVM can load the Dex file to implement the running of the application program. [0004] In actual application, some class errors may occur and cause the application to fail (for example, a certain function in the application has a bug). In this case, the fault repair method adopted is usually: for the c...

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): G06F9/455
CPCG06F9/45558
Inventor 苟晓东
Owner ADVANCED NEW 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