Hey ya's.
I've just discovered a problem I was having and was wondering if there's a way around it. Since going to GB I'd offhand noticed that when I opened my navigation apps, or golfshot my tasker profile to turn on GPS wasn't turning it on.
I deleted the profile the other day and started a new one, but when I was setting the task to turn on the GPS when these apps are started I got a message from Tasker that Google has disabled the ability for the gps to be turned on with the apps and that they require the user to in fact turn on the gps themselves.
I find this annoying as I've never had to think about the gps myself, it just went on and off with the apps thanks to good old Tasker.
Don't suppose anyone knows a fix for this or maybe with the heads up someone will go looking? Won't be me 'cause I can't do ****.......
But I can hope someone will find a way.
Android 2.3+ doesn't let apps toggle GPS. This restriction can only be removed by flashing a custom ROM
Hi everybody,
I'm a very interested reader of all the Samsung Ativ - WP8 unlocking/rooting/registry hacking-threads and now am wondering about something:
Will it somehow be possible (or is it already?) to directly change specific phone settings (such as: Bluetooth switch, Airplane Mode switch etc.) through an app?
For an example, i would like to program a NFC-tag to turn on Airplane Mode on the phone; currently it is only possible (due to the os-restrictions) to make the NFC-tag enter the Airplane Mode-settings, but not the switch itself.. Can it maybe be done with a registry entry?
Thanks for your help, I very much appreciate it!
Keep up the awesome work!
Good question. I can look into the Settings apps themselves and see if I can find out how to flip their switch. However, it's probably not a simple registry value.
GoodDayToDie said:
Good question. I can look into the Settings apps themselves and see if I can find out how to flip their switch. However, it's probably not a simple registry value.
Click to expand...
Click to collapse
It will be interesting to see what you come up with...
My biggest pet peeve about WP (aside from the lack of a native GMail client and tiles that are unable to refresh themselves rendering battery level tiles irrelevant) is that it takes me about 20 clicks to do what should take 5... At my place of work we have restricted WiFi (only port 80 and 443, so WiFi calling is a no go), and no signal in the building.... So, when I get to work: Turn WiFi on, turn data off, turn WiFi Calling off, turn Bluetooth off. When I leave work I turn WiFi off, data on. When I get home, I turn WiFi on, data off, WiFi calling on, Bluetooth on.
It's a pain in the ass to go into individual settings menus for each of those.
There's really no point to turning Bluetooth off; the power it requires when not connected is trivial. Even WiFi draws very little when inactive.
Also, I conclude that your job sucks... but yeah, if I can get the toggle controls I will.
It drains massively when BT is in use... WiFi I'm assuming drains because of WiFi calling... I did shorten the steps... Airplane mode on, WiFi on, WiFi calling off... ?
It will drain in a few hours if I leave thing enabled. On android it was due to the IMS connection retrying constantly, and the almost zero cell connection trying to stay registered on the network. Definitely a PITA.
Yeah, Airplane Mode is better than data off if you can't even get enough signal for calls or SMS, because that will in fact drain the battery faster.
I never bothered to disable BlueTooth since the first time I enabled it, and have seen no change in the battery life. It really does appear to be inconsequential, although I suppose I didn't make a thorough study.
...any news?
All I could find is the on/off switch for the service itself, but it doesn't seem to be practical, since I think that the phone has to be restarted every time...
I'm talking about the path HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\, where you can choose the value for the "Start" key of the services, whereas the values 1 to 4 stand for:
Code:
Start REG_DWORD Start constant
Specifies the starting values for the service as follows:
START TYPE LOADER MEANING
0x0 Kernel Represents a part of the
(Boot) driver stack for the boot
(startup) volume and must
therefore be loaded by the
Boot Loader.
0x1 I/O Represents a driver to be loaded
(System) subsystem at Kernel initialization.
0x2 Service To be loaded or started
(Auto load) Control automatically for all startups,
Manager regardless of service type.
0x3 Service Available, regardless of type,
(Load on Control but will not be started until
demand) Manager the user starts it (for example,
by using the Devices icon in
Control Panel).
0x4 Service NOT TO BE STARTED UNDER ANY
(disabled) Control CONDITIONS.
Manager
Don't know if this is anything new at all, but I tested it with the Gyro Sensor (changed the Start Value from 3 to 4) and after reboot the Sensor Emitter-App didn't find it anymore; turned back to Value 3 and after reboot it worked again!
That's a cool find, but probably not super-useful to this purpose; it might let us make a "services.msc"-like app for the phone, at least to control startup and such, but actually starting and stopping the services requires something else again.
Also, another problem I was facing is the fact that every time the phone interacts with a NFC-tag there is a popup asking if the action should really be performed. This is good for some of the cases, but for the Airplane-mode automatic switch it seems a pain to confirm each time you want to switch - as the whole idea behind it was to change it automatically.
Searching for a possible solution for this problem i found this:
Google: search for "that-damn-nfc-alert-after-tapping-tag", first result
(as I am a new user I still can't post links directly)
Code:
//-------------------------WRITING
var dataWriter = new Windows.Storage.Streams.DataWriter();
dataWriter.WriteString("dummy");
//messageType is the key
publishMessageId = mDevice.PublishBinaryMessage("Windows:WriteTag.Text",
dataWriter.DetachBuffer(),
messageTransmitted);
//my MessageTransmittedHandler invokes the StopPublishingMessage(long) method
//-------------------------READING
mDevice.SubscribeForMessage("Windows.Text",
(device, message) =>
{
//do Work
});
Do you think that once we know how the Settings-App flips the switches it would be possible to create a command which doesn't require confirmation? Or would it be necessary to have an app already running in order to perform that switch automatically?
Thanks a lot!
Today I saw the registry keys at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Settings\{1DEF9B7D-2322-40eb-A007-16A75D5CDA62}\ which indicate some specific dll and app-locations for the Airplane Mode:
Code:
Values Type Size Data
String 28 Airplane Mode
Title String 82 @\windows\system32\Settings3Res.dll,-206
Type Integer 4 1
Location String 102 app://5B04B775-356B-4AA0-AAF8-6491FFEA5621/Default
Plugin String 78 {09c51652-2cbc-49d5-883e-20606f9a47bd}
I tried to reach it with Windows.System.Launcher.LaunchUriAsync(new Uri("app://5B04B775-356B-4AA0-AAF8-6491FFEA5621/Default", UriKind.Absolute)); but had no success. There is no error or anything, nothing happens.
Am I going in the wrong direction with this?
Well, at best that would only let you launch the Airplane Mode view, which is already possible in other ways (and I don't think your method works anyhow, because apps can't directly launch other apps unless they have special privileges).
Poking around in the registry is a good call, though. It may be worth looking at the permissions for that app and seeing what it can write to, although it's almost certainly going to be a special service endpoint rather than something convenient like registry value.
I see.. Couldn't the number "-206" be some kind of argument applied on the Settings3Res.dll? Since all settings (wifi, bluetooth, gps etc.) refer to that same dll but seem to have different apps (which I suppose are the pages with the switches).
No. It's an index into the stringtable. Settings3Res.dll is, as its name implies, a resource DLL; it contains no actual executable code.
Ever since the most recent Motorola Assist update I get a constant Notification Nag that I need to turn GPS on for driving assist to work. I am fully aware of that and use taker to turn on GPS when my car bluetooth attaches. Can anyone give any insight into how to make this notification stop? Is there an Xposed module that addresses this or any other way to use assist and driving but not be nagged?
TCommander said:
Ever since the most recent Motorola Assist update I get a constant Notification Nag that I need to turn GPS on for driving assist to work. I am fully aware of that and use taker to turn on GPS when my car bluetooth attaches. Can anyone give any insight into how to make this notification stop? Is there an Xposed module that addresses this or any other way to use assist and driving but not be nagged?
Click to expand...
Click to collapse
Just leave GPS on. It's only in use when an app calls for it so it does not affect battery life...unless you have a bunch of apps that constantly update based on location. You don't have to worry about turning it on and off when you need it.....enabling it on your device only provides access to it from your apps (driving assist, maps, etc..), it doesn't turn it on and it just runs non-stop.
I've just unchecked the "notifications" box in the Assist app info, that solves it for me. If you don't care about it displaying the current profile in the status bar it'll fix ya fine
I have dificulty understanding the "IF" logic.
I tried to turn off WiFi when the screen turns dark only if I am NOT connected to a WiFi hotspot
I know I can do it by creating two profiles and querying their state, but I thought IF should also work, turns out it does not and I'd like to know why it doesn't
So I thought I'd just trythe IF condition in the task and configure a task that tells me the value of the variable %WIFII by popping up the info, but as you can see in the attached screenshots, WiFi is turned off even allthough the variable has a content matching *CONNECTION*
my phone is a rooted Xperia Z3c running 23.5.A.1.291 stock sony firmware
Any thoughts welcome
_Agility_ said:
I have dificulty understanding the "IF" logic.
I tried to turn off WiFi when the screen turns dark only if I am NOT connected to a WiFi hotspot
I know I can do it by creating two profiles and querying their state, but I thought IF should also work, turns out it does not and I'd like to know why it doesn't
So I thought I'd just trythe IF condition in the task and configure a task that tells me the value of the variable %WIFII by popping up the info, but as you can see in the attached screenshots, WiFi is turned off even allthough the variable has a content matching *CONNECTION*
my phone is a rooted Xperia Z3c running 23.5.A.1.291 stock sony firmware
Any thoughts welcome
Click to expand...
Click to collapse
2 things:
- maybe 10s is not long enough? have you tried 20?
- on screen off, Android does not seem to always be able to create a Wi-Fi connection successfully.
I have this problem myself, trying to auto turn on Wi-Fi and connect when I get home.
You can try having this run on screen on (even while locked) to test this.
Maybe someone with better knowledge of how Android system works would have a solution for this?
Thank you for your reply
Screenshots show that the WiFi connection is established successfully, I am trying to find out why some variables can bei used in the if query and others cannot
Regarding your Problem, you could try adding a wake up command at the beginning of your task. I use display dim for this purpouse (needs the secure settings or equivalent plugin)
I have a problem with my recently purchased Tasker app. I tried posting on the official Tasker forum (https://tasker.helprace.com/s1-general/problems/top) but after I would click submit, nothing would come up. If anyone knows how to get in contact with the developers other than leaving a negative review on the Play Store that would be much appreciated.
I have a Samsung Galaxy S9 (not rooted) running whatever the latest version OS (Pie I want to say?).
I have a simple Profile setup to Connect to VPN when Wifi is connected, and Disconnect from VPN when Wifi is disconnected (as an Exit task) using the OpenVPN Tasker Plugin.
On rare occasion, everything works as expected.
Unfortunately, the majority of the time, it will indeed recognize the correct state (Wifi Connected), however, it will not connect to the VPN. When I go into Tasker, I see the Profile is green text, and if I go to More>Run Log I can see that it says something to the extent of:
"Active 2 Wifi Connected" then "Start TaskService" then "Running 3 VPN Connect" then "OK 3.1 VPN Connect.com.ffrog8.openVpnTaskerPlugin\n***\n*!" then "ExitOK 3 VPN Connect" then "Stop TaskService" (this is all in reverse order, since I think the run log puts the newest events at the top, but this is how I read them from bottom up).
Tasker even says 1 Task running on the notification bar on my lock screen. However the VPN is not connected. If I go into Tasker, turn off that profile, then turn it on again (via the toggle switch on the right hand side), the VPN will connect as expected and the run log will say the same exact thing.
Likewise for the Exit Task - when I disconnect from the network Tasker seems to recognize the state just fine (evident in Run Log and notification icon in lock screen), however my VPN remains connected (well my guess is it must disconnect for a short period as I transition from Wifi to 4g).
I have tried waiting a while to see if it's just a time issue, but I could wait hours and it will never trigger one way or the other (VPN Connect or VPN Disconnect). I have tried different Wifi networks. The Wifi State Active = "Any". In Android Settings>Apps>Tasker>Battery the toggle for "Allow background activity" is set to on, Optimize Battery Usage is set to off. Likewise for OpenVpn Tasker Plugin.
*Joao or anyone have any ideas?
Many thanks.
Troubleshooting = Because a Piece of Code went
Sorry to say that it looks like I am the 1st reply, as I have no real training in coding or programming myself.
I too recently began to play with such though with the intent to install it on some family member's devices ? However, like you I have not been able to get my desired automation regular enough to share it. When I 1st downloaded Tasker (I think) it had something about a "community" to share & get help with as well as more.
Trying to be helpful I ran a quick search for the specific site & as usual, Google had to go overboard with the results. Still hoping this will help you sooner as they all focus on that particular program:
https://community.home-assistant.io/t/tutorial-using-the-new-auth-system-with-tasker/82423
Just wondering if all the changes to Android OS as a whole may also have an affect on something minor such as whatever we choose to do with "automation" programming? Have seen throughout various post's & news that sort of thing....
for any other poor soul with the same problem, I read a couple of obscure comments on the interweb that the OpenVPN plugin for Tasker is no longer functioning, and all must be run through the Open VPN Connect app (NOT Open VPN for Android app) using intents. I found a guide once, and am testing it now and will report back if it works more reliably. Thank you Lone wolf for your reply.
just to update the poor souls, using intents like I said seems to work more reliably in terms of connecting to VPN. The only problem is if you go out of wifi range, it disconnects, but then are back within wifi range quickly (like somewhere with bad wifi signal), it will not connect again for some reason.