CN105915623A - Device and method of processing application installation package - Google Patents

Device and method of processing application installation package Download PDF

Info

Publication number
CN105915623A
CN105915623A CN201610343804.0A CN201610343804A CN105915623A CN 105915623 A CN105915623 A CN 105915623A CN 201610343804 A CN201610343804 A CN 201610343804A CN 105915623 A CN105915623 A CN 105915623A
Authority
CN
China
Prior art keywords
file
application installation
installation kit
program code
source program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610343804.0A
Other languages
Chinese (zh)
Inventor
马子平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610343804.0A priority Critical patent/CN105915623A/en
Publication of CN105915623A publication Critical patent/CN105915623A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention discloses a device for processing an application installation package, which comprises an acquisition module, an optimization module, and a generation module, wherein the acquisition module is used for acquiring a source code, a library file and a resource file of a to-be-processed application installation package; the optimization module is used for optimizing the acquired source code, the library file and the resource file respectively to reduce capacity values of the source code, the library file and the resource file; and the generation module is used for generating the application installation package according to the optimized source code, the library file and the resource file, and the capacity value of the generated application installation package is smaller than that of the to-be-processed application installation package. The invention also discloses a method of processing the application installation package. Thus, the capacity value of the application installation package is reduced, and the cost of the network resources is reduced.

Description

