Determine if running on a rooted device

后端 未结 24 2580
無奈伤痛
無奈伤痛 2020-11-22 06:43

My app has a certain piece of functionality that will only work on a device where root is available. Rather than having this feature fail when it is used (and then show an a

24条回答
  •  不要未来只要你来
    2020-11-22 06:47

    RootBeer is a root checking Android library by Scott and Matthew. It uses various checks to indicate whether device is rooted or not.

    Java checks

    • CheckRootManagementApps

    • CheckPotentiallyDangerousAppss

    • CheckRootCloakingApps

    • CheckTestKeys

    • checkForDangerousProps

    • checkForBusyBoxBinary

    • checkForSuBinary

    • checkSuExists

    • checkForRWSystem

    Native checks

    We call through to our native root checker to run some of it's own checks. Native checks are typically harder to cloak, so some root cloak apps just block the loading of native libraries that contain certain key words.

    • checkForSuBinary

提交回复
热议问题