yanzhenjie/AndPermission

Javayanzhenjie.com/AndPermission

:strawberry: Permissions manager for Android platform.

permissionandroid-permissionruntime-permission
Star 增长趋势
Star
6.6k
Forks
1.1k
周增长
+-1
Issues
172
6.6k6.6k6.6k6.6k
2016年9月2020年1月2023年5月2026年9月
制品库Maven
README

# AndPermission

  1. Request for runtime permissions.
  2. Share private files.
  3. Request to install unknown source apk.
    android.permission.REQUEST_INSTALL_PACKAGES
  4. Request to draw at the top of other apps.
    android.permission.SYSTEM_ALERT_WINDOW
  5. Request to show notifications.
  6. Request to access notifications.
    android.permission.BIND_NOTIFICATION_LISTENER_SERVICE
  7. Request to modify system setting.
    android.permission.WRITE_SETTINGS
AndPermission.with(this)
  .runtime()
  .permission(Permission.Group.STORAGE)
  .onGranted(permissions -> {
    // Storage permission are allowed.
  })
  .onDenied(permissions -> {
    // Storage permission are not allowed.
  })
  .start();

For documentation and additional information see the website.

Download

It only supports androidx, add dependencies in your gradle:

implementation 'com.yanzhenjie:permission:2.0.3'

AndPermission requires at minimum Android 4.0(Api level 14) .

Contributing

Before submitting pull requests, contributors must abide by the agreement .

License

Copyright 2019 Zhenjie Yan

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
相关仓库
Blankj/AndroidUtilCode

:fire: Android developers should collect the following utils(updating).

JavaMavenlibraryApache License 2.0androidapp
blankj.com/2016/07/31/android-utils-code/
33.6k10.6k
apache/casbin

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

GoGo ModulesApache License 2.0casbinaccess-control
casbin.apache.org
20.4k1.8k
spatie/laravel-permission

Associate users with roles and permissions

PHPPackagistlibraryMIT Licenselaravelphp
spatie.be/docs/laravel-permission
13k1.8k
permissions-dispatcher/PermissionsDispatcher

A declarative API to handle Android runtime permissions.

JavaMavenlibraryApache License 2.0androidkotlin
github.com/permissions-dispatcher/PermissionsDispatcher
11.2k1.4k
getActivity/XXPermissions

Android Permissions Framework, Adapt to Android 17

JavaMavenlibraryApache License 2.0permission-androidpermission
6.8k898
Permify/permify

An open-source authorization as a service inspired by Google Zanzibar, designed to build and manage fine-grained and scalable authorization systems for any application. — Permify is now part of FusionAuth 🎉

GoGo ModulesGNU Affero General Public License v3.0access-controlauthorization
permify.co
5.9k323
sparrowcode/PermissionsKit

Universal API for request permission and get its statuses.

SwiftlibraryMIT Licensepermissionpermissions
x.com/sparrowcode_ios
5.8k481
zenstackhq/zenstack

Modern data layer for TypeScript apps - type-safe ORM, built-in access control, automatic query services

TypeScriptnpmlibraryMIT Licensefullstacknextjs
zenstack.dev
2.9k152
apache/casbin-node-casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser

TypeScriptnpmlibraryApache License 2.0casbinnodejs
casbin.org
2.9k231
apache/casbin-jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

JavaMavenlibraryApache License 2.0casbinjava
casbin.org
2.7k491
Baseflow/flutter-permission-handler

Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.

DartlibraryMIT Licenseflutterflutter-plugin
baseflow.com
2.2k968
apache/casbin-pycasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Python

PythonPyPIlibraryApache License 2.0casbinpython
casbin.org
1.8k217