Application installation kit processing means and method
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of application installation kit processing means and method.
Background technology
In the mobile Internet epoch, along with popularizing of intelligent terminal, the application of form color color is met the tendency And give birth to.Application installation kit is required for when installing and update downloading it to mobile phone, application peace through network The network traffics that dress Bao Yue great consumes are the most, from the point of view of the terminal especially for use mobile network, disappear Consumption be accomplished by of flow spends more expense to go to buy mobile flow more, could download and use application to install Bag, and present application installation kit all can include the most unnecessary file, the operation to installation kit does not has There is the biggest use, need to spend more flow to go to download, cause the consuming of Internet resources.
Summary of the invention
Present invention is primarily targeted at proposition one application installation kit processing means and method, it is intended to solve Traditional application installation kit capability value is relatively big, causes the technical problem of the consuming of Internet resources.
For achieving the above object, a kind of application installation kit processing means that the present invention provides, described application is pacified Dress bag processing means includes:
Acquisition module, for obtaining the source program code of pending application installation kit, library file and resource literary composition Part;
Optimize module, for respectively source program code, library file and the resource file obtained being optimized, To reduce source program code, library file and the capability value of resource file;
Generation module, for generating application according to the source program code after optimizing, library file and resource file Installation kit, wherein, the capability value of the described application installation kit of generation is less than the appearance of pending application installation kit Value.
Alternatively, described optimization module includes:
First deletes unit, for using default code detection instrument to delete the redundancy in source program code Code;
Writing unit, for deleting the source program code write predetermined symbol table of redundant code;
Adjustment unit, the word of each field in the described source program code adjusting described predetermined symbol table Joint sequence so that in described source program code the alignment of each field preset in base word segment structure body each Individual territory
Alternatively, described optimization module also includes:
Determine unit, for determining the library file of preset kind in described library file;
Second deletes unit, for deleting in library file other library text in addition to the library file of preset kind Part.
Alternatively, when described resource file includes picture resource file, described optimization module also includes:
Reduce unit, for reducing the resolution of described picture resource file;
Compression unit, for being compressed the picture resource file after reducing resolution.
Alternatively, described optimization module also includes:
Amendment unit, in time there is frame animation in described resource file, is revised as attribute by frame animation Animation.
Additionally, for achieving the above object, the present invention also proposes a kind of application installation kit processing method, described Application installation kit processing method includes:
Obtain source program code, library file and the resource file of pending application installation kit;
Respectively source program code, library file and the resource file obtained is optimized, to reduce source program The capability value of code, library file and resource file;
Generate according to the source program code after optimizing, library file and resource file and apply installation kit, wherein, The capability value of the described application installation kit generated is less than the capability value of pending application installation kit.
Alternatively, the step that the described source program code to obtaining is optimized includes:
The code detection instrument preset is used to delete the redundant code in source program code;
The source program code write predetermined symbol table of redundant code will be deleted;
Adjust the syllable sequence of each field in the described source program code of described predetermined symbol table, so that institute State each field alignment in source program code and preset each territory in base word segment structure body.
Alternatively, the step that the described library file to obtaining is optimized includes:
Determine the library file of preset kind in described library file;
Delete other library file in addition to the library file of preset kind in library file.
Alternatively, when described resource file includes picture resource file, the described resource file to obtaining The step being optimized includes:
Reduce the resolution of described picture resource file;
Picture resource file after reducing resolution is compressed.
Alternatively, the described step being optimized resource file also includes:
When there is frame animation in described resource file, frame animation is revised as attribute animation.
The application installation kit processing means of present invention proposition and method, acquisition module obtains pending application peace Dress bag source program code, library file and resource file, optimize module respectively to obtain source program code, Library file and resource file are optimized, to reduce the capacity of source program code, library file and resource file Value, generation module generates application installation kit according to the source program code after optimizing, library file and resource file, The capability value of the described application installation kit owing to generating is less than the capability value of pending application installation kit, it is achieved When processing application installation kit, it is optimized source program code, library file and resource file to reduce Capability value so that the application installation kit of generation reduces the most accordingly, thus reduce terminal downloads application and install The Internet resources that bag is consumed.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the radio communication device schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the preferable schematic diagram of server of the present invention and terminal communication process;
Fig. 4 is the high-level schematic functional block diagram of present invention application installation kit processing means first embodiment;
Fig. 5 is the present invention one optional enforcement scene schematic diagram;
Fig. 6 is the schematic flow sheet of present invention application installation kit processing method first embodiment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit Determine the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description In, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for having It is beneficial to the explanation of the present invention, itself does not has specific meaning.Therefore, " module " and " parts " can Mixedly to use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include (individual digital helps for such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA Reason), PAD (panel computer), PMP (portable media player), the mobile end of guider etc. The fixed terminal of end and such as numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile whole End.However, it will be understood by those skilled in the art that, in addition to being used in particular for the element of mobile purpose, Structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, User input unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, Controller 180 and power subsystem 190 etc..Fig. 1 shows the mobile terminal with various assembly, but should It is understood by, it is not required that implement all assemblies illustrated.Can alternatively implement more or less of group Part.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 with wireless Radio communication between communicator or network.Such as, wireless communication unit can include broadcast reception Module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and position letter At least one in breath module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receive broadcast singal and/ Or broadcast related information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast control services Device can be to generate and send generation before broadcast singal and/or the server of broadcast related information or reception Broadcast singal and/or broadcast related information and send it to the server of terminal.Broadcast singal is permissible Including TV broadcast singal, radio signals, data broadcasting signal etc..And, broadcast singal can To farther include the broadcast singal combined with TV or radio signals.Broadcast related information can also There is provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be wide with digital multimedia Broadcast the electronic program guides (EPG) of (DMB), the electronic service guidebooks of digital video broadcast-handheld (DVB-H) Etc. (ESG) form and exist.Broadcast reception module 111 can be by using various types of broadcast dress Put reception signal broadcast.Especially, broadcast reception module 111 can by use such as multimedia broadcasting- Ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), Forward link media (MediaFLO@) data broadcaster, received terrestrial digital broadcasting integrated service (ISDB-T) Etc. digital broadcast apparatus receive digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for The various broadcasters of broadcast singal and above-mentioned digital broadcast apparatus.Receive via broadcast reception module 111 Broadcast singal and/or broadcast related information can be stored in memorizer 160 (or other type of storage is situated between Matter) in.
Mobile communication module 112 send radio signals to base station (such as, access point, node B etc.), In exterior terminal and server at least one and/or receive from it radio signal.Such radio Signal can include voice call signal, video calling signal or according to text and/or Multimedia Message The various types of data sent and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internal or Externally it is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (nothing Line LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (at a high speed Downlink packets accesses) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology Including bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTM Etc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.Position is believed The typical case of breath module is GPS (global pick device).According to current technology, GPS module 115 calculates From the range information of three or more satellites and correct time information and for the Information application calculated Triangulation, thus according to longitude, latitude and highly accurately calculating three-dimensional current location information.When Before, use three satellites and by using other one for calculating the method for position and temporal information Satellite corrects the position and the error of temporal information calculated.Additionally, GPS module 115 can be by real time Ground Continuous plus current location information calculates velocity information.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include phase Machine 121 and mike 122, camera 121 in Video Capture pattern or image capture mode by image capturing Static images or the view data of video that device obtains process.Picture frame after process can show On display unit 151.Picture frame after camera 121 processes can be stored in memorizer 160, and (or other deposits Storage media) in or be transmitted via wireless communication unit 110, can provide according to the structure of mobile terminal Two or more cameras 121.Mike 122 can be in telephone calling model, logging mode, speech recognition Pattern etc. operational mode receives sound (voice data) via mike, and can be by such sound It is processed as voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model For can be sent to the form output of mobile communication base station via mobile communication module 112.Mike 122 is permissible Implement various types of noise elimination (or suppression) algorithm and receiving and transmission audio signal to eliminate (or suppression) During produce noise or interference.
It is mobile to control that user input unit 130 can generate key input data according to the order of user's input The various operations of terminal.User input unit 130 allows user to input various types of information, and permissible Including keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electricity The sensitive component of change held etc.), roller, rocking bar etc..Especially, when touch pad as a layer When being superimposed upon on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or Closed mode), the position of mobile terminal 100, user is for the contact (that is, touch input) of mobile terminal 100 Presence or absence, the orientation of mobile terminal 100, the acceleration of mobile terminal 100 or speed is moved and direction etc., And generate the order or signal being used for controlling the operation of mobile terminal 100.Such as, when mobile terminal 100 When being embodied as sliding-type mobile phone, it is to engage on or off that sensing unit 140 can sense this sliding-type number Close.It addition, sensing unit 140 can detect whether power subsystem 190 provides electric power or interface unit 170 Whether couple with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected connecing of can passing through with mobile terminal 100 Mouthful.Such as, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery Charger) port, wired or wireless FPDP, memory card port, for connect there is identification module The port of device, audio frequency input/output (I/O) port, video i/o port, ear port etc..Identify mould Block can be that storage is for verifying that user uses the various information of mobile terminal 100 and can include user Identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc..It addition, The device (hereinafter referred to as " identification device ") with identification module can be to take the form of smart card, therefore, Identify that device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 can For receiving from the input (such as, data message, electric power etc.) of external device (ED) and will receive Input the one or more elements being transferred in mobile terminal 100 or may be used at mobile terminal with outer Data are transmitted between part device.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing to lead to Cross it provide the path of mobile terminal 100 by electric power from base or can serve as allowing to input from base Various command signals be transferred to the path of mobile terminal by it.Various command signals from base input Or electric power may serve as identifying whether mobile terminal is accurately fitted within the signal on base.Output is single Unit 150 be configured to vision, audio frequency and/or tactile manner provide output signal (such as, audio signal, Video signal, alarm signal, vibration signal etc.).Output unit 150 can include display unit 151, Dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, mobile terminal is worked as 100 when being in telephone calling model, display unit 151 can show and call or other communicate (such as, civilian This information receiving and transmitting, multimedia file download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 Can show capture image and/or the image of reception, illustrate video or image and the UI of correlation function or GUI etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another to form touch screen time, aobvious Show that unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexibility show Show at least one in device, three-dimensional (3D) display etc..Some in these display may be constructed such that Transparence is to allow user to watch from outside, and this is properly termed as transparent display, typical transparent display Can for example, TOLED (transparent organic light emitting diode) display etc..According to the specific enforcement wanted Mode, mobile terminal 100 can include two or more display units (or other display device), such as, Mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can For detecting touch input pressure and touch input position and touch input area.
Dio Output Modules 152 can be in call signal at mobile terminal and receive pattern, call mode, note Time under the isotypes such as record pattern, speech recognition mode, broadcast reception mode, wireless communication unit 110 is connect Receive or in memorizer 160 storage voice data transducing audio signal and be output as sound.And And, the audio frequency that dio Output Modules 152 can provide relevant to the specific function of mobile terminal 100 execution is defeated Go out (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can wrap Include pick up, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typically Event can include calling reception, message sink, key signals input, touch input etc..Except audio frequency Or outside video frequency output, alarm unit 153 can provide in a different manner and export sending out with notification event Raw.Such as, alarm unit 153 can with vibration form provide output, when receive calling, message or During some other entrance communication (incoming communication), alarm unit 153 can provide sense of touch defeated Go out (that is, vibration) to notify to user.By providing such sense of touch to export, even if in the shifting of user When mobile phone is in the pocket of user, user also is able to identify the generation of various event.Alarm unit The output of 153 generations that notification event can also be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store the process performed by controller 180 and control the software program etc. of operation Deng, or can temporarily store oneself through output maybe will export data (such as, telephone directory, message, Still image, video etc.).And, memorizer 160 can store about when touch is applied to touch screen The vibration of the various modes of output and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium include flash memory, Hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), electrically erasable Read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, light Dish etc..And, mobile terminal 100 can be connected the storage function performing memorizer 160 with by network Network storage device cooperation.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice Control that call, data communication, video calling etc. are relevant and process.It addition, controller 180 can wrap Including the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct In controller 180, or it is so structured that separate with controller 180.Controller 180 can perform pattern to be known Other places are managed, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or figure Picture.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides behaviour Make the suitable electric power needed for each element and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any group The computer-readable medium closed is implemented.Implementing for hardware, embodiment described herein can pass through Use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, control Device, microcontroller, microprocessor, it is designed to perform in the electronic unit of function described herein extremely Few one is implemented, and in some cases, such embodiment can be implemented in controller 180.Right Implementing in software, the embodiment of such as process or function can perform at least one function or behaviour with permission The single software module made is implemented.Software code can be by writing with any suitable programming language Software application (or program) is implemented, and software code can be stored in memorizer 160 and by controlling Device 180 performs.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe Various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. In slide type mobile terminal as example.Therefore, the present invention can be applied to any kind of mobile whole End, and it is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that and utilizes via frame or packet transmission data The most wired and radio communication device and satellite-based communicator operate.
The communicator being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communicator can use different air interfaces and/or physical layer.Such as, communication fill The air interface putting use includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) move lead to universal mobile communications device (UMTS) (especially, Long Term Evolution (LTE)), the whole world T unit (GSM) etc..As non-limiting example, explained below relates to cdma communication device, but It is that such teaching is equally applicable to other type of device.
With reference to Fig. 2, cdma wireless communication device can include multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to Interface is formed with Public Switched Telephony Network (PSTN) 290.MSC280 is also structured to and can be via returning Journey circuit is couple to the BSC275 of base station 270 and forms interface.If the interface that back haul link can be known according to Ganji In any one construct, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or sensing certain party To antenna cover each subregion radially away from BS270.Or, each subregion can be by for dividing Two or more antennas that collection receives cover.Each BS270 may be constructed such that support multiple frequencies distribution, And the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station The sub-device of transceiver (BTS) or other equivalent terms.In this case, term " base station " can be used In broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ". Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in device the shifting operated by broadcsting transmitter (BT) 295 Dynamic terminal 100.Broadcast reception module 111 is arranged on mobile terminal 100 and sentences reception as shown in Figure 1 The broadcast singal sent by BT295.In fig. 2 it is shown that several global pick devices (GPS) satellite 300. Satellite 300 helps to position at least one in multiple mobile terminals 100.
In fig. 2, depict multiple satellite 300, but it is understood that, it is possible to use any number Satellite obtain useful location information.GPS module 115 is generally configured to and satellite as shown in Figure 1 300 coordinate the location information wanted with acquisition.Substitute GPS tracking technique or outside GPS tracking technique, Other technology of the position that can follow the tracks of mobile terminal can be used.It addition, at least one gps satellite 300 Can optionally or additionally process satellite dmb transmission.
As a typical operation of radio communication device, BS270 receives from various mobile terminals 100 Reverse link signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Special The each reverse link signal determining base station 270 reception is processed in specific BS270.The data obtained It is forwarded to the BSC275 being correlated with.BSC provides call resource distribution and the soft handover included between BS270 The mobile management function of the coordination of process.The data received also are routed to MSC280 by BSC275, its Extra route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270 Forward link signals to be sent to mobile terminal 100.
With reference to the preferable schematic diagram that Fig. 3, Fig. 3 are terminal of the present invention and server communication process.
In figure 3, described server first obtains the source program code of pending application installation kit, library file And resource file, the most respectively source program code, library file and the resource file obtained is optimized, To reduce source program code, library file and the capability value of resource file, finally according to the source program after optimizing Code, library file and resource file generate application installation kit, and be placed on by the application installation kit of generation should With installing in parcel, perform down operation for user based on terminal.It should be appreciated that described service Device can obtain the source program code of pending application installation kit, library file before generating application installation kit It is optimized process with resource file, to generate application installation kit, is the equal of now newly-generated application peace Dress bag;It is of course also possible to be after generating application installation kit, each application installation kit that detection generates, When capacity application installation kit being detected is more than preset capacity, capacity is more than the application of preset capacity Installation kit as pending application installation kit, and obtain described pending application installation kit source program code, Library file and resource file, to be optimized, ultimately generate another installation kit, be the equal of to have updated Original application installation kit.It is understood that described terminal includes the terminal such as mobile phone, PAD or PC side.
Based on above-mentioned mobile terminal hardware configuration, the structure of communicator, terminal and server communication process Schematic diagram, propose present invention application installation kit processing means each embodiment.
With reference to the functional module signal that Fig. 4, Fig. 4 are present invention application installation kit processing means first embodiment Figure.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 4 is only The exemplary plot of one preferred embodiment, those skilled in the art is around at the application installation kit shown in Fig. 4 The functional module of reason device, can carry out supplementing of new functional module easily;The title of each functional module is Self-defined title, is only used for assisting each program function block understanding this application installation kit processing means, no For limiting technical scheme, the core of technical solution of the present invention is, the merit of each self-defined title The function that energy module is to be reached.
The present embodiment proposes one application installation kit processing means, and described application installation kit processing means includes:
Acquisition module 10, for obtaining source program code, library file and the resource of pending application installation kit File;
In the present embodiment, can be before issuing application installation kit, server be to application installation kit first It is optimized operation, it is of course also possible to flow is inadequate in the terminal, or during terminal storage space deficiency, Sent the optimization request of application installation kit by described terminal to server, described server is further according to terminal Optimization request performs the optimization operation of application installation kit, and specifically, described acquisition module 10 first obtains to be waited to locate Ought to be with the Miscellaneous Documents required for installation kit, owing to application installation kit is on bigger main of capability value impact Be code, library file and resource file, i.e. this three class file accounts for the capability value of application installation kit relatively greatly, because of This, acquisition module 10 described in the present embodiment first obtains source program code, library file and resource file etc..
Optimize module 20, for carrying out excellent to source program code, library file and the resource file obtained respectively Change, to reduce the capability value of source program code, library file and resource file;
After described acquisition module 10 gets source program code, library file and resource file, described excellent Change module 20 to be optimized, source program code, library file and the resource file obtained to reduce source respectively The capability value of program code, library file and resource file, specifically, described optimization module 20 is respectively to obtaining The embodiment that source program code, library file and the resource file taken is optimized includes:
1) mode one, described optimization module 20 include:
First deletes unit, for using default code detection instrument to delete the redundancy in source program code Code;
Writing unit, for deleting the source program code write predetermined symbol table of redundant code;
Adjustment unit, the word of each field in the described source program code adjusting described predetermined symbol table Joint sequence so that in described source program code the alignment of each field preset in base word segment structure body each Individual territory.
In the present embodiment, being first optimized source program code, the most described first deletes unit adopts The redundant code in source program code, described default code detection is deleted with default code detection instrument Instrument includes Lint instrument (static code checking tool, a kind of C language instrument) and proguard instrument, Wherein, the mistake that described Lint instrument is potential in inspection program, including suspicious type combination, not Variable, inaccessible code and the most transplantable code used etc.;And described proguard instrument Be a compression, optimize and obscure the instrument of Java bytecode file, can delete useless class, field, Method and attribute, can delete annotation useless further, optimizes byte code files to greatest extent, and Brief insignificant title can also be used to come class, field, method and attribute that renaming has existed. Therefore, present embodiment preferably employs described Lint instrument and described proguard tool detection and deletes Dead code i.e. redundant code.It is understood that before using proguard instrument, need to open Open proguard instrument, and the opening ways of described proguard instrument preferably includes: Android.mk file adds field LOCAL_PROGUARD_FLAG_FILES:= proguard.cfg;Then under the root of engineering, manual configuration proguard.cfg file (also can be named as Proguard.flags etc.), to open proguard instrument.In like manner, when closing proguard instrument, LOCAL_PROGUARD_ENABLED:=disabled is added, i.e. in Android.mk file Proguard instrument can be closed.
In the present embodiment, after the redundant code in deleting source program code, delete further Jar (a kind of document format of Java Archive File, the Java) file not used, simultaneously, it is to avoid The static capability value that introduces is more than the jar file of preset capacity value, and when writing code, notes improving generation The durability of code, so that code can be used repeatedly.
Then, said write unit will delete the source program code write predetermined symbol table of redundant code, with It is easy to expansion direct to source program code call, is equivalent to source program code is carried out inline, due to tradition Source program code be written in storehouse, then every time when calling source program code, first by source journey Sequence code carries out process of popping, and after end of use, is also performed to stacked process, it is clear that money to be wasted Source and time, therefore, in present embodiment, it is written to preset by source program code by the way of inline In symbol table, directly launch to call as grand, decrease the expense such as stacked of popping, thus refer to fortune The efficiency of row, also reduces capability value.
Finally, each word during described adjustment unit adjusts the described source program code of described predetermined symbol table again The syllable sequence of section, present invention preferably employs little-endian little-endian, namely low sequence byte is deposited Store up in initial address, rearrange high order byte, so that the alignment of each field is pre-in described source program code If each territory in base word segment structure body, be the equal of that boolean, (data type, variable is deposited in meeting Storage is 8 i.e. 1 byte)/byte (byte, that is 8 binary systems of 1 byte)/char (integer number According to, account for that is 8 binary systems of a byte)/short (integer variable, generally 2 bytes that is 16 two System) etc. the variable of type be merged into the form of a 32-bit, to reduce code size.In the present embodiment, Described base word segment structure body is preferably the field structure body of 32, corresponding base word segment structure body just bag Containing 32 territories.For being best understood from this enforcement, being exemplified below: such as, current base structure body is 32 The base structure body of position, now, including 16 bit fields and 28 bit fields, if according to traditional Mode, the field of the field of 16 and 8 all can take the figure place of a base structure body, say, that The tradition field of 16 and the field of 8 are all to take the memory space of 32, therefore, can cause depositing The waste in storage space, and in present embodiment, according to the orders of 8-8-16 by 3 byte align, Be equivalent to finally to take is the memory space of 32, reduces the waste of memory space, thus drops The low capability value of source program code.
In the present embodiment, by the optimization to source program code, source program code is effectively reduced Capability value.
2) mode two, described optimization module 20 also include:
Determine unit, for determining the library file of preset kind in described library file;
Second deletes unit, for deleting in library file other library text in addition to the library file of preset kind Part.
In the present embodiment, due in traditional library file (lib file), a hardware device correspondence One framework (mips, arm or x86), for compatible multiple hardware devices, is normally applied installation kit The compatible multiple frameworks of meeting, i.e. include tri-kinds of forms of mips, arm or x86, and corresponding library file will Including multiple library files, but the framework of main flow is all arm, mips belongs to minority, and acquiescence is also Hold so library file of arm, but not the supporting of x86, say, that main flow library file is typically all arm Framework, therefore, in each library file, described determine that unit first determines the preset kind in library file Library file, the most described main flow library file, described second deletes in element deletion library file except main flow library text Other library file beyond part, to keep described main flow library file, it is simply that only retains relevant to equipment framework Library archive, so can reduce the size of lib file.
In the present embodiment, by deleting in library file other library file in addition to main flow library file, Only retain main flow library file, it is ensured that apply the properly functioning of installation kit, reduce again application installation kit Capability value.
3) mode three, when described resource file includes picture resource file, described optimization module 20 is also Including:
Reduce unit, for reducing the resolution of described picture resource file;
Compression unit, for being compressed the picture resource file after reducing resolution.
In the present embodiment, when described resource file is picture resource file, Lint work can be first passed through Tool scan code does not has the static resource i.e. picture resource used, is meeting in the case of effect requires, Described reduction unit reduces the resolution of picture resource file, or picture resource file changes into .9.png figure Sheet .9.png picture is a kind of non-distorted compress bitmap graphics file format, effectively reduces picture resource literary composition The memory space of part, certainly, for further to resource file optimization, described compression unit can use TinyPng Png picture is compressed pretreatment, and removes layout and values not used.
Further, owing to a set of figure, a set of layout can use to overlap dimens.xml file more, therefore, In present embodiment, also can use adaptive multiple resolution in the case of least resource, i.e. multiresolution Adaptive;And preset data, be the equal of program and data separating, just download preset number when entering module According to, namely download needs use data when.
At the present embodiment, for being best understood from the present embodiment, citing application scenarios is as follows: with reference to Fig. 5, described Source program code be Java source code, described library file be so storehouse, described resource file is res file, After described source program code is optimized adjustment, according to java-> class-> dex-> odex suitable Sequence, ultimately generates odex file, it is notable that described Dex file is through dalvik (virtual machine) Or become odex after Art compiling optimization, say, that after source code is optimized, ultimately generate Be odex file;And described so library file is optimized, it is to delete in described so library file except pre- If other library file beyond the library file of type, it is to be understood that so library file capacity after optimization Reduce;And described res file is optimized, it is the resolution reducing described res file, and to reduction Res file after resolution is compressed, and is that the res file size after optimizing reduces equally.
Generation module 30, should for generating according to the source program code after optimizing, library file and resource file With installation kit, wherein, the capability value of the described application installation kit of generation is less than pending application installation kit Capability value.
Finally, described generation module 30 according to optimize after source program code, library file and resource file, Application installation kit can be generated.
The application installation kit processing means that the present embodiment proposes, acquisition module obtains pending application installation kit Source program code, library file and resource file, optimize module respectively to obtain source program code, storehouse File and resource file are optimized, to reduce the capability value of source program code, library file and resource file, Generation module generates application installation kit according to the source program code after optimizing, library file and resource file, by Capability value in the described application installation kit generated is less than the capability value of pending application installation kit, it is achieved that When processing application installation kit, it is optimized to reduce appearance to source program code, library file and resource file Value so that the application installation kit of generation reduces the most accordingly, thus reduce terminal downloads application installation kit The Internet resources consumed.
Further, in order to improve the motility that application installation kit processes, present invention application installation kit is proposed Second embodiment of processing means.
Second embodiment of application installation kit processing means and the first embodiment of application installation kit processing means Difference be, described optimization module 20 also includes:
Amendment unit, in time there is frame animation in described resource file, is revised as attribute by frame animation Animation.
In the present embodiment, when there is frame animation in the described resource file in system when, described in repair Changing unit and frame animation is revised as attribute animation, it will be understood that due to same animation, attribute animation is only Need a few pictures to process, and the picture number that frame animation needs needs more, the appearance of resource file Value is bigger, therefore, frame animation is revised as attribute animation, to reduce the capability value of resource file..Enter One step ground, it is to avoid substantial amounts of pure color occur in a big figure, available imprimatura replaces, to reduce picture Size.
In the present embodiment, frame animation is revised as attribute animation, effectively reduces the capacity of resource file Value, thus reduce the capacity that application installation kit generates.
The present invention further provides a kind of application installation kit processing method.
With reference to the schematic flow sheet that Fig. 6, Fig. 6 are present invention application installation kit processing method first embodiment, The high-level schematic functional block diagram of first embodiment is processed corresponding to present invention application installation kit processing means.
The present embodiment proposes one application installation kit processing method, and described application installation kit processing method includes:
Step S10, obtains source program code, library file and the resource file of pending application installation kit;
In the present embodiment, can be before issuing application installation kit, server be to application installation kit first It is optimized operation, it is of course also possible to flow is inadequate in the terminal, or during terminal storage space deficiency, Sent the optimization request of application installation kit by described terminal to server, described server is further according to terminal Optimization request performs the optimization operation of application installation kit, specifically, first obtains pending application installation kit institute The Miscellaneous Documents needed, due to mainly code, library file that application installation kit is bigger on capability value impact With resource file, i.e. this three class file account for the capability value of application installation kit relatively greatly, therefore, in the present embodiment First obtain source program code, library file and resource file etc..
Step S20, is optimized source program code, library file and the resource file obtained, to subtract respectively The capability value of little source program code, library file and resource file;
After getting source program code, library file and resource file, the most respectively to the source program obtained Code, library file and resource file are optimized, to reduce source program code, library file and resource file Capability value, specifically, the embodiment of described step S20 includes:
1) step that mode one, the described source program code to obtaining are optimized includes:
The code detection instrument preset is used to delete the redundant code in source program code;
The source program code write predetermined symbol table of redundant code will be deleted;
Adjust the syllable sequence of each field in the described source program code of described predetermined symbol table, so that institute State each field alignment in source program code and preset each territory in base word segment structure body.
In the present embodiment, first source program code is optimized, initially with default code detection The redundant code in source program code deleted by instrument, and described default code detection instrument includes Lint instrument (static code checking tool, a kind of C language instrument) and proguard instrument, wherein, described Lint The mistake that instrument is potential in the inspection program, including suspicious type combination, untapped variable, no Up to code and the most transplantable code etc.;And described proguard instrument is a compression, excellent Change and obscure the instrument of Java bytecode file, useless class, field, method and attribute can be deleted, Annotation useless can be deleted further, optimize byte code files to greatest extent, and also letter can be used Short insignificant title carrys out class, field, method and the attribute that renaming has existed.Therefore, this reality Execute and mode preferably employs described Lint instrument and described proguard tool detection and deletes dead code i.e. Redundant code.It is understood that before using proguard instrument, need to open proguard Instrument, and the opening ways of described proguard instrument preferably includes: add in Android.mk file Field LOCAL_PROGUARD_FLAG_FILES:=proguard.cfg;Then at the root mesh of engineering The lower manual configuration proguard.cfg file (also can be named as proguard.flags etc.) of record, to open Proguard instrument.In like manner, when closing proguard instrument, add in Android.mk file LOCAL_PROGUARD_ENABLED:=disabled, can close proguard instrument.
In the present embodiment, after the redundant code in deleting source program code, delete further Jar (a kind of document format of Java Archive File, the Java) file not used, simultaneously, it is to avoid The static capability value that introduces is more than the jar file of preset capacity value, and when writing code, notes improving generation The durability of code, so that code can be used repeatedly.
Then, the source program code write predetermined symbol table of redundant code will be deleted, in order to source program Code directly launches to call, and is equivalent to source program code be carried out inline, due to traditional source program code It is written in storehouse, then every time when calling source program code, first source program code is gone out Stack processes, and after end of use, is also performed to stacked process, it is clear that resource to be wasted and time, because of This, in present embodiment, be written to source program code in predetermined symbol table by the way of inline, as Grand equally directly expansion calls, and decreases the expense such as stacked of popping, thus refer to the efficiency run, also Reduce capability value.
Finally, then adjust the syllable sequence of each field in the described source program code of described predetermined symbol table, Present invention preferably employs little-endian little-endian, namely low sequence byte be stored in initial address, Rearrange high order byte, so that base word segment structure is preset in the alignment of each field in described source program code Each territory in body, is the equal of that boolean, (data type, variable storage is 8 i.e. 1 in meeting Individual byte) (integer data accounts for a byte to/char to/byte (byte, that is 8 binary systems of 1 byte) I.e. 8 binary systems) type such as/short (integer variable, that is 16 binary systems of generally 2 bytes) Variable is merged into the form of a 32-bit, to reduce code size.In the present embodiment, described basis field Structure is preferably the field structure body of 32, and corresponding base word segment structure body just comprises 32 territories. For being best understood from this enforcement, it is exemplified below: such as, the current base structure that base structure body is 32 Body, now, including 16 bit fields and 28 bit fields, if in the conventional mode, 16 Field and the field of 8 all can take the figure place of a base structure body, say, that tradition 16 Field and the field of 8 be all to take the memory space of 32, therefore, the wave of memory space can be caused Take, and in present embodiment, according to the orders of 8-8-16 by 3 byte align, be equivalent to Take eventually is the memory space of 32, reduces the waste of memory space, thus reduces source journey The capability value of sequence code.
After being adjusted source program code, now, described source program code is java code, so After according to java-> order of class-> dex-> odex, ultimately generate odex file, wherein, described Dex file becomes odex after dalvik (virtual machine) or Art compiles and optimizes.
In the present embodiment, by the optimization to source program code, source program code is effectively reduced Capability value.
2) step that mode two, the described library file to obtaining are optimized includes:
Determine the library file of preset kind in described library file;
Delete other library file in addition to the library file of preset kind in library file.
In the present embodiment, due in traditional library file (lib file), a hardware device correspondence One framework (mips, arm or x86), for compatible multiple hardware devices, is normally applied installation kit The compatible multiple frameworks of meeting, i.e. include tri-kinds of forms of mips, arm or x86, and corresponding library file will Including multiple library files, but the framework of main flow is all arm, mips belongs to minority, and acquiescence is also Hold so library file of arm, but not the supporting of x86, say, that main flow library file is typically all arm Framework, therefore, in each library file, first determine the library file of preset kind in library file, i.e. Described main flow library file, deletes other library file in addition to main flow library file in library file, to keep State main flow library file, it is simply that only retain the library archive relevant to equipment framework, so can reduce lib literary composition The size of part folder.
In the present embodiment, by deleting in library file other library file in addition to main flow library file, Only retain main flow library file, it is ensured that apply the properly functioning of installation kit, reduce again application installation kit Capability value.
3) mode three, when described resource file includes picture resource file, described to obtain resource literary composition The step that part is optimized includes:
Reduce the resolution of described picture resource file;
Picture resource file after reducing resolution is compressed.
In the present embodiment, when described resource file is picture resource file, Lint work can be first passed through Tool scan code does not has the static resource i.e. picture resource used, is meeting in the case of effect requires, Reduce the resolution of picture resource file, or picture resource file is changed into .9.png picture .9.png picture It is a kind of non-distorted compress bitmap graphics file format, effectively reduces the memory space of picture resource file, Certainly, for further to resource file optimization, can use TinyPng that png picture is compressed pre-place Reason, and remove layout and values not used.
Further, owing to a set of figure, a set of layout can use to overlap dimens.xml file more, therefore, In present embodiment, also can use adaptive multiple resolution in the case of least resource, i.e. multiresolution Adaptive;And preset data, be the equal of program and data separating, just download preset number when entering module According to, namely download needs use data when.
At the present embodiment, for being best understood from the present embodiment, citing application scenarios is as follows: with reference to Fig. 5, described Source program code be Java source code, described library file be so storehouse, described resource file is res file, After described source program code is optimized adjustment, according to java-> class-> dex-> odex suitable Sequence, ultimately generates odex file, it is notable that described Dex file is through dalvik (virtual machine) Or become odex after Art compiling optimization, say, that after source code is optimized, ultimately generate Be odex file;And described so library file is optimized, it is to delete in described so library file except pre- If other library file beyond the library file of type, it is to be understood that so library file capacity after optimization Reduce;And described res file is optimized, it is the resolution reducing described res file, and to reduction Res file after resolution is compressed, and is that the res file size after optimizing reduces equally.
Step S30, generates application installation kit according to the source program code after optimizing, library file and resource file, Wherein, the capability value of the described application installation kit of generation is less than the capability value of pending application installation kit.
Finally, according to source program code, library file and resource file after optimizing, application peace can be generated Dress bag.
The application installation kit processing method that the present embodiment proposes, first obtains the source journey of pending application installation kit Sequence code, library file and resource file, the most respectively to source program code, library file and the resource obtained File is optimized, to reduce the capability value of source program code, library file and resource file, finally according to Source program code, library file and resource file after optimization generates application installation kit, described in generating The capability value of application installation kit is less than the capability value of pending application installation kit, it is achieved that processing application peace During dress bag, it is optimized to reduce capability value to source program code, library file and resource file so that raw The application installation kit become reduces the most accordingly, thus reduces the network that terminal downloads application installation kit is consumed Resource.
Further, in order to improve the motility that application installation kit processes, present invention application installation kit is proposed Second embodiment of processing method.
Second embodiment of application installation kit processing method and the first embodiment of application installation kit processing method Difference be, the described step being optimized resource file also includes:
When there is frame animation in described resource file, frame animation is revised as attribute animation.
In the present embodiment, when the described resource file in system exists frame animation when, frame is moved Picture is revised as attribute animation, it will be understood that due to same animation, and attribute animation has only to a few pictures Can process, and the picture number that frame animation needs needs more, the capability value of resource file is bigger, because of This, be revised as attribute animation by frame animation, to reduce the capability value of resource file..Further, it is to avoid Substantial amounts of pure color occur in one big figure, available imprimatura replaces, to reduce picture size.
In the present embodiment, frame animation is revised as attribute animation, effectively reduces the capacity of resource file Value, thus reduce the capacity that application installation kit generates.
It should be noted that in this article, term " include ", " comprising " or its other variant any Be intended to comprising of nonexcludability so that include the process of a series of key element, method, article or Person's system not only includes those key elements, but also includes other key element being not expressly set out, or also Including the key element intrinsic for this process, method, article or system.In the feelings not having more restriction Under condition, statement " including ... " key element limited, it is not excluded that include this key element process, Method, article or system there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's The part that prior art is contributed by technical scheme the most in other words can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or Connect and be used in other relevant technical field, be the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. an application installation kit processing means, it is characterised in that described application installation kit processing means includes:
Acquisition module, for obtaining source program code, library file and the resource file of pending application installation kit;
Optimize module, for being optimized, source program code, library file and the resource file obtained to reduce the capability value of source program code, library file and resource file respectively;
Generation module, for generating application installation kit according to the source program code after optimizing, library file and resource file, wherein, the capability value of the described application installation kit of generation is less than the capability value of pending application installation kit.
2. application installation kit processing means as claimed in claim 1, it is characterised in that described optimization module includes:
First deletes unit, for using default code detection instrument to delete the redundant code in source program code;
Writing unit, for deleting the source program code write predetermined symbol table of redundant code;
Adjustment unit, the syllable sequence of each field in the described source program code adjusting described predetermined symbol table, so that each territory in base word segment structure body is preset in the alignment of each field in described source program code.
3. application installation kit processing means as claimed in claim 1, it is characterised in that described optimization module also includes:
Determine unit, for determining the library file of preset kind in described library file;
Second deletes unit, for deleting in library file other library file in addition to the library file of preset kind.
4. application installation kit processing means as claimed in claim 1, it is characterised in that when described resource file includes picture resource file, described optimization module also includes:
Reduce unit, for reducing the resolution of described picture resource file;
Compression unit, for being compressed the picture resource file after reducing resolution.
5. application installation kit processing means as claimed in claim 4, it is characterised in that described optimization module also includes:
Amendment unit, in time there is frame animation in described resource file, is revised as attribute animation by frame animation.
6. an application installation kit processing method, it is characterised in that described application installation kit processing method includes:
Obtain source program code, library file and the resource file of pending application installation kit;
Respectively source program code, library file and the resource file obtained is optimized, to reduce the capability value of source program code, library file and resource file;
Generating application installation kit according to the source program code after optimizing, library file and resource file, wherein, the capability value of the described application installation kit of generation is less than the capability value of pending application installation kit.
7. application installation kit processing method as claimed in claim 6, it is characterised in that the step that the described source program code to obtaining is optimized includes:
The code detection instrument preset is used to delete the redundant code in source program code;
The source program code write predetermined symbol table of redundant code will be deleted;
Adjust the syllable sequence of each field in the described source program code of described predetermined symbol table, so that each territory in base word segment structure body is preset in the alignment of each field in described source program code.
8. application installation kit processing method as claimed in claim 6, it is characterised in that the step that the described library file to obtaining is optimized includes:
Determine the library file of preset kind in described library file;
Delete other library file in addition to the library file of preset kind in library file.
9. application installation kit processing method as claimed in claim 6, it is characterised in that when described resource file includes picture resource file, the step that the described resource file to obtaining is optimized includes:
Reduce the resolution of described picture resource file;
Picture resource file after reducing resolution is compressed.
10. application installation kit processing method as claimed in claim 9, it is characterised in that the described step being optimized resource file also includes:
When there is frame animation in described resource file, frame animation is revised as attribute animation.
CN201610343804.0A 2016-05-20 2016-05-20 Device and method of processing application installation package Pending CN105915623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610343804.0A CN105915623A (en) 2016-05-20 2016-05-20 Device and method of processing application installation package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610343804.0A CN105915623A (en) 2016-05-20 2016-05-20 Device and method of processing application installation package

