Disable data when my OnePlus is locked - OnePlus 7 Pro Questions & Answers

Is there any solution (without root) to enable data only when my OnePlus isn't locked ?

You can use "Tasker" for this. Best App ever
Tasker is not easy, but very helpfull in many things.
Create a profile.
As trigger: display off
Action: Mobile data -> off
Create another profile.
As trigger: display unlocked
Action: Mobile data -> on
Finished!
Deactivate doze for tasker!
Your project also works with just one profile. This requires variables. At first, however, this is a bit complicated.

Related

[APP] WIFIunlocker

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".

Location & security settings / My Location

Hi all,
On my phone, under Settings -> Location & security settings, I have these two:
Use Wireless networks
(See location in applications (such as Maps) using wireless networks
Use GPS satellites
(Locate to street-level (bla bla...)
When I try to enable any of the above, I get a Location consent message, asking me to Agree/Disagree on Google 's location service to collect anonymous location data.
If I Disagree (which is a natural response to any such privacy invading options), then I cannot enable locating method on this Android phone (mine is Sony Xperia Sola)!
My question is, is that same for any Android phone? Or is this only Sony specific.
Is it possible to remove this behavior?
I think its a total nonsense of how this is implemented.
And I think none of this nonsense should be even allowed to run on a Linux-enabled hardware ...
no. that's on all Androids not just just Sony.

How to disable Android remote administration in CM13?

Just noticed, that ~20% of my battery charge goes to Google Play Services. It looks like remote administration is enabled by default and I can't find settings under "Security" to disable it: I can call to phone from google site, to find it, and I can track the location of the phone, even this is not I specially configured, nor I wish to enable such backdoor and pay my money for electricity to make that works.
So how can I switch this off? I remember in CM12 there were two seperate options: to disable CM remote admin and to disable Google remote admin. Now I can only find one "Remote Adnroid administration", which is NOT enabled in my case.
Even if I enable and then disable it again, I still can do "ring the phone" from PC, remotely.

automatically activate wifi?

Hello
i use an app to automatically activate wifi when my screen is on and i'm home and to disable wifi when my screen is off it worked fine on my old phone and even on my oneplus 6t with android 10. but on my x50 pro it does not work automatically each time a popup asks me manually: the application requires authorization: activate or deactivate wifi: authorize or refuse.
how to delete this request and make it automatic (my phone is root)
I don't have a solution but i have the same problem.
My only 2 cents is that it seems to be mainly linked to the chinese ROM being very "harsh" in blocking everything. Any similar issues i had were solved by using the EU ROM, even with all the other implications of that right now.
i have the eu room and it's the same thing
I was gonna use Tasker to do a similar thing. But that also has that.
There is an option in Developer Options called "Disable Permission Monitoring". Automatic switching of wifi/bluetooth works with this option
Warinator said:
There is an option in Developer Options called "Disable Permission Monitoring". Automatic switching of wifi/bluetooth works with this option
Click to expand...
Click to collapse
that's the solution! thanks
I was wondering what that option was about (it doesn't disable permissions entirely, if someone thought that, i wondered ). Good catch!

Question Tasker - help in writing the first working command.

Hello,
I need little help to make my own, first command in tasker app.
I currently use tasker with command "Turn Off Bluetooth If No Device Connected" [LINK TASKER].
Recently, I have been using the NFC module a lot for the purpose of identity verification (electronic ID card). I always forget to turn them off after using NFC. I think that the command I use for bluetooth may be the same to create a similar one for NFC. It would be great if I could do functions in one command, that NFC turns on when I use the application and turns off when not in use (or when I don't use the application).
I wouldn't like to get into trouble by creating a wrong command, so I'm asking You for help / verification of the command code itself.
Assumptions:
1. If I turn on the XYZ application -> turn on the NFC module.
2. If the NFC module isn't used -> turn off after XYZ minutes of inactivity // or // turn off if I turn off the XYZ applications (we can make two conditions running in parallel in one command?)
Today or tomorrow I will post what I wrote so far so that you can assess / check if there are mistakes
I think that there is it no built in variable for NFC activity.
you can trigger the NFC by Application profile. You may use the "services" button, to make sure that the exit condition will not run while the process is still running.

Categories

Resources