Magisk Module Website Telegram

Brevent Module No root

Brevent is a useful tool for preventing apps from running in the background without requiring root access. Here’s a guide to build a module using Brevent for non-rooted devices.

Building a Non-Root Module with Brevent

Requirements

Steps to Build the Module

  1. Install Brevent:

    • Download and install the Brevent APK on your device.
  2. Enable Developer Options and USB Debugging:

    • Go to Settings > About phone and tap Build number seven times to enable Developer Options.
    • In Settings > Developer Options, enable USB Debugging.
  3. Connect Your Device to PC:

    • Connect your Android device to your PC via USB.
  4. Start Brevent in Non-Root Mode:

    • Open a terminal or command prompt on your PC.

    • Run the following commands to start Brevent:

      adb -d shell sh /data/data/me.piebridge.brevent/brevent.sh
      
  5. Configure Brevent:

    • Open the Brevent app on your device.
    • Configure the apps you want to prevent from running in the background.
    • Save your settings.
  6. Automate the Process (Optional):

    • To automate starting Brevent every time you restart your device, you can create a simple script or use a task automation app like Tasker.
    • For Tasker, you can create a task that runs the ADB command to start Brevent whenever the device reboots.

Creating a Non-Root Module Package

To create a reusable module package for non-root use:

  1. Script for Starting Brevent:

    • Create a script that users can run via ADB to start Brevent.
    #!/bin/sh
    adb -d shell sh /data/data/me.piebridge.brevent/brevent.sh
    

    Save this script as start_brevent.sh.

  2. Instructions for Users:

    • Provide clear instructions on how users can use ADB to run the script and start Brevent.
    # Starting Brevent (Non-Root)
    
    1. Enable Developer Options and USB Debugging on your device.
    2. Connect your device to your PC via USB.
    3. Download and install the Brevent APK.
    4. Run the following command to start Brevent:
    
       ```sh
       adb -d shell sh /data/data/me.piebridge.brevent/brevent.sh
    
    1. Open the Brevent app and configure the apps you want to prevent from running in the background.
  3. Distribute the Module:

    • Package the script (start_brevent.sh) and the instructions together.
    • Share the package with users, providing clear guidance on how to use it.

By following these steps, you can create a non-root module using Brevent to prevent apps from running in the background, providing users with a way to manage their device’s performance without needing root access.

icon sosmed svg icon sosmed svg icon sosmed svg