{"id":15034642,"url":"https://github.com/droidpluginteam/droidplugin","last_synced_at":"2025-04-09T02:16:07.725Z","repository":{"id":37821060,"uuid":"41482296","full_name":"DroidPluginTeam/DroidPlugin","owner":"DroidPluginTeam","description":"A plugin framework on android,Run any third-party apk without installation, modification or repackage","archived":false,"fork":false,"pushed_at":"2024-06-06T02:32:38.000Z","size":1859,"stargazers_count":6924,"open_issues_count":227,"forks_count":2523,"subscribers_count":501,"default_branch":"master","last_synced_at":"2025-04-09T02:15:57.939Z","etag":null,"topics":["android","droid-plugin","hook","plugin","pluginframework","virtualization"],"latest_commit_sha":null,"homepage":"http://droidpluginteam.github.io/DroidPlugin/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DroidPluginTeam.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-27T11:14:57.000Z","updated_at":"2025-04-03T18:18:12.000Z","dependencies_parsed_at":"2024-09-30T21:40:31.964Z","dependency_job_id":"815a3b4b-4977-4bbd-a425-93c957b5702d","html_url":"https://github.com/DroidPluginTeam/DroidPlugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidPluginTeam%2FDroidPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidPluginTeam%2FDroidPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidPluginTeam%2FDroidPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidPluginTeam%2FDroidPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DroidPluginTeam","download_url":"https://codeload.github.com/DroidPluginTeam/DroidPlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247962605,"owners_count":21024871,"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","droid-plugin","hook","plugin","pluginframework","virtualization"],"created_at":"2024-09-24T20:25:49.966Z","updated_at":"2025-04-09T02:16:07.703Z","avatar_url":"https://github.com/DroidPluginTeam.png","language":"Java","readme":"Droid Plugin\r\n======\r\n\r\n[中文文档](readme_cn.md \"中文文档\")\r\n\r\n[Fllow me at github](https://github.com/cmzy)\r\n\r\nDroidPlugin is a new **Plugin Framework** developed and maintained by Andy Zhang( [Fllow me at github](https://github.com/cmzy) ).\r\nIt enables the host app run any third-party apk without installation, modification and repackage, which benefit a lot for collaborative development on Android.\r\n\r\n-------\r\n\r\n\r\n\r\n## Problems to be solved:\r\n    \r\n 1. Unable to send `Notification` with custom Resources，eg：\r\n \r\n     a.  Notification with custom RemoteLayout, which means `Notification`'s `contentView`，`tickerView`，\r\n     `bigContentView` and `headsUpContentView` must be null.\r\n\r\n     b.  Notification with icon customized by R.drawable.XXX. The framework will transform it to Bitmap instead.\r\n\r\n 2. Unable to define specified `Intent Filter` for the plugged app's `Service`、`Activity`、`BroadcastReceiver`\r\n and `ContentProvider`. So the plugged app is invisible for the outside system and app.\r\n\r\n 3. Lack of `Hook` to the `Native` layer, thus apk (e.g. a majority of game apps) with `native` code cannot be loaded as plugin.\r\n    \r\n## Features：\r\n  1. Compatible to Android 2.3 and later versions\r\n  2. Given its .apk file, the plugged app could be run either independently or as plugin of the host, **NO** source code needed.\r\n  3. Unnecessary to register the plugged app's `Service`、`Activity`、`BroadcastReceiver`、`ContentProvider` in the host.\r\n  4. The plugged app are recognized as *Installed* by the host and other plugged apps\r\n  5. Very low level of code invasion, in deed just one line code to integrate DroidPlugin into the host app.\r\n  6. Complete code level separation between host and plugged apps, only system level message passing method provide by Android allowed.\r\n  7. All system API supported\r\n  8. Resources management are also completely separated between host and plugged apps.\r\n  9. Process management for plugged apps, idle processed of the plugged app will be timely recycled to guarantee minimum memory usage.\r\n  10. Static broadcast of plugged app will be treated as dynamic, thus the static broadcasting will never be trigger if\r\n  the plugged app are not activated.\r\n    \r\n## Usage：\r\n\r\n#### Integrate with the host apps\r\n\r\nIt is very simple integrate Droid Plugin to your proejct：\r\n\r\n1. Import Droid Plugin project to your project as a lib.\r\n\r\n2. Include following attributes in host's `AndroidManifest.xml`：\r\n\t\r\n\t\t\u003capplication android:name=\"com.morgoo.droidplugin.PluginApplication\" \r\n\t\t\tandroid:label=\"@string/app_name\"\r\n\t\t\tandroid:icon=\"@drawable/ic_launcher\" \u003e\r\n\r\n           \r\n3. Or, if you use customized `Application`，add following code in the methods `onCreate` and `attachBaseContext`:\r\n    \r\n\t\t@Override\r\n\t\tpublic void onCreate() {\r\n\t\t\tsuper.onCreate();\r\n\t\t\tPluginHelper.getInstance().applicationOnCreate(getBaseContext()); //must be after super.onCreate()\r\n\t\t}\r\n        \r\n\t\t@Override\r\n\t\tprotected void attachBaseContext(Context base) {\r\n\t\t\tPluginHelper.getInstance().applicationAttachBaseContext(base);\r\n            super.attachBaseContext(base);\r\n\t\t}\r\n\r\n4. Modify the `authorityName` value in `Libraries\\DroidPlugin\\build.gradle` (suggested use your package name)\r\n\r\n#### Install、Uninstall or Upgrade the plugged app：\r\n\r\n1. **Install/Upgrade**, use this method：\r\n \r\n\t\tint PluginManager.getInstance().installPackage(String filepath, int flags);\r\n   \r\n\tFor installation, `filepath` set to path of the .apk file, and `flags` set to 0.\r\n\r\n\tFor upgrade, `filepath` set to path of the .apk file, and  `flags` set to `PackageManagerCompat.INSTALL_REPLACE_EXISTING`.\r\n        \r\n    \r\n2. **Uninstall**, use this method：\r\n\r\n\t\tint PluginManager.getInstance().deletePackage(String packageName,int flags);\r\n\r\n\t`packageName` is package name of the plugged app，`flags = 0`。\r\n\r\n3. **Activate**\r\n\r\n    Just use android's API, same for communication between components.\r\n\t\r\n## FAQ\r\n\t\r\n [FAQ](https://github.com/DroidPluginTeam/DroidPlugin/wiki/FAQ \"FAQ\")\r\n\t\r\n## Remark：\r\n\r\nPlease feel free to [report bugs](https://github.com/Qihoo360/DroidPlugin/issues) or ask for help via email.\r\nQQ Group:318901026\r\n\r\n##Who is using Droid Plugin?\r\n\t\r\n [360 App Store](http://sj.360.cn \"360 App Store\")\r\n\r\n    \r\n### Thanks：\r\n    \r\n    Translated by Ming Song（gnosoir@hotmail.com）    \r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidpluginteam%2Fdroidplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroidpluginteam%2Fdroidplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidpluginteam%2Fdroidplugin/lists"}