CN104572089B - The method and apparatus for generating Android installation kit - Google Patents

The method and apparatus for generating Android installation kit Download PDF

Info

Publication number
CN104572089B
CN104572089B CN201410828202.5A CN201410828202A CN104572089B CN 104572089 B CN104572089 B CN 104572089B CN 201410828202 A CN201410828202 A CN 201410828202A CN 104572089 B CN104572089 B CN 104572089B
Authority
CN
China
Prior art keywords
android
resource
installation kit
user
packet
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.)
Active
Application number
CN201410828202.5A
Other languages
Chinese (zh)
Other versions
CN104572089A (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.)
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Shangke Information 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 Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Shangke Information Technology Co Ltd
Priority to CN201410828202.5A priority Critical patent/CN104572089B/en
Publication of CN104572089A publication Critical patent/CN104572089A/en
Application granted granted Critical
Publication of CN104572089B publication Critical patent/CN104572089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of method and apparatus generating Android installation kit, can more efficiently generate Android installation kit convenient for layman, and help to improve the safety of source code.The method of generation Android installation kit of the present invention includes:Decompiling is carried out to specified Android installation kit and obtains Android basis packet;Obtain the resource that user provides;The resource that the user provides is filled into the preset position corresponding to the resource in the Android basis packet, then carrying out back compiling to Android basis packet obtains Android installation kit.

Description

