Font Size: a A A

The Design And Implementation Of Android Dynamic Loading Framework EasyDynamicLoad

Posted on:2019-02-11Degree:MasterType:Thesis
Country:ChinaCandidate:Q H XiaoFull Text:PDF
GTID:2428330572455944Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the development of Internet and the popularity of smartphones,the number of smartphones users is becoming bigger,and the function of application is becoming more and more complex.The user experience and development efficiency of applications have become the key factors that affect the growth of the number of users.However,users need to download whole package and install manual while update the application.So users may refuse to update the application because updateing operation will cost a lot of newwork traffic which also affects the promotion of new functions.To solve this problem,a framework named Easy Dynamic Load(EDL)is proposed base on Android dynamic loading.The EDL divides the project into multiple modules with which the main program can load dynamically.Users don't need to download the whole package while updating application,which saves network traffic by the EDL.The users do not need to install it manually for operation of EDL is transparent to them.This solves the problem that the application cannot be quickly updated and the error can not be repaired in time.At the same time,the EDL makes teamwork more easier.Teams can work together without affecting each other which improves the development efficiency.The EDL framework designed in thesis is based on the Droidplugin framework,which has the features of function modularization,plug-in independent compilation,various plug-ins supporting and security loading.The main works are as follows:(1)The EDL framework is designed.It contains the resolving module,manifest file management module,resource loading module,lifecycle management module,plug-in management module,plug-in launcher module and security module.(2)The EDL framework is implemented.EDL imitates the application booting process of Android system,and launches plug-in application in main application.Launcher process contains package's decompression,resource's loading and components management,etc.(3)The EDL realizes dynamic loading by replacing plug-in component with pre-register component.The plug-in component can not be registered in the manifest file and it can't be launched by the system.(4)A method of modifying the package id is proposed,which assigns different package id to each plug-in.So that resource sharing is realized.The plug-in index table is defined for unified plug-in management.Launchers such as So Launcher,Web Launcher,APKLauncher.These launchers are implemented to handle multiple types of plug-ins.The EDL supports the reliability of plug-in files by using MD5 and RSA to encrypt and decrypt files while doing download and update operation.In contrast with the Droid Plugin framework,EDL can load plug-ins of Apk types as well as plug-ins of So and web,etc.In addition,the EDL plug-ins can use common library plug-ins to reduce repetition of code,and can be invoked with each other.Furthermore,EDL provides signature encryption which improves reliability when updating plug-ins.It has been tested that the EDL framework can load multiple different plug-ins and be compatible with the Android handsets of most of the different vendors on the market.Therefore,EDL is more practical than Droid Plugin.
Keywords/Search Tags:android, dynamic loading, EDL, plugin
PDF Full Text Request
Related items