FORUMS

[APP][Root][7.0+]RunInBackgroundSetter v1.4 :: [25.07.2017]

592 posts
Thanks Meter: 1,747
 
By MrBIMC, Inactive Recognized Developer on 16th July 2017, 07:55 PM
Post Reply Email Thread
3rd February 2020, 08:34 PM |#231  
Senior Member
Thanks Meter: 204
 
More
Quote:
Originally Posted by oF2pks

(Thanks to BackgroundRestrictor code versatility) attached is a fork/hack with all appOps

Thanks very much for the update with filtering.
Would you mind adding an option to show also system apps in the list?
Thanks
4th February 2020, 01:04 AM |#232  
oF2pks's Avatar
Senior Member
Thanks Meter: 959
 
More
Quote:
Originally Posted by theleftykid

Does not work on Pie.. Sad..

These app needs #su granted: for Pie check menu Magisk/#Superuser list.
Quote:
Originally Posted by am1r_5h

great app,
could you extend this app for WAKE_LOCK permission as well - "cmd appops set <package_name> WAKE_LOCK allow/ignore" ?

Attached has WAKE_LOCK plus following added (depending your android device...):
Code:
[sdk],"appOps"
19,VIBRATE</item>
19,SYSTEM_ALERT_WINDOW</item>
19,WAKE_LOCK</item>
23,BODY_SENSORS</item>
26,INSTANT_APP_START_FOREGROUND</item>
28,START_FOREGROUND</item>
29,USE_BIOMETRIC</item>
29,ACTIVITY_RECOGNITION</item>
Spinner is now sorted and minSDK is 22 (Lollipop-mr1), with WAKE_LOCK option at first; there is still an icon/Launcher shortcut for usefullest RUN_IN_BACKGROUND.

@ninestarkoko , with this one, you can use icon/Launcher shortcut or sort option to toggle +/- ☢DARK/System apps (use with extreme caution!).

Edit: useless INSTANT_APP_FOREGROUND_SERVICE & FOREGROUND_SERVICE versus INSTANT_APP_START_FOREGROUND & START_FOREGROUND (ADBungFu-debug3.apk)
Need someone with android10 to report if adb shell appops query-op USE_BIOMETRIC allow is valid ?; and same for ACTIVITY_RECOGNITION ?
Attached Thumbnails
Click image for larger version

Name:	xdaADBungFu2.png
Views:	276
Size:	190.9 KB
ID:	4942267  
Attached Files
File Type: apk ADBungFu-debug3.apk - [Click for QR Code] (4.05 MB, 34 views)
The Following 5 Users Say Thank You to oF2pks For This Useful Post: [ View ] Gift oF2pks Ad-Free
13th February 2020, 06:33 PM |#233  
oF2pks's Avatar
Senior Member
Thanks Meter: 959
 
More
New build : ADBungFu-debug4.apk
- bug rotation fixed
- android10 fixed & missing ACTIVATE_PLATFORM_VPN
- tuned correct detection when appOps are inactive because of default [ignore]_5 & [deny]_4 (deny is for aosp _errored)
Code:
[sdk],?,"appOps"
19,5,WRITE_SMS</item>
21,5,PROJECT_MEDIA</item>
21,5,ACTIVATE_VPN</item>
23,4,MOCK_LOCATION</item>
28,4,MANAGE_IPSEC_TUNNELS</item>
29,4,WRITE_MEDIA_AUDIO</item>
29,4,WRITE_MEDIA_VIDEO</item>
29,4,WRITE_MEDIA_IMAGES</item>
29,4,READ_DEVICE_IDENTIFIERS</item>
29,5,ACTIVATE_PLATFORM_VPN</item>
Like original BackgroundRestrictor, the app use toggle = [allow]/[ignore]
(I)nformation has a reset for all appOps : use with caution, it will wipe all your previous aosp appOps settings, including preferences for apps with alert_window or install_packages or any other granted.

minSDK = 22 ; GPLv3: https://bitbucket.org/oF2pks/adbungf...etter/commits/
Attached Files
File Type: apk ADBungFu-debug4.apk - [Click for QR Code] (4.05 MB, 74 views)
The Following 4 Users Say Thank You to oF2pks For This Useful Post: [ View ] Gift oF2pks Ad-Free
14th February 2020, 01:59 PM |#234  
Senior Member
Thanks Meter: 41
 
More
Quote:
Originally Posted by oF2pks

New build : ADBungFu-debug4.apk
- bug rotation fixed
- android10 fixed & missing ACTIVATE_PLATFORM_VPN
- tuned correct detection when appOps are inactive because of default [ignore]_5 & [deny]_4 (deny is for aosp _errored)
Like original BackgroundRestrictor, the app use toggle = [allow]/[ignore]
(I)nformation has a reset for all appOps : use with caution, it will wipe all your previous aosp appOps settings, including preferences for apps with alert_window or install_packages or any other granted.

