GithubHelp home page GithubHelp logo

damianos133eu / runinbackgroundpermissionsetter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrbimc/runinbackgroundpermissionsetter

1.0 0.0 0.0 203 KB

App to set android's hidden RUN_IN_BACKGROUND permission. Requires root.

License: GNU General Public License v3.0

Kotlin 100.00%

runinbackgroundpermissionsetter's Introduction

RunInBackgroundPermissionSetter

Get it on F-Droid

Overview

Android 7.0 added new permission called RUN_IN_BACKGROUND, which can restrict background behavior of apps(blocking broadcast receivers, services, etc.). However this permission is fully hidden and there's no way to activate it besides using adb commands.

You can revoke RUN_IN_BACKGROUND permission on any app by executing following command in the adb shell:

cmd appops set <package_name> RUN_IN_BACKGROUND ignore

To grant this permission back, one should execute this:

cmd appops set <package_name> RUN_IN_BACKGROUND allow

To check status of RUN_IN_BACKGROUND permission on any app, one can execute this command:

cmd appops get <package_name> RUN_IN_BACKGROUND

<package_name> is obviously name of application package, be it com.android.calculator2 or anything else.

By disabling RUN_IN_BACKGROUND, apps such as Hangouts or Facebook will completely stop syncing in the background until you open them up. You can find more information about these commands by reading this xda article.

About this app

Anyway, this app is for those, who don't want to mess with adb shell and input commands manually and prefer to just click on app name to enable/disable it from running in the background. Sadly, android apps are not allowed to implicitely edit permissions of other apps, so this application requires root to overcome it.

Contributors

Pavel Sikun (MrBIMC) - creator of the app

Gianmarco Scarano (SlimShadys) - provided translations for Italian language

basemym - provided translations for Arabic language

ToxxMe - provided translations for German language

Licence is GPLv3

runinbackgroundpermissionsetter's People

Contributors

mrbimc avatar basemym avatar adryx92 avatar slimshadys avatar poussinou avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.