ShizuStore

NoMoreBackground

adil192

2.8.2 · GitHub

Download APK
Power management Android 7.0+ 2 months ago GPL-3.0
193 ShizuStore
28.3k GitHub
350 Stars
58 MB Size

More about this app

A fire-and-forget program to stop Android apps from running in the background

NoMoreBackground

A fire-and-forget program to stop Android™ apps from running in the background.

Translate

If you wish to bring NoMoreBackground to more people, please contribute translations on our Weblate page:

Translation status

Install

Get it on F-Droid   Get it on Obtainium   Download for Windows   Download on Flathub

Install NoMoreBackground on...

  1. Linux

    Search for NoMoreBackground in your app store or go to https://flathub.org/apps/com.adilhanney.no_more_background

  2. Windows

    Download the latest NoMoreBackground-Windows-x64.zip, extract it somewhere, and run no_more_background.exe.

  3. Android (no computer needed)

    Setup Shizuku with these instructions: https://shizuku.rikka.app/guide/setup/.

    Then install NoMoreBackground from https://f-droid.org/en/packages/com.adilhanney.no_more_background/

Usage

If using Windows, install adb on your computer. adb is already bundled on Linux so this step isn't necessary.

Connect your Android device to your computer with a cable. In no_more_background, tap your device in the list. If you don't see your device, you may wish to check out Google's troubleshooting guide.

You'll see a list of apps installed on your device. Use the checkboxes to choose which apps can run in the background, and which apps can access data in the background.

That's it! Close no_more_background and move on with your life.

Manual method

no_more_background is just a convenient way to manage all your apps in one place, but you can do the exact same thing manually on the Android device.

For each app:

  1. Open Settings → Apps → [Find your app].
  2. In "App battery usage", disable "Allow background usage".
  3. In "Mobile data usage", disable "Background data".

You have to repeat this process for each app, which quickly becomes tedious. no_more_background exposes these settings all in one page to make the process a little less painful.

Building from source

  1. Install Flutter, e.g. with my script:
    curl -s https://raw.githubusercontent.com/adil192/adil192-linux/main/bootstrap/install_flutter.sh | bash
    
  2. Clone this repository with its submodules:
    git clone --recurse-submodules https://github.com/adil192/no_more_background.git
    cd no_more_background
    
  3. Get the dependencies:
    flutter pub get
    
  4. Build the app:
    flutter build linux
    
  5. Run the app:
    ./build/linux/x64/release/bundle/no_more_background
    

Licenses

Here is a subset of some of the works that are used with NoMoreBackground. Please view the license page in-app for the full list.

  • This repo, except for NoMoreBackground's icon, is licensed under the GPL-3.0-or-later license.
  • Android is a trademark of Google LLC.
  • The green Android robot in NoMoreBackground's icon was reproduced and modified based on work created and shared by Google and used according to terms described in the CC BY 3.0 license. Therefore, the NoMoreBackground icon is also licensed under the CC BY 3.0 license.
  • Illustrations from CocoMaterial under the CC0 1.0 license.
  • App icons from Delta-Icons, licensed under the CC BY-NC-ND 4.0 license.
  • App display names from lawnicons, licensed under the Apache-2.0 license, plus some display names from NoMoreBackground under its GPL-3.0-or-later license.
  • Device images from lineage_wiki, licensed under the MIT license.
  • You can view the full list of licenses in the app by clicking "About this app" then "View licenses".
Close

How Shizuku is used

Can restrict background activity and data, stop, archive and inspect apps via `shizuku.runCommand` shell commands.

This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.

How this app uses Shizuku

On Android, Shizuku runs the app's shell commands on-device so no computer connection is needed.

  • Control background activity: choose reduced, automatic or unrestricted background running for each app, applied with cmd appops set RUN_ANY_IN_BACKGROUND and dumpsys deviceidle whitelist through Shizuku.
  • Restrict background data: turn background mobile data off or on per app, applied with cmd netpolicy restrict-background-blacklist through Shizuku.
  • List installed apps: browse user and system apps and their current background states, read with pm list packages, cmd appops query-op, dumpsys deviceidle whitelist and cmd netpolicy list through Shizuku.
  • Stop running apps: use soft stop and force stop actions to stop an app and its services, run with am stop-app and am force-stop through Shizuku.
  • Archive apps: archive apps to remove APKs while keeping data and request unarchiving to restore them, run with pm archive and pm request-unarchive through Shizuku.
  • View app info: open the system app info page for an app, launched with am start through Shizuku.

Android APIs or commands used

  • pm list packages
  • cmd appops query-op RUN_ANY_IN_BACKGROUND ignore
  • cmd appops set RUN_ANY_IN_BACKGROUND
  • dumpsys deviceidle whitelist
  • cmd netpolicy list restrict-background-blacklist
  • cmd netpolicy add restrict-background-blacklist
  • cmd netpolicy remove restrict-background-blacklist
  • pm archive
  • pm request-unarchive
  • am start
  • am force-stop
  • am stop-app
  • am get-current-user
  • getprop

Notable details

On desktop the same background controls work over a regular ADB connection without Shizuku.

Close

Changelog

What's new for version 2.8.2

  • Fixed the wrong background data toggle being selected #71

Full Changelog: https://github.com/adil192/no_more_background/compare/v2.8.1...v2.8.2

Changes from v2.8.1:

  • Fixed a typo in the background data toggles #71

Full Changelog: https://github.com/adil192/no_more_background/compare/v2.8.0...v2.8.1

Changes from v2.8.0:

  • Converted the long press/right click menu into a dialog.
  • Explanations have been added for each button.
  • Added buttons to stop/force stop an app.
  • Improve transition between pages.
  • Added a Greek translation.
    • i18n: Add Greek by @thanosproatcnb-ops in cc5b9904fd2c34e34a47a0143d5a0bc65fbbe274
    • i18n: Update Greek metadata by @thanosproatcnb-ops in 33c91b035e050a62caf23b09ec153a730b5d3d4b
    • i18n: Update Greek by @thanosproatcnb-ops in 15261e979ed29728834a980dd0dd6fe0b93deec7

Translation status

Full Changelog: https://github.com/adil192/no_more_background/compare/v2.7.1...v2.8.0

Close

Permissions

2 permissions requested

  • com.adilhanney.no_more_background.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • moe.shizuku.manager.permission.API_V23
Close

Sources

5 sources

2.8.2 Universal GitHub · com.adilhanney.no_more_background
Selected Download
2.8.2 x86_64 F-Droid · com.adilhanney.no_more_background · com.adilhanney.no_more_background
Download
2.8.2 x86_64 F-Droid · com.adilhanney.no_more_background · com.adilhanney.no_more_background
Download
2.8.2 arm64-v8a F-Droid · com.adilhanney.no_more_background · com.adilhanney.no_more_background
Download
2.8.2 armeabi-v7a F-Droid · com.adilhanney.no_more_background · com.adilhanney.no_more_background
Download