{"id":19196145,"url":"https://github.com/nsneruno/magisk_detector","last_synced_at":"2025-05-09T00:33:26.794Z","repository":{"id":52189819,"uuid":"498367262","full_name":"nsNeruno/magisk_detector","owner":"nsNeruno","description":"Flutter Support for integrating Magisk Detector for Android Application. Based from MagiskDetector.","archived":false,"fork":false,"pushed_at":"2023-08-18T17:15:46.000Z","size":156,"stargazers_count":12,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T10:40:30.486Z","etag":null,"topics":["android","android-library","c","dart","flutter","flutter-library","flutter-plugin","magisk","ndk","root-detection","root-detection-bypass","security"],"latest_commit_sha":null,"homepage":"","language":"C","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/nsNeruno.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2022-05-31T14:19:21.000Z","updated_at":"2025-02-21T04:27:51.000Z","dependencies_parsed_at":"2025-04-20T10:52:09.689Z","dependency_job_id":null,"html_url":"https://github.com/nsNeruno/magisk_detector","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/nsNeruno%2Fmagisk_detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsNeruno%2Fmagisk_detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsNeruno%2Fmagisk_detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsNeruno%2Fmagisk_detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsNeruno","download_url":"https://codeload.github.com/nsNeruno/magisk_detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171166,"owners_count":21865275,"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","android-library","c","dart","flutter","flutter-library","flutter-plugin","magisk","ndk","root-detection","root-detection-bypass","security"],"created_at":"2024-11-09T12:12:48.175Z","updated_at":"2025-05-09T00:33:26.771Z","avatar_url":"https://github.com/nsNeruno.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# magisk_detector\n\nFlutter Support for integrating Magisk Detector for Android Application. Based from [MagiskDetector](https://github.com/vvb2060/MagiskDetector/).\n\n## Warning\n\nCurrently Magisk has been updated further and the source I referenced to hardly has any updates, neither I have the time to research further for this project. Thank you for the understanding.\n\n## Features\n\nThis is a straight adaptation attempt at reproducing the logics from the original creator repository. Allows to perform a check on your Android device if it's currently using Magisk Root Bypassing module.\n\n## Getting started\nAdd to your project via `pubspec.yaml`\n```yaml\nmagisk_detector:\n  git:\n    url: https://github.com/nsNeruno/magisk_detector.git\n```\n\n## Usage\n### Setup your Project\nOn your app's `build.gradle` file, add this line under `android` group, where you can see values like `compileSdkVersion`\n```gradle\nandroid {\n    compileSdkVersion 30\n    // You need to have this version installed on your SDK Manager\n    ndkVersion '25.0.8775105'\n    // ...\n}\n```\nThen on your AndroidManifest.xml (under android/app/src/main/), add this inside the \u003capplication\u003e tag:\n```xml\n\u003cmanifest ...\u003e\n    \u003c!-- Add these 3 properties to your application tag --\u003e\n    \u003capplication ...\n        android:extractNativeLibs=\"true\"\n        android:zygotePreloadName=\"lab.neruno.magisk_detector.AppZygote\"\n        tools:targetApi=\"q\" \u003e\n        \u003c!-- Your application manifest data here --\u003e\n    \n        \u003c!-- Add this to connect to Magisk Detector Remote Service --\u003e\n        \u003cservice\n           android:name=\"lab.neruno.magisk_detector.RemoteService\"\n           android:isolatedProcess=\"true\"\n           android:useAppZygote=\"true\" /\u003e\n    \u003c/application\u003e\n\u003c/manifest\u003e\n```\n\n### Adding the Code\nYou can use it straight away by importing it first.\n```dart\nimport 'package:magisk_detector/magisk_detector.dart';\n```\n### APIs\n```dart\n// Future-then pattern\nMagiskDetector.instance.detectMagisk().then(\n  (isMagiskFound) {\n    /// Do something  \n  },\n);\n// or the async-await pattern\nfinal isMagiskFound = await MagiskDetector.instance.detectMagisk();\nif (isMagiskFound) {\n  /// Do something\n}\n```\n\n## Known Issue\nThis API most likely doesn't work against latest __**DenyList**__ feature of **MagiskHide**.\n\n## Additional information\n\nFurther references and tests are required. Feel free to raise an [issue](https://github.com/nsNeruno/magisk_detector/issues).\n\nAnd big thanks to [vvb2060](https://github.com/vvb2060) for showing the way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsneruno%2Fmagisk_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsneruno%2Fmagisk_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsneruno%2Fmagisk_detector/lists"}