{"package_name":"com.pavelsikun.runinbackgroundpermissionsetter","name":"BackgroundRestrictor","summary":null,"category":"App Manager","icon_url":"/api/icon/com.pavelsikun.runinbackgroundpermissionsetter","latest_version_code":8,"latest_version_name":"1.5.0","apk_url":"/api/apk/com.pavelsikun.runinbackgroundpermissionsetter","apk_size":1125609,"apk_sha256":"bdee8cba340229eb22aec6fad7f36fe220a4eb6938162aedf70cc661f3f4e506","source_kind":"fdroid-repo","repo_slug":"fdroid-archive","last_updated":1779371416,"release_timestamp":1509667200,"description":"Android 7.0 added a new permission called RUN_IN_BACKGROUND, which can restrict\nbackground behavior of apps (blocking broadcast receivers, services, etc.).\nHowever this permission is fully hidden and there's no way to activate it\nbesides using adb commands.\n\nYou can revoke RUN_IN_BACKGROUND permission on any app by executing following\ncommand in the adb shell:\n\ncmd appops set &lt;package_name&gt; RUN_IN_BACKGROUND ignore\n\nTo grant this permission back, one should execute this:\n\ncmd appops set &lt;package_name&gt; RUN_IN_BACKGROUND allow\n\nTo check status of RUN_IN_BACKGROUND permission on any app, one can execute this\ncommand:\n\ncmd appops get &lt;package_name&gt; RUN_IN_BACKGROUND\n\n&lt;package_name&gt; is obviously name of application package, be it\ncom.android.calculator2 or anything else.\n\nBy disabling RUN_IN_BACKGROUND, apps such as Hangouts or Facebook will\ncompletely stop syncing in the background until you open them up. You can find\nmore information about these commands by reading this\n<a href=\"https://www.xda-developers.com/freeze-app-background-processes-without-root-android-nougat\">article</a>.","categories":["App Manager","System"]}