The invention discloses a method for Android applications in bug repair and continuous delivery plan, its main steps are as follows: 101: the real Application is MyApplication, automatically modify AndroidManifest.xml files during compilation, replace MyApplication with MyNewApplication; 102: App started by MyNewApplication load the corresponding DEX file, and then return control to MyApplication. The invention applies the APP application solely as a loader. After the system starts App, the loader determines the location of the code and resources to be run. When new features or bug fixes need to be pushed to the user, you simply download the corresponding files by replacing the loader contents. Thus, the bug in the business module and the quick iteration of the version can be simply and conveniently solved.
【技术实现步骤摘要】
一种针对android应用的bug修复和持续交付方案
本专利技术涉及计算机领域,具体是一种针对android应用的bug修复和持续交付方案。
技术介绍
Android系统版本众多,机型众多,每次发布一个版本都是需要较长的时间。Android应用版本升级至少需要两周才能达到80%的升级率,严重阻碍了版本迭代速度。也导致市场上App版本分散,处理bug和投诉等也越来越麻烦。近一两年采用Android热补丁框架解决上述问题非常热门。从开始360公司研发的动态下发lua脚本,到后来出现的各种方案。早期的补丁框架偏向于以代码修复为主,主要分为两大类:nativehook方案和Multidex方案。nativehook方案如阿里巴巴的AndFix和Dexposed。Multidex方案如Qzone。切入点都是替换掉将要执行的代码。基于Qzone方案的思路,出现了nuwa这个比较完善的库,工具链比较完善。但是上述两种方案都存在一定的缺陷,AndFix只能修改方法、不能修改字段、不能新增类等问题,其库本身难于维护(需要依赖外部开源力量进行维护),nuwa仅支持更新Java代码,不 ...
【技术保护点】
一种针对android应用的bug修复和持续交付方案,其特征在于,其主要步骤如下:101:真实的Application类是MyApplication,在编译期间自动修改AndroidManifest.xml文件,把MyApplication替换为MyNewApplication;102:App启动后由MyNewApplication加载相应的dex文件后,再将控制权交回给MyApplication。
【技术特征摘要】
1.一种针对android应用的bug修复和持续交付方案,其特征在于,其主要步骤如下:101:真实的Application类是MyApplication,在编译期间自动修改AndroidManifest.xml文件,把MyApplication替换为MyNewApplication;102:App启动后由MyNewApplication加载相应的dex文件后,再将控制权交回给MyApplication。2.根据权利要求1所述的针对android应用的bug修复和持续交付方案,其特征在于,所述MyNewApplication加载相应的dex文件的...
【专利技术属性】
技术研发人员:朱洪龙,
申请(专利权)人:环球智达科技北京有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。