android 获取有关拥有root设备的用户数量的统计信息(分析)

ldioqlga  于 2023-05-27  发布在  Android
关注(0)|答案(1)|浏览(151)

我怎样才能得到统计数据,有多少我的用户有root手机?Google/Firebase分析是否会生成此类报告?(我没有使用Google Analytics或Firebase的经验)
我看了以前的stackoverflow文章,但没有帮助。我也在google上查了一下,但什么也没有。

wr98u20j

wr98u20j1#

不幸的是,您必须执行手动操作才能访问这些信息。
例如,您可以编写一个函数来检测根设备并在相关函数中发送事件。
您可以使用下面的代码来检测根设备。

RootBeer rootBeer = new RootBeer(context);
if (rootBeer.isRooted()) {
    //we found indication of root - send firebase event
} else {
    //we didn't find indication of root
}

库:implementation 'com.scottyab:rootbeer-lib:0.1.0'

相关问题