CN108563460A - Plug-in-based android application new function release method - Google Patents

Plug-in-based android application new function release method Download PDF

Info

Publication number
CN108563460A
CN108563460A CN201810209646.9A CN201810209646A CN108563460A CN 108563460 A CN108563460 A CN 108563460A CN 201810209646 A CN201810209646 A CN 201810209646A CN 108563460 A CN108563460 A CN 108563460A
Authority
CN
China
Prior art keywords
plug
apk
units
android application
new function
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.)
Withdrawn
Application number
CN201810209646.9A
Other languages
Chinese (zh)
Inventor
余敬龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Nenglong Education Co ltd
Original Assignee
Guangdong Nenglong Education 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 Guangdong Nenglong Education Co ltd filed Critical Guangdong Nenglong Education Co ltd
Priority to CN201810209646.9A priority Critical patent/CN108563460A/en
Publication of CN108563460A publication Critical patent/CN108563460A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a new android application function issuing method based on a plug-in, which comprises the following steps: (a) packing the plug-in function module and the plug-in metadata list into an apk plug-in; (b) issuing an apk plug-in; (c) the app downloads the apk plug-in; (d) the app parse executes the apk plug-in. The invention divides the application into small plug-ins according to the function modules, the new function is released, only one new plug-in needs to be released, and the user only needs to download one small plug-in without complete update.

Description

A kind of android application new function dissemination methods based on plug-in unit
Technical field
The present invention relates to Android application update methods, especially a kind of android application new functions hair based on plug-in unit Cloth method.
Background technology
With being widely used for App, the function of app is also to become increasingly abundant, and simultaneously, the size of app installation kits is also Constantly becoming larger, is being tens MB at the drop of a hat, conventional update method mainly covers old installation with new installation kit, this Sample for users, is required for spending every time the flow of tens MB to download, operation is also time consuming.
The newer main problems of existing routine android have, and first, for a user, to download completion more every time Newly packet, even only little by little update, waste customer flow and time, second, for application developer, due to every time It is the entire application of update, complete test is had to carry out when issuing new function, avoids new function from influencing existing capability and introduce Bug.
Invention content
In order to solve the above technical problems, the object of the present invention is to provide a kind of android application new functions based on plug-in unit Dissemination method, with the dependence between reduction system.
The technical solution adopted by the present invention is:
A kind of android application new function dissemination methods based on plug-in unit, include the following steps:
(a) pin function module and plug-in unit metadata inventory are packaged into apk plug-in units;
(b) apk plug-in units are issued;
(c) app downloads apk plug-in units;
(d) app parsings execute apk plug-in units.
Step (d) app executes apk plug-in units by plug-in component operation device to parse.
Step (c) app downloads apk plug-in units to insert receptacle, and plug-in component operation device is obtained and parsed from insert receptacle and held Row apk plug-in units.
When the plug-in component operation device work, the android application resources, file and picture of apk plug-in units are used direct Parsing uses reflection load and execution for the bytecode of apk plug-in units.
The android application resources include layout, size and color.
Beneficial effects of the present invention:Application is divided into plug-in unit small one by one, new function according to function module by the present invention Publication, need to only issue a new plug-in unit, and user also only needs to download a small plug-in unit, need not completely update, so more New benefit is first, and update packet becomes smaller, second, in standalone insert, instant new function goes wrong not to be interfered with new function Function operation originally, program are more healthy and stronger.
Description of the drawings
The specific implementation mode of the present invention is described further below in conjunction with the accompanying drawings.
Fig. 1 is the relationship frame figure of the present invention.
Specific implementation mode
For existing scheme there are the drawbacks of, the present invention devise it is a kind of based on plug-in unit android application new functions hair Cloth method, the most crucial part of this method is two pieces, when the management of plug-in unit, but plug-in component operation principle.
The management of plug-in unit is mainly download of plug-in unit, storage, deletion etc. and regular file is downloaded, preserved, storage do not have it is assorted It is different, it is not added with and is discussed in detail.
How to be run after plug-in download is that technological core of the invention is recalled under normal circumstances first, tradition How to be run after app download installations, the metamessage of itself, to Android system registration, (title, mark, needs after app installations Permission etc.), after starting application, system directly calls file dex code files submission Android system itself to solve correlation Analysis.
After we assign application as plug-in unit, plug-in unit is not re-used as apk and is installed to inside system, and system can not be called.Institute A plug-in component operation device is needed with us to assist system to execute plug-in unit, and apk itself is one using related resource as everybody knows And the compressed package of byte code files.We can directly parse the file for accessing the inside.
As shown in Figure 1, a kind of android application new function dissemination methods based on plug-in unit of the present invention, including following step Suddenly:
(a) pin function module and plug-in unit metadata inventory are packaged into apk plug-in units;
(b) apk plug-in units are issued;
(c) app downloads apk plug-in units;
(d) app parsings execute apk plug-in units.
Wherein, step (d) app executes apk plug-in units by plug-in component operation device to parse, and step (c) app downloads apk plug-in units To insert receptacle, plug-in component operation device, which is obtained and parsed from insert receptacle, executes apk plug-in units.
When the plug-in component operation device work, the android application resources, file and picture of apk plug-in units are used direct Parsing uses reflection load and execution for the bytecode of apk plug-in units.
Specifically, the android application resources include layout, size and color etc..
It is for more efficient parsing plug-in unit, we require each plug-in unit necessary for above-mentioned plug-in unit metadata inventory Include the metadata inventory of itself, metadata inventory is exactly to have which Activity (activity) inside plug-in unit, is equivalent to the page, carries For inventory, so that it may directly to search Activity, without being traversed using inefficient reflection technology.
The foregoing is merely the preferred embodiments of the present invention, and the present invention is not limited to the above embodiments, as long as with Essentially identical means realize that the technical solution of the object of the invention belongs within protection scope of the present invention.

