A Flutter Plugin to check Android device Root status and execute shell commands with root privileges

Overview

root plugin

CodeFactor

A Flutter Plugin to check Android device Root status and Run shell commands in android(only).

This plugin is based on Topjohnwu libsu and Stericson Root Tools.

Usage

To use this plugin, add root as a dependency in your pubspec.yaml file.

 root: ^2.0.2

import it

import 'package:root/root.dart';

Declare a async method to check root status

bool _status = false;

 Future<void> checkRoot() async {
    bool result = await Root.isRooted();
    setState(() {
      _status = result;
    });
  }
  
 later you can use _status in your code to let app know the root status. 
 

Declare a async method to run shell commands

use this function only for short period of processes, don't use for long processes else app may crash
String _result;

 Future<void> setCommand() async {
    String res = await Root.exec(cmd: "cat /proc/version");
    setState(() {
      _result = res;
    });
  }
  
  later you can use the _result in your code to let know the output of the given shell command.
 

issues

  • Please file the issues you found. Thank you.
You might also like...

🚀 Full-Stack Flutter application, encoded using Dart. Utilizes native device features 📷 and stores user data on a local SQFLite database. ✔

great_places_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Jan 24, 2022

The Device Fingerprint tool collects thorough insight about the devices associated to a user.

The Device Fingerprint tool collects thorough insight about the devices associated to a user. Account takeovers and multiple account signups, payments can easily be avoided by applying the Device Fingerprinting module.

Nov 28, 2022

A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Android, Web, Windows, Linux and macOS.

A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Android, Web, Windows, Linux and macOS.

cross_connectivity A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Androi

Nov 15, 2022

A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit

A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit

contacts_service A Flutter plugin to access and manage the device's contacts. Usage To use this plugin, add contacts_service as a dependency in your p

Dec 28, 2022

A Flutter plugin that supports Pangle SDK on Android and iOS.

A Flutter plugin that supports Pangle SDK on Android and iOS.

Thanks for non-commercial open source development authorization by JetBrains. 穿山甲 Flutter SDK `pangle_flutter`是一款集成了字节跳动穿山甲 Android 和 iOS SDK的 Flutter

Dec 2, 2022

A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS

A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS

💳 Paystack Plugin for Flutter A Flutter plugin for making payments via Paystack Payment Gateway. Fully supports Android and iOS. 🚀 Installation To u

Jan 4, 2023

A Flutter plugin for playing music on iOS and Android.

Stereo plugin for Flutter A Flutter plugin for playing music on iOS and Android. Features Play/pause Stop Duration / seek to position Load track from

Sep 24, 2022

A flutter plugin for integrating razorpay payment gateway. Supports Android and iOS.

A flutter plugin for integrating razorpay payment gateway. Supports Android and iOS.

Flutter Razorpay Plugin A flutter plugin for razorpay integration for both android and ios. If you use this library in your app, please let me know an

Dec 13, 2022

A flutter IM plugin for android and ios

flutter_openim_sdk Download demo flutter_openim_widget A flutter IM plugin for android and ios. Getting Started 1,Add dependency in yaml flutter_op

Dec 3, 2021
Comments
  • Clean repository

    Clean repository

    • Updated .gitignore from https://github.com/flutter/flutter/blob/master/.gitignore
    • Added pubspec.lock to .gitignore as suggested by https://dart.dev/guides/libraries/private-files#pubspeclock
    • Removed committed files that should be ignored because of .gitignore
    opened by ilovelinux 0
A Deep Learning Based Attendance System is a mobile application that aims to make it easier for lecturers to check the attendance status of students which are attending the course.

Attendance System / Flutter App A Deep Learning Based Attendance System is a mobile application that aims to make it easier for lecturers to check the

Merthan Kavak 11 Oct 24, 2022
A set of commands for coverage tracefiles manipulation.

Coverage Utils A set of commands for coverage info files manipulation. Installing $ dart pub global activate --source git https://github.com/mrverdant

Karlo Verde 22 Oct 9, 2022
This app is used to download whatsapp status photo and videos

This app is used to download whatsapp status photo and videos. you can upload this app in playstore as well. there are lot's of application available like WhatsApp Story Saver, Story Downloader for whatsapp.

Akram Chauhan 51 Nov 28, 2022
server status & toolbox app using Flutter

Server Monitor & Toolbox A new Flutter project which provide a chart view to display server status data. ScreenShots Milestone SSH connect Server info

Junyuan Feng 30 Dec 19, 2022
Connectionstatusbar - Flutter connection status bar, widget that animates when internet connection changes

connection_status_bar A widget that animates when internet connection changes Getting Started add it to your dependencies then use it anywhere on your

Amir Ghezelbash 112 Nov 23, 2022
A Flutter plugin for retrieving the device locale information.

A Flutter plugin for retrieving the device locale information. Installation Add this to your package's pubspec.yaml file: dependencies: flutter_devi

Florin Bratan 20 Sep 8, 2022
A cross platform plugin for modifying calendars on the user's device

Device Calendar Plugin If you're upgrading to v4.0.0, your previous code will need to be modified (slightly) otherwise it will not run after update. S

Built to Roam 209 Nov 16, 2022
Battery+ is an open source battery info and device info for Android.

Battery+ Battery+ is an open source battery info and device info for Android.

Keshav Pratap K 1 Sep 26, 2022
A shopping cart application that lets the user create an account, select items, save the items in the cart, pay using the payment gateway, change account details and check order history.

Shopping Cart A new Flutter application. The main code file has all the code required for the mobile application. Getting Started This project is a st

null 1 Oct 14, 2021
tool for art challenges check

ArtTime This is a tool for artists to have a simple and fast art challenges check. Links Demo Video Architecture plan Plan (What to expect from this p

null 15 Oct 11, 2021