{"id":37017359,"url":"https://github.com/euzee/permissionutil","last_synced_at":"2026-01-14T02:00:37.286Z","repository":{"id":144519956,"uuid":"90605496","full_name":"Euzee/permissionUtil","owner":"Euzee","description":"Simple permission helper","archived":false,"fork":false,"pushed_at":"2018-07-10T16:54:52.000Z","size":96,"stargazers_count":64,"open_issues_count":0,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-06-30T14:31:30.681Z","etag":null,"topics":["android","helper","permissions","runtime","runtime-permissions","utils"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Euzee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-08T08:40:22.000Z","updated_at":"2021-11-18T16:32:19.000Z","dependencies_parsed_at":"2026-01-14T02:00:29.939Z","dependency_job_id":null,"html_url":"https://github.com/Euzee/permissionUtil","commit_stats":null,"previous_names":[],"tags_count":8,"template":null,"template_full_name":null,"purl":"pkg:github/Euzee/permissionUtil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euzee%2FpermissionUtil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euzee%2FpermissionUtil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euzee%2FpermissionUtil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euzee%2FpermissionUtil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Euzee","download_url":"https://codeload.github.com/Euzee/permissionUtil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Euzee%2FpermissionUtil/sbom","scorecard":{"id":47162,"data":{"date":"2025-08-11","repo":{"name":"github.com/Euzee/permissionUtil","commit":"179ddffd06e5de291d8145a3ca85322493004ca2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 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-14T22:59:46.019Z","repository_id":144519956,"created_at":"2025-08-14T22:59:46.019Z","updated_at":"2025-08-14T22:59:46.019Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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","helper","permissions","runtime","runtime-permissions","utils"],"created_at":"2026-01-14T02:00:24.622Z","updated_at":"2026-01-14T02:00:37.204Z","avatar_url":"https://github.com/Euzee.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-permissionUtil-blue.svg?style=flat)](https://android-arsenal.com/details/1/5721) [![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) [![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16) [![CircleCI](https://circleci.com/gh/Euzee/permissionUtil/tree/master.svg?style=svg)](https://circleci.com/gh/Euzee/permissionUtil/tree/master)\n\u003cbr\u003e\n\u003ca href=\"http://apptractor.ru/info/articles/interesnyie-materialyi-dlya-razrabotchika-mobilnyih-prilozheniy-163-9-14-maya.html\"\u003e\u003cimg src=\"http://apptractor.ru/logo_trans.png\" height=\"30\" width=\"118\" \u003e\u003c/a\u003e\n\n# permissionUtil\nA simple easy-to-use permission helper for Android. \nNo need to handle result in onActivityResult and passing it to fragment or model.\nPermissionUtil can be used from any place with context only (Activity, Fragment,ViewModel).\n\n``` java\n//Easy to use\nPermissionUtil.locationBoth(context, requestPermissionListener);\n```\n\n## Callback\n\nAdded new `CallbackBuilder` so now you can build `PermissionCallback` with or without granted or denied calls. Also you can set resources for rationale explanation.\n``` java\nnew CallbackBuilder()\n                .onGranted(()-\u003eyourGrantedCall())\n                .onDenied(()-\u003eyourDeniedCall())\n                .withRationale(titleId,messageId)\n                .build();\n```\n\nSimplified callback. Just override method that you need and that's it.\n``` java\npublic abstract class ShortPerCallback implements PermissionCallback {\n\n    @Override\n    public void onPermissionGranted() {\n    }\n\n    @Override\n    public void onPermissionDenied() {\n    }\n   \n}\n```\n\nIf you need to show rationale explanation - you may use `CallbackBuilder` or you need to override `getRationaleTitleId()` and `getRationaleMessageId()` of `PermissionCallback` class if you don't wan't to use builder . Dialog won't be shown if `getRationaleMessageId()` will return `0`.\n\n``` java\n    // default implementation \n    \n    int getRationaleTitleId() {\n        return 0;\n    }\n    \n    int getRationaleMessageId() {\n        return 0;\n    }\n\n```\n\n## Actions\n\nYou can directly use prepared requests like :\n``` java\nPermissionUtil.locationFine(context, requestPermissionListener);\nPermissionUtil.locationCoarse(context, requestPermissionListener);\n```\n\nOr you can request multiple permissions with your group :\n``` java\nPermissionUtil.checkGroup(context, requestPermissionListener,new String[]{Manifest.permission.READ_PHONE_STATE});\n```\n\nList of permissions that could be requested according to [Dangerous permissions](https://developer.android.com/guide/topics/permissions/requesting.html#normal-dangerous) : \n- contactsRead\n- contactsWrite\n- contactsRW\n- calendarRead\n- calendarWrite\n- calendarRW\n- storageRead\n- storageWrite\n- storageRW\n- locationFine\n- locationCoarse\n- locationBoth\n- camera\n- microphone\n- phoneReadState\n- phoneCall\n- phoneReadCallLog\n- phoneWriteCallLog\n- phoneAddVoiceMail\n- phoneSip\n- phoneOutgoing\n- phoneAll\n- sensors\n- smsSend\n- smsReceive\n- smsRead\n- smsWap\n- smsMms\n- smsAll\n- checkGroup\n\n# Download\n\n[ ![Download](https://api.bintray.com/packages/euzee/Libs/permissionUtil/images/download.svg) ](https://bintray.com/euzee/Libs/permissionUtil/_latestVersion) [![](https://jitpack.io/v/Euzee/permissionUtil.svg)](https://jitpack.io/#Euzee/permissionUtil)\n\n``` groovy\nrepositories {\n    // yo can use \n    mavenCentral() // or jcenter()\n    \n    //or direct link to repository or jitpack\n    maven { url  \"http://dl.bintray.com/euzee/Libs\" } // or maven { url \"https://jitpack.io\" }\n}\n(with gradle plugin less then v3 use 'compile' instead of implementation) \nimplementation 'com.github.euzee:permissionUtil:1.0.7'\n```\n\n# License\n\n    Copyright 2017 Euzee, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuzee%2Fpermissionutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feuzee%2Fpermissionutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuzee%2Fpermissionutil/lists"}