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.
Related
Hello all!
I was wondering of there is any way to switch.off.the gsm radio of the tab completely and permanently.
I found a solution using service code in the dialer but after resrtarting the device the annoying icon comes back onto the status.bar.
Thanks in advance!
Sent from my GT-P1000 using Tapatalk
Are you trying to convert it to a WiFi only model?
theREDlegion said:
Are you trying to convert it to a WiFi only model?
Click to expand...
Click to collapse
Yup! But would be nice to revert if I change my mind lately
Sent from my GT-P1000 using Tapatalk
Rem-X said:
Yup! But would be nice to revert if I change my mind lately
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
Seen that there are no updates here so I thought I'd stop by and ask how you made out?
If you still haven't done anything about it, have a look at this post
Just got a possible solution from frgking12!
I'll post it here if someone would like to try it:
I used Llama to create an Event called "Start Up" which will automatically turn Airplane Mode ON, wait 1 minute, then turn Wifi ON. This essentially makes it a Wifi only device and conserves battery life. Here are my Llama settings:
Conditions -
Phone Reboot > After Start up
Actions -
Toggle Airplane Mode > Airplane Mode On
Queue another event >
Conditions
Event name > WiFi on
Queue Delay > 1 minute
Actions
Toggle Wifi > WiFi On
Thanks to frgking12 again!
this method of turning airplane mode on and then enabling wifi also makes it so that bluetooth is disabled (and therefor won't work for my needs as I often use my apple wireless (bluetooth) keyboard with it.
unfortunately, it looks as if the post referenced by theREDlegion is a temporary fix that must be done each time you restart.
if anyone has an alternative, I too would appreciate the ability to turn off the gsm radio (and save battery life) as I too have a tmobile sgt and I also choose not to subscrube to 3g service but would rather use wifi all the time.
thanks in advance
Rem-X said:
Just got a possible solution from frgking12!
I'll post it here if someone would like to try it:
I used Llama to create an Event called "Start Up" which will automatically turn Airplane Mode ON, wait 1 minute, then turn Wifi ON. This essentially makes it a Wifi only device and conserves battery life. Here are my Llama settings:
Conditions -
Phone Reboot > After Start up
Actions -
Toggle Airplane Mode > Airplane Mode On
Queue another event >
Conditions
Event name > WiFi on
Queue Delay > 1 minute
Actions
Toggle Wifi > WiFi On
Thanks to frgking12 again!
Click to expand...
Click to collapse
cpgeek said:
this method of turning airplane mode on and then enabling wifi also makes it so that bluetooth is disabled (and therefor won't work for my needs as I often use my apple wireless (bluetooth) keyboard with it.
unfortunately, it looks as if the post referenced by theREDlegion is a temporary fix that must be done each time you restart.
if anyone has an alternative, I too would appreciate the ability to turn off the gsm radio (and save battery life) as I too have a tmobile sgt and I also choose not to subscrube to 3g service but would rather use wifi all the time.
thanks in advance
Click to expand...
Click to collapse
My reference was only for the OP's original request which is an easy way to disable the GSM radio, and EASILY revert back to it working, nothing permanent. There are also widgets to do this but some of them are buggy. The fix outlined works well, the average tab user does not shut off their tabs regularly only the screen. The OP will not find that this is something they would be doing constantly. There are also scripts that can be run at boot, or apps such as Tasker which can automate these tasks.
A permanent fix would be to flash a ROM without a modem, but I'm not sure how you would get rid of the existing one. I'm sure some searching would get you places.
theREDlegion said:
My reference was only for the OP's original request which is an easy way to disable the GSM radio, and EASILY revert back to it working, nothing permanent. There are also widgets to do this but some of them are buggy. The fix outlined works well, the average tab user does not shut off their tabs regularly only the screen. The OP will not find that this is something they would be doing constantly. There are also scripts that can be run at boot, or apps such as Tasker which can automate these tasks.
A permanent fix would be to flash a ROM without a modem, but I'm not sure how you would get rid of the existing one. I'm sure some searching would get you places.
Click to expand...
Click to collapse
ooh, that's an interesting idea. shouldn't it just be a matter of restocking the tab, then flashing overcome (or any other rom of your choice that doesn't integrate the modem software), and simply choosing to not install a radio at that point?
I might experiment with that at some point (has anybody else tried it?)
Unfortunately since I installed GB stock rom my GPS apps don't find satellites at all. Anybody knows a fiy for this? it worked perfectly on froyo.
Sent from my LG-P990 using XDA Premium App
For me "GPS status" (market) helps in these situations (topogigi says the following in the FAQ of his thread, but it should work for you as well):
"If you want a quick fix, you have to sit down in an open space with a large slice of visible sky above you. You should have already installed on your phone a really valuable app called "GPS Status". You haven't got it? Fire up the Market, search it and install it: it's free for everyone. Then turn off wifi and turn on wireless data. Ephemeris data download and position data based on cell triangulation are available only with wireless data enabled and they are inhibited by a special setting in the gps configuration file when wifi is on. Tap the app icon, then look at the status bar: is there a small icon radar-shaped blinking on the status bar (upper part of the screen)?
CASE 1) Yes, I see it! It's blinking continuously!
CASE 2) No, nothing changed.
If your fall in CASE 2, there is really something wrong with GPS on your phone. You can try the following workaround, but if it doesn't work there's no remedy other than filing a bug alert in the thread and patiently wait until the bug will be solved.
WORKAROUND:
- Enter Hidden menu typing 1809#*990# on the phone pad
- Select "GPS Test"
- Go to "SULP Settings" and create a new SLP Server with the following parameters:
name: Nokia
slp address: supl.nokia.com
port: 7275
leave certification file and TLS settings as blank
- go back, and flag "SLP Auto provision" as enabled
- select your APN for SLP from "APN Settings"
- go back 2 times and select "Get position"
- select menu-> start
- at this point, you could notice that no satellite appear. Dont't worry, carry on....
- select menu-> Settings then change some parameters as "Session Type" and "Oper Mode"
- go back and select Stop and Start again
- repeat the last three steps until you get a fix and the gps icon in the status bar remains steady after the fix.
If you fall into CASE 1), look at the yellow bars indicating the number and the signal level of each satellite. When the bars will be more than 4 and the length of each bar will be enough to get a fix (the longer the bars, the stronger the signal), the bars will turn into green and you have got the first fix (how lucky you are, huh?). The time it will take is not fixed, though: it depends on weather, correct download of ephemeris data, radio interferences and so on. So, the bottom line is: BE PATIENT! There is no rule of thumb for measuring the time a fix will take. In some conditions, you will get it in a few seconds, in other conditions it will take minutes. Now that you've got a fix, try to move a little bit around. The radar-shaped icon should be steady now and the bars should remain green. If you see the icon disappearing after the fix, you are falling into CASE 2). Try the workaround mentioned before and if it fails, file a complaint into the thread.
DO NOT FILE A BUG ALERT ON GPS WITHOUT HAVING ALREADY TRIED ALL THE PROCEDURES LISTED ABOVE! It will be simply ignored."
Your device is rooted? Then you could try this with CWM: http://forum.xda-developers.com/showthread.php?t=1066933
Ive had this problem too, on Stock GB ROM.
what I did was installed the 2.1.6 MIUI ROM and edited the GPS settings from there.
The settings I copied was from a Nexus ONE MIUI ROM.
Now it works like a dream.
Thanks for the answers I'll try gps status
Sent from my LG-P990 using XDA Premium App
And no surprise I have got this issue to, since I updated the stock rom (oh joy, thank you so much LG). However, it would get a lock, then drop the lock (within seconds) then search again for a few minutes.. get a lock maybe.. then drop it within seconds.
Now today in the open air, I cannot get a lock.
So.. I downloaded "GPS Status & Toolbox" and because I cannot stand adverts.. I donated the small amount for the program patch to remove adverts ('GPS Status Donation').
I'm now just running this on my phone (but by a window.. to try and get a lock).
Hopefully I can get it working
Many thanks for the tip, I'll let you know either way #
EDIT: Well... it seems I may have been hasty, as I just turned off the wifi and I think that was stopping the GPS from working lol. But anyway.. is there a hack to get the wifi and GPS working together?
hi
I had the same problems as you, with GPS (and some other) issues - I have always been on stock Rom.
then I got fed up with this and decided to try Temasaks Cyanogenmod7 Kang ROM last week - and have not looked back since!
GPS is working within seconds, new cool lock screen, and everything is running much more fluently! Other problems I had are also gone.
battery time is equal or better, as stock!
/René
Well... I don't know what I've done... some fiddling with the GPS options in the hidden menu, and now it is working flawlessly.
Also... I'm on the google supl, and not the nokia one... and it still works fine.
I have made some other changes anyway.. but regardless it basically just seem to take some fiddling with it to get it to work. I now get locks within about 5 to 10 secs even indoors (10 sats seen, 6-8 locked INDOORS!). Hopefully that won't change if I reset the phone.
My settings are:
GPS session type: 'Tracking' (not single fix)
Oper Mode: MS-Based (to help with initial lock, but then use GPS completely)
Horizontal Accuracy: 30 (Stock was 50.. I think this is in metres)
SLP Auto Provision: Enabled (I don't even know what this means!!? lol)
SLP Server Setting: OPEN(Google) (Although I added the nokia one as well)
Auto Cold Start: Disabled
UPDATE: You know what... I thought it was working... so I reset my device with GPS off. When it came on, I tested GPS, and it showed that it was working and see's the satellites. BUT.. in GPS Status Tool, I see that the GPS symbol dissappears, and the 'update' time does not update. So basically.. it's relying on the cell towers rather than the GPS towers. I turned the phone off with GPS enabled... turned on again, and now it's working correctly with GPS doing it's thang. AFter my experiences in being in an office with a terrible signal... I reckon that there is a setting in the code somewhere that doesn't allow the GPS to be used, or it's forcing it to only use tower's and wifi as a means of location, and ignoring the GPS. Very odd. But it works now, as everyone has seen, it's just a shame that what really is quite a fundamental feature of the phone, LG decided not to fix.
It works,thanks. It is wery cloudy but i got gps in 15sec
Sent from my LG-P990 using XDA App
try this too,
turn on your GPS.
reboot your phone (with GPS ON)
try again. see if it can lock faster.
sigelopisan said:
try this too,
turn on your GPS.
reboot your phone (with GPS ON)
try again. see if it can lock faster.
Click to expand...
Click to collapse
That's what I suggested in the update. It's obviously a flaw in the code (thanks LG) that you have to turn the phone on with the GPS enabled for it to work. Now major issue really to leave it enabled anyway, hardly takes any power when not in use, I just wish I knew why this was the case, that you have to have it enabled at power on time. Bizarre.
It's not about being able to 'get a lock', it's about it working at all. If you use GPS status, you will see that it can see satellites and attempt to get your position.. but I reckon what it thinks are sat's are actually the cell towers (When you haven't enabled GPS at boot time).
Background and explanation
Some of our phones and firmware have a bad implementation of the fast dormancy (a function that actually should save us battery). The phone will always check the network status when the phone has a low signal or when calling/texting. This to know when to idle the network connection.
The wake-ups prevent a phone from a long deep sleep and may cause bad battery life. It also polls the network frequently when the screen is on, probably consuming extra battery life. So fixing this might improve your battery life.
I found this thread for the Optimus G: http://forum.xda-developers.com/showthread.php?t=2018894
And got some info out of, tried to apply some of the tips over there myself and I think I found out how to do it for any network provider on any LG phone.
First let me talk about the results; I used to have 300+ wake-ups in 20 minutes from com.android.phone. This in areas where the mobile signal was weak. Now after applying this setting I had only 3 wake-ups in 25 minutes. I was still able to text, call and receive calls, use mobile data, 2G and 3G mode. So after applying this, the phone should still work normally.
Hope this helps for preventing the com.android.phone wake-ups.
It could be that your network is incompatible with these specific settings.
This is currently for STOCK ROM ONLY
Tutorial how to edit manually
Here are the steps, this is for rooted phones only:
- First, know what your mobile network provider is!
- To know this, refer to this list: http://en.wikipedia.org/wiki/Mobile_Network_Code
- From this list, get your MCC and MNC code, make sure it's your country and your mobile network provider.
- Download or use a root file explorer, I use ES File Explorer.
- In the file explorer go to /data/data/com.android.providers.telephony/databases
- Copy the telephony.db file as a backup to your /sdcard or /sdcard/external_sdcard
- Download these 2 apps: aShell and aSQLiteManager
- Start the aShell app.
- Check the 'Root' box.
- Tap 'File Explorer'.
- Tap 'data', then again 'data', then 'com.android.provider.telephony', then 'databases'.
- Tap the 'telephony.db' file.
- Tap 'Yes'.
- Tap 'aSQLiteManager' to open the 'telephony.db' file.
- Tap 'dcm_settings'.
- Tap 'Data'.
- Now search in the list (by tapping 'PgUp or 'PgDn') or you can find your mobile network 'numeric' number. This is the MCC code followed by the MNC code. For example: MCC is 206, MNC is 20, look for the 'numeric' 20620.
- Is it already in the list? Good let's continue. Is it not? We'll get onto that later (see step 'Now if your...').
- Tap 'Edit' on the line where your 'numeric' is listed.
- Edit the following field: 'fastdormancy'.
- Set this value to '0'. *
- Was it already value '0'? Unfortunately this fix is already applied (doesn't apply) or won't make any difference for you.
- Tap 'OK'.
- Now, if your 'numeric' isn't listed, we will add it our-self. If it was, skip this part.
- Tap 'New'.
- Leave this field open (unedited): '_id'
- Fill in these values in the following fields: 'extraid' set the value '0', 'fastdormancy' set the value '0' *, 'ipmtu' set the value '0', 'mpdp' set the value '1'.
- Add your personal mobile network related 'numeric' number in the 'numeric' field.
- Tap 'OK'.
- Go back and save the 'telephoney.db' copy by tapping 'Yes'.
- Reboot your phone!
This is it!
Restore
If you encounter problems with your network, undo the settings or replace the 'telephony.db' with the file that you backed up. Reboot.
Other ways to edit
Thanks to ircalf we have a more simple way to edit this database file:
See his post:
ircalf said:
I've just done this change hoping that it will solve
but I did it on the computer using this program: http://sourceforge.net/projects/sqlitebrowser/?source=dlp
much more convenient
Click to expand...
Click to collapse
*Use different options for fast dormancy
The member ircalf pointed this out. I already tried a few.
This means you could use these other settings for the 'fast dormancy' table:
- 0 (this one I recommend, it's the easiest solution but has some drawbacks that I experienced, read the red text below)
- 1 (I don't recommend this setting -> the phone never goes into deep sleep with data enabled and battery usage is abnormally high, cause a high amount of Partial wake lock's for the RILJ wake lock)
- 1,0,0,1000,5000,420000,5000,5000,1,1,1
- 1,0,0,1000,5000,10000,5000,5000,1,0,1
- 1,0,0,1000,5000,60000,5000,5000,1,1,1
- 1,0,0,1000,5000,300000,5000,5000,1,1,1
Try them out and see what works best for you
I'm going to try custom numbers also to see if that makes any difference.
More details about these numbers thanks to bullghost:
bullghost said:
more description about fastdormancy field in table dcm_settings on database telephony.db :
the value on fastdormancy fields are randomly look like this (depend on mobile network config):
1,0,0,1000,5000,60000,3000,5000,1,1,1
so here the description on each value
1 : Isactive # mean enable or disable fastdormancy
0 : versioning
0 : isdebug mode ?
1000 : weakup timer for checking is datatransfer are available ?
5000 : weakup timer for checking is datatransfer are available ? on condition the fast dormancy fail to detect the datatransfer mode/ Unknown
6000 : FD trigger timer on screen on condition
3000 : FD trigger timer on screen off condition
5000 : FD retry timer
1 : Max retry
1 : isactive in tethering
1 : is active in voice call
all timer value is using millisecond
Click to expand...
Click to collapse
!Known issues!
IMPORTANT!
- Like said above, this could cause problems. Use with caution:
Already known issues for some network providers/users (not all experience these problems! So this fix might work perfectly for you):
- Sygic can't calculate routes: 'Route calculation has failed: discontinuous network [1].' Fixed in Sygic 12.2.2!
- Browsing the internet is sluggish, lags, ... I was able to get this resolved with browser updates and maybe setting the 'extraid' value to '0'.
- When the battery is below 10-5% it looks like the modem has a hard time to 'lock' a mobile signal, this after a reboot and entering the pincode. This doesn't occur that often when not edited.
- When ending a call or rebooting the phone it might give you this message more often. This when trying to call, text or use mobile data: 'Reorganizing internal processes. Please try again after a short while.'
- Phone sometime looses mobile network signal randomly. This happens when you are in an area with not that many antennas.
OK.. what about this apk?
is it doing same thing on nonrooted phones ?
http://forum.xda-developers.com/showthread.php?t=2021248
nomaj said:
OK.. what about this apk?
is it doing same thing on nonrooted phones ?
http://forum.xda-developers.com/showthread.php?t=2021248
Click to expand...
Click to collapse
That's made for AT&T (this is a specific mobile network provider from the US) Optimus G phones.
So I think this one only works for AT&T LG phones. And don't know or root isn't required with that apk. It would surprise me though, in /data/data/ you need root access to modify files.
requieres root?
i dont have problem w/ deep sleep anyway...but would test it.
I might try this...my phone never enters into deep sleep overnight somehow.
i have used this apk, and my com.android.phone alarms are now minimized.
Arne_B said:
Some of our phones and firmware have a bad implementation of the fast dormancy. The phone will always check the network status when the phone has a low signal or when calling/texting.
The wake-ups prevent a phone from a long deep sleep and may cause bad battery life. It also polls the network frequently when the screen is on, probably consuming extra battery life. So fixing this might improve your battery life.
Click to expand...
Click to collapse
I tried your tutorial... so far is OK...
I can honestly say that this tweak worked great for me. After doing so, com.android.phone rarely wakes up anymore. Which is so much better for my battery life.
I'm testing this now. I will report back.
I have been using my fix for a while now. But unfortunately I experienced some drawbacks of this fix. When using the Sygic app I get a 'discontinuous network' error while calculating a route. Followed with a force close.
Browsing with my browser is unresponsive.
Anyone experiencing the same?
I now went back to default and everything is ok again.
Arne_B said:
I have been using my fix for a while now. But unfortunately I experienced some drawbacks of this fix. When using the Sygic app I get a 'discontinuous network' error while calculating a route. Followed with a force close.
Browsing with my browser is unresponsive.
Anyone experiencing the same?
I now went back to default and everything is ok again.
Click to expand...
Click to collapse
I didn't test Sygic... but my browser works ok with fix.
i have about 350 wake-ups i hope it fix it
will report back after a day or so
the wake-ups have dropped to 32 in 2 hour but my phone keep losing signal any solution
heahmad said:
the wake-ups have dropped to 32 in 2 hour but my phone keep losing signal any solution
Click to expand...
Click to collapse
Yeah, if that happens you have to undo the edit or replace the telephony.db file with the backup. Reboot, maybe also switch to airplane mode and back. And everything will work again, but you'll have the wake-ups again also.
I had similar strange behavior.
Probably due to the phone checking the network status less.
Arne_B said:
Yeah, if that happens you have to undo the edit or replace the telephony.db file with the backup. Reboot, maybe also switch to airplane mode and back. And everything will work again, but you'll have the wake-ups again also.
I had similar strange behavior.
Probably due to the phone checking the network status less.
Click to expand...
Click to collapse
I'm testing it over couple of days and i'm relay satisfied with improvident of battery life. Also i didn't notice any signal loss.
I have changed some steps, I've tested with explicitly setting the 'extraid' value also on '0' to see what this does. Seems to work even better for me.
Could some people try and report? Thanks!
See first post for edits.
Arne_B said:
I have changed some steps, I've tested with explicitly setting the 'extraid' value also on '0' to see what this does. Seems to work even better for me.
Could some people try and report? Thanks!
See first post for edits.
Click to expand...
Click to collapse
Well I followed every step of your little tweak and here are the results. By the time I completed the few changes (let's say 5 minutes), I got 300+ wake-ups. Now it's been 10 minutes that I rebooted my phone and I only had 5 wake-ups, that's terrific ! I'll see how it affects the battery life but I'm pretty sure it cannot be bad. And Internet is working pretty well (it updated 2 apps just after reboot). I'll see how it behaves in roaming situations and keep you updated
Good to hear it seems to work
Arne_B said:
Good to hear it seems to work
Click to expand...
Click to collapse
I have an unrooted phone, so cannot use this. Nevertheless, would like to know how to check the no. of wakeups! Pl suggest.
kelly66 said:
I have an unrooted phone, so cannot use this. Nevertheless, would like to know how to check the no. of wakeups! Pl suggest.
Click to expand...
Click to collapse
You can use BetterBatteryStats. But that's a payed app. Or check the android alarms, maybe you can find that over there also:
Arne_B said:
Edit:
Also if you want to dig deeper to find apps that keep the phone awake and thus drain battery you could do this:
Make a dump of the 'Android Alarms', this often shows some more detailed info than BetterBatteryStats.
Ghazkul said:
Connect your phone to a computer and run this:
Code:
adb shell dumpsys alarm > AlarmDump.txt
or download GScript lite and create the following script:
Code:
cd /sdcard
dumpsys alarm > AlarmDump.txt
Note that you probably need root access for the GScript to work. The AlarmDump.txt file will be on your sdcard root directory.
Click to expand...
Click to collapse
Look for the 'wakeups' count number in the 'Alarm Stats:' part of the dump file.
Click to expand...
Click to collapse
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.