Self-customizable dex (Dalvik executable) subpackaging method

A technology of customization and analysis tools, applied in the field of customizable dex subcontracting, it can solve the problems of not being found, unrealistic file list, application crash and unusable, etc., to achieve the effect of good reliability and good applicability

Active Publication Date: 2017-05-31
BEIJING KUWO TECH
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] It is not possible to automatically and intelligently specify which classes must be included in the main dex according to the actual needs of the project. Manual analysis is required to manually specify which classes should be placed in the main dex. In large-scale ...

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
  • Self-customizable dex (Dalvik executable) subpackaging method
  • Self-customizable dex (Dalvik executable) subpackaging method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0035] Such as figure 1 As shown, the customizable dex subcontracting method of the present invention includes the following steps:

[0036] Step 101, configure the rule file according to the classes necessary for the app to start loading for the first time (especially the classes necessary for the startup page and program initialization), and the rule file includes a custom configured main_dex reserved class rule file;

[0037] Step 102, during the compilation process, when the dex pre-task is executed, according to the rule file described in step 101, find the dependencies of the main_dex reserved class of the custom configuration, and find all the dependent classes of the main_dex reserved class of the custom configuration The full path name of output to the specified file;

[0038] Step 103, merging the full path name list of dependent classes recorded ...

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 self-customizable dex (Dalvik executable) subpackaging method, comprising: configuring a rule file according to necessities for first starting and loading of an app, wherein the rule file includes a custom-configure reservation class rule file; during compiling, upon execution to a dex predecessor, finding custom-configured main_dex reservation class dependency according to the rule file described in step 101, and outputting all dependent class full-path names of the found custom-configured main_dex reservation classes to a specified file; combining a dependent class full-path name list recorded in the specified file and a default main_dex reservation class file list generated during construction of a system. In the invention, class files are subjected to dependence analysis during the generation of dex files, main dex files are specified dynamically, the error INSTALL FAILED DEXPOT occurring during installation of an application is avoided, and application crash and unavailability due to Class Not Found Exception occurring during running is avoided.

Description

technical field [0001] The invention relates to the technical field of dex file conversion, in particular to a method for customizing dex subcontracting. Background technique [0002] In the android system, with the development of the business scale, the work of developing apps is constantly adding new codes and adding new class libraries. When the number of methods in the project exceeds 65535, the following error INSTALL FAILED DEXOPT will be encountered, causing the app Unable to install, development cannot proceed. [0003] The reason for the above problem is: because the Android system uses the Dalvik virtual machine, it is necessary to convert the class file compiled with the Java Compiler into a dex file that can be executed by Dalvik. When the Android system starts an application (app), DexOpt (a tool inside the system, used to optimize the dex file and view the detailed information of the source file) will optimize the dex file. DexOpt will retrieve the method id ...

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/445
CPCG06F9/4451
Inventor 李天成
Owner BEIJING KUWO TECH
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