The method and apparatus for generating Android installation kit
Technical field
The present invention relates to field of computer technology, a kind of particularly method and apparatus generating Android installation kit.
Background technology
Android is a kind of freedom based on Linux and the operating system of open source code, is mainly used for movement and sets It is standby, such as smart mobile phone and tablet computer, by Google companies and open mobile phone alliance leader and develop.There has been no uniform Chinese names Claim, more uses " Android " or " peace causes " at present, use " Android " in following description.By being installed in a device using journey Sequence can carry out startup use.Have some tools that user is contributed to compile out Android installation kit at present, but these tools need into Row relies on and needs to carry out environment configurations to tool, and needs to compile specific source code, less efficient.And for non-special For industry user, still there are some difficulty using above-mentioned tool.In addition in some cases, developer is for source code safety Consider, it is undesirable that user is in direct contact source code.
Invention content
In view of this, the present invention provides a kind of method and apparatus generating Android installation kit, layman can be convenient for Android installation kit is more efficiently generated, and helps to improve the safety of source code.
To achieve the above object, according to an aspect of the invention, there is provided a kind of method generating Android installation kit.
The method of generation Android installation kit of the present invention includes:Decompiling is carried out to specified Android installation kit and obtains Android Basis packet;Obtain the resource that user provides;It is preset right in the Android basis packet that the resource that the user provides is filled into Then the position of resource described in Ying Yu carries out back compiling to Android basis packet and obtains Android installation kit.
Optionally, the step of resource of acquisition user offer includes:The one or more of user's offer are obtained by webpage Resource, the prompt message of the attribute comprising the resource in the webpage.
Optionally, the resource includes below one or more:Character, picture, domain name, HTML5 topology files.
Optionally, after the compiling the step of, further include:The Android installation kit is digitally signed.
According to another aspect of the present invention, a kind of device generating Android installation kit is provided.
The device of generation Android installation kit of the present invention includes:Decompiling module, for specified Android installation kit into Row decompiling obtains Android basis packet;Acquisition module, the resource for obtaining user's offer;Module is filled, is used for the use The resource that family provides is filled into the preset position corresponding to the resource in the Android basis packet;Collector is returned, is used for Compiling is carried out back to the Android basis packet that the filling module filling is completed and obtains Android installation kit.
Optionally, the acquisition module is additionally operable to obtain one or more resources that user provides, the webpage by webpage In comprising the resource attribute prompt message.
Optionally, the resource includes below one or more:Character, picture, domain name, HTML5 topology files.
Optionally, further include signature blocks, the Android installation kit for being obtained to described time collector carries out digital label Name.
According to the technique and scheme of the present invention, decompiling is carried out to specified Android installation kit and obtains Android basis packet, used The resource that user provides fills Android basis packet, then carries out back compiling to Android basis packet, is not necessarily to write and compile in this way Source code more efficiently generates Android installation kit convenient for layman, and helps to improve the safety of source code.
Description of the drawings
Attached drawing does not constitute inappropriate limitation of the present invention for more fully understanding the present invention.Wherein:
Fig. 1 is the schematic diagram of the method according to the ... of the embodiment of the present invention for generating Android installation kit;
Fig. 2 is the schematic diagram of the main modular of the device according to the ... of the embodiment of the present invention for generating Android installation kit.
Specific implementation mode
It explains to the exemplary embodiment of the present invention below in conjunction with attached drawing, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together The description to known function and structure is omitted for clarity and conciseness in sample in following description.
In embodiments of the present invention, user is helped to obtain Android installation kit by server-side, server-side can be by the method for Fig. 1 It executes, Fig. 1 is the schematic diagram of the method according to the ... of the embodiment of the present invention for generating Android installation kit.As shown in Figure 1, this method master To include following step S11 to step S14.
Step S11:Decompiling is carried out to specified Android installation kit and obtains Android basis packet.In the present embodiment, it is based on one It wraps to realize the Android installation kit of user individual in a Android basis.Android basis packet is the Android peace under a decompiling state Dress packet can be obtained by carrying out decompiling to specified Android installation kit.Android basis packet content be and user's needs APK purposes it is consistent, for example, the businessman of e-commerce if necessary to make an APK, the application obtained after mounting Program is the online shop of businessman, then the information in the packet of the Android basis should apply to generate online shop, is played similar In the function of template.Eaily mode is to carry out decompiling using the APK of an online shop.In this way, it takes Business end can help the user of same type demand (such as making the APK of online shop) to make using an Android basis packet Make personalized APK.
Step S12:Obtain the resource that user provides.Here resource is mainly the personalized information of user.For example, electric For the businessman of sub- commercial affairs if necessary to make an APK, the application program obtained after mounting is the online shop of businessman, that The above-mentioned resource that the businessman provides is usually businessman's brief introduction, merchandise news, businessman's icon etc.;Can also include that some domain names are believed Breath further accesses for user;Can include separately HTML5 files, so as to dynamically change the layout structure of client, Show pattern, preferably formulates personalized product (APK installation kits).
Server-side can provide a user a webpage, and the resource of user's offer is obtained by the webpage.In the webpage Include the prompt message of the attribute of resource.Such as the prompt text in webpage:" commodity parameter please be input ", and include that text is defeated Entering frame makes user input commodity parameter herein.The for another example prompt text in webpage:" businessman's icon please be upload ", and include to be used for Upload the control of image file.Server-side in this way is assured that the attribute of the resource received, such as one received section text is Commodity parameter, the image for another example received is businessman's icon.This mode allows user to facilitate, oneself institute is clearly arranged Content in the APK installation kits wanted.
Step S13:The resource that user provides is filled into the preset position corresponding to the resource in the packet of Android basis.With For the APK of the online shop of above-mentioned making businessman, in Android basis is wrapped, need to include a businessman under some catalogue Icon, then after user uploads an image according to above-mentioned prompt text " please upload businessman's icon ", which is set to Under the catalogue.Other resources are also made with similar operation, the personalized money of user's offer is provided in so that Android basis is wrapped Source.In addition, if the packet name of installation kit needs to modify by the requirement of user, in installation kit with the associated text of packet name Part, file also need accordingly to make an amendment.
Step S14:Compiling is carried out back to Android basis packet and obtains Android installation kit.So far, just worked as in server-side The Android installation kit of preceding user individual can be digitally signed it before the Android installation kit is sent to user To improve safety.
Fig. 2 is the schematic diagram of the main modular of the device according to the ... of the embodiment of the present invention for generating Android installation kit.Such as Fig. 2 institutes Show, the device 20 of the generation Android installation kit of the embodiment of the present invention includes mainly decompiling module 21, acquisition module 22, fill mould Block 23 and time collector 24.Decompiling module 21 is used to carry out decompiling to specified Android installation kit to obtain Android base Plinth packet;Acquisition module 22 is used to obtain the resource of user's offer;Filling module 23 is used to the resource that user provides being filled into peace The preset position corresponding to above-mentioned resource in tall and erect basis packet;Return the peace that collector 24 is used to complete the filling filling of module 23 Tall and erect basis packet carries out back compiling and obtains Android installation kit.Acquisition module 22 can be additionally used in one that user's offer is obtained by webpage Or multinomial resource, the prompt message of the attribute comprising the resource in the webpage.Generating the device 20 of Android installation kit can also wrap Signature blocks (not shown) is included, for being digitally signed to returning the Android installation kit that collector 24 obtains.
Technical solution according to the ... of the embodiment of the present invention carries out decompiling to specified Android installation kit and obtains Android basis Packet, the resource provided using user fills Android basis packet, then carries out back compiling to Android basis packet, is not necessarily to write in this way With compiling source code, Android installation kit is more efficiently generated convenient for layman, and help to improve the peace of source code Quan Xing.
The basic principle that the present invention is described above in association with specific embodiment, in apparatus and method of the present invention, it is clear that Each component or each step can be decomposed and/or be reconfigured.These decompose and/or reconfigure should be regarded as the present invention etc. Efficacious prescriptions case.Also, the step of executing above-mentioned series of processes can execute according to the sequence of explanation in chronological order naturally, still It does not need to centainly execute sequentially in time.Certain steps can execute parallel or independently of one another.
Above-mentioned specific implementation mode, does not constitute limiting the scope of the invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made by within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (6)