minSDK = 22 ; GPLv3: https://bitbucket.org/oF2pks/adbungf...etter/commits/

Amazing, you should make a thread or telegram group for this. Quick question, what the difference between using the option of not allowing an app to run in the background and not allowing wakelock permission? If o dont allow an app to run in the background, can it still cause wakelocks?
The Following 3 Users Say Thank You to dsjd For This Useful Post: [ View ] Gift dsjd Ad-Free
15th February 2020, 01:34 PM |#235  
oF2pks's Avatar
Senior Member
Thanks Meter: 959
 
More
Hope the app will be soon on F-Droid ( @Licaon_Kter ). (For info you can parse your android applications with these 2 fdroid apps : https://forum.xda-developers.com/and...tatic-t3833391
)
Quote:
Originally Posted by dsjd

... not allowing an app to run in the background and not allowing wakelock permission? If o dont allow an app to run in the background, can it still cause wakelocks?

Differs depending every android version; run_in_background is appOps permission-less added in Nougat, but there was also the new Marshmallow active/inactive added functionality (alarms).
Basically run_in_background off can save battery for apps you don't really need every day, whereas wake_lock is a deeper & strategical appOps associated to a permission; restricting it could result in a broken app: don't use on /system apps or apps you depend on.
Unfortunately many fancy fashionable apps are triggering wake_lock to spread adds or sniff analytics & privacy: it's up to you to decide whether or not to try these apps with wake_lock off (or any appops), some apps will remain useful while others could malfunction.

For example: Opera browser is not open source https://forums.opera.com/topic/31982...d-open-source; so I don't really need it but if I can sometimes use it with wake_lock down (and many other appOps like gps, run_in_background, start_foreground ...) it's okay for me to have it installed on my device: data saving or vpn for occasional neutral web surf (?).

As for Marshmallow related active/inactive added functionality (alarms) https://developer.android.com/traini...e/doze-standby , following same #su adb cmd injection, it could be added to fdroid @hcur SuperFreezZ (I will give a try soon : https://gitlab.com/SuperFreezZ/Super...zeUsingRoot.kt)
Code:
$ adb shell dumpsys battery unplug
$ adb shell am set-inactive <packageName> true
Finally, I also worked on my permission explorer Chairlock https://forum.xda-developers.com/and...plete-t3956991 to use #su to toggle permissions off, but wasn't satisfy by final relevance (I may upload on xda only a #su debug version). That's why I move back to ADBungFu here.
Quote:
Originally Posted by oF2pks

For even more privacy, I also built experimental microG Pie GSi with an (infamous) internet & wakelock permissions wide runtime switch, to let end-users decide which app realy deserve them: https://forum.xda-developers.com/sho...7&postcount=66 (no root required !).

Attached Thumbnails
Click image for larger version

Name:	opera2.png
Views:	174
Size:	250.6 KB
ID:	4950899   Click image for larger version

Name:	opera3.png
Views:	172
Size:	165.1 KB
ID:	4950911   Click image for larger version

Name:	wake_lockEx.jpg
Views:	176
Size:	209.2 KB
ID:	4950913  
The Following 3 Users Say Thank You to oF2pks For This Useful Post: [ View ] Gift oF2pks Ad-Free
19th February 2020, 05:24 AM |#236  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by oF2pks

New build : ADBungFu-debug4.apk
- bug rotation fixed
- android10 fixed & missing ACTIVATE_PLATFORM_VPN
- tuned correct detection when appOps are inactive because of default [ignore]_5 & [deny]_4 (deny is for aosp _errored)

Code:
[sdk],?,"appOps"
19,5,WRITE_SMS</item>
21,5,PROJECT_MEDIA</item>
21,5,ACTIVATE_VPN</item>
23,4,MOCK_LOCATION</item>
28,4,MANAGE_IPSEC_TUNNELS</item>
29,4,WRITE_MEDIA_AUDIO</item>
29,4,WRITE_MEDIA_VIDEO</item>
29,4,WRITE_MEDIA_IMAGES</item>
29,4,READ_DEVICE_IDENTIFIERS</item>
29,5,ACTIVATE_PLATFORM_VPN</item>
Like original BackgroundRestrictor, the app use toggle = [allow]/[ignore]
(I)nformation has a reset for all appOps : use with caution, it will wipe all your previous aosp appOps settings, including preferences for apps with alert_window or install_packages or any other granted.

minSDK = 22 ; GPLv3: https://bitbucket.org/oF2pks/adbungf...etter/commits/

How to use this app? Is it similar to WakeBlock?
I wanna use it to save battery drain, can u tell which one is safe to disable?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes