CN106569863B - Resource and code modularization-based android app resource updating and repairing method - Google Patents
Resource and code modularization-based android app resource updating and repairing method Download PDFInfo
- Publication number
- CN106569863B CN106569863B CN201610988946.2A CN201610988946A CN106569863B CN 106569863 B CN106569863 B CN 106569863B CN 201610988946 A CN201610988946 A CN 201610988946A CN 106569863 B CN106569863 B CN 106569863B
- Authority
- CN
- China
- Prior art keywords
- resource
- code
- android app
- android
- updating
- 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
Links
Images
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 a resource and code modularization-based Android app resource updating and repairing method, which comprises the steps of conducting modularization processing on subject resources and required function codes of an Android app to obtain resource files and code patch packages, storing the resource files and the code patch packages in assets catalogues of functions corresponding to servers of the Android app, obtaining the resource files or the code patch packages from the servers of the Android app when business requirements change or a system finds abnormality, and conducting system resource updating or abnormality repairing processing. The invention can complete the updating and abnormal repairing of the service module through remote updating; the new version installation package apk need not be updated.
Description
Technical Field
The invention relates to the technical field of information technology, in particular to a resource and code modularization-based android app resource updating and repairing method.
Background
Under the current software and hardware environment, the Android app (application software) can complete version update and exception repair only by installing a new version. Such a manner is mainly reflected in; 1. when a service is changed, the app developer redevelops a new version, which requires frequent client upgrade by the user. 2. When an app discovers an exception at runtime, repairing that version of app is also addressed by upgrading the client. Both of these situations result in a poor user experience.
The prior art discloses a method for realizing resource loading and resource hot update in an enterprise distributed application system, which is disclosed as follows: CN102436373A, published date: 2012-05-02, the method includes an operation of implementing a resource resolver interface and an interceptor interface during a development period and configuring a format definition, an operation of parsing a resource loading configuration file during a run period, an operation of loading a module resource during the run period, and an operation of monitoring a hot update thread during the run period. The method can make the resource analysis and hot update work simpler and more efficient, does not need to modify core codes when adding new resource types, has higher system operation efficiency and stable and reliable performance, reduces the cost of development and maintenance, enhances the portability and expandability of the system, enables users to concentrate on the processing of business logic, can also quickly adapt to the change of business requirements and technologies, supports and establishes a highly modularized and highly integrated software system, has wider application range, and lays a solid foundation for the management of resources in enterprise application. The technical scheme of resource loading and resource hot updating is different from the technical scheme of the patent application, and the code updating is not carried out in the invention.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a resource and code modularization-based android app resource updating and repairing method, and the service module updating and abnormal repairing can be completed through remote updating; the new version installation package apk need not be updated.
The invention is realized by the following steps: a method for updating and repairing android app resources based on resource and code modularization is characterized in that: the method comprises the steps of conducting modular processing on theme resources and required function codes of the Android app to obtain resource files and code patch packages, storing the resource files and the code patch packages in an assets directory of functions corresponding to a server of the Android app, obtaining the resource files or the code patch packages from the server of the Android app when business requirements change or a system finds abnormality, and conducting system resource updating or abnormality repairing processing.
Further, the method further comprises: when the service requirement is changed, the client downloads a resource file from the server of the Android app and stores the resource file in a data/data/packagename/files directory; loading and updating resources by using Assets managers; when the system is abnormal, the client downloads a code patch package from a server of the Android app, and stores the code patch package in a data/data/packagemame/files/dexs directory; and (3) preferentially loading codes in the patch package by using an Android packet multiDex technology provided by Android to complete the recovery of system exception.
Further, the method further comprises: interface reservation is carried out on the Android app, and updated resource files and code resources can be used; the storage position of the resource and the update position of the code need to be designed in advance, the resource patch and the code patch can be searched through the interface by writing in advance, and if the storage position of the resource and the update position of the code do not have corresponding update files, the default resource and the original code of the Android system are used.
Further, the method further comprises: resources need to be updated or codes need to be updated; placing the resource file and the code patch package which need to be updated at the server;
the client detects the update information of the server, and if the update information exists, the client downloads the resource patch and the code patch; detecting an interface and a logic code reserved in the Android app, and if an update patch package is found, loading a resource file or a code patch package; and the client acquires the resource file or the code patch package from the server of the Android app to update the system resource or repair the abnormality. .
The invention has the following advantages: 1. the user experience is improved, and the service module can be updated and abnormal repair can be completed through remote update; the new version installation package apk need not be updated.
2. The theme resources and the required function codes are modularized, so that the flexibility and the portability are high, and the module strategy can be customized by the service according to the service characteristics.
3. The process release cost is saved, and the market channel release is not required to be repeatedly carried out for version updating each time.
4. The method is flexible and efficient, the updating efficiency is high, and the abnormal updating can be carried out at any time.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a schematic flow diagram of the process of the present invention.
FIG. 2 is a detailed flow chart of the update in the method of the present invention.
Detailed Description
Referring to fig. 1 and 2, in a resource and code modularization-based method for updating and repairing Android app resources, a theme resource and a required function code of an Android app are subjected to modularization processing to obtain a resource file and a code patch package, and the resource file and the code patch package are stored in an assets directory of a corresponding function of a server of the Android app, that is, in a project design, the theme resource is modularly stored and stored in the assets directory of the corresponding function; in the project design, the required functions are subjected to modular processing, so that the plug-in development in the development is convenient to realize; when the service requirement is changed or the system finds abnormality, a resource file or a code patch package is obtained from a server of the Android app, and system resource updating or abnormality repairing processing is carried out.
In the present invention, the method further comprises: when the service requirement is changed, the client downloads a resource file from the server of the Android app and stores the resource file in a data/data/packagename/files directory; loading and updating resources by using Assets managers; when the system is abnormal, the client downloads a code patch package from a server of the Android app, and stores the code patch package in a data/data/packagemame/files/dexs directory; and (3) preferentially loading codes in the patch package by using an Android packet multiDex technology provided by Android to complete the recovery of system exception. This patch package is an executable file dex.
In addition, the method comprises: interface reservation is carried out on the Android app, and updated resource files and code resources can be used; the storage position of the resource and the update position of the code need to be designed in advance, the resource patch and the code patch can be searched through the interface by writing in advance, and if the storage position of the resource and the update position of the code do not have corresponding update files, the default resource and the original code of the Android system are used.
The method further comprises: resources need to be updated or codes need to be updated; placing the resource file and the code patch package which need to be updated at the server;
the client detects the update information of the server, and if the update information exists, the client downloads the resource patch and the code patch; detecting an interface and a logic code reserved in the Android app, and if an update patch package is found, loading a resource file or a code patch package; and the client acquires the resource file or the code patch package from the server of the Android app to update the system resource or repair the abnormality.
In short, the invention can carry out service updating and abnormal demand repairing only by remotely updating the resource patch package and the code patch package (dex file) through the network.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (2)
1. A method for updating and repairing android app resources based on resource and code modularization is characterized in that: performing modular processing on the subject resource and the required function code of the Android app to obtain a resource file and a code patch package, storing the resource file and the code patch package in an assets directory of a function corresponding to a server of the Android app, and when a service requirement is changed or a system finds abnormality, obtaining the resource file or the code patch package from the server of the Android app to perform system resource updating or abnormality repairing processing;
the method further comprises: when the service requirement is changed, the client downloads a resource file from the server of the Android app and stores the resource file in a data/data/packagename/files directory; loading and updating resources by using Assets managers; when the system is abnormal, the client downloads a code patch package from a server of the Android app, and stores the code patch package in a data/data/packagemame/files/dexs directory; preferentially loading codes in a patch package by using an Android packet multiDex technology provided by Android to complete the repair of system exception;
the method further comprises: interface reservation is carried out on the Android app, and updated resource files and code resources can be used; the storage position of the resource and the update position of the code need to be designed in advance, the resource patch and the code patch can be searched through the interface by writing in advance, and if the storage position of the resource and the update position of the code do not have corresponding update files, the default resource and the original code of the Android system are used.
2. The method of resource and code modularization based android app resource update and repair of claim 1, wherein: the method further comprises: resources need to be updated or codes need to be updated; placing the resource file and the code patch package which need to be updated at the server; the client detects the update information of the server, and if the update information exists, the client downloads the resource patch and the code patch; detecting an interface and a logic code reserved in the Android app, and if an update patch package is found, loading a resource file or a code patch package; and the client acquires the resource file or the code patch package from the server of the Android app to update the system resource or repair the abnormality.
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 CN106569863A (en) | 2017-04-19 |
CN106569863B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254797B (en) * | 2018-08-15 | 2022-01-14 | Oppo广东移动通信有限公司 | Mobile terminal, starting control method thereof and storage medium |
CN109683927A (en) * | 2018-11-01 | 2019-04-26 | 苏州蜗牛数字科技股份有限公司 | A method of updating the game of U3D Android |
CN109800005B (en) * | 2018-12-06 | 2022-04-05 | 广州西山居世游网络科技有限公司 | Client hot update method and device |
CN109766084B (en) * | 2018-12-28 | 2021-04-23 | 百富计算机技术(深圳)有限公司 | Customized development method and device for payment application, computer equipment and storage medium |
CN112099830A (en) * | 2020-09-25 | 2020-12-18 | 努比亚技术有限公司 | System updating method, equipment and computer readable storage medium |
Citations (3)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10268476B2 (en) * | 2015-03-20 | 2019-04-23 | 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 (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106569863A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569863B (en) | Resource and code modularization-based android app resource updating and repairing method | |
US20200218526A1 (en) | Adaptive deployment of applications for mobile devices | |
CN101325509B (en) | Method, system and apparatus for installing software component | |
KR101038965B1 (en) | How to Configure Test Systems, Computer-readable Media, and Computing Systems | |
CN102622241B (en) | A kind of method for upgrading software and device | |
CN102289378B (en) | Method for automatically generating APP (Application) | |
CN104657174A (en) | Method and device for dynamically realizing application function | |
CN102541596A (en) | Operating system upgrading method and device | |
CN103984573A (en) | Installation method and device of application program | |
CN106648724B (en) | Application program hot repair method and terminal | |
CN105808278A (en) | Client version upgrading method and device | |
CN101393524A (en) | Firmware update method and system using the same | |
US20120101801A1 (en) | System and method for deploying a software program | |
CN110888652B (en) | Multi-version construction method and terminal based on jenkins plug-in | |
CN106843933A (en) | A kind of leak restorative procedure of application program, mobile terminal and patch server | |
WO2009064781A2 (en) | Method of automated operating system deployment for a network of multiple data processors | |
CN102609281A (en) | Distributed software patch updating method and distributed software patch updating system | |
CN105072398B (en) | A kind of device updating method and device | |
CN102571860A (en) | Method, device and system for managing plug-in module | |
CN109284106A (en) | Method for release management, electronic device and the readable storage medium storing program for executing of business rule | |
CN105516154A (en) | Security policy configuration method and device applied to SEAndroid (Security-Enhanced Android) system | |
CN105391763A (en) | Method and server for reinforcing a plurality of apk files | |
CN104504587A (en) | Advertisement monitoring method and device, electronic apparatus | |
US9720669B2 (en) | Deployment of software across an enterprise system | |
CN104156247A (en) | Application upgrading method and device |
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 |