Publications (1)

Publication Number Publication Date
CN105915623A true CN105915623A (en) 2016-08-31

Family

ID=56748441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610343804.0A Pending CN105915623A (en) 2016-05-20 2016-05-20 Device and method of processing application installation package

Country Status (1)

Country Link
CN (1) CN105915623A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106485657A (en) * 2016-09-19 2017-03-08 天脉聚源(北京)传媒科技有限公司 A kind of image processing method and device
CN106648638A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Python-based R.java file optimization method and system
CN106775781A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN107368536A (en) * 2017-06-22 2017-11-21 深圳市金立通信设备有限公司 The optimization method and terminal of a kind of installation kit
CN108446232A (en) * 2018-03-19 2018-08-24 五八有限公司 Introducing method, device, computing device and the storage medium of self-defined detected rule
CN108804314A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Installation kit test method, device, equipment and computer readable storage medium
CN108874443A (en) * 2018-06-26 2018-11-23 深圳市乐唯科技开发有限公司 A kind of comprehensive various ways are come the method that reduces apk size
CN108920130A (en) * 2017-04-17 2018-11-30 北京京东尚科信息技术有限公司 A kind of method and apparatus of Java code optimization
CN109426509A (en) * 2017-09-04 2019-03-05 华为技术有限公司 Method for processing resource and equipment
CN109522020A (en) * 2018-09-29 2019-03-26 中国平安人寿保险股份有限公司 Android system installation kit method for reducing body weight, device, terminal and storage medium
CN109739544A (en) * 2018-12-25 2019-05-10 北京三快在线科技有限公司 For generating the method, apparatus and electronic equipment of application installation package
CN110147239A (en) * 2019-05-22 2019-08-20 苏州仙峰网络科技股份有限公司 Method, equipment and the storage medium of the Multiple Compression of backpack body are installed in game
CN110321134A (en) * 2018-03-30 2019-10-11 深圳Tcl新技术有限公司 A kind of method of application installation package, the storage medium of generating is with application server
CN110764941A (en) * 2019-09-05 2020-02-07 北京字节跳动网络技术有限公司 Method, device, medium and equipment for acquiring call stack frame instruction offset
CN111492345A (en) * 2018-10-15 2020-08-04 华为技术有限公司 Method for optimizing and running android application program and related device
CN111538510A (en) * 2020-04-27 2020-08-14 北京奇艺世纪科技有限公司 Method and device for determining application program installation package and electronic equipment
CN111708543A (en) * 2020-08-19 2020-09-25 杭州冒险元素网络技术有限公司 Method for reducing repetition degree of Android project codes
CN113364823A (en) * 2020-03-04 2021-09-07 松下家电(中国)有限公司 Cloud platform switching method, wireless communication module and intelligent household appliance
CN113377382A (en) * 2020-03-09 2021-09-10 北京字节跳动网络技术有限公司 Software installation package processing method and device, electronic equipment and storage medium
CN113703736A (en) * 2021-08-31 2021-11-26 四川启睿克科技有限公司 Web project code optimization method
WO2022016991A1 (en) * 2020-07-21 2022-01-27 腾讯科技(深圳)有限公司 Application processing method, apparatus and device, and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662712A (en) * 2012-04-10 2012-09-12 腾讯科技(深圳)有限公司 Method, equipment and system for acquiring and pushing application program
CN102789506A (en) * 2012-07-19 2012-11-21 腾讯科技(深圳)有限公司 Method and device for extracting characteristic information of application program installation package as well as client equipment
CN103442026A (en) * 2013-02-05 2013-12-11 华为技术有限公司 Application program processing method, device and system
CN105204823A (en) * 2014-05-29 2015-12-30 腾讯科技(深圳)有限公司 Method and device for generating application installation package

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662712A (en) * 2012-04-10 2012-09-12 腾讯科技(深圳)有限公司 Method, equipment and system for acquiring and pushing application program
CN102789506A (en) * 2012-07-19 2012-11-21 腾讯科技(深圳)有限公司 Method and device for extracting characteristic information of application program installation package as well as client equipment
CN103442026A (en) * 2013-02-05 2013-12-11 华为技术有限公司 Application program processing method, device and system
CN105204823A (en) * 2014-05-29 2015-12-30 腾讯科技(深圳)有限公司 Method and device for generating application installation package

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106485657A (en) * 2016-09-19 2017-03-08 天脉聚源(北京)传媒科技有限公司 A kind of image processing method and device
CN106648638A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Python-based R.java file optimization method and system
CN106775781A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN108920130A (en) * 2017-04-17 2018-11-30 北京京东尚科信息技术有限公司 A kind of method and apparatus of Java code optimization
CN107368536A (en) * 2017-06-22 2017-11-21 深圳市金立通信设备有限公司 The optimization method and terminal of a kind of installation kit
CN109426509A (en) * 2017-09-04 2019-03-05 华为技术有限公司 Method for processing resource and equipment
CN108446232A (en) * 2018-03-19 2018-08-24 五八有限公司 Introducing method, device, computing device and the storage medium of self-defined detected rule
CN110321134A (en) * 2018-03-30 2019-10-11 深圳Tcl新技术有限公司 A kind of method of application installation package, the storage medium of generating is with application server
CN108804314A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Installation kit test method, device, equipment and computer readable storage medium
CN108874443A (en) * 2018-06-26 2018-11-23 深圳市乐唯科技开发有限公司 A kind of comprehensive various ways are come the method that reduces apk size
CN109522020A (en) * 2018-09-29 2019-03-26 中国平安人寿保险股份有限公司 Android system installation kit method for reducing body weight, device, terminal and storage medium
CN111492345A (en) * 2018-10-15 2020-08-04 华为技术有限公司 Method for optimizing and running android application program and related device
CN109739544A (en) * 2018-12-25 2019-05-10 北京三快在线科技有限公司 For generating the method, apparatus and electronic equipment of application installation package
CN110147239A (en) * 2019-05-22 2019-08-20 苏州仙峰网络科技股份有限公司 Method, equipment and the storage medium of the Multiple Compression of backpack body are installed in game
CN110764941A (en) * 2019-09-05 2020-02-07 北京字节跳动网络技术有限公司 Method, device, medium and equipment for acquiring call stack frame instruction offset
CN110764941B (en) * 2019-09-05 2023-04-18 北京字节跳动网络技术有限公司 Method, device, medium and equipment for acquiring call stack frame instruction offset
CN113364823A (en) * 2020-03-04 2021-09-07 松下家电(中国)有限公司 Cloud platform switching method, wireless communication module and intelligent household appliance
CN113364823B (en) * 2020-03-04 2022-11-01 松下家电(中国)有限公司 Cloud platform switching method, wireless communication module and intelligent household appliance
CN113377382A (en) * 2020-03-09 2021-09-10 北京字节跳动网络技术有限公司 Software installation package processing method and device, electronic equipment and storage medium
CN111538510A (en) * 2020-04-27 2020-08-14 北京奇艺世纪科技有限公司 Method and device for determining application program installation package and electronic equipment
CN111538510B (en) * 2020-04-27 2023-09-01 北京奇艺世纪科技有限公司 Method and device for determining application program installation package and electronic equipment
WO2022016991A1 (en) * 2020-07-21 2022-01-27 腾讯科技(深圳)有限公司 Application processing method, apparatus and device, and medium
CN111708543A (en) * 2020-08-19 2020-09-25 杭州冒险元素网络技术有限公司 Method for reducing repetition degree of Android project codes
CN111708543B (en) * 2020-08-19 2021-04-06 杭州冒险元素网络技术有限公司 Method for reducing repetition degree of Android project codes
CN113703736A (en) * 2021-08-31 2021-11-26 四川启睿克科技有限公司 Web project code optimization method

