CN106569863A - Android app resource updating and repairing method based on resource and code modularization - Google Patents
Android app resource updating and repairing method based on resource and code modularization Download PDFInfo
- Publication number
- CN106569863A CN106569863A CN201610988946.2A CN201610988946A CN106569863A CN 106569863 A CN106569863 A CN 106569863A CN 201610988946 A CN201610988946 A CN 201610988946A CN 106569863 A CN106569863 A CN 106569863A
- Authority
- CN
- China
- Prior art keywords
- resource
- code
- app
- android
- patch
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The invention provides an Android app resource updating and repairing method based on resource and code modularization. The theme resources and the required function codes of an Android app are subjected to modularization processing to obtain a resource file and a code patch package, the resource file and the code patch package are stored under an assets catalogue of the corresponding function of an Android app server, and the resource file or the code patch package is obtained from the Android app server to carry out system resource update or exception repairing processing when business requirements are changed or a system is exceptional. By use of the method, through remote update, the update and the exception repairing of the business module can be finished, and a new version apk (AndroidPackage) does not need to be updated.
Description
Technical field
It is the present invention relates to Information technology technical field more particularly to a kind of based on resource and ARIXTRA app of code module
Resource updates and the method repaired.
Background technology
Under current hardware environment, Android app (application software) have to be by installing redaction
Version updating and abnormal reparation can be completed.Such mode is mainly reflected in;1st, when business occurs to change, app developer's meeting
Again new version is developed, this is accomplished by user's frequently updating client.2nd, when app operationally notes abnormalities, repair
The app of the version is also solving by updating client.Both of which causes poor Consumer's Experience.
Prior art discloses one kind and " in Corporation Distributed application system, realize the side that resource loading and resource heat update
Method ", is shown in Publication No.:CN102436373A, publication date is:The Chinese patent of 2012-05-02, the method include development period reality
The operation of existing resource resolver interface and blocker interface configuration format definition, runtime are parsed to resource loading configuration file
Operation, runtime module resource loading operation and the runtime heat more new thread monitor operation.Using the side of the invention
Method can make the parsing of resource and heat renewal work more simple efficient, when increasing new resource type, need not change core code,
Running efficiency of system is higher, stable and reliable for performance, and reduces the cost that exploitation is safeguarded, enhances system portability and can expand
Malleability, makes user be absorbed in the process of service logic, additionally it is possible to rapidly adapt to the change of business demand and technology, supports and sets up high
Degree modularity and the software system of high integration, its scope of application are relatively broad, are that enterprise is laid to the management of resource using in
Solid foundation.The technical scheme that the invention resource is loaded and resource heat updates is different from present patent application, and the invention
Code update is not carried out.
The content of the invention
The technical problem to be solved in the present invention, is to provide a kind of ARIXTRA app resource based on resource and code module
Renewal and the method repaired, can the renewal of finishing service module and abnormal reparation by long-range renewal;New edition intrinsic safety need not be updated
Dress bag apk.
What the present invention was realized in:A kind of ARIXTRA app resource updates based on resource and code module and reparation
Method, it is characterised in that:Subject resource and required function code to Android app carries out modularized processing, obtains resource
File and code patch bags, resource file and code patch bags are stored in the server corresponding function of Android app
Under assets catalogues, when business demand is changed or system discovery is abnormal, resource is obtained from the server of Android app
File or code patch bags, carry out system resource renewal or abnormal repair process.
Further, methods described is further included:When business demand is changed, clothes of the client from Android app
Resource file is downloaded on business device, and resource file is deposited under data/data/packagename/files catalogues;Use
Assets managers carry out resource and load and update;When will work as system discovery exception, server of the client from Android app
Upper download code patch bags, and code patch bags are deposited in into data/data/packagename/files/dexs catalogues
Under;The Android subpackage multiDex technologies provided using Android, the code in preferential loading patch bags, completion system
Abnormal reparation.
Further, methods described is further included:Enter line interface to reserve to Android app, make the resource of renewal literary
Part and code resource can be used;Need the deposit position to resource and the more new position of code to be pre-designed, need
Logically to be write in advance so that resource patch and code patch can be searched by interface, if the storage position of resource
Put and there is no corresponding more new file with the more new position of code, then using default resource and original generation of android system
Code.
Further, methods described is further included:Resource needs to update or code needs to update;Then will need what is updated
Resource file and code patch bags are placed on service end;
Client detection service end fresh information, if there is renewal, this is carried out, and resource patch is downloaded and code patch is downloaded;From
Android app reserved interface and logical code are detected, if finding there is renewal service packs, to resource file or code
Patch bags are loaded;Client obtains resource file or code patch bags from the server of Android app, is
System resource updates or abnormal repair process..
The invention has the advantages that:1st, Consumer's Experience is improved, by it is long-range update can finishing service module update and
It is abnormal to repair;Redaction installation kit apk need not be updated.
2nd, subject resource and required function code carry out modularity, and so flexibly portable high, business can be according to business
Feature customized module strategy.
3rd, save flow process and issue cost, it is not necessary to which version updating repeats market channel issue every time.
4th, it is flexible and efficient, efficiency high is updated, exception is occurred and is updated at any time.
Description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Schematic flow sheets of the Fig. 1 for the inventive method.
Fig. 2 is the detailed process schematic diagram that updates in the inventive method.
Specific embodiment
Refer to shown in Fig. 1 and Fig. 2, a kind of ARIXTRA app resource updates based on resource and code module and repair
Method, the subject resource and required function code to Android app carry out modularized processing, obtain resource file and code
Patch bags, resource file and code patch bags are stored in the assets catalogues of the server corresponding function of Android app
Under, i.e., in Project design, for subject resource carries out modular storage, it is stored under the assets catalogues of corresponding function;
In Project design, modularized processing is carried out to required function, facilitate implementation the plug-in exploitation in exploitation;When business demand is changed
Or during system discovery exception, resource file or code patch bags are obtained from the server of Android app, system is carried out
Resource updates or abnormal repair process.
In the present invention, methods described is further included:When business demand is changed, client is from Android app's
Resource file is downloaded on server, and resource file is deposited under data/data/packagename/files catalogues;Use
Assets managers carry out resource and load and update;When will work as system discovery exception, server of the client from Android app
Upper download code patch bags, and code patch bags are deposited in into data/data/packagename/files/dexs catalogues
Under;The Android subpackage multiDex technologies provided using Android, the code in preferential loading patch bags, completion system
Abnormal reparation.This code patch bags are an executable file dex.
In addition, methods described:Enter line interface to reserve to Android app, allow the resource file and code resource energy of renewal
It is enough to be used;Need the deposit position to resource and the more new position of code to be pre-designed, need in advance logically
Write so that resource patch and code patch can be searched by interface, if the renewal of the deposit position of resource and code
There is no corresponding more new file in position, then using the default resource and original code of android system.
Methods described is further included:Resource needs to update or code needs to update;The resource file that will then need to update
Service end is placed on code patch bags;
Client detection service end fresh information, if there is renewal, this is carried out, and resource patch is downloaded and code patch is downloaded;From
Android app reserved interface and logical code are detected, if finding there is renewal service packs, to resource file or code
Patch bags are loaded;Client obtains resource file or code patch bags from the server of Android app, is
System resource updates or abnormal repair process.
In a word, the present invention is only needed to by network remote more new resources patch bags and code patch bags (dex files) i.e.
Processing business and updates and abnormal demand reparation can be carried out.
Although the foregoing describing the specific embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this
The technical staff in field should be covered the present invention's in the equivalent modification and change made according to the spirit of the present invention
In scope of the claimed protection.
Claims (4)
1. a kind of ARIXTRA app resource updates based on resource and code module and repair method, it is characterised in that:It is right
The subject resource and required function code of Android app carries out modularized processing, obtains resource file and code patch bags,
Under the assets catalogues of the server corresponding function that resource file and code patch bags are stored in Android app, work as business
When demand is changed or system discovery is abnormal, resource file or code patch bags are obtained from the server of Android app,
Carry out system resource renewal or abnormal repair process.
2. the ARIXTRA app resource updates based on resource and code module according to claim 1 and repair method, its
It is characterised by:Methods described is further included:When business demand is changed, client is upper and lower from the server of Android app
Resource file is carried, and resource file is deposited under data/data/packagename/files catalogues;Managed using Assets
Person carries out resource and loads and update;When will work as system discovery exception, client downloads code from the server of Android app
Patch bags, and code patch bags are deposited under data/data/packagename/files/dexs catalogues;Utilize
The Android subpackage multiDex technologies that Android is provided, the code in preferential loading patch bags, completion system is abnormal to be repaiied
It is multiple.
3. the ARIXTRA app resource updates based on resource and code module according to claim 1 and repair method, its
It is characterised by:Methods described is further included:Enter line interface to reserve to Android app, allow the resource file and code of renewal
Resource can be used;The deposit position to resource and the more new position of code is needed to be pre-designed, needs exist in advance
Write in logic so that resource patch and code patch can be searched by interface, if the deposit position of resource and code
More new position there is no corresponding more new file, then using the default resource and original code of android system.
4. the ARIXTRA app resource updates based on resource and code module according to claim 3 and repair method, its
It is characterised by:Methods described is further included:Resource needs to update or code needs to update;The resource file that will then need to update
Service end is placed on code patch bags;Client detection service end fresh information, if there is renewal, this is carried out under resource patch
Carry and code patch is downloaded;The interface and logical code reserved from Android app is detected, if finding there is renewal patch
Bag, then load to resource file or code patch bags;Client obtains resource text from the server of Android app
Part or code patch bags, carry out system resource renewal or abnormal repair process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610988946.2A CN106569863B (en) | 2016-11-10 | 2016-11-10 | Resource and code modularization-based android app resource updating and repairing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610988946.2A CN106569863B (en) | 2016-11-10 | 2016-11-10 | Resource and code modularization-based android app resource updating and repairing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106569863A true CN106569863A (en) | 2017-04-19 |
CN106569863B CN106569863B (en) | 2020-01-17 |
Family
ID=58540992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610988946.2A Active CN106569863B (en) | 2016-11-10 | 2016-11-10 | Resource and code modularization-based android app resource updating and repairing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106569863B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254797A (en) * | 2018-08-15 | 2019-01-22 | Oppo广东移动通信有限公司 | Mobile terminal and its start-up control method, storage medium |
CN109683927A (en) * | 2018-11-01 | 2019-04-26 | 苏州蜗牛数字科技股份有限公司 | A method of updating the game of U3D Android |
CN109766084A (en) * | 2018-12-28 | 2019-05-17 | 百富计算机技术(深圳)有限公司 | Pay customized development method, apparatus, computer equipment and the storage medium of application |
CN109800005A (en) * | 2018-12-06 | 2019-05-24 | 广州西山居世游网络科技有限公司 | A kind of hot update method of client and device |
CN112099830A (en) * | 2020-09-25 | 2020-12-18 | 努比亚技术有限公司 | System updating method, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436373A (en) * | 2011-09-13 | 2012-05-02 | 上海普元信息技术股份有限公司 | Method for realizing resource loading and resource hot-updating in distributed enterprise application system |
CN105354045A (en) * | 2014-08-21 | 2016-02-24 | 中兴通讯股份有限公司 | Patch making method and apparatus and patch activation method and apparatus |
CN105824623A (en) * | 2016-03-14 | 2016-08-03 | 广州趣丸网络科技有限公司 | Android application hotfix method and device |
US20160274900A1 (en) * | 2015-03-20 | 2016-09-22 | ZeroTurnaround AS | System and Method for Fast Restarting of User Apps |
-
2016
- 2016-11-10 CN CN201610988946.2A patent/CN106569863B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436373A (en) * | 2011-09-13 | 2012-05-02 | 上海普元信息技术股份有限公司 | Method for realizing resource loading and resource hot-updating in distributed enterprise application system |
CN105354045A (en) * | 2014-08-21 | 2016-02-24 | 中兴通讯股份有限公司 | Patch making method and apparatus and patch activation method and apparatus |
US20160274900A1 (en) * | 2015-03-20 | 2016-09-22 | ZeroTurnaround AS | System and Method for Fast Restarting of User Apps |
CN105824623A (en) * | 2016-03-14 | 2016-08-03 | 广州趣丸网络科技有限公司 | Android application hotfix method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254797A (en) * | 2018-08-15 | 2019-01-22 | Oppo广东移动通信有限公司 | Mobile terminal and its start-up control method, storage medium |
CN109683927A (en) * | 2018-11-01 | 2019-04-26 | 苏州蜗牛数字科技股份有限公司 | A method of updating the game of U3D Android |
CN109800005A (en) * | 2018-12-06 | 2019-05-24 | 广州西山居世游网络科技有限公司 | A kind of hot update method of client and device |
CN109766084A (en) * | 2018-12-28 | 2019-05-17 | 百富计算机技术(深圳)有限公司 | Pay customized development method, apparatus, computer equipment and the storage medium of application |
CN112099830A (en) * | 2020-09-25 | 2020-12-18 | 努比亚技术有限公司 | System updating method, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106569863B (en) | 2020-01-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569863A (en) | Android app resource updating and repairing method based on resource and code modularization | |
CN103229144B (en) | Preheating software is installed | |
CN106648724B (en) | Application program hot repair method and terminal | |
CN102236764B (en) | Method and monitoring system for Android system to defend against desktop information attack | |
CN105453037A (en) | Maintaining known dependencies for updates | |
CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
CN1668010A (en) | Tag-based schema for distributing update metadata in an update distribution system | |
CN102195804A (en) | Automatic updating method of software and system thereof | |
CN103365682B (en) | Message processing device and information processing method | |
CN103473067A (en) | Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method | |
CN105426165A (en) | Script tool processing method and apparatus | |
CN106371874A (en) | Plug-in data loading method and equipment | |
CN105760184A (en) | Method and device for loading component | |
CN104484172A (en) | Method and device for packaging files | |
CN101719074A (en) | patch-realizing method and device | |
CN104657158A (en) | Method and device for processing business in business system | |
AU2004216739A1 (en) | System and method for single transparent deployment flow | |
CN107861736A (en) | Patch generates and update method and device, electronic equipment, storage medium | |
CN103036855A (en) | Achievement device and method of authority management | |
CN102238017B (en) | Realize the method and system of local software update notifying | |
CN102054041B (en) | Method and system for upgrading metadata | |
CN102007756A (en) | Method and apparatus for dynamic provisioning in data processing environment | |
CN102880478B (en) | Oftware updating method | |
CN110941422B (en) | Code automatic generation method, code generator and readable storage medium | |
CN102857817B (en) | Set-top box production system and method capable of realizing dynamical loading |
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 | ||
CP03 | Change of name, title or address |
Address after: 350028 Jinshan Juyuan Industrial Park project a, No.18, West Third Ring Road, Jianxin Town, Cangshan District, Fuzhou City, Fujian Province Patentee after: Baobao Bus Co.,Ltd. Address before: 350000 room 320, building 11, block B, Fuzhou Software Park, No. 89, software Avenue, Gulou District, Fuzhou City, Fujian Province Patentee before: FUZHOU ZHIYONG INFORMATION TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |