2017-10-08 47 views

回答

1

您可以使用此庫來識別電話是否已根或模擬位置。

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()