Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if the device is rooted in Flutter [closed]

Is there any plugin in Flutter to check if the device is rooted or not. I'm a beginner in Mobile App Development and as far as I know there are some system directories that need to be searched for su binary.

like image 376
mohdahmed108 Avatar asked Oct 17 '22 13:10

mohdahmed108


1 Answers

There seems to be no plugin for this at this point at https://pub.dartlang.org.

You might be able to create a plugin using native android code and Flutter Platform Channels (Platform Channels -- It's the flexible system used by Flutter that allows you to call platform-specific APIs whether available in Java or Kotlin code on Android, or in ObjectiveC or Swift code on iOS.)

  • For native android code to check if the device is rooted : Determine if running on a rooted device
  • About Flutter Platform channels : https://flutter.io/platform-channels/

Hope this helps!

like image 184
1ujn4s Avatar answered Oct 21 '22 04:10

1ujn4s