GithubHelp home page GithubHelp logo

mrbimc / runinbackgroundpermissionsetter Goto Github PK

View Code? Open in Web Editor NEW
187.0 187.0 31.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 People

Contributors

adryx92 avatar basemym avatar mrbimc avatar poussinou avatar slimshadys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

runinbackgroundpermissionsetter's Issues

Question

Hi ! I use your app and thank you for your work. I had a mistake with Facebook and Instagram app !? I had App's inn drawer and when I place it in my springboard the App's won't stay ? I search why ?
I use Substratum but I remove theme and it's not Substratum.
I use OnePlus Launcher and test it with Nova and the same won't stay in my springboard.
I don't know if are the background restrict ? I use greenify too.
Thanks

Failing to set "allow" for im.vector.app.debug

The app works fine and I seem to be able to control the setting for most of the other apps.

However, I spotted one app for which it does not work: "Element dbg", aka im.vector.app.debug.

If I flip the switch for that app to "allow", then the RUN_IN_BACKGROUND permission is removed from the output of cmd appops get im.vector.app.debug:

hero2lte:/ # cmd appops get im.vector.app.debug                                      
VIBRATE: allow; time=+1m37s980ms ago; duration=+763ms
READ_CONTACTS: allow; time=+73d3h1m15s212ms ago
WRITE_SETTINGS: default; rejectTime=+26d6h41m15s753ms ago
CAMERA: allow; time=+26d6h40m57s246ms ago; duration=+18s579ms
TAKE_AUDIO_FOCUS: allow; time=+26d6h41m16s385ms ago
WAKE_LOCK: allow; time=+1m26s416ms ago; duration=+16s16ms
TOAST_WINDOW: allow; time=+12d18h9m28s55ms ago; duration=+2s510ms
READ_EXTERNAL_STORAGE: allow; time=+11m38s1ms ago
WRITE_EXTERNAL_STORAGE: allow; time=+11m38s1ms ago

hero2lte:/ # cmd appops get im.vector.app.debug RUN_IN_BACKGROUND                    
No operations.

If I flick it back to "ignore", then the permission is set correctly:

hero2lte:/ # cmd appops get im.vector.app.debug RUN_IN_BACKGROUND
RUN_IN_BACKGROUND: ignore

I can use the adb command line to set "allow", and when I load your app, the state is correctly reflected upon load. But for some reason, the app fails to set "allow" for just "Element dbg", whereas I have been unable to reproduce this problem with any other app setting.

No root option

Many Android phones allow ADB over network.

I don't know if adb itself can be embedded but it it can, then you can trivially connect to localhost:5555 and run the required commands.

Which means your app may work without root.

Showing error although set successfully

I get the "there was an error setting...." even though the permission is set correctly (checked restarting app and also calling appops get com.package.name RUN_IN_BACKGROUND from a root terminal emulator).
When using a terminal emulator i don't get any output to stdout, so I don't see where the bug in the code is.
It may be a good idea to add the result ofoutputString.trim() in the toast when !isSuccess.
Using rooted stock Android 8.0 in a Nexus 5X

BTW, great app!

Can this concept be extended to manage other permissions?

This app is genius, if it could be applied to other permissions as well (internet permission for WiFi and data can be restricted as well on Nougat) it could become a pretty good privacy manager, unifying both a much more simple way of managing AppOps/PrivacyGuard and the easiness of backing up and restoring allowed and denied permissions with apps like TitaniumBackup, Helium, etc. which cannot be used for AppOps or LineageOS's PrivacyGuard.

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.