Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

AndPermission

> 编程语言
Open source

:strawberry: Permissions manager for Android platform.

6.6K stars0 likes2 views
WebsiteGitHub

About

:strawberry: Permissions manager for Android platform.

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
java
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:

groovy
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.

Issues· 176 open

View all issuesOpen on GitHub
  • #691

    Crashes above Android 13

    Updated Mar 11, 2025
  • #690

    来看看这个框架,不只有权限变得简单https://github.com/FlyJingFish/AndroidAOP

    Updated Mar 26, 2024
  • #689

    这个项目彻底废废了,大家不要再使用了

    Updated Mar 10, 2024
  • #631

    最新的2.0.3版本权限请求弹框要好几秒才能弹出

    Updated Aug 16, 2023
  • #688

    android 12 64位系统无法安装

    Updated Aug 16, 2023
  • #675

    android12无法安装应用

    Updated May 20, 2023
  • #682

    设计不合理,已经有权限了就应该直接回调 onGrant,不应该再弹出 “正在请求权限” 的对话框

    Updated Apr 4, 2023
  • #687

    com.yanzhenjie:permission 会没事重启Application,导致意想不到的后果

    Updated Jan 15, 2023
  • #685

    无法安装应用,缺失权限组

    Updated Nov 16, 2022
  • #674

    Error receiving broadcast Intent { act=com.anzh.netflex.andpermission.bridge.Thread-2 flg=0x10 } in com.yanzhenjie.permission.bridge.Messenger@3ea4e77

    Updated Nov 14, 2022

> Tags

Javaandroid-permissionpermissionruntime-permission

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言