Similar Documents

Publication Publication Date Title
CN105915623A (en) Device and method of processing application installation package
CN105260475B (en) A kind of data search method, date storage method and related device
CN105187521A (en) Service processing device and method
CN106304037A (en) The management method of virtual SIM card and device
CN106484470A (en) The processing method of application program installation kit, device and server
CN106250268B (en) Content of text recovery device and method
CN104991834A (en) Data recycle method and mobile terminal
CN106887699A (en) A kind of antenna structure and mobile terminal
CN105262821A (en) Interface management apparatus and method
CN105791561A (en) Mobile terminal control method and device
CN109040370A (en) A kind of fingerprint identification method, terminal and computer readable storage medium
CN105278995A (en) Management method of application, system, server and mobile terminal
CN110109528A (en) Management-control method, mobile terminal and the computer readable storage medium of application program
CN106528576A (en) Page search method and system, and terminal
CN106028382A (en) NV (Nonvolatile Random Access Memory) parameter reading-writing device and method
CN106095464A (en) A kind of method and device of the seamless operation of application program
CN105224647A (en) Image display method and device
CN104618382A (en) Information traceless access implementation method and device
CN105681434A (en) Application data synchronization method and device of mobile terminal
CN105827531A (en) Routing access method and terminal
CN109168029A (en) It is a kind of adjust resolution ratio method, equipment and computer can storage medium
CN105187621A (en) Message prompt method, message prompt device and terminal
CN107194243A (en) A kind of mobile terminal and the method for installing application program
CN106777253A (en) The update method and device of a kind of dictionary
CN106876980A (en) A kind of method to set up of Terminal antenna system and terminal antenna

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160831

RJ01 Rejection of invention patent application after publication