Determine if running on a rooted device

后端 未结 24 2571
無奈伤痛
無奈伤痛 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 07:14

    There is Safety Net Attestation API of Google play services by which we can assess the device and determine if it is rooted/tampered.

    Please go through my answer to deal with rooted devices:
    https://stackoverflow.com/a/58304556/3908895

提交回复
热议问题