{"id":15130180,"url":"https://github.com/rikkaapps/riru","last_synced_at":"2025-09-28T19:31:25.759Z","repository":{"id":38185275,"uuid":"145406928","full_name":"RikkaApps/Riru","owner":"RikkaApps","description":"Inject into zygote process","archived":true,"fork":false,"pushed_at":"2023-12-24T09:16:43.000Z","size":1315,"stargazers_count":4975,"open_issues_count":1,"forks_count":578,"subscribers_count":193,"default_branch":"master","last_synced_at":"2025-03-20T11:40:42.989Z","etag":null,"topics":["android","riru"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RikkaApps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-20T11:10:27.000Z","updated_at":"2025-03-19T21:49:08.000Z","dependencies_parsed_at":"2024-01-13T18:24:04.062Z","dependency_job_id":"3a7f12ca-be63-455c-837b-cd767003d013","html_url":"https://github.com/RikkaApps/Riru","commit_stats":null,"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/RikkaApps/Riru","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RikkaApps%2FRiru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RikkaApps%2FRiru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RikkaApps%2FRiru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RikkaApps%2FRiru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RikkaApps","download_url":"https://codeload.github.com/RikkaApps/Riru/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RikkaApps%2FRiru/sbom","scorecard":{"id":121012,"data":{"date":"2025-08-11","repo":{"name":"github.com/RikkaApps/Riru","commit":"2d513afd5f4e781026102920fd2fb13cbc0fb1ed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/issue.yml:1","Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 5/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/issue.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/issue.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/RikkaApps/Riru/main.yml/master?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v26.1.7 not signed: https://api.github.com/repos/RikkaApps/Riru/releases/58520534","Warn: release artifact v26.1.4 not signed: https://api.github.com/repos/RikkaApps/Riru/releases/55358637","Warn: release artifact v26.1.3 not signed: https://api.github.com/repos/RikkaApps/Riru/releases/51097941","Warn: release artifact v26.1.2 not signed: https://api.github.com/repos/RikkaApps/Riru/releases/49011430","Warn: release artifact v26.1.1 not signed: https://api.github.com/repos/RikkaApps/Riru/releases/48020784","Warn: release artifact v26.1.7 does not have provenance: https://api.github.com/repos/RikkaApps/Riru/releases/58520534","Warn: release artifact v26.1.4 does not have provenance: https://api.github.com/repos/RikkaApps/Riru/releases/55358637","Warn: release artifact v26.1.3 does not have provenance: https://api.github.com/repos/RikkaApps/Riru/releases/51097941","Warn: release artifact v26.1.2 does not have provenance: https://api.github.com/repos/RikkaApps/Riru/releases/49011430","Warn: release artifact v26.1.1 does not have provenance: https://api.github.com/repos/RikkaApps/Riru/releases/48020784"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T02:25:28.394Z","repository_id":38185275,"created_at":"2025-08-16T02:25:28.394Z","updated_at":"2025-08-16T02:25:28.394Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277422001,"owners_count":25815336,"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-09-28T02:00:08.834Z","response_time":79,"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":["android","riru"],"created_at":"2024-09-26T02:41:03.089Z","updated_at":"2025-09-28T19:31:25.461Z","avatar_url":"https://github.com/RikkaApps.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecated\n\nAll Riru users and Riru modules should migrate to Zygisk.\n\n# Riru\n\nRiru only does one thing, inject into zygote in order to allow modules to run their codes in apps or the system server.\n\n\u003e The name, Riru, comes from a character. (https://www.pixiv.net/member_illust.php?mode=medium\u0026illust_id=74128856)\n\n## Requirements\n\nAndroid 6.0+ devices rooted with [Magisk](https://github.com/topjohnwu/Magisk)\n\n## Guide\n\n### Install\n\n* From Magisk Manager\n\n  1. Search \"Riru\" in Magisk Manager\n  2. Install the module named \"Riru\"\n\n  \u003e The Magisk version requirement is enforced by Magisk Manager. You can check [Magisk's module installer script](https://github.com/topjohnwu/Magisk/blob/master/scripts/module_installer.sh).\n\n* Manually\n\n  1. Download the zip from the [GitHub release](https://github.com/RikkaApps/Riru/releases)\n  2. Install in Magisk Manager (Modules - Install from storage - Select downloaded zip)\n\n### Common problems\n\n* Third-party ROMs have incorrect SELinux rule\n\n  \u003chttps://github.com/RikkaApps/Riru/wiki/Explanation-about-incorrect-SELinux-rules-from-third-party-ROMs-cause-Riru-not-working\u003e\n\n* Have low quality module that changes `ro.dalvik.vm.native.bridge` installed\n\n  **If you are using other modules that change `ro.dalvik.vm.native.bridge`, Riru will not work.** (Riru will automatically set it back)\n\n  A typical example is, some \"optimize\" modules change this property. Since changing this property is meaningless for \"optimization\", their quality is very questionable. In fact, changing properties for optimization is a joke.\n\n## How Riru works?\n\n* How to inject into the zygote process?\n\n  Before v22.0, we use the method of replacing a system library (libmemtrack) that will be loaded by zygote. However, it seems to cause some weird problems. Maybe because libmemtrack is used by something else.\n\n  Then we found a super easy way, the \"native bridge\" (`ro.dalvik.vm.native.bridge`). The specific \"so\" file will be automatically \"dlopen-ed\" and \"dlclose-ed\" by the system. This way is from [here](https://github.com/canyie/NbInjection).\n\n* How to know if we are in an app process or a system server process?\n\n  Some JNI functions (`com.android.internal.os.Zygote#nativeForkAndSpecialize` \u0026 `com.android.internal.os.Zygote#nativeForkSystemServer`) is to fork the app process or the system server process.\n  So we need to replace these functions with ours. This part is simple, hook `jniRegisterNativeMethods` since all Java native methods in `libandroid_runtime.so` is registered through this function.\n  Then we can call the original `jniRegisterNativeMethods` again to replace them.\n  \n## How does Hide works?\n\nFrom v22.0, Riru provides a hidden mechanism (idea from [Haruue Icymoon](https://github.com/haruue)), make the memory of Riru and module to anonymous memory to hide from \"`/proc/maps` string scanning\".\n\n## Build\n\nGradle tasks:\n\n* `:riru:assembleDebug/Release`\n   \n   Generate Magisk module zip to `out`.\n\n* `:riru:pushDebug/Release`\n   \n   Push the zip with adb to `/data/local/tmp`.\n\n* `:riru:flashDebug/Release`\n   \n   Flash the zip with `adb shell su -c magisk --install-module`.\n\n* `:riru:flashAndRebootDebug/Release`\n\n   Flash the zip and reboot the device.\n\n## Module template\n\nhttps://github.com/RikkaApps/Riru-ModuleTemplate\n\n## Module API changes\n\nhttps://github.com/RikkaApps/Riru-ModuleTemplate/blob/master/README.md#api-changes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikkaapps%2Friru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikkaapps%2Friru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikkaapps%2Friru/lists"}