1. a kind of method generating Android installation kit, which is characterized in that including:
Decompiling is carried out to specified Android installation kit and obtains Android basis packet;The content of the Android basis packet is needed with user APK purposes it is consistent, Android basis packet in information be suitable for be filled through user offer resource after generate it is customized APK;
The resource that user provides is obtained, the resource includes below one or more:Character, picture, domain name, HTML5 layouts File;
The resource that the user provides is filled into the preset position corresponding to the resource in the Android basis packet, then Compiling is carried out back to Android basis packet and obtains Android installation kit.
2. according to the method described in claim 1, it is characterized in that, the step of obtaining the resource that user provides includes:Pass through net Page obtains one or more resources that user provides, and includes the prompt message of the attribute of the resource in the webpage.
3. according to the method described in claim 1, it is characterized in that, after the compiling the step of, further include:To the peace Tall and erect installation kit is digitally signed.
4. a kind of device generating Android installation kit, which is characterized in that including:
Decompiling module obtains Android basis packet for carrying out decompiling to specified Android installation kit;
Acquisition module, the resource for obtaining user's offer, the resource includes below one or more:Character, picture, domain Name, HTML5 topology files;
Module is filled, the resource for providing the user is filled into preset corresponding to the money in the Android basis packet The position in source;
Collector is returned, the Android basis packet for being completed to the filling module filling carries out back compiling and obtains Android installation Packet;The content of the Android basis packet is consistent with the purposes for the APK that user needs, and the information in the packet of Android basis is suitable for through filling out Customized APK is generated after the resource of user's offer is provided.
5. device according to claim 4, which is characterized in that the acquisition module is additionally operable to carry by webpage acquisition user The one or more resources supplied, the prompt message of the attribute comprising the resource in the webpage.
6. device according to claim 4, which is characterized in that further include signature blocks, for described time collector Obtained Android installation kit is digitally signed.
CN201410828202.5A 2014-12-26 2014-12-26 The method and apparatus for generating Android installation kit Active CN104572089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410828202.5A CN104572089B (en) 2014-12-26 2014-12-26 The method and apparatus for generating Android installation kit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410828202.5A CN104572089B (en) 2014-12-26 2014-12-26 The method and apparatus for generating Android installation kit

