[Q] Ask for permission when Bluetooth/Data/Wifi toggled. - Java for Android App Development

Is there any way or any app that could prompt a dialogue box asking user Toggle (Yes/No) or any thing like that when a switch is toggled On.
If there is no such method or app, can someone help me create an app that ask for permission or password when switch is toggled from the status bar.

Related

[Q] Enter password to unlock

I lost the status bar on my Nook Color and I found this thread. Buuut now I tried this and it asks me for a password which I have not set as far as I know. Any ideas? Thanks
For those who have the status bar force close error upon every boot, it's a simple fix but sadly not much talked about.
Simply enable the android unlock feature. Basically right now it is set up to skip the unlock feature when the screen wakes up, making you slide your finger to unlock it. In the tweak settings you can enable it again and voila fixed the problem
Click to expand...
Click to collapse

N9005 - Cerberus / Avast Ant-theft - Hiding the location / GPS icon

Hi,
I've just rooted my n9005 and installed cerberus in system-apps so that it doesn't get wiped out on factory reset. I am using the stock 4.4.2.
1) The problem is that every time I try to track my phone the GPS icon pops up in the notification bar. Moreover, when I roll down the notification bar and press the location tab, it shows some suspicious app trying to get access to the location (System Framework) which may alert the thief. Is there any way to get rid of the location/GPS icon and hide it in the location settings?
2) Is there a way to prevent the thief from flashing a new rom? I remeber reading about some usb-debugging lock but not sure how helpful that would be.
Thanks
silt1 said:
Hi,
I've just rooted my n9005 and installed cerberus in system-apps so that it doesn't get wiped out on factory reset. I am using the stock 4.4.2.
1) The problem is that every time I try to track my phone the GPS icon pops up in the notification bar. Moreover, when I roll down the notification bar and press the location tab, it shows some suspicious app trying to get access to the location (System Framework) which may alert the thief. Is there any way to get rid of the location/GPS icon and hide it in the location settings?
2) Is there a way to prevent the thief from flashing a new rom? I remeber reading about some usb-debugging lock but not sure how helpful that would be.
Thanks
Click to expand...
Click to collapse
Questions should not be posted in General!
Search around about reactivation lock.

"screen overlay detected" even when all are switched off

So, I've just updated to the latest Pure Nexus - did a wipe and clean install - and I'm trying to get my apps set up again, but I can't grant permissions through system settings. If an app actually pops up and requests a permission, I can allow it; but for some apps, this doesn't happen. Home Remote Control, for example, won't request the storage permission it needs to access my ssh key. So I go into settings->apps, find the app, tap permissions, try to enable the storage permission, and..."screen overlay detected". Except there is no screen overlay active. I have disabled every app's "draw over other apps" permission. I even found the "show system" option in the list and disabled all system apps' ability to draw over other apps. At this point, SYSTEMUI can't draw over anything else! And I'm still getting "screen overlay detected" when I try to change permissions. Any advice? Is there another way to manage permissions in Marshmallow (like maybe an xposed module)?
EDIT: Thought I should also mention, the issue persists in Safe Mode.
tardis_42 said:
So, I've just updated to the latest Pure Nexus - did a wipe and clean install - and I'm trying to get my apps set up again, but I can't grant permissions through system settings. If an app actually pops up and requests a permission, I can allow it; but for some apps, this doesn't happen. Home Remote Control, for example, won't request the storage permission it needs to access my ssh key. So I go into settings->apps, find the app, tap permissions, try to enable the storage permission, and..."screen overlay detected". Except there is no screen overlay active. I have disabled every app's "draw over other apps" permission. I even found the "show system" option in the list and disabled all system apps' ability to draw over other apps. At this point, SYSTEMUI can't draw over anything else! And I'm still getting "screen overlay detected" when I try to change permissions. Any advice? Is there another way to manage permissions in Marshmallow (like maybe an xposed module)?
EDIT: Thought I should also mention, the issue persists in Safe Mode.
Click to expand...
Click to collapse
Do you have twilight or lux installed?
The reason it's warning you is BECAUSE they're disabled. Enable all the toggles and the prompts will go away. You can then choose to disable one by one until you figure which app is throwing the error.
Sent from my Nexus 6P using Tapatalk
Turned out to be because GravityBox pie controls were enabled. Doesn't show up in the "draw over" list, but trips the overlay detection regardless. Disabling pie controls in the GravityBox app let me change permissions.
Hi,
Try to flash this by Custom Recovery.
http://www.mediafire.com/?ouxua6rkkagi3g9
tardis_42 said:
Turned out to be because GravityBox pie controls were enabled. Doesn't show up in the "draw over" list, but trips the overlay detection regardless. Disabling pie controls in the GravityBox app let me change permissions.
Click to expand...
Click to collapse
Thanks man. I have been going crazy for the past few days trying to figure this out lol. Just posted asking for help as well. Such a random and rare issue, that i couldnt find anything on it.

[GUIDE] Enable DT2S without entering in conflict with fingerprint unlock [NO ROOT]

How to enable DT2S without entering in conflict with fingerprint unlock​
Hi guys, i recently found a way to enable the DT2S (Double Tap To Sleep) feature on our Honor 8 without giving any administrator permission. As you probably know, when using any application for DT2W it requires the "Device Administrator" permission to immediately lock the screen, but apart the fact that this option could be potentially dangerous, giving administrator permission enables a security measure wich consists in PIN immission right after the screen has been locked (and you try to unlock it with fingerprint). But this method seems to work flawlessy, avoiding the nuisance to insert a PIN everytime the device gets unlocked. The process is quite easy and can be achieved without root, but there are some requirements that i'm going to list below:
You must use Nova Launcher Prime as home screen replacement
You must to be on Android Marshmallow 6.0 or Higher
​
1. Open the Nova Settings and select the "Gestures" option
1. Take a look at the arrow in the first attachment
2. Select the "Double Tap" option when shows up
2. Take a look at the arrow in the second attachment
3. Select the "Shortcut" tab on the right
3. Take a look at the arrow in the third attachment
4. Select the "Lock screen" option
4. Take a look at the arrow in the fourth attachment​
By following the steps above you'll be able to take advantage of the DT2S lock method without compromise the fingerprint unlock function. BTW i don't know if this is a functionality or a bug (i don't think it's a bug), the only thing i know is that it's working good with no problems, also after reboot and shutdown.​
PAY ATTENTION
I'm actually using the BETA 5.5 version of Nova, not tested with regular version​
Hope this post could help someone Enjoy!​
I use Nova Launcher to DT2S without Enable device admin or timeout. Just goto Guesture of Nova Settings, choice shortcut then select Screen Lock. All done
PS:
Ahhh, Your guide like me
blackbuffalo said:
I use Nova Launcher to DT2S without Enable device admin or timeout. Just goto Guesture of Nova Settings, choice shortcut then select Screen Lock. All done
PS:
Ahhh, Your guide like me
Click to expand...
Click to collapse
I didn't understand if the P.S line was sarcasm or not. However if you knew that, good, but not everyone knows that. If you just go in Gestures/Double tap/Nova/Lock screen it doesn't work because ask for admin permission, but if you go in Gestures/Double tap/Shortcuts/Lock screen that works. I just wrote this to help someone who didn't already figured this out

Permission request settings can't verify your response

When he tries to enable the debugging mode he gets a "because an app is obscuring a permission request settings can't verify your response" what to do?
For me it was LMT Launcher that was blocking... Just exit the app and it worked.. maybe some other app you have... Try force closing some app with permission to draw over other apps...and try again...
Polluktus said:
When he tries to enable the debugging mode he gets a "because an app is obscuring a permission request settings can't verify your response" what to do?
Click to expand...
Click to collapse
1. Apps such as Blue light filter apps constantly appear on the top of your screen thus breaking some of the on screen functionalities. Try disabling display over other apps permission of such apps and you should be fine.
2. If you have custom ROM installed such as Resurrection Remix(which was my case) who provides Smart Pixels feature under Settings ->Configurations -> Interface -> Smart Pixels , try disabling that too and you will be able to toggle device admins as well as accessiblity of apps.
3. Also, sometimes it is because of your custom launcher, so try switching to your stock launcher if above solutions don't work.
4. If Accessibility for some apps are on then try disabling them first then try to enable for the apps you wanted to.
P.S. : Of all the above 4 possible solutions, try the ones which are more suitable to your condition. For eg. you can't try solution number 2 if your ROM doesn't have Smart Pixels[\B].
Hope it works.

Categories

Resources