CN106648770A - Generating method, loading method and device for application program installation package - Google Patents

Generating method, loading method and device for application program installation package Download PDF

Info

Publication number
CN106648770A
CN106648770A CN201611130406.7A CN201611130406A CN106648770A CN 106648770 A CN106648770 A CN 106648770A CN 201611130406 A CN201611130406 A CN 201611130406A CN 106648770 A CN106648770 A CN 106648770A
Authority
CN
China
Prior art keywords
resource
application program
installation kit
loading
application
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
Application number
CN201611130406.7A
Other languages
Chinese (zh)
Other versions
CN106648770B (en
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201611130406.7A priority Critical patent/CN106648770B/en
Publication of CN106648770A publication Critical patent/CN106648770A/en
Application granted granted Critical
Publication of CN106648770B publication Critical patent/CN106648770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0478Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload applying multiple layers of encryption, e.g. nested tunnels or encrypting the content with a first key and then with at least a second key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/14Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using a plurality of keys or algorithms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of information processing, in particular to a generating method, loading method and device for an application-program installation package. The generating method includes the steps that installing resources of an application program are obtained; first resources of a main interface for loading the application program are analyzed from the installing resources; according to the first resources, the application-program installation package is generated. According to the generating method, loading method and device for the application-program installation package, the first resources of the main interface for loading the application program are analyzed from the installing resources of the application program, and according to the first resources, the application-program installation package is generated; by means of the application-program installation package, installation of the application program can be achieved, and after a user opens the installed application program, the main interface can be loaded; as resources are not packaged in the application-program installation package excepting for the resources for loading the main interface, and memory-space occupation of the application-program installation package is reduced.

Description

A kind of generation method of application program installation kit, loading method and device
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of generation method of application program installation kit, loading Method and device.
Background technology
Application program installation kit is the file that a class is used for set up applications in an operating system, and user is by applying journey Sequence installation kit can realize the installation to application program.In the development process of Android (Android) system, with application program Function and ways of presentation increasingly enrich, the memory space shared by application program installation kit is also increasing, therefore, how Reducing the memory space shared by application program installation kit becomes the problem of urgent need to resolve.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State generation method, loading method and the device of the application program installation kit of problem.
The embodiment of the present invention provides a kind of generation method of application program installation kit, and methods described includes:
Obtain the installation resource of application program;
The first resource of the main interface for loading application programs is parsed from the installation resource;
Application program installation kit is generated according to the first resource.
Preferably, in the first resource that the main interface for loading application programs is parsed from the installation resource Afterwards, methods described also includes:
Secondary resource in the installation resource in addition to the first resource is kept in statement of assets.
Preferably, in the first resource that the main interface for loading application programs is parsed from the installation resource Afterwards, methods described also includes:
Resource installation kit is generated according to the Secondary resource in the installation resource in addition to the first resource.
Preferably, resource peace is generated in the Secondary resource according in the installation resource in addition to the first resource After dress bag, methods described includes:
First public key of first key centering is saved in the application program installation kit, while using first key pair In the first private key first time encryption is carried out to the resource installation kit;
Second private key of the second cipher key pair is saved in the application program installation kit, while using the second key pair In the second public key second encryption is carried out to the resource installation kit.
Preferably, resource peace is generated in the Secondary resource according in the installation resource in addition to the first resource After dress bag, methods described also includes:
The resource installation kit is sent to server.
Based on same inventive concept, the embodiment of the present invention also provides a kind of loading method of application program installation kit, described Method includes:
The application program installation kit generated according to first resource is obtained, wherein, the first resource is for loading application The resource of the main interface of program;
According to the application program installation kit, the application program is installed, so that user is opening the application The main interface can be loaded during program.
Preferably, after described pair of application program corresponding with the application program installation kit is installed, the side Method also includes;
When the current display interface of the application program is the main interface, judge whether for opening the master The opening operation of the secondary interface at interface;
When there is the opening operation, acquisition is stored in the resource installation kit in server, and the resource is installed Bag is loaded.
Preferably, after the resource installation kit for obtaining and being stored in server, methods described also includes:
Using the second private key of the second cipher key pair being stored in the application program installation kit, to close by described second The resource installation kit that second public key encryption of key centering is crossed carries out first time decryption;
It is close by described first using the first public key pair of the first key centering being stored in the application program installation kit The resource installation kit that first private key encryption of key centering is crossed carries out second decryption.
Based on same inventive concept, the embodiment of the present invention also provides a kind of generating means of application program installation kit, described Device includes:
First acquisition module, for obtaining the installation resource of application program;
Load-on module, for parsing the first money of the main interface for loading application programs from the installation resource Source;
Generation module, for generating application program installation kit according to the first resource.
Based on same inventive concept, the embodiment of the present invention also provides a kind of charger of application program installation kit, described Device includes:
Second acquisition module, for obtaining the application program installation kit generated according to first resource, wherein, first money Source is the resource of the main interface for loading application programs;
Module is installed, for according to the application program installation kit, installing to the application program, so that user exists The main interface can be loaded when opening the application program.
One or more technical schemes in the embodiment of the present invention, at least have the following technical effect that or advantage:
The present invention from the installation resource of application program by parsing first of the main interface for loading application programs Resource, and application program installation kit is generated according to first resource, can be realized to application program using the application program installation kit Installation, user's main interface after mounted application program is opened is loaded, due to except being used for main load interface Resource in addition is no longer bundled in application program installation kit, reduces occupancy of the application program installation kit to memory space.
Description of the drawings
By the detailed description for reading hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention Restriction.And in whole accompanying drawing, with identical reference pattern identical part is represented.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the generation method of application program installation kit of the embodiment of the present invention;
Fig. 2 shows a kind of flow chart of the loading method of application program installation kit of the embodiment of the present invention;
Fig. 3 shows a kind of structure chart of the generating means of application program installation kit of the embodiment of the present invention;
Fig. 4 shows a kind of structure chart of the charger of application program installation kit of the embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
The embodiment of the present invention provides a kind of generation method of application program installation kit, described in being applied to android system The executive agent of the generation method of application program installation kit can be application development side client, as shown in figure 1, the side Method includes:
Step 101:Obtain the installation resource of application program.
Step 102:The first resource of the main interface for loading application programs is parsed from the installation resource.
Specifically, after the completion of application development, can be applied program according to the application program developed Installation resource, the resource and application program for directly running needs comprising application program in the installation resource of application program is directly run Unwanted resource, wherein, application program directly runs the main interface that the resource of needs at least includes for loading application programs Resource, so that in a step 102, the resource of the main interface for loading application programs is parsed from installation resource For first resource.In particular cases have when application program is directly run and start the page a kind of, then, in a step 102, can Start the resource of the page and main interface as first resource for loading application programs to parse from installation resource.
Step 103:Application program installation kit is generated according to the first resource.
Specifically, the file format of application program installation kit is APK (AndroidPackage).According to first resource After generating application program installation kit, the installation to application program can be realized according to the application program installation kit, to installing The application program for completing is carried out after opening operation, application program will main load interface, when application program exist start the page when, Application program will successively load the startup page and main interface.
Further, the first resource that the main interface for loading application programs is parsed from the installation resource it Afterwards, methods described also includes:Secondary resource in the installation resource in addition to the first resource is kept in into statement of assets In.
Specifically, except application program directly runs resource that the resource of needs thinks then in the installation resource of application program Unwanted resource is directly run for application program, wherein, application program directly runs unwanted resource to be included for loading The resource of the secondary interface of application program.In this application, after first resource is parsed, by installation resource except first money Secondary resource beyond source is kept in statement of assets (Assets catalogues) such that it is able to avoid for Secondary resource being saved in resource The problem of the resource contention that file directory (Res catalogues) is brought.
Specifically, the file under Assets catalogues is accessed by filename, i.e. first obtain Resources pair As, Assets catalogues are obtained then according to its getAssets method of Resources object references, recall the reading of open methods The fixed file of fetching.
Further, the first resource that the main interface for loading application programs is parsed from the installation resource it Afterwards, methods described also includes:Resource is generated according to the Secondary resource in the installation resource in addition to the first resource to install Bag.
Specifically, in this application, of the main interface for loading application programs is being parsed from installation resource After one resource, directly the Secondary resource in installation resource in addition to first resource can be packaged into resource installation kit, also may be used Again Secondary resource is packaged into resource installation kit after Secondary resource to be kept in Assets catalogues.Wherein, resource is installed The file format of bag is similarly APK.After resource installation kit is generated, resource installation kit is sent to server.
Further, in order to improve the security of resource installation kit, prevent from being stolen in transmitting procedure or changing, in this Shen Please in, file signature can be carried out to application program installation kit and resource installation kit, make the file signature of application program installation kit It is consistent with the file signature of resource installation kit, to ensure only when the file signature and application program installation kit of resource installation kit When file signature is consistent, resource installation kit just can be effective to application program installation kit.Alternatively, it is also possible to application program installation kit and Resource installation kit is encrypted, and can also the process of the process of file signature and encryption combine to guarantee resource installation kit Security.
Further, the application performs ciphering process twice when packet encryption is installed to application program installation kit and resource.Its In, it is possible to use the client of application development side is encrypted to application program installation kit and resource installation kit, it is also possible to Application program installation kit and resource installation kit are encrypted using server.In this application using key to entering to installation kit Row encryption, a key is to comprising a public key and a private key.First key pair and the second key pair for encryption can be with Generate in the client of application development side, it is also possible to generate in the server, and, first key pair and the second key pair Can mutually transmit between the client and server of application development side.
Under normal circumstances, rivest, shamir, adelman is decrypted using private key using public key encryption, but is being transmitted across The situation that go-between forges server is there may be in journey, the server of forgery provides the resource installation kit forged to client, Include malice advertisement in the resource installation kit of forgery, therefore, in this application reverse operating is carried out to encryption, i.e. utilize Private key is encrypted and is decrypted using public key, specifically:
When being encrypted using the client of application development side, first, the client of application development side will First public key of first key centering is saved in application program installation kit, while using the first private key pair of first key centering Resource installation kit carries out first time encryption, and then, the client of application development side is by the second private key of the second cipher key pair In being saved in application program installation kit, while second is carried out to resource installation kit using the second public key of the second cipher key pair adding It is close.After completing to encrypt twice, the client of application development side can send resource installation kit to server.
When using answering server to be encrypted, after resource installation kit is generated, resource installation kit is sent to service Device, then, server end is encrypted first with the first private key of first key centering to resource installation kit, while first key First public key of centering is stored in application program installation kit, as long as it is thus possible to ensureing to pass through in application program installation kit The resource installation kit that is decrypted of the first public key come by server transport because corresponding with the first public key One private key only server is held, go-between cannot forge, it is to avoid go-between forges resource installation kit, but cannot ensure the Tripartite steals resource installation kit, because the first public key is disclosed, and then, second encryption is carried out to resource installation kit, specifically Ground, the second public key of the cipher key pair of server by utilizing second is encrypted to resource installation kit, while the of the second cipher key pair Two private keys are stored in application program installation kit, so as to ensure that the application program installation kit for only holding the second private key could be right Resource installation kit is decrypted, even if third party holds the second public key and can only also encrypt and cannot decrypt.
Based on same inventive concept, the embodiment of the present invention also provides a kind of loading method of application program installation kit, application In android system, the executive agent of the loading method of the application program installation kit can use side visitor for application program Family end, as shown in Fig. 2 methods described includes:
Step 201:Obtain according to first resource generate application program installation kit, wherein, the first resource be for The resource of the main interface of loading application programs.
Specifically, the acquisition of application program installation kit is by way of can be application development side client, or Any software download site, the application to obtain application program installation kit by way of not limiting.
Step 202:According to the application program installation kit, the application program is installed, so that user is opening The main interface can be loaded during the application program.
In this application, after being installed to application program using the application program installation kit generated according to first resource, After mounted application program is opened, application program is loaded user using side client to main interface, by application program Main interface be presented to user.
Further, when the current display interface of application program is main interface, judge whether for opening the master The opening operation of the secondary interface in interface, when there is the opening operation, acquisition is stored in the resource in server and installs Bag, and the resource installation kit is loaded.Specifically, application program sends resource acquisition and asks to clothes using side client Resource installation kit is sent to application program and uses side client by business device, server after resource acquisition request is received, and Resource installation kit is saved under the file directory of the application program.
Further, after the resource installation kit being stored in server is got, methods described also includes:
Using the second private key of the second cipher key pair being stored in the application program installation kit, to close by described second The resource installation kit that second public key encryption of key centering is crossed carries out first time decryption;
It is close by described first using the first public key pair of the first key centering being stored in the application program installation kit The resource installation kit that first private key encryption of key centering is crossed carries out second decryption.
Specifically, after resource installation kit is got, with aforementioned ciphering process accordingly, first, utilize second Second private key of key pair carries out first time decryption to resource installation kit, and after successful decryption, resource installation kit becomes a quilt First key then, second decryption is carried out using the first public key of first key pair to the file encrypted to resource installation kit, Finally give the resource installation kit without password.
In addition, after the first public key using first key pair carries out second decryption to resource installation kit, can be with Including:Judge whether the file signature of resource installation kit is consistent with the file signature of application program installation kit, if resource installation kit File signature it is whether consistent with the file signature of application program installation kit, then resource installation kit is loaded, otherwise, delete The resource installation kit.
Further, when file signature is obtained, can first be obtained by the PackageManager methods of context Android's assures reason service object, then obtains application by the getPackageInfo methods of the object Packageinfo objects, by the signatures fields of the object signing messages of installation kit can be just obtained, and opened when existing During the opening operation of secondary interface, directly by first obtaining a self-defining Resources object, it is then called GetAssets methods obtain the management object of Assets catalogues, finally call open methods to obtain specified resource file, open The parameter of method is exactly resource file name, and resource setting is finally carried out in the application.
Further, the class of direct operating resource is Resources in Android system, and directly passes through Resources Class cannot load the resource outside installation kit, because verifying in Resources, when installation kit is not the installation installed Bag does not just read its resource, Resources classes be finally loaded by the addAssetPath of AssetManager classes it is specified The resource of path installation kit, wherein, AssetManager classes are android explorer classes, all of money in android Source all realizes that to read uninstalled resource bag here can only just create the Resources objects of oneself by it, but It is the incoming AssetManager object of building method needs for creating Resources classes, and AssetManager objects Constructed fuction is arranged to hiding by system, so needing to first pass through one AssetManager object of reflective construct.
The process that reflection creates AssetManager objects is as follows:Obtained by the forName methods of Class classes first The type object clazz of AssetManager classes, Class classes are the classes that all classes are represented in java, and it provides many right The function of java classes reflection, it receives the character string descriptor of a class, AssetManager class bag name full name " android.content.res.AssetManager ", the getConstructor methods for then calling clazz are obtained The building method of AssetManager classes, finally calls its newInstance () method to create one AssetManager pair As, the path for calling its addAssetPath method to specify loading resource is needed after AssetManager Object Creations, and AddAssetPath is also that a hidden method name needs also exist for being called by reflecting, and calls clazz's first GetDeclaredMethod methods are obtaining the object of addAssetPath methods, first parameter of getDeclaredMethod Receive the method character string descriptor for needing reflection, i.e. addAssetPath, second parameter is the parameter class for needing method for reflection Type, the parameter of addAssetPath methods is path full name, and type is String, so second parameter is passed String.class, finally calls the invoke methods of addAssetPath method objects to perform addAssetPath methods just OK.Wherein, invoke is the method call step in reflection, and when method is reflected, getDeclaredMethod is To the method object, therefore also need to call invoke methods really to perform method to be reflected.
Further, the process for creating self-defining Resources objects is as follows:Resources classes construction needs three ginsengs Number, first is exactly AssetManager objects, while setting installation package file by calling its addAssetPath method Path is the path of resource, and second parameter is the object of DisplayMetrics classes, and DisplayMetrics classes can be obtained The information such as mobile phone screen size, therefore a DisplayMetrics object is directly created, the 3rd parameter is Configuration objects, it controls some such as range of information such as mobile phone horizontal/vertical screen, directly by installation kit itself Context object acquisitions are incoming, i.e. call its getConfiguration () method, and context is to represent that anroid is applied The context environmental of program, can access the various environment of android programs operation, when self-defined by context Resources operates to call the resource read in resource installation kit after decrypting for loading after realizing.
Based on same inventive concept, the embodiment of the present invention also provides a kind of generating means of application program installation kit, such as Fig. 3 Shown, described device includes:
First acquisition module 301, for obtaining the installation resource of application program;
Load-on module 302, for parsing first of the main interface for loading application programs from the installation resource Resource;
Generation module 303, for generating application program installation kit according to the first resource.
Based on same inventive concept, the embodiment of the present invention also provides a kind of charger of application program installation kit, such as Fig. 4 Shown, described device includes:
Second acquisition module 401, for obtaining the application program installation kit generated according to first resource, wherein, described the One resource is the resource of the main interface for loading application programs;
Module 402 is installed, for according to the application program installation kit, installing to the application program, to use Family main interface when the application program is opened can be loaded.
One or more technical schemes in the embodiment of the present invention, at least have the following technical effect that or advantage:
The present invention from the installation resource of application program by parsing first of the main interface for loading application programs Resource, and application program installation kit is generated according to first resource, can be realized to application program using the application program installation kit Installation, user's main interface after mounted application program is opened is loaded, due to except being used for main load interface Resource in addition is no longer bundled in application program installation kit, reduces occupancy of the application program installation kit to memory space.
Simultaneously as by installation resource except for loading application programs main interface first resource in addition to other money Source is packaged as resource installation kit, and resource installation kit is positioned in server, is obtained again when needed and is loaded, so as to Have effectively achieved the shunting of resource.
Provided herein algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment. Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are filled come the generation for realizing application program installation kit according to embodiments of the present invention Put some or all functions of some or all parts in the charger with application program installation kit.The present invention may be used also (for example, calculated with some or all equipment or program of device that are embodied as performing method as described herein Machine program and computer program).Such program for realizing the present invention can be stored on a computer-readable medium, or There can be the form of one or more signal.Such signal can be downloaded from internet website and obtained, or carried There is provided on body signal, or provide in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of generation method of application program installation kit, it is characterised in that methods described includes:
Obtain the installation resource of application program;
The first resource of the main interface for loading application programs is parsed from the installation resource;
Application program installation kit is generated according to the first resource.
2. the generation method of application program installation kit as claimed in claim 1, it is characterised in that install money from described described After the first resource for the main interface of loading application programs is parsed in source, methods described also includes:
Secondary resource in the installation resource in addition to the first resource is kept in statement of assets.
3. the generation method of application program installation kit as claimed in claim 1, it is characterised in that install money from described described After the first resource for the main interface of loading application programs is parsed in source, methods described also includes:
Resource installation kit is generated according to the Secondary resource in the installation resource in addition to the first resource.
4. the generation method of application program installation kit as claimed in claim 3, it is characterised in that described according to the installation Secondary resource in resource in addition to the first resource is generated after resource installation kit, and methods described includes:
First public key of first key centering is saved in the application program installation kit, while using first key centering First private key carries out first time encryption to the resource installation kit;
Second private key of the second cipher key pair is saved in the application program installation kit, while using the second cipher key pair Second public key carries out second encryption to the resource installation kit.
5. the generation method of application program installation kit as claimed in claim 3, it is characterised in that described according to the installation Secondary resource in resource in addition to the first resource is generated after resource installation kit, and methods described also includes:
The resource installation kit is sent to server.
6. a kind of loading method of application program installation kit, it is characterised in that methods described includes:
The application program installation kit generated according to first resource is obtained, wherein, the first resource is for loading application programs Main interface resource;
According to the application program installation kit, the application program is installed, so that user is opening the application program Shi Suoshu main interfaces can be loaded.
7. the loading method of application program installation kit as claimed in claim 6, it is characterised in that described pair with the application After the corresponding application program of program installation kit is installed, methods described also includes;
When the current display interface of the application program is the main interface, judge whether for opening the main interface Secondary interface opening operation;
When there is the opening operation, acquisition is stored in the resource installation kit in server, and the resource installation kit is entered Row loading.
8. the loading method of application program installation kit as claimed in claim 6, it is characterised in that be stored in clothes in the acquisition After resource installation kit in business device, methods described also includes:
Using the second private key of the second cipher key pair being stored in the application program installation kit, to by second key pair In the resource installation kit crossed of the second public key encryption carry out first time decryption;
Using the first public key pair of the first key centering being stored in the application program installation kit, by the first key pair In the resource installation kit crossed of the first private key encryption carry out second decryption.
9. a kind of generating means of application program installation kit, it is characterised in that described device includes:
First acquisition module, for obtaining the installation resource of application program;
Load-on module, for parsing the first resource of the main interface for loading application programs from the installation resource;
Generation module, for generating application program installation kit according to the first resource.
10. a kind of charger of application program installation kit, it is characterised in that described device includes:
Second acquisition module, for obtaining the application program installation kit generated according to first resource, wherein, the first resource is For the resource of the main interface of loading application programs;
Module is installed, for according to the application program installation kit, installing to the application program, so that user is opening The main interface can be loaded during the application program.
CN201611130406.7A 2016-12-09 2016-12-09 Generation method, loading method and device of application program installation package Active CN106648770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611130406.7A CN106648770B (en) 2016-12-09 2016-12-09 Generation method, loading method and device of application program installation package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611130406.7A CN106648770B (en) 2016-12-09 2016-12-09 Generation method, loading method and device of application program installation package

Publications (2)

Publication Number Publication Date
CN106648770A true CN106648770A (en) 2017-05-10
CN106648770B CN106648770B (en) 2020-03-17

Family

ID=58824889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611130406.7A Active CN106648770B (en) 2016-12-09 2016-12-09 Generation method, loading method and device of application program installation package

Country Status (1)

Country Link
CN (1) CN106648770B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459861A (en) * 2018-01-16 2018-08-28 福建省天奕网络科技有限公司 A kind of software installation method and system
CN108629189A (en) * 2018-03-20 2018-10-09 蔚来汽车有限公司 Engine end data guard method, device and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624741A (en) * 2012-03-30 2012-08-01 奇智软件(北京)有限公司 TLV (Threshold Limit Value) based data transmission method and system thereof
CN103544025A (en) * 2012-07-10 2014-01-29 腾讯科技(深圳)有限公司 Online game resource acquisition method and device
US20140372998A1 (en) * 2013-06-14 2014-12-18 Microsoft Corporation App package deployment
CN104917807A (en) * 2015-03-19 2015-09-16 腾讯科技(深圳)有限公司 Resource transfer method, apparatus and system
CN105278995A (en) * 2015-11-03 2016-01-27 努比亚技术有限公司 Management method of application, system, server and mobile terminal
CN105554008A (en) * 2015-12-28 2016-05-04 联想(北京)有限公司 User terminal, authentication server, middle server, system and transmission method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624741A (en) * 2012-03-30 2012-08-01 奇智软件(北京)有限公司 TLV (Threshold Limit Value) based data transmission method and system thereof
CN103544025A (en) * 2012-07-10 2014-01-29 腾讯科技(深圳)有限公司 Online game resource acquisition method and device
US20140372998A1 (en) * 2013-06-14 2014-12-18 Microsoft Corporation App package deployment
CN104917807A (en) * 2015-03-19 2015-09-16 腾讯科技(深圳)有限公司 Resource transfer method, apparatus and system
CN105278995A (en) * 2015-11-03 2016-01-27 努比亚技术有限公司 Management method of application, system, server and mobile terminal
CN105554008A (en) * 2015-12-28 2016-05-04 联想(北京)有限公司 User terminal, authentication server, middle server, system and transmission method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459861A (en) * 2018-01-16 2018-08-28 福建省天奕网络科技有限公司 A kind of software installation method and system
CN108459861B (en) * 2018-01-16 2022-02-11 福建省天奕网络科技有限公司 Software installation method and system
CN108629189A (en) * 2018-03-20 2018-10-09 蔚来汽车有限公司 Engine end data guard method, device and vehicle

Also Published As

Publication number Publication date
CN106648770B (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN107220083B (en) Method and system for installation-free operation of application program in android system
CN104965712B (en) Application program method for reinforcing and protecting, device and mobile terminal
CN102880456B (en) Plug-in loading method and system
CN102760219B (en) A kind of Android platform software protection system, method and apparatus
CN102830992B (en) Plug-in loading method and system
US10325109B2 (en) Automatic and dynamic selection of cryptographic modules for different security contexts within a computer network
US20170116410A1 (en) Software protection
EP3038004A1 (en) Method for providing security for common intermediate language-based program
CN108363580A (en) Application program installation method, device, computer equipment and storage medium
CN106055936B (en) Executable program data packet encrypting/decrypting method and device
JP2019505887A (en) Mobile device with reliable execution environment
CN105320535B (en) A kind of method of calibration of installation kit, client, server and system
EP3659058B1 (en) Devices and methods for key attestation with multiple device certificates
CN104680039A (en) Data protection method and device of application installation package
CN110826031B (en) Encryption method, device, computer equipment and storage medium
CN111191195A (en) Method and device for protecting APK
CN107066888B (en) Extensible trusted user interface, method and electronic device
CN106648770A (en) Generating method, loading method and device for application program installation package
CN116249980A (en) Software access through heterogeneous encryption
CN111159712B (en) Detection method, device and storage medium
CN112115430A (en) Apk reinforcement method, electronic equipment and storage medium
CN109995534B (en) Method and device for carrying out security authentication on application program
CN107403103B (en) File decryption method and device
CN114896621A (en) Application service acquisition method, encryption method, device and computer equipment
CN114329535A (en) File encryption method and device, electronic equipment and computer readable medium

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
GR01 Patent grant
GR01 Patent grant