Publications (2)

Publication Number Publication Date
CN104572089A CN104572089A (en) 2015-04-29
CN104572089B true CN104572089B (en) 2018-09-14

Family

ID=53088255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410828202.5A Active CN104572089B (en) 2014-12-26 2014-12-26 The method and apparatus for generating Android installation kit

Country Status (1)

Country Link
CN (1) CN104572089B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068813B (en) * 2015-08-19 2019-05-31 北京奇虎科技有限公司 It is a kind of that the Android packet APK method and apparatus of modification service are provided
CN105117222B (en) * 2015-08-19 2019-05-31 北京奇虎科技有限公司 It is a kind of that the Android packet APK method and apparatus of customization service are provided
CN105530290A (en) * 2015-11-27 2016-04-27 努比亚技术有限公司 Device and method for downloading application installation package
CN107402792B (en) * 2017-08-01 2020-08-28 广州视源电子科技股份有限公司 Integration method, device, equipment and storage medium of application software installation package
CN108287722A (en) * 2018-01-09 2018-07-17 北京大学 A kind of decoupling method of Android application
CN108762775A (en) * 2018-05-24 2018-11-06 苏州乐麟无线信息科技有限公司 A kind of packaging method and device of installation kit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981824A (en) * 2012-10-31 2013-03-20 广州市久邦数码科技有限公司 Method of accessing inlet and icon of Android application program
CN103123605A (en) * 2013-02-07 2013-05-29 百度在线网络技术(北京)有限公司 Android platform automation integration testing method and device
CN104090946A (en) * 2014-06-30 2014-10-08 广州华多网络科技有限公司 Method and device for adding information to application installation package

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8171470B2 (en) * 2006-08-29 2012-05-01 Adobe Systems Incorporated Software installation and support

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981824A (en) * 2012-10-31 2013-03-20 广州市久邦数码科技有限公司 Method of accessing inlet and icon of Android application program
CN103123605A (en) * 2013-02-07 2013-05-29 百度在线网络技术(北京)有限公司 Android platform automation integration testing method and device
CN104090946A (en) * 2014-06-30 2014-10-08 广州华多网络科技有限公司 Method and device for adding information to application installation package

Also Published As

Publication number Publication date
CN104572089A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104572089B (en) The method and apparatus for generating Android installation kit
CN106648690B (en) Automatic code generation method and device
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
US10565293B2 (en) Synchronizing DOM element references
US8635522B2 (en) Hybrid web container for cross-platform mobile applications
WO2017088509A1 (en) Page customization method and device
CN107015804B (en) Method and system for rapidly developing project by configuring API
CN106663013B (en) Step is adjusted for the dynamic of service upgrade
TW201820168A (en) User information obtaining system, method and device
CN104503741A (en) Integrated system for developing and publishing APP
CN105138448A (en) Method and device for page test at front end
CN105528418B (en) A kind of design documentation generation method and device
CN104158836A (en) Method for rendering mobile application interface through data
CN105373390A (en) OEM-oriented online software customization packaging release method and apparatus
CN103543993A (en) Application program building method and system
CN102385580A (en) Method and device for customizing webpage contents
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN112612452B (en) API platform realization method, device, equipment and storage medium
US20180349333A1 (en) File information interlinking method
CN111045683A (en) Applet code compiling method, device, equipment and medium
TW201537932A (en) Method and system for providing internet application services
CN104572594A (en) Real-time generation method of dynamic PDF (portable document format) documents
CN108170430B (en) Interface display method and system
US9389879B2 (en) System and method for manipulating user-interface display items for web widgets
CN104298500A (en) System and method for online automatically generating and sharing electronic photo album Apps

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant