Here I'll present you my first Android app that I wanna show the public
It's called WIFIunlocker and can disable your PIN/password lockscreen security for choosen Wi-Fi profiles. When Wi-Fi disconnects lockscreen security will be enabled again.
So for example you can add your home network and then you don't have to enter your PIN/password whenever you are connected to this network.
When Wi-Fi disconnects your PIN/password is enabled again.
But this app can do more, it can disable Bluetooth when your phone connects to one of your saved networks and it can enable Bluetooth and/or disable Wi-Fi when losing connectivity to a network.
You can also add a Wi-Fi profile that only disables Bluetooth, this is great if you have for example a Wi-Fi network at work.
I use it to automatically enable Bluetooth when I'm leaving home and disable it when I'm at work. I have one profile for my home place that disables BT and lockscreen security and a second profile for the coporate Wi-Fi that only disables BT while keeping the lockscreen security enabled.
This app works using the "Device administrator" mode, this means it works only on Android 2.2 and higher.
Also if you want to uninstall it you first have to disable the device admin mode, this can be done in the Android settings or in the app settings. If you don't disable device admin mode the uninstall will fail!
UPDATE 08-15-2011: I uploaded a fixed version that will disable the PIN/password if something went wrong while decrypting the PIN/password. So the worst thing that can happen is that it won't lock your phone at all. Before it was possible that the encrypted string was set as password. If you experience that your phone doesn't lock properly when disabling wifi or connectivity to a trusted network was lost send me a PM.
Since I don't like apps that use many permissions without telling me why, I'll explain you the permissions my app needs to work.
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_NETWORK_STATE
These 2 are for the broadcast receiver so my app knows when you enabled or disabled Wi-Fi, connected to a network or disconnected from a network.
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
These 2 are used to turn BT on/off.
android.permission.CHANGE_WIFI_STATE
This is to disable Wi-Fi if you enabled the option for it.
android.permission.READ_PHONE_STATE
This one is to get the IMEI to secure the password.
android.permission.WAKE_LOCK
Needed if you enable the "Use wake lock" option. Wi-Fi state changes are recognized alot faster with the option enabled but it will drain your battery a bit.
android.permission.WRITE_SETTINGS
This one is used to set the Wi-Fi sleep policy to never sleep while connected to a trusted network.
Since XDA is a great community I'll post the full version for free here but I don't want anybody to make a mirror, add it to a ROM or anything else. This should be the only place to get it for free!
Please donate if you like the app
Thanks to Ben74 and his app Unlock With Wifi. He gave me the idea to make this app because he didn't want to add Bluetooth profile support
If you have downloaded the app before 08-15-2011: Update to the latest version! If you don't want to update but uninstall the app disable device admin in the Android settings (Settings -> Location & security -> Select device administrators) and NOT in the app settings!
Nice bro thanks
Sent from my SGH-T839 using XDA App
So what this application does is just unlocking your phone in save places so you do not have to and when you leave it goes to protected state?
Very good. Any known issues?
Like the guy who can not uninstall it?
As i understand it is so good protested that he slashed the phone and it still asks for the password. It should also give some contact info where to return the phone or who to call if your phone was found.
mahatma said:
So what this application does is just unlocking your phone in save places so you do not have to and when you leave it goes to protected state?
Very good. Any known issues?
Click to expand...
Click to collapse
Exactly, it uses the android lock screen security feature for that. The app just sets the password to nothing while connected to a trusted Wi-Fi network. When the connection is lost it sets the password back to the one you have entered.
Known issue: It seems the first version had a problem sometimes to decrypt the saved password and has set the encrypted string as password. THIS CAN'T HAPPEN ANYMORE WITH THE UPDATED VERSION. If something goes wrong while decrypting it will set an empty password (the phone is not locked).
mahatma said:
Like the guy who can not uninstall it?
As i understand it is so good protested that he slashed the phone and it still asks for the password.
Click to expand...
Click to collapse
If you uninstall the app while not connected to a trusted network the app can't disable/change your password anymore. You can only disable/change the password in the Android Settings then(Settings-> Location & Security -> Change screen lock).
mahatma said:
It should also give some contact info where to return the phone or who to call if your phone was found.
Click to expand...
Click to collapse
I don't think this is something this app should do, you won't have such information when using the normal screen lock security too. Since the app just disables the screen lock security in trusted profiles I don't think this feature is something that this app has to have.
OK i installed the app and now i am i my home secured network and when i am waking the phone it asks me about the password not the pattern i had but i suspest it shuld not ask me for it at all if i am in the trusted network?
mahatma said:
OK i installed the app and now i am i my home secured network and when i am waking the phone it asks me about the password not the pattern i had but i suspest it shuld not ask me for it at all if i am in the trusted network?
Click to expand...
Click to collapse
This does not work for the unlock pattern only for PIN and password. You have to add your network to the trusted networks. Then you pick it from the list and choose what you want when the phone connects to this network.
Sent from my HTC Vision using Tapatalk
Cannot uninstall
Sent from my PG86100 using XDA Premium App
im not trying to be rude, but this app is exactly same as unlock with wifi....
Jbb3393 said:
Cannot uninstall
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
You have to disable device admin mode to uninstall it. You can do this in the app settings or in the Android settings.
Sent from my HTC Vision using Tapatalk
zeke1988 said:
im not trying to be rude, but this app is exactly same as unlock with wifi....
Click to expand...
Click to collapse
No its not exactly the same, with my app you can add wifi profiles that only disable bluetooth. Unlock with wifi just provides the option to disable bt when you lose any wifi connection. I asked Ben74 to add such a feature but he didn't want to. His app has other options like enable/disable gps that I don't need so I didn't add them.
But maybe you should read the whole first post, I have explained it and have thanked Ben74 for the idea.
Sent from my HTC Vision using Tapatalk
Guess what
I attempted to uninstall the app
I switched off administrator mode
uninstalled the all successfully and when it went to lock screen it asks me now for the password?
I am trying to use password that i used during installation and what? Wrong Password
what can be done now?
I am dredding to attempt to uninstall it from my wifes phone.
Any help??
I have uploaded a new version which doesn't have the "unknown password" bug anymore for sure!
If you have downloaded the app before 08-15-2011: Update to the latest version! If you don't want to update but uninstall the app disable device admin in the Android settings (Settings -> Location & security -> Select device administrators) and NOT in the app settings!
I'm trying the app on my Tab right now, thanks for making it available.
If I disable the wifi on the Tab, should the lock/password screen appear the next time I take it out of standby? I just want to test that the app is working as it should.
i managed to switch off screen locking and properly unindtalled the wifilocker but now when i switch on screen lock with pin or password after it goes on it again does not recognise the password or PIN even the app is not installed
What have your app done to my phone??!!
I installed new version and it is the same problem sorry wrong password
i uninstalled it and before that i removed wifi unlocker from (Settings -> Location & security -> Select device administrators) and the same problem.
The question is WHAT this app done to our passwords? and why it can not be undone even by uninstalling the app and reflashing the phone?!!!
whenever you switch on any password or screen lock it does not recognise it when you trying to use it. It is something messed with password encryption algorithm.
I think that if we should to test the app for you and kill our devices there should be better support not once a day
the only difference between the old and new FIXED version that before once i managed to enter the phone i could change the screenlock and just switch it off. Now i can not as it asks about the password so it is even worst than it was.
Any update?
Any help
Any toughts?
Is that app just a prank to see how far will we go in bricking our handhealds?
Wow, I think this app needs to removed right away. It's in a state that it's able to brick devices. Flashing a different rom after wiping everything keeps the unknown password bug in there.
And **** **** piss, what a hassle to contact a mod. Did you notice my post by swearing? Devices became unusable because of this app. Nothing personal to the developer, but it needs more testing! And not to the public anymore.
UKseagull said:
I'm trying the app on my Tab right now, thanks for making it available.
If I disable the wifi on the Tab, should the lock/password screen appear the next time I take it out of standby? I just want to test that the app is working as it should.
Click to expand...
Click to collapse
When you have set up a password in the app it is applied immediately. You can add a WiFi network to the trusted profiles then. If you want to disable the password while connected to this WiFi network you have to pick it in the list and activate "Disable screen lock".
Just bought the mrs a Galaxy S3, she uses Wifi when at home. All the wifi settings are correct including the advanced ones (from the dialer menu). My HTC sensation does exactly the same thing.
Security settings on router are WPA2 AES
melethron said:
Hey,
There was a change in API 12 (Honeycomb and later) with the way "wifi lock" is handled. Even if the sleep policy in settings->wifi->advanced->"Keep wifi on during sleep" is set to "always", wifi will still be in a "low performance mode". This results in throttled speed (f.e: stuttering streaming), high latency (ping your phone) and can even cause disconnects, when the screen is off.
Still this is not bug but a feature of Android and should be addressed by any app that needs full wifi performance. Any app that needs full wifi performance (like streaming or file shearing over wifi) should call for "WIFI_MODE_FULL_HIGH_PERF". This can be found in the official "android developer reference". Before API 12 (honeycomb) an app just needed to call WIFI_MODE_FULL for "wifi lock". If an app isn't coded proberly for honeycomb and ICS and has issue with Wifi performance appart from calling "wifi wake lock", you should report that to the developer of that app.
I still found a simple workaround for scenarious in which this function is not properly called. There is an rather simple widget on google play called "WIFI High Performance Widget". If the widget is enabled, the function WIFI_MODE_FULL_HIGH_PERF is called and the wifi performance is on full speed even when the screen is off. Im not in any way involved in the developement of this app and there might be other apps out there, that could achieve the same (for example: Android Terminal emulator also calls WIFI_MODE_FULL_HIGH_PERF if "wifi lock" is enabled.) Still this widget is the simplest solution i found thus far. Just enable the widget and get full wifi performance when screen is off.
Greetings
melethron
Click to expand...
Click to collapse
Is there any other way round this apart from the above ? Its really annoying that this hasnt been fixed, my HTC sensation is EXACTLY the same.
We both use whatsapp, and its annoying because if we are on wifi messages don't come through until you turn the screen back on, on 3G whatsapp works perfectly when the screen is turned off its just the wifi.
However im on a different network and can't use 3G in the house as there is no signal so i really rely on my phones WIFI
Quick reply, the above "fix" doesn't work either, if the screen is turned off for a few minutes I cant recieve any contact over wifi until I turn the screen back on and wait a while.
So my wifi scans and then autoconnects to any unprotected open wifi network. I live in a city so this means every museum, coffee shop, hotspot, etc., that I pass, the phone auto connects temporarily to that network only to tell me after that it 'smart disconnected' because the signal strength dropped (as I, for example, keep walking down the street).
Some solutions online suggest turning off wifi when I leave my house (not an option), forgetting each network it does this to (not practical), and pulling up an advanced menu that doesn't appear to exist in our touchwiz version of marshmallow.
Anyone have any ideas? I only want to connect to a network automatically if I previously entered a password for it. This is how every other android phone I ever owned did it.
If you go to settings > wifi > more > advanced. You can turn off "network notification" and "hotspot 2.0" that should fix it.
jagsaw said:
If you go to settings > wifi > more > advanced. You can turn off "network notification" and "hotspot 2.0" that should fix it.
Click to expand...
Click to collapse
WiFi Notifications was already off and I don't have hotspot 2.0 (I am on verizon and it looks like they may call it "Passport"), but that is also off.
Any other ideas?
Darn. That's all I know so far. I'm still exploring this thing while trying to figure out my wfii-play store mystery.
Hopefully this isn't one of those 'features' that turns out to be a bug like getting rid of silent mode in lollipop.
Hope someone else comes up with something.
I'm having the same issue as well, but I do not have an advanced setting under more.
Ravin_Dave said:
I'm having the same issue as well, but I do not have an advanced setting under more.
Click to expand...
Click to collapse
Same here, no advanced setting under more. S7 edge exynos Netherlands.
Some apps call for quick connect via Bluetooth and WiFi. There is a setting to disable this.. Sorry but don't remember where is it. Only hint it is hidden well.
Is there such app please?
What do you mean? Do you want the app to disable data when connected to WiFi? If so, your solution is MacroDroid by ArloSoft. You can set a trigger (i.e. Connecting to WiFi, Disconnecting from WiFi) to activate a response (i.e Turning off data, Turning on data) so you can set many different things, not just what you said.
Find it here: https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid
Sent from my LGE VS425PP using XDA Labs
I'm searching also for this, meaning an App where you can manage your data and wifi connection, for example on/off when screen on/off. And for an unrooted device (Custom) ROM.
It maybe only works on rooted phones see https://play.google.com/store/apps/details?id=com.gyagapen.cleverconnectivity ?
EDIT: I tried MacroDroid and Mobile Data Off/On Action gives the message:
requires rooted device or ADB hack to grant permission android.permission.WRITE:SECURE_SETTINGS
The ADB hack seems by using a Google ADB tool from develeoper android area.
I do not like both of those two options, so manual toggle seems to remain the thing.
I'm on CM13 Android 6.0. How can I make Tasker turn 3G on when certain app is open and turn off when certain app isn't open, unless that I turn 3G on? I already tried Secure Settings (don't know if I tried the right option) and Toggle Data 5.0, which gave me the "Can't toggle mobile data. Is your device rooted? Error -2: Command "service" not found" error.
EDIT: Solved, just changed SELinux to permissive.