我想知道设备是否已经被root了?我查看了React Native库以及Expo,并没有找到相关内容。
此外,我想要一个在手机上安装的应用程序列表。
我想知道设备是否已经被root了?我查看了React Native库以及Expo,并没有找到相关内容。
此外,我想要一个在手机上安装的应用程序列表。
https://github.com/GantMan/jail-monkey
import JailMonkey from 'jail-monkey'
// is this device JailBroken on iOS/Android?
JailMonkey.isJailBroken()
// Can this device mock location - no need to root!
JailMonkey.canMockLocation()
// Check if device violates any of the above
JailMonkey.trustFall()
// (ANDROID ONLY) Check if application is running on external storage
JailMonkey.isOnExternalStorage()
npm install
后,您需要执行react-native link
,然后进入 iOS 项目并执行pod install
-- 这是我成功的方法。 - Dave B.