add plugin
cordova plugin add cordova-plugin-root-detection
npm i ionic-mtr-root-detection
use plugin
```typescript this.RootDetection.isDeviceRooted().then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
```
import to app.module.ts
```typescript
import { RootDetection } from 'ionic-mtr-root-detection';
providers: RootDetection
```
import to another page