Claims (5)

1. a kind of android application new function dissemination methods based on plug-in unit, which is characterized in that include the following steps:
(a) pin function module and plug-in unit metadata inventory are packaged into apk plug-in units;
(b) apk plug-in units are issued;
(c) app downloads apk plug-in units;
(d) app parsings execute apk plug-in units.
2. a kind of android application new function dissemination methods based on plug-in unit according to claim 1, it is characterised in that: Step (d) app executes apk plug-in units by plug-in component operation device to parse.
3. a kind of android application new function dissemination methods based on plug-in unit according to claim 2, it is characterised in that: Step (c) app downloads apk plug-in units to insert receptacle, and plug-in component operation device obtains from insert receptacle and parses execution apk and inserts Part.
4. a kind of android application new function dissemination methods based on plug-in unit according to claim 2, it is characterised in that: When the plug-in component operation device work, the android application resources, file and picture of apk plug-in units are used and directly parsed, for The bytecode of apk plug-in units is using reflection load and execution.
5. a kind of android application new function dissemination methods based on plug-in unit according to claim 4, it is characterised in that: The android application resources include layout, size and color.
CN201810209646.9A 2018-03-14 2018-03-14 Plug-in-based android application new function release method Withdrawn CN108563460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810209646.9A CN108563460A (en) 2018-03-14 2018-03-14 Plug-in-based android application new function release method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810209646.9A CN108563460A (en) 2018-03-14 2018-03-14 Plug-in-based android application new function release method

Publications (1)

Publication Number Publication Date
CN108563460A true CN108563460A (en) 2018-09-21

Family

ID=63532594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810209646.9A Withdrawn CN108563460A (en) 2018-03-14 2018-03-14 Plug-in-based android application new function release method

Country Status (1)

Country Link
CN (1) CN108563460A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753293A (en) * 2019-01-08 2019-05-14 深圳市网心科技有限公司 A kind of processing method and relevant device of plug-in unit
WO2020228033A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Sdk plug-in loading method and apparatus, and mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753293A (en) * 2019-01-08 2019-05-14 深圳市网心科技有限公司 A kind of processing method and relevant device of plug-in unit
WO2020228033A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Sdk plug-in loading method and apparatus, and mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
Olivier et al. A binary-compatible unikernel
JP7090657B2 (en) Methods, devices, devices and storage media for upgrading applications
Zhou et al. Always up-to-date: scalable offline patching of vm images in a compute cloud
US7900198B2 (en) Method and system for parameter profile compiling
US20180046497A1 (en) Application profiling job management system, program, and method
CN106020873B (en) Patch package loading method and device
CN106325970A (en) Compiling method and compiling system
CN109800005B (en) Client hot update method and device
US9182953B2 (en) Hybrid dynamic code compiling device, method, and service system thereof
US10133560B2 (en) Link time program optimization in presence of a linker script
US20090260000A1 (en) Method, apparatus, and manufacture for software difference comparison
US9898386B2 (en) Detecting byte ordering type errors in software code
CN110059456B (en) Code protection method, code protection device, storage medium and electronic equipment
US11645068B2 (en) Method for implementing function jump, apparatus, and computer storage medium
WO2017128952A1 (en) Stack protection method and device
CN109857520B (en) Semantic reconstruction improvement method and system in virtual machine introspection
CN106293870A (en) Computer system and strategy thereof guide compression method
US20200257524A1 (en) Generating interaction libraries
CN108563460A (en) Plug-in-based android application new function release method
CN109542444B (en) JAVA application monitoring method, device, server and storage medium
US6951012B2 (en) API to increase debug log performance
CN105247533A (en) Information processing device and identifying method
US20180129490A1 (en) Object ordering preservation during lto link stage
WO2021077916A1 (en) Method and device for acquiring mirror image file
CN110825452A (en) Cloud service adaptation module management method for multi-cloud management

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180921

WW01 Invention patent application withdrawn after publication