Adding -temp- allow/deny as default, and invert temp to perm using "remember selection" tick, on ondemand
As the title says, hoping to get the default Allow and Deny options of on demand as -Temporary- Allow and Deny, and having the ability to invert Temporary to Permanent, by ticking a "remember selection" option on the on demand.
edit what i generally mean by temp, is that i want to be -prompted again-, after either a set period of time or maybe an app session, or ideally both options available somehow, session vs 15 sec or even another 5 min option, if that is at all possible, ......jpeg suggested this aspect might be alot of coding, so no worries about 15sec, 5min, session implementation if it is
A few examples and long winded explanations for implementing temporary deny ...AND, -allow-
hollal: ""It's possible you could occasionally wish to allow location access whilst ordinarily restricting/faking.""
"My launcher, Apex, can backup its settings (icon positions/apex settings) on my storage. Now, what i would have liked, is that, when i need apex to access storage in order to backup, i temporary allow it, but once ive done the backup, it defaults to asking again.......certain apps i only need to access certain permissions -some of the time-, without this option, i'd have to either grant apex permanent (all the time access) instead of when its needed, and having the peace of mind that storage is restricted until a user specifically needs it, i dont know if thats making sense, sorry if its not......but i can deffinatly have some uses for this"
"Also temp allowing internet, when you want to use an apps in built update feature
The idea is to always deny, until you need it, where literally open an app go to update/backup/gps feature, app would then ask internet/storage/gps, and if you need it, you would then temporary allow, use, and then the defaults are apllied again after a set amount of time..........alot of these features dont ask for their respective restrictions until ive specifically touched the backup or check for update buttons, not when the app starts, not always but some do, thats personally how i like the apps to behave
just one last note, LBE, when you allowed a permision temporarily, it would stick until the app was closed and restarted(app session), where the prompt would repeat itself, which worked well.........but if there is a chance to ALSO, temp allow for a -shorter period- then session, with xprivacy, that would also be a welcomed additional option, the reason being apex backup and app in built updates tend to last a few seconds, and i might forget to close the app....."
"This works for my apps that require storage access only one time out of ten instances of me using that app, like my launcher, apex, where i could for example, only use its backup feature one time out of ten uses of the app, so i would temp allow that one time, and when i dont need to backup i temp deny, hence the temp deny option, because i need it to deny, but i also need the prompt back, the NEXT time, when in that one time out of ten, i DO need it (temp allow)"
This is basically a very very quick "shortcut", to, going into xprivacy, finding my app, scrolling to restriction, unrestrict, go home, open apex, backup, go back to xprivacy and restrict storage again And i can apply this to many apps and restrictions, internet, storage, su, mic, camera etc etc.......like an "interactive" permissions........i personally would start off by choosing one or two apps, and then test the limits, i.e. conflicts, performance
The problem with storage/media and storage/sdcard is that they can only be applied on app startup, and launchers tend to stick around.
I agree that a temporary allow option could be useful. Another use case. You don't want facebook tracking your location, but when on holiday you like to be able to geotag your posts. So you will often Deny, but sometimes Allow.
yeah, exactly, this wouldnt just be limited to storage, as you pointed out, can be applied to many......and im not to fussed about the storage restriction i used it as an example
Another one being, using es file explorer to browse a network folder, i dont want to permanently allow es file explorer internet, only when i actually want to browse my network folders, hence the temp allow/deny, deny when i dont need it, and allow when i do, and prompt always returns on any temp selection, unless you permanantly allow by checking "remember option"......permanantly allow i can see being used to test which restrictions can or cant be restricted, if app crashes, the next time you start, permanently allow that restriction
edit which reminds me, it was a good idea to include catogory selection on ondemand, i dont bother with individual restrictions in the internet category, as many apps need quite a few from there, so i unrestrict the whole thing(hopefully ill rectify that), so having the abillity to allow/deny whole catagory was a better idea then i originaly did not think :)
The next version will have rewritten on demand logic, so try again.