{"id":13630845,"url":"https://github.com/tiann/understand-plugin-framework","last_synced_at":"2025-05-15T12:00:20.027Z","repository":{"id":39228840,"uuid":"50549644","full_name":"tiann/understand-plugin-framework","owner":"tiann","description":"demos to help understand plugin framwork","archived":false,"fork":false,"pushed_at":"2018-08-27T05:58:35.000Z","size":344,"stargazers_count":2645,"open_issues_count":4,"forks_count":771,"subscribers_count":194,"default_branch":"master","last_synced_at":"2025-04-14T19:59:10.185Z","etag":null,"topics":["android","droidplugin","hook","turtorials"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-28T02:51:45.000Z","updated_at":"2025-04-14T06:14:53.000Z","dependencies_parsed_at":"2022-07-11T21:01:56.223Z","dependency_job_id":null,"html_url":"https://github.com/tiann/understand-plugin-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiann%2Funderstand-plugin-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiann%2Funderstand-plugin-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiann%2Funderstand-plugin-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiann%2Funderstand-plugin-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiann","download_url":"https://codeload.github.com/tiann/understand-plugin-framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337612,"owners_count":22054253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","droidplugin","hook","turtorials"],"created_at":"2024-08-01T22:02:00.899Z","updated_at":"2025-05-15T12:00:20.006Z","avatar_url":"https://github.com/tiann.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# understand-plugin-framework\n\n分析[DroidPlugin][1]，深入理解插件化框架，内容如下：\n\n- [Hook机制之动态代理][2]\n- [Hook机制之Binder Hook][3]\n- [Hook机制之AMS\u0026PMS][4]\n- [Activity生命周期管理][5]\n- [插件加载机制][6]\n- [广播的处理方式][7]\n- [Service的管理][8]\n- [ContentProvider的管理][9]\n- DroidPlugin插件通信机制\n- 插件机制之资源管理\n- 不同插件框架方案对比\n- 插件化的未来\n\n2018/8/27 更新：\n\n从我写下 [Android插件化原理解析](http://weishu.me/2016/01/28/understand-plugin-framework-overview/) 系列第一篇文章至今，已经过去了两年时间。这期间，插件化技术也得到了长足的发展；与此同时，React Native，PWA，App Bundle，以及最近的Flutter也如火如荼。由于实现插件化需要太多的黑科技，它给项目的维护成本和稳定性增加了诸多不确定性；我个人认为，2017年手淘Atlas插件化项目的开源标志着插件化的落幕，2018年Android 9.0上私有API的限制几乎称得上是盖棺定论了——曾经波澜壮阔的插件化进程必将要退出历史主流。如今的插件化技术朝两个方向发展：其一，插件化的工程特性：模块化/解耦被抽离，逐渐演进为稳定、务实的的组件化方案；其二，插件化的黑科技特性被进一步发掘，inline hook/method hook大行其道，走向双开，虚拟环境等等。\n\n虽然插件化终将落幕，但是它背后的技术原理包罗万象，值得每一个希望深入Android的小伙伴们学习。\n\n很遗憾曾经的系列文章没有写完，现在已经没机会甚至可以说不可能去把它完结了；不过幸运的是，我的良师益友包老师（我习惯称呼他为包哥）写了一本关于插件化的书——《Android插件化开发指南》，书中讲述了过去数年浩浩荡荡的插件化历程以及插件技术的方方面面；有兴趣的小伙伴可以买一本看看。\n\n[![点击购买](http://7xp3xc.com1.z0.glb.clouddn.com/201605/1535348090511.png)][10]\n\n[1]: https://github.com/DroidPluginTeam/DroidPlugin\n[2]: http://weishu.me/2016/01/28/understand-plugin-framework-proxy-hook/\n[3]: http://weishu.me/2016/02/16/understand-plugin-framework-binder-hook/\n[4]: http://weishu.me/2016/03/07/understand-plugin-framework-ams-pms-hook/\n[5]: http://weishu.me/2016/03/21/understand-plugin-framework-activity-management/\n[6]: http://weishu.me/2016/04/05/understand-plugin-framework-classloader/\n[7]: http://weishu.me/2016/04/12/understand-plugin-framework-receiver/\n[8]: http://weishu.me/2016/05/11/understand-plugin-framework-service/\n[9]: http://weishu.me/2016/07/12/understand-plugin-framework-content-provider/\n[10]: https://item.m.jd.com/product/31188356430.html?utm_source=iosapp\u0026utm_medium=appshare\u0026utm_campaign=t_335139774\u0026utm_term=Wxfriends\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiann%2Funderstand-plugin-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiann%2Funderstand-plugin-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiann%2Funderstand-plugin-framework/lists"}