{"id":18398353,"url":"https://github.com/hacktons/zygote","last_synced_at":"2025-10-10T13:09:51.105Z","repository":{"id":215051409,"uuid":"733780285","full_name":"hacktons/zygote","owner":"hacktons","description":"Small library used to restart android application","archived":false,"fork":false,"pushed_at":"2024-01-02T08:23:39.000Z","size":18414,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T16:15:45.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"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/hacktons.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":"2023-12-20T05:34:35.000Z","updated_at":"2025-03-19T09:40:41.000Z","dependencies_parsed_at":"2024-01-02T08:33:52.207Z","dependency_job_id":null,"html_url":"https://github.com/hacktons/zygote","commit_stats":null,"previous_names":["hacktons/zygote"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hacktons/zygote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacktons%2Fzygote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacktons%2Fzygote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacktons%2Fzygote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacktons%2Fzygote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacktons","download_url":"https://codeload.github.com/hacktons/zygote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacktons%2Fzygote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004065,"owners_count":26083665,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-06T02:21:39.162Z","updated_at":"2025-10-10T13:09:51.065Z","avatar_url":"https://github.com/hacktons.png","language":"Kotlin","readme":"# Zygote\n\nRestart your application programmatically, compact for Android 10(API level 29)\n\n## Sample\n\n| window background      | homepage               | restart homepage       |\n|------------------------|------------------------|------------------------|\n| ![1.png](images/1.png) | ![2.png](images/2.png) | ![1.png](images/3.png) |\n\n## How to use\n\nAdd maven repo and library dependency:\n```groovy\nrepositories {\n    maven {\n        url = uri(\"https://maven.pkg.github.com/hacktons/zygote\")\n    }\n}\n\ndependencies {\n    implementation(\"cn.hacktons:zygote:1.0.0\")\n}\n```\n\nKill process directly:\n\n```kotlin\nApp.restart(context)\n```\n\nKill process by yourself:\n\n```kotlin\nApp.restart(context) {\n    Log.i(tag, \"do some clean task, such as flush pending log request\")\n    // TODO xxx\n    Process.killProcess(Process.myPid())\n}\n```\n## How it works\n\nRestart main process via sub-process instead of AlarmManager.\n\n![zygote-flow.webp](images/zygote-flow.webp)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacktons%2Fzygote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacktons%2Fzygote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacktons%2Fzygote/lists"}