Skip to content

Commit

Permalink
update 增加云手机识别弹出悬浮窗
Browse files Browse the repository at this point in the history
  • Loading branch information
gallonyin committed May 21, 2023
1 parent c27a8c3 commit 25d1d26
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ import android.content.Context
import android.net.Uri
import android.os.Build
import android.provider.Settings
import com.blankj.utilcode.util.AppUtils
import org.yameida.worktool.utils.envcheck.CheckRoot
import java.lang.reflect.Method

object FlowPermissionHelper {

fun isBlueCloud(): Boolean {
val blueVersionName = AppUtils.getAppInfo("com.blue.backup")?.versionName
return blueVersionName != null
}

fun isXiaoMi(): Boolean {
return checkManufacturer("xiaomi")
}
Expand All @@ -31,6 +37,10 @@ object FlowPermissionHelper {
return true
}

if (isBlueCloud()) {
return true
}

if (isXiaoMi()) {
return isXiaomiBgStartPermissionAllowed(context)
}
Expand Down

0 comments on commit 25d1d26

Please sign in to comment.