CN110072149A - A kind of data processing method and device of view networking - Google Patents
A kind of data processing method and device of view networking Download PDFInfo
- Publication number
- CN110072149A CN110072149A CN201810069871.7A CN201810069871A CN110072149A CN 110072149 A CN110072149 A CN 110072149A CN 201810069871 A CN201810069871 A CN 201810069871A CN 110072149 A CN110072149 A CN 110072149A
- Authority
- CN
- China
- Prior art keywords
- networked terminals
- depending
- installation kit
- view
- application 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
- H04N21/4516—Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
Abstract
The embodiment of the invention provides a kind of data processing method and device of view networking, the view networking includes view networked terminals and view networked server, it is described to store Android application program installation kit depending on networked server, which comprises the view networked terminals obtain the Android application program installation kit;The dex file identified depending on networked terminals in the Android application program installation kit;It is described to delete the characteristic of the dex file depending on networked terminals, obtain the first installation kit;The resource file identified depending on networked terminals in first installation kit;It is described that the first image data in resource file is converted into the second image data depending on networked terminals, obtain the second installation kit;It is described that the second installation kit is written to corresponding installation directory depending on networked terminals;The size that Android application program installation kit can be reduced, solve leads to problems such as to install or upgrade failure because installation kit is excessive, improves the usage experience of view networked terminals.
Description
Technical field
The present invention relates to the technical fields of view networking, more particularly to the data processing method and a kind of view of a kind of view networking
The data processing equipment of networking.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet, is a real-time network, it can
It realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video,
High definition is face-to-face.It will finally realize that the world without distance, realizes that the distance of person to person in global range is the distance of a screen.
It may include view networked server depending on networked devices, depending on networking switches (including ethernet gateway), eventually depending on networking
End etc., and this, which regards networked terminals, to be the terminal device for running Android system, i.e., can run Android depending on networked terminals and answer
With program, still, since Android application program is integrated with many libraries so of bottom, so that the capacity of Android application program installation kit
It is larger, it is easy to cause Android application program update to fail, is unfavorable for improving the usage experience of view networked terminals.
Summary of the invention
The embodiment of the present invention provides the data processing method and a kind of corresponding data processing for regarding networking of a kind of view networking
Device, it is larger with the capacity for solving the Android application program installation kit in view networked terminals, it is easy to cause Android application program liter
The above problem of grade install failure.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of data processing method of view networking, the view connection
Net includes view networked terminals and regards networked server, described to store Android application program installation kit depending on networked server, described
Method includes:
The view networked terminals obtain the Android application program installation kit;
The dex file identified depending on networked terminals in the Android application program installation kit;
It is described to delete the characteristic of the dex file depending on networked terminals, obtain the first installation kit;
The resource file identified depending on networked terminals in first installation kit;
It is described that the first image data in resource file is converted into the second image data depending on networked terminals, obtain the second peace
Dress packet;
It is described that the second installation kit is written to corresponding installation directory depending on networked terminals.
Preferably, described depending on networked terminals includes multiple dynamic link libraries, the method also includes:
When the corresponding application program of second installation kit is currently running, the view networked terminals call the dynamic chain
Connect library.
Preferably, described to preset multiple dynamic link libraries depending on networked server, the method also includes:
The view networked terminals download the dynamic link library from the view networked server.
Preferably, described the step of obtaining the Android application program installation kit depending on networked terminals, includes:
It is described to download request to the view networked server depending on networked terminals transmission;
The view networked server responds the downloading request transmission Android application program installation kit to the view and joins
Network termination;
The view networked terminals receive the Android application program installation kit.
Preferably, described to include: from described the step of downloading the dynamic link library depending on networked server depending on networked terminals
It is described to download request to the view networked server depending on networked terminals transmission;
The view networked server responds the downloading request and sends the dynamic link library to the view networked terminals;
The view networked terminals receive the dynamic link library.
Preferably, the installation directory includes the first installation directory, the second installation directory and third installation directory, the view
Second installation kit was written to the step of corresponding installation directory networked terminals
It is described that the second installation kit is written to first installation directory depending on networked terminals;
In first installation directory, the view networked terminals decompress the second installation kit, obtain dex file and resource
File;
It is described that the dex file is written to the second installation directory depending on networked terminals;
It is described that the resource file is written to third installation directory depending on networked terminals.
The embodiment of the invention also discloses a kind of data processing equipment of view networking, the view networking includes view networked terminals
And view networked server, described to store Android application program installation kit depending on networked server, described device includes:
Installation kit obtains module, obtains the Android application program installation kit for the view networked terminals;
Dex file identification module, for the dex identified depending on networked terminals in the Android application program installation kit
File;
First installation kit obtains module, deletes the characteristic of the dex file depending on networked terminals for described,
Obtain the first installation kit;
Resource file identification module, for the resource file identified depending on networked terminals in first installation kit;
Second installation kit obtains module, is converted to the first image data in resource file depending on networked terminals for described
Second image data obtains the second installation kit;
The second installation kit is written to corresponding installation directory depending on networked terminals for described for writing module.
Preferably, described depending on networked terminals includes multiple dynamic link libraries, described device further include:
Calling module, for when the corresponding application program of second installation kit is currently running, the view networked terminals
Call the dynamic link library.
The embodiment of the invention also discloses a kind of electronic equipment, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, the processor are realized when executing described program at the data of above-mentioned view networking
The step of reason.
The embodiment of the invention also discloses a kind of computer readable storage medium, deposited on the computer readable storage medium
Computer program is contained, the computer program realizes the step of data processing that above-mentioned view is networked when being executed by processor.
The embodiment of the present invention includes following advantages:
In the embodiment of the present invention, the view networking includes view networked terminals and view networked server, the view the Internet services
Device stores Android application program installation kit, and the view networked terminals obtain the Android application program installation kit;The view connection
Network termination identifies the dex file in the Android application program installation kit;The view networked terminals are by the spy of the dex file
Sign data are deleted, and the first installation kit is obtained;The resource file identified depending on networked terminals in first installation kit;
It is described that the first image data in resource file is converted into the second image data depending on networked terminals, obtain the second installation kit;Institute
It states and the second installation kit is written to corresponding installation directory depending on networked terminals;In the embodiment of the present invention, it is possible to reduce Android application
The size of program installation kit, solve leads to problems such as to install or upgrade failure because installation kit is excessive, improves view networked terminals
Usage experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing;
Fig. 1 is a kind of networking schematic diagram of view networking of the embodiment of the present invention;
Fig. 2 is a kind of hardware structural diagram of node server of the embodiment of the present invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the embodiment of the present invention;
Fig. 4 is that a kind of Ethernet association of the embodiment of the present invention turns the hardware structural diagram of gateway;
Fig. 5 is a kind of step flow chart of the data processing method embodiment one of view networking of the embodiment of the present invention;
Fig. 6 is a kind of step flow chart of the data processing method embodiment two of view networking of the embodiment of the present invention;
Fig. 7 is a kind of structural block diagram of the data processing equipment embodiment of view networking of the embodiment of the present invention.
Specific embodiment
The technical issues of in order to keep the embodiment of the present invention solved, technical solution and beneficial effect are more clearly understood, with
The embodiment of the present invention is further described in lower combination accompanying drawings and embodiments.It should be appreciated that specific implementation described herein
Example is only used to explain the present invention, is not intended to limit the present invention.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but
The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions
It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410
(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
On the basis of the fundamental characteristics of above-mentioned view networking, one of the core concepts of the embodiments of the present invention is to answer Android
It is deleted with certain class files of the dex file in program installation kit, it further, can also be to Android application program
The image data of resource file in installation kit formats, and converts thereof into the lesser image data of capacity, in addition, also
The dynamic link library of Android application program installation kit is preset at view networked terminals, so, it is possible to reduce Android application program peace
The size for filling packet, solve leads to problems such as to install or upgrade failure because installation kit is excessive, improves the use of view networked terminals
Experience.
Referring to Fig. 5, the step of showing a kind of data processing method embodiment one of view networking of the embodiment of the present invention stream
Cheng Tu, the view networking includes view networked terminals and regards networked server, described to store Android application journey depending on networked server
Sequence installation kit, can specifically include following steps:
Step 501, the view networked terminals obtain the Android application program installation kit;
It include view networked server and view networked terminals depending on networking, this can be depending on networked terminals in the embodiment of the present invention
It is networked by view and realizes the terminal of the functions such as video conference or monitoring, for example, this can be mobile terminal depending on networked terminals,
For example, mobile phone, tablet computer, personal digital assistant, wearable device (such as glasses, wrist-watch) etc..
In embodiments of the present invention, the operating system for regarding networked terminals can be Android (Android) system, and the present invention is real
It applies example and this is not limited specifically.
Further, in embodiments of the present invention, described depending on networked server may include PC (personal
Computer, PC) server, mainframe, minicomputer can also include Cloud Server, the embodiment of the present invention joins view
The type and quantity of network server do not limit specifically;Also, it is described depending on storing Android application program in networked server
Installation kit, specifically, the Android application program installation kit can be stored in some database in view networked server, the view
Networked terminals obtain the Android application program installation kit from view networked server.
It should be noted that the Android application program installation kit may include dex file, resource file and dynamic link
Library;Dex file is the executable file of (Dalvik virtual machine) in Android platform, the exe being equivalent in windows platform
File has dex file in each Android application program installation kit, wherein the dex file may include class file.
Further, it may include drawable file and mipmap file in the resource file, be somebody's turn to do
Drawable file and mipmap file may include multiple first image datas, and the format of first image data can be with
For the image data of JPEG (Joint Photographic Experts Group, joint photographic experts group) format.
It in addition, the dynamic link library is the shared library of dynamic link when program is run, can connect multiple processes together
One chained library may include multiple dynamic link libraries in each Android application program installation kit.
Step 502, the dex file identified depending on networked terminals in the Android application program installation kit;
Further, the dex file identified depending on networked terminals in the Android application program installation kit;It is specific and
Speech, the filename that the Android application program installation kit is traversed depending on networked terminals identify the Android application program peace
Dex file in dress packet.
Step 503, described to delete the characteristic of the dex file depending on networked terminals, obtain the first installation kit;
It being specifically applied in the embodiment of the present invention, this deletes the characteristic of the dex file depending on networked terminals,
Obtain the first installation kit;For example, the characteristic may include class file, can also include under class file
Method code, the embodiment of the present invention to this with no restriction;It i.e. can be by the not used of the dex file depending on networked terminals
Method code under class file or not used class file is deleted, and the first installation kit is obtained.
Step 504, the resource file identified depending on networked terminals in first installation kit;
It applies in the embodiment of the present invention, it is described to may recognize that in first installation kit depending on networked terminals
Resource file, the resource file may include drawable file and mipmap file, the drawable file and
Mipmap file may include multiple first image datas, specifically, described to traverse Android application journey depending on networked terminals
The filename of sequence installation kit identifies drawable file and mipmap file in the Android application program installation kit
Folder;Wherein, the drawable file and mipmap file may include multiple first image datas.
Step 505, described that the first image data in resource file is converted into the second image data depending on networked terminals, it obtains
Obtain the second installation kit;
It is further, described that the first image data in resource file is converted into the second image data depending on networked terminals,
Obtain the second installation kit;For example, second image data can be the image data of webp format;Webp format is one
Kind can accelerate the picture format of image loading velocity.Compression of images volume only about jpeg format image 2/3, and can save
Save a large amount of server bandwidth resource and data space.
Step 506, described that the second installation kit is written to corresponding installation directory depending on networked terminals.
It is described that the second installation kit is written to corresponding installation directory depending on networked terminals in practical application;The view networking
Second installation kit is written to first installation directory terminal;In first installation directory, the view networked terminals will
Second installation kit decompression, obtains dex file and resource file;It is described that the dex file is written to the second peace depending on networked terminals
Fill catalogue;It is described that the resource file is written to third installation directory depending on networked terminals.
Specifically, described preset multiple dynamic link libraries depending on networked server, the view networked terminals are from the view
Networked server downloads the dynamic link library;When the corresponding application program of second installation kit is currently running, the view
Networked terminals call the dynamic link library.
In the embodiment of the present invention, the view networking includes view networked terminals and view networked server, the view the Internet services
Device stores Android application program installation kit, and the view networked terminals obtain the Android application program installation kit;The view connection
Network termination identifies the dex file in the Android application program installation kit;The view networked terminals are by the spy of the dex file
Sign data are deleted, and the first installation kit is obtained;The resource file identified depending on networked terminals in first installation kit;
It is described that the first image data in resource file is converted into the second image data depending on networked terminals, obtain the second installation kit;Institute
It states and the second installation kit is written to corresponding installation directory depending on networked terminals;In the embodiment of the present invention, it is possible to reduce Android application
The size of program installation kit, solve leads to problems such as to install or upgrade failure because installation kit is excessive, improves view networked terminals
Usage experience.
Referring to Fig. 6, the step of showing a kind of data processing method embodiment two of view networking of the embodiment of the present invention stream
Cheng Tu, the view networking includes view networked terminals and regards networked server, described to store Android application journey depending on networked server
Sequence installation kit, can specifically include following steps:
Step 601, the view networked terminals obtain the Android application program installation kit;
In the embodiment of the present invention, described to store Android application program installation kit depending on networked server, the view networking is eventually
End can get the Android application program installation kit from depending on networked server, specifically, described to send out depending on networked terminals
It send and downloads request to the view networked server, respond the downloading request depending on networked server and send the Android application program
Installation kit is to the view networked terminals.
In a kind of preferred embodiment of the embodiment of the present invention, the view networked terminals obtain the Android application program installation
The step of packet includes following sub-step:
Sub-step S6011, described send depending on networked terminals download request to the view networked server;
Sub-step S6012, the view networked server respond the downloading request and send the Android application program installation
It wraps to the view networked terminals;
Sub-step S6013, the view networked terminals receive the Android application program installation kit.
Step 602, the dex file identified depending on networked terminals in the Android application program installation kit;
It is specifically applied in the embodiment of the present invention, it is described to be identified in the Android application program installation kit depending on networked terminals
Dex file;Specifically, the filename for traversing the Android application program installation kit depending on networked terminals, identifies institute
State the dex file in Android application program installation kit.
Step 603, described to delete the characteristic of the dex file depending on networked terminals, obtain the first installation kit;
Further, this feature data may include class file, can also include the method generation under class file
Code regards networked terminals for the method under the not used class file or not used class file of the dex file
Code is deleted, and the first installation kit is obtained.
Step 604, the resource file identified depending on networked terminals in first installation kit;
It applies in the embodiment of the present invention, it is described to may recognize that in first installation kit depending on networked terminals
Resource file, the resource file may include drawable file and mipmap file, the drawable file and
Mipmap file may include multiple first image datas, for example, described to traverse Android application depending on networked terminals
The filename of program installation kit identifies drawable file and mipmap file in the Android application program installation kit
Folder.
Step 605, described that the first image data in resource file is converted into the second image data depending on networked terminals, it obtains
Obtain the second installation kit;
In one of embodiment of the present invention preferable example, the view networked terminals are by the first picture number in resource file
According to the second image data is converted to, the second installation kit is obtained;For example, second image data can be webp format
Image data;In this way, the image data in resource file can be converted to the image data of webp format, view networking is saved
The data space of terminal.
Step 606, described that the second installation kit is written to corresponding installation directory depending on networked terminals;
In the embodiment of the present invention, after the view networked terminals obtain second installation kit, it can be responded depending on networked terminals
Second installation kit is written to corresponding installation directory user instruction;Specifically, the installation directory include the first installation directory,
Second installation directory and third installation directory, it is described that the second installation kit is written to the step of corresponding installation directory depending on networked terminals
It suddenly include: described the second installation kit to be written to first installation directory depending on networked terminals;In first installation directory,
The view networked terminals decompress the second installation kit, obtain dex file and resource file;The view networked terminals are by the dex
File is written to the second installation directory;It is described that the resource file is written to third installation directory depending on networked terminals.
For example, first installation directory can be data/app catalogue, and second installation directory can be
Data/dalvik-cache catalogue, the third installation directory can be data/data catalogue, the second installation kit can be write
Enter to data/app catalogue, the dex file is written to data/dalvik-cache catalogue, the resource file is written
To data/data catalogue.
It is described to preset multiple dynamic link libraries depending on networked server in a kind of preferred embodiment of the embodiment of the present invention,
The method also includes: the view networked terminals download the dynamic link library from the view networked server.
It is specifically applied in the embodiment of the present invention, the view networked terminals download the dynamic from the view networked server
The step of chained library includes: that described send depending on networked terminals downloads request to the view networked server;The view the Internet services
Device responds the downloading request and sends the dynamic link library to the view networked terminals;The view networked terminals receive described dynamic
State chained library, and by the dynamic link library be stored in the system under lib file.
Step 607, when the corresponding application program of second installation kit is currently running, the view networked terminals call dynamic
State chained library.
In practical application, because the dynamic link library, i.e. institute can be downloaded from depending on networked server depending on networked terminals
It states and may include multiple dynamic link libraries depending on networked terminals, when the corresponding application program of second installation kit is currently running,
The view networked terminals call the dynamic link library, the relevant function of reality.
In the embodiment of the present invention, the view networking includes view networked terminals and view networked server, the view the Internet services
Device stores Android application program installation kit, and the view networked terminals obtain the Android application program installation kit;The view connection
Network termination identifies the dex file in the Android application program installation kit;The view networked terminals are by the spy of the dex file
Sign data are deleted, and the first installation kit is obtained;The resource file identified depending on networked terminals in first installation kit;
It is described that the first image data in resource file is converted into the second image data depending on networked terminals, obtain the second installation kit;Institute
It states and the second installation kit is written to corresponding installation directory depending on networked terminals;When the corresponding application program of second installation kit just
At runtime, the view networked terminals call the dynamic link library;In the embodiment of the present invention, solve due to installation kit is excessive
Lead to problems such as to install or upgrade failure, will be loaded under dynamic link library in view networked terminals, call the dynamic as needed
Chained library improves the ease of use of application program and reduces the size of Android application program installation kit.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 7, a kind of structural block diagram of the data processing equipment embodiment of view networking of the embodiment of the present invention is shown,
The view networking includes view networked terminals and regards networked server, described to store Android application program installation depending on networked server
Packet, can specifically include following module:
Installation kit obtains module 701, obtains the Android application program installation kit for the view networked terminals;
Dex file identification module 702 identifies in the Android application program installation kit for described depending on networked terminals
Dex file;
First installation kit obtains module 703, deletes the characteristic of the dex file depending on networked terminals for described
It removes, obtains the first installation kit;
Resource file identification module 704 identifies the text of the resource in first installation kit depending on networked terminals for described
Part;
Second installation kit obtains module 705, turns the first image data in resource file for the view networked terminals
It is changed to the second image data, obtains the second installation kit;
The second installation kit is written to corresponding installation directory depending on networked terminals for described for writing module 706.
Preferably, described depending on networked terminals includes multiple dynamic link libraries, described device further include:
Calling module, for when the corresponding application program of second installation kit is currently running, the view networked terminals
Call the dynamic link library.
It is preferably, described to preset multiple dynamic link libraries, described device depending on networked server further include:
Download module downloads the dynamic link library from the view networked server for the view networked terminals.
Preferably, the installation kit acquisition module includes:
First sending submodule downloads request to the view networked server depending on networked terminals transmission for described;
Installation kit sending submodule, for it is described depending on networked server respond the downloading and request to be sent to the Android answer
With program installation kit to the view networked terminals;
First receiving submodule receives the Android application program installation kit for the view networked terminals.
Preferably, the download module includes:
Second sending submodule downloads request to the view networked server depending on networked terminals transmission for described;
Dynamic link library sending submodule responds the downloading request for the view networked server and sends the dynamic
Chained library is to the view networked terminals;
Second receiving submodule receives the dynamic link library for the view networked terminals.
Preferably, the installation directory includes the first installation directory, the second installation directory and third installation directory, described to write
Entering module includes:
Submodule is written in first installation directory, and the second installation kit is written to first peace depending on networked terminals for described
Fill catalogue;
Submodule is obtained, in first installation directory, the view networked terminals to decompress the second installation kit, obtain
Obtain dex file and resource file;
Submodule is written in second installation directory, and the dex file is written to the second installation depending on networked terminals for described
Catalogue;
Submodule is written in third installation directory, installs for the described resource file is written to third depending on networked terminals
Catalogue.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
A kind of data processing method that view is networked provided by the present invention and a kind of data processing of view networking are filled above
It sets, is described in detail, used herein a specific example illustrates the principle and implementation of the invention, above
The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general skill of this field
Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this
Description should not be construed as limiting the invention.
Claims (10)
1. a kind of data processing method of view networking, which is characterized in that the view networking includes view networked terminals and view networking clothes
Business device, it is described to store Android application program installation kit depending on networked server, which comprises
The view networked terminals obtain the Android application program installation kit;
The dex file identified depending on networked terminals in the Android application program installation kit;
It is described to delete the characteristic of the dex file depending on networked terminals, obtain the first installation kit;
The resource file identified depending on networked terminals in first installation kit;
It is described that the first image data in resource file is converted into the second image data depending on networked terminals, obtain the second installation
Packet;
It is described that the second installation kit is written to corresponding installation directory depending on networked terminals.
2. depending on networked terminals including multiple dynamic link libraries, institute the method according to claim 1, wherein described
State method further include:
When the corresponding application program of second installation kit is currently running, the view networked terminals call the dynamic link
Library.
3. method according to claim 1 or 2, which is characterized in that described to preset multiple dynamic chains depending on networked server
Library is connect, the method also includes:
The view networked terminals download the dynamic link library from the view networked server.
4. the method according to claim 1, wherein the view networked terminals obtain the Android application program peace
Filling the step of wrapping includes:
It is described to download request to the view networked server depending on networked terminals transmission;
The view networked server responds the downloading request transmission Android application program installation kit to the view and networks eventually
End;
The view networked terminals receive the Android application program installation kit.
5. according to the method described in claim 3, it is characterized in that, the view networked terminals are downloaded from the view networked server
The step of dynamic link library includes:
It is described to download request to the view networked server depending on networked terminals transmission;
The view networked server responds the downloading request and sends the dynamic link library to the view networked terminals;
The view networked terminals receive the dynamic link library.
6. the method according to claim 1, wherein the installation directory includes the first installation directory, the second peace
Fill catalogue and third installation directory, the step of the second installation kit is written to corresponding installation directory depending on networked terminals packet
It includes:
It is described that the second installation kit is written to first installation directory depending on networked terminals;
In first installation directory, the view networked terminals decompress the second installation kit, obtain dex file and resource text
Part;
It is described that the dex file is written to the second installation directory depending on networked terminals;
It is described that the resource file is written to third installation directory depending on networked terminals.
7. a kind of data processing equipment of view networking, which is characterized in that the view networking includes view networked terminals and view networking clothes
Business device, described to store Android application program installation kit depending on networked server, described device includes:
Installation kit obtains module, obtains the Android application program installation kit for the view networked terminals;
Dex file identification module identifies the text of the dex in the Android application program installation kit depending on networked terminals for described
Part;
First installation kit obtains module, deletes the characteristic of the dex file depending on networked terminals for described, obtains
First installation kit;
Resource file identification module, for the resource file identified depending on networked terminals in first installation kit;
Second installation kit obtains module, and the first image data in resource file is converted to second depending on networked terminals for described
Image data obtains the second installation kit;
The second installation kit is written to corresponding installation directory depending on networked terminals for described for writing module.
8. device according to claim 7, which is characterized in that described depending on networked terminals includes multiple dynamic link libraries, institute
State device further include:
Calling module, for when the corresponding application program of second installation kit is currently running, the view networked terminals to be called
The dynamic link library.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor realizes such as view described in any one of claims 1 to 6 when executing described program
The step of data processing of networking.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the data such as view networking described in any one of claims 1 to 6 when the computer program is executed by processor
The step of processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069871.7A CN110072149B (en) | 2018-01-24 | 2018-01-24 | Data processing method and device for video network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069871.7A CN110072149B (en) | 2018-01-24 | 2018-01-24 | Data processing method and device for video network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110072149A true CN110072149A (en) | 2019-07-30 |
CN110072149B CN110072149B (en) | 2021-12-21 |
Family
ID=67365616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810069871.7A Active CN110072149B (en) | 2018-01-24 | 2018-01-24 | Data processing method and device for video network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110072149B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010042212A1 (en) * | 2000-02-28 | 2001-11-15 | Du Sterling D. | Smart card enabled mobile personal computing environment system |
CN103139292A (en) * | 2013-01-22 | 2013-06-05 | 深圳市深信服电子科技有限公司 | Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system |
CN107391181A (en) * | 2017-06-29 | 2017-11-24 | 上海与德科技有限公司 | A kind of method and device of system partitioning |
CN107526584A (en) * | 2016-10-18 | 2017-12-29 | 腾讯科技(深圳)有限公司 | Data cut-in method and device |
-
2018
- 2018-01-24 CN CN201810069871.7A patent/CN110072149B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010042212A1 (en) * | 2000-02-28 | 2001-11-15 | Du Sterling D. | Smart card enabled mobile personal computing environment system |
CN103139292A (en) * | 2013-01-22 | 2013-06-05 | 深圳市深信服电子科技有限公司 | Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system |
CN107526584A (en) * | 2016-10-18 | 2017-12-29 | 腾讯科技(深圳)有限公司 | Data cut-in method and device |
CN107391181A (en) * | 2017-06-29 | 2017-11-24 | 上海与德科技有限公司 | A kind of method and device of system partitioning |
Also Published As
Publication number | Publication date |
---|---|
CN110072149B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965372A (en) | A kind of service scheduling method and device | |
CN108234190B (en) | A kind of management method and system regarding networked devices | |
CN109672856A (en) | Resource synchronization method and device | |
CN109302455A (en) | A kind of data processing method and device of view networking | |
CN108881797A (en) | A kind of data processing method and device of view networking | |
CN108881772A (en) | A kind of data processing method and device of view networking | |
CN108881141A (en) | A kind of data processing method and device based on view networking | |
CN109561073A (en) | A kind of transparent transmission system and method based on view networking | |
CN107888938B (en) | A kind of network video playback method and its device | |
CN109218742A (en) | A kind of data processing method and device of view networking | |
CN109379209A (en) | A kind of upgrade method and device of view networking storage service | |
CN109522032A (en) | Firmware upgrade method and device | |
CN109284265A (en) | A kind of date storage method and system | |
CN108881817A (en) | A kind of methods, devices and systems that data are synchronous | |
CN109151061A (en) | A kind of date storage method and device | |
CN108646956A (en) | A kind of data processing method and device regarding networking | |
CN110196839A (en) | A kind of shared file method and apparatus based on view networking | |
CN109151490A (en) | A kind of data processing method and device of view networking | |
CN110134892A (en) | A kind of loading method and system monitoring the Resources list | |
CN107920098B (en) | A kind of method and system that web player icon is shown | |
CN108965744A (en) | A kind of method of video image processing and device based on view networking | |
CN108881793A (en) | A kind of data processing method and device of view networking | |
CN108965219A (en) | A kind of data processing method and device based on view networking | |
CN110290160A (en) | A kind of data processing method and device of view networking | |
CN110072149A (en) | A kind of data processing method and device of view networking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building. Applicant after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113 Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |