package Ġcom . fs n aj af ali . memory boost . utils Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . pm . PackageManager Ċ import Ġandroidx . core . app . Activity Compat Ċ import Ġandroidx . core . content . Context Compat Ċ Ċ fun Ġis Permission Granted ( context : ĠContext , Ġpermission : ĠString ): ĠBoolean Ċ { ĊĠĠĠ Ġreturn ĠContext Compat . check Self Permission ( context , Ġpermission ) Ġ== ĠPackage Manager . PERMISSION _ GRAN TED Ċ } Ċ Ċ fun Ġrequest Permission ( activity : ĠActivity ?, Ġpermission : ĠString , Ġrequest Code : ĠInt ) Ċ { ĊĠĠĠ ĠActivity Compat . request Permissions ( activity !! , ĠarrayOf ( permission ), Ġrequest Code ) Ċ }