DroidStore

Browse all apps

BackgroundRestrictor

com.pavelsikun.runinbackgroundpermissionsetter
Version1.5.0
Download size1.1 MB
Released2017-11-03
CategoryApp Manager
SourceF-Droid · fdroid-archive
Install via WebUSB Download APK

About BackgroundRestrictor

Android 7.0 added a 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 &lt;package_name&gt; RUN_IN_BACKGROUND ignore To grant this permission back, one should execute this: cmd appops set &lt;package_name&gt; RUN_IN_BACKGROUND allow To check status of RUN_IN_BACKGROUND permission on any app, one can execute this command: cmd appops get &lt;package_name&gt; RUN_IN_BACKGROUND &lt;package_name&gt; 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 <a href="https://www.xda-developers.com/freeze-app-background-processes-without-root-android-nougat">article</a>.

← Back to browse · JSON