Hi people,
I'm the developer of an application distributed on the market called "Unlock At Home Using Wifi", I've developed this basically because I was tired of having to unlock the phone's dots security pattern in every time and place, specially when I was at secure locations, like home f.e.
The idea of the application is that whenever the phone is connected to a wifi network defined as secure, you'll have to unlock the device just ONCE, and then after disconnection, lock will be again automatically enabled. Also you can define a different wifi sleep policy depending if you are in a secure location or not.
NOTE: I'm deleting my xda-developers account (this thread will stay here I think) but isn't supported for me anymore. If you want to contact me please use the provided email at market. Thanks everyone!
UPDATES
*** version 1.5.9 *** (05/12/2011)
(RECOMMENDED BRANCH)
Free market application link
- Enforced and default activation of "(Wifi) White-Network Always On" option (sleep policy RECOMMENDED), if it's off the application might get some issues.
*** version 1.5.8 *** (04/28/2011)
- Several issues fixed in service (unlock finally holds all the time it shoulds)
- Added option to disable the screen flick on wifi off/screen off locking situations (NOT RECOMMENDED)
*** version 1.5.7 *** (04/25/2011)
- Fixing keyguard
- Better app behavior
*** version 1.5.6 *** (04/11/2011)
Now when app detects a white-list network connection, it'll show a yellow status bar icon, indicating that after unlocking, phone will switch to fixed unlocked status (red icon). Known issue: From time to time, at least in my phone (CM7) keyguard is coming back on his own, it this happens also to you, you'll have to unlock again to fix it, I'm looking for a solution to this... (I feel a bit at the limit of OS posibilities now...)
*** version 1.5.5 ***
More app behavior fix... Hope this is the last. Screen now will flick a little when disconnecting. (it'll fix keygyard state).
Remember now you just have to unlock the device once, when connected to a secure located wifi network. It's safer and fits quite well inside the OS limits.
*** version 1.4 ***
NOTE: This branch is a bit outdated now, the recommended one is the 1.5, try this for curiosity if you want, view the (outdated) source) and so if you want, but this is, I repeat it: OUTDATED.
If you don't like the idea of a totally unlocked device, try this, is only for Android 2.2 onwards, it will change from dotted lock to slide lock on secure locations, requires a rooted phone and installing the app in /system/app.
APK version 1.4 android 2.2+
Github source code repository (v.1.4)
If you don't know how to install this, better go for the 1.5 free market app.
FINAL WORDS
If you find useful this application, please consider a small donation via the donation app. Thank you very much!
Works on Galaxy S! Great app thx! how is the battery drain?
Hi DasPrinzip,
in my experience, almost inexistent, it's just hooked to wifi up/wifi down events, also has a very low memory footprint.... check for yourself
Greetings,
Ruben
Works well on Desire Z CM7 nightly #32
Tested today and no problem yet.
Thanks
fantastic idea. feel like I saw a post here or somewhere else where you were asking opinions on pricing. Did you decide yet if/what you are going to charge for this? This app would make a great partnership with something like widget locker.
ThePitboss said:
fantastic idea. feel like I saw a post here or somewhere else where you were asking opinions on pricing. Did you decide yet if/what you are going to charge for this? This app would make a great partnership with something like widget locker.
Click to expand...
Click to collapse
Thank you ThePitboss, the app is GPL3 free software, may be you saw another app that was inspired on mine, recently on the xda-news ...
You can get the github repo and compile for yourself if you want...
Thanks khroma. Just getting into android development, and it's great to read code for apps like this.
Sent from my PC36100 using XDA App
Unlocking doesn't work affter reboot
It worked successfully for a certain time yesterday, after reboot I realize that the phone get lock even when on wifi whitelist. Then when I unlock the phone, the green lock icon is still there. I have to click on "Tap for modify networks lock configuration" in notification area to unlock the phone again ( I see the red unlock icon in status bar). It works for a few minutes, then it revert back to green lock icon even when unlock.
I'm using the github apk installed with adb push.
Using CM7 nightly #32 on rooted Desire Z
Will try CM7 RC4 today with all the usual wipe dalvick cache etc...
Any Ideas?
No success after upgraded to CM7 RC4 and reinstalled apk. No significant messages in logs. UnlockAtHome icon still switching to green lock even when my sreen is on :-(
droidoz said:
No success after upgraded to CM7 RC4 and reinstalled apk. No significant messages in logs. UnlockAtHome icon still switching to green lock even when my sreen is on :-(
Click to expand...
Click to collapse
I'm sorry droidoz ... if you like the new approach, uninstall the v.1.4 of /system/app space and try the app directly from market. Please tell me what happens there.
Wont install from the Market :-(
droidoz said:
Wont install from the Market :-(
Click to expand...
Click to collapse
Did you delete it first from /system/app?
Steps:
[plug phone]
adb remount
adb shell
cd /system/app
rm UnlockAtHome.apk
exit
Khroma said:
I'm sorry droidoz ... if you like the new approach, uninstall the v.1.4 of /system/app space and try the app directly from market. Please tell me what happens there.
Click to expand...
Click to collapse
It works but reboot erase configs. I went to an internet coffee shop to test it and it last 2 hours without any problem, then I came back at home enter my shema to unlock and it works well. I tried a reboot, then it lost all configs like if it was a new app. I did the same config as the first time: settings wifi always on a you suggested. Waited a few minutes... still working. Did another reboot and lost again my all configs.
Could it be a permission problem? I did a fix permission from recovery, but didn't change anythings.
droidoz said:
Waited a few minutes... still working. Did another reboot and lost again my all configs.
Could it be a permission problem? I did a fix permission from recovery, but didn't change anythings.
Click to expand...
Click to collapse
Weird... yes it seems a permission problem, may be your phone still contains the old /system/app aplication data (?), look in /data/data directory using adb shell, the app id is com.accedo.unlockathome, compare user/permissions of the directory, or if you want to make to make sure the directory is created again (sample commands, take care with this):
[uninstall unlock at home once again, plug your phone]
adb shell
cd /data/data
ls -ld com.accedo.unlockathome
[if you see some dir here delete it with this command:]
rm -rf com.accedo.unlockathome
Install the app again, you'll need to configure your data again but I hope this time you get no issues
Installed from Market for me! Nice app - will try it out over next few days.
Great that your offering is Free / GPL unlike the other one
I am running Pongsters HyperDroidGBX-v11 on an HTC HD2
Cheers
UPDATE
Uninstalled - used 70% battery overnight - normal usage is 3%. I normally turn everything off using a power widget - no WiFi, etc - phone in airplane mode. Despite this left with 9% battery when I woke up - was at 79% 8 hours before going to kip!
Khroma said:
[uninstall unlock at home once again, plug your phone]
adb shell
cd /data/data
ls -ld com.accedo.unlockathome
[if you see some dir here delete it with this command:]
rm -rf com.accedo.unlockathome
Install the app again, you'll need to configure your data again but I hope this time you get no issues
Click to expand...
Click to collapse
ls: com.accedo.unlockathome: No such file or directory.
But there was a file in dalvik-cache which I deleted. Removed copmpletly the app and did a reinstall and it reverted back to the same problem. It works for a few minutes and then locks again. It solved configs problem at reboot, but still no improvement.
droidoz said:
ls: com.accedo.unlockathome: No such file or directory.
But there was a file in dalvik-cache which I deleted. Removed copmpletly the app and did a reinstall and it reverted back to the same problem. It works for a few minutes and then locks again. It solved configs problem at reboot, but still no improvement.
Click to expand...
Click to collapse
Soooo weird... now my only guess is CM7 RC4, I'll try to test this ASAP, when the ROM is available for my phone, sorry for the inconveniences. Please see also my PM.
jellywobbles said:
Great that your offering is Free / GPL unlike the other one
[..]
UPDATE
Uninstalled - used 70% battery overnight - normal usage is 3%. I normally turn everything off using a power widget - no WiFi, etc - phone in airplane mode. Despite this left with 9% battery when I woke up - was at 79% 8 hours before going to kip!
Click to expand...
Click to collapse
Thank you anyway for your confidence and your feedback!
The app it self it's a service that runs only on wifi app - down events, should not drain at all, but I'll check this today
Regards
Khroma said:
Thank you anyway for your confidence and your feedback!
The app it self it's a service that runs only on wifi app - down events, should not drain at all, but I'll check this today
Regards
Click to expand...
Click to collapse
Thanks - if the battery drain can be solved, this will be a brilliant product!
jellywobbles said:
Thanks - if the battery drain can be solved, this will be a brilliant product!
Click to expand...
Click to collapse
Please could help me with this issue checking what process are draining the battery, I've tested it for a few hours and here everything is running ok, just a guess: Did you checked the "white network always on" checkbox? Maybe the problem is some process over-using wifi?
Anyway I'm interested (if you can do some more testing) about what process are draining your battery, you can check it in "About the phone > Battery use"
(I've never seen my process in that list in my phone)
Related
Hi all, I decided to start this thread and help devs (and HTC) to fix some bugs that I noticed on stock 3.32.401.5...
(and don't give me "why don't you root it" advice since this is my bussiness phone so that is not an option)...
This is my list that I noticed within few days of use, feel free to list yours..
1. Missed calls are no longer registered in notification bar, notification pull-down menu or LED (EDIT: there is an option for this and it was turned off so it is not a bug)
2. stock browser sometimes opens random page from history (instead home)
3. when entering system settings (for random option), phone goes to lockscreen instead pressed option (happens randomly)
3. battery life seems to be better on Gingerbread than ICS (this is my subjective opinion, please confirm)
4. video and picture quality seems to be better on Gingerbread than on ICS (although I like new Scenes options )
5. People app links contacts with Facebook by default
6. HTC sense app is approved by Facebook without promting user
7. Although all contacts (in People app) are delinked with Facebook, some contacts in messaging app (SMS) are still linked (very annoying, now i have two different names for same person, one in messaging app and other in People app)
8. searching through contacts displays contacts from Facebook and people app (although it is not linked with FB, FB sync is off - HTC, I DON'T WANT MY PHONE TO BE RAPED BY FB, THERE IS AN APP FOR THAT)
9. Power saver options are missing
10. GPS and WiFi switch are gone from quick settings (in notification pull-down menu)...
11. UI design elements are not consistent (mixture of sense and vanilla ICS)
That it for now (if I missing an option, and mixed it for a bug, please tell me )...
Overall ICS is MUCH better than GB (especially for disable app options, which gave me extra 100mb of free RAM), just needs to be polished a bit...
Edit: it seems that i managed to get rid of fb contacts by removing fb account and signing in again and clicking dont sync (although i did choose not to sync before, but that didnt work first time)
1080p landscape playback = lower framerate than gb
Wysłane z mojego HTC Sensation za pomocą Tapatalk
SMS UI Flick
when open sms viewer on any people, window fast flick every time when page want open, it on stock rom and custom roms
example: click sms icon -> click on any people -. you get very fast open = flick/
need change open animation or remove open animation
Others bugs
Hi,
I've found a bugs :
- Can't set a custom wallpaper in lockscreen
- Random sound issue : only music app, call sound, ringtones and notifications work. Must be restarted to solve this issue for a moment...
- Random vibrates (ghost vibrations) in my pocket
- Exchange mails : The parameter of the message size and number of message will default back after a moment ....
- The weather widgets don't refresh after unlock...
- Sense launcher not locked in memory
- Browser opening the last page all the time...
(sorry for my bad english...)
JeanLuX said:
Hi,
I've found a bugs :
- Can't set a custom wallpaper in lockscreen
Click to expand...
Click to collapse
Yes you can
Sent from my Sensation using xda premium
Can anybody confirm missed calls issue? Edit: it is not a bug, there is an option for this
Jonny said:
Yes you can
Sent from my Sensation using xda premium
Click to expand...
Click to collapse
How can you say that? Have you used his device :L
Joshhedge said:
How can you say that? Have you used his device :L
Click to expand...
Click to collapse
No but I can on mine so that is how I can say that
Sent from my Sensation using xda premium
Battery on gb 16-18 hours average, on ics 6-8 hours...
Fix please, htc...
exxeHR said:
Battery on gb 16-18 hours average, on ics 6-8 hours...
Fix please, htc...
Click to expand...
Click to collapse
I think its just you, most users are getting far better battery life out if ICS than GB
I used to only get 18 hours on GB but now on ICS I can go for up to 28 hours (both on medium usage)
Sent from my Sensation using xda premium
Ok, i'll investigate...i installed current widget and set it to log...
Mobile and wireless connections are turning on without user input.
Data connection is being established even if it was explicitly forbidden during initial setup. Hard reset, even wipe does nothing. I've seen this on multiple vanilla devices (S-ON, no root, never tampered with).
If you don't have good data plan or if you are using prepaid cards, DO NOT upgrade to ICS.
Kybic said:
Mobile and wireless connections are turning on without user input.
Data connection is being established even if it was explicitly forbidden during initial setup. Hard reset, even wipe does nothing. I've seen this on multiple vanilla devices (S-ON, no root, never tampered with).
If you don't have good data plan or if you are using prepaid cards, DO NOT upgrade to ICS.
Click to expand...
Click to collapse
Or you could just, oh I don't know, go into settings and turn it off.
And btw there is a fix by V6-maniac for this
Sent from my Sensation using xda premium
Or you could just, oh I don't know, go into settings and turn it off.
Click to expand...
Click to collapse
If that had worked, would I've bothered to ask? Obviously not. Data connection turns on spontaneously, bypassing any and all settings. Those phones had mobile connections turned off by default.
Thanks for the tip about that fix though, I will look into that.
Edit: If anyone else has the problem, here is the supposed fix.
Kybic said:
If that had worked, would I've bothered to ask? Obviously not. Data connection turns on spontaneously, bypassing any and all settings. Those phones had mobile connections turned off by default.
Thanks for the tip about that fix though, I will look into that.
Edit: If anyone else has the problem, here is the supposed fix.
Click to expand...
Click to collapse
Maybe I should have been a bit clearer. By turn it off I meant in every boot go to settings and turn it off. Annoying yes but your suggestion of "Don't upgrade to ICS is not on decent data plan" was and is a bit extreme.
There are other fixes as well like using juice defender to manage mobile data (I'm sure there are others too but I use JD)
Sent from my Sensation using xda premium
Jonny said:
Maybe I should have been a bit clearer. By turn it off I meant in every boot go to settings and turn it off. Annoying yes but your suggestion of "Don't upgrade to ICS is not on decent data plan" was and is a bit extreme.
There are other fixes as well like using juice defender to manage mobile data (I'm sure there are others too but I use JD)
Sent from my Sensation using xda premium
Click to expand...
Click to collapse
I already had it off and keep turning it off, that is the crux of the issue. Whatever HTC messed up, it completely rendered mobile data connection control useless. I have seen the system-wide use data toggle button turn itself on just after I disabled it. As I understand it, that shouldn't be possible. It's as if some process is overriding user settings at whim.
And that keeps happening, even with juice defender.
I am hoping that this will make situation a bit clearer.
my SD card is being unmount very often!
And it seems that my battery drain was caused by 3rd party apps (astro being n1, folowed by some useless apps)...
17hrs and 45 % battery to go (moderate usage)
Lost SMS messages
After u/g I have lost all my SMS messages from history - ok, not all as a single thread from my daughter shows up with perhaps 50 messages.
I have restored from previous backup and it shows successful restore of 600+ messages, but I can't see them - also the folder option has disappeared?
Kybic said:
Mobile and wireless connections are turning on without user input.
Data connection is being established even if it was explicitly forbidden during initial setup. Hard reset, even wipe does nothing. I've seen this on multiple vanilla devices (S-ON, no root, never tampered with).
If you don't have good data plan or if you are using prepaid cards, DO NOT upgrade to ICS.
Click to expand...
Click to collapse
Confirming same issue, really annoying...and some process is causing awake issues constantly, i did a hard reset before, and didnt add any market apps...
Hi
After getting a Nexus 4, then getting Android 4.2.2, then finding scheduling Airplane mode on and off didn't work anymore, I rooted my Nexus and looked for an application that would work reliably to toggle Airplane mode by set times. After paying for an app that I then found wouldn't reliably switch flight mode on and off, and other apps wanting permissions for everything and/or costing money I set out to do my own.
As I've taken a lot of free apps from the Play Store I've given one back :good:
If anyone is interested in a app that doesn't have unnecessary permissions, doesn't nag to rate it, has no adds, is free, and hopefully works reliably search the Play store for "Timed Toggles" by Ergodicity. You can schedule airplane mode (requires root on android 4.2 up), BlueTooth, Wi-Fi, Account Syncing etc to turn them on and off at set times repeating over selected days of the week.
Any feedback welcome as this is my first app.
The app doesn't use a service so isn't running all the time as it uses the AlarmManager, so will not cause any extra battery drain or use up memory, and if you are turning things off when it isn't a time you would use them, you will of course be saving some battery power.
There are other good apps out there doing the same or better, and this isn't a replacement for the likes of Tasker, but might be preferred if someone doesn't need all the bells and whistles. It also gave me a reason to have a go at making an App.
Many thanks.
Hi
I've updated the app to work with Airplane mode on Android 4.3. Still requires root permissions, and ChainFires SuperSU 1.43 seems to do the trick.
Yes! It's good!
Your app does trick for 4.4.2 custom rom like SlimKat, since slimroms don't use profiles nor profile manager.
I'm assured that it do not spend battery as airplane mode switcher and also as timed automatic brightness switcher.
Keep the good work!
p.s. Any update soon?
Some of battery boosters/saver would kill Timed Toggles from running Widgets also can be nice.
Great app, thank you very much!
Replaces xposed + airplane mode helper + auto airplane mode here. :good:
I would like to translate it to german, is this possible? Edit: Done, send german translation via mail.
Would also be nice to add a shutdown option. I forget often to power off my tablet...
Hi
adeii said:
Yes! It's good!
Your app does trick for 4.4.2 custom rom like SlimKat, since slimroms don't use profiles nor profile manager.
I'm assured that it do not spend battery as airplane mode switcher and also as timed automatic brightness switcher.
Keep the good work!
p.s. Any update soon?
Some of battery boosters/saver would kill Timed Toggles from running Widgets also can be nice.
Click to expand...
Click to collapse
Thank you for the feedback.
Timed Toggles doesn't need to stay in memory to work, it will show up in the cached programs list simply because Android keeps apps in memory so as to avoid having to load them again later to save power.
If the battery saver/task killer does more, for example unloads the app and removes all things that might make it start again, then this will stop these types of apps from working, and you should add Timed Toggles as an exception.
I hope that helps explain it.
Hi
LazyT said:
Great app, thank you very much!
Replaces xposed + airplane mode helper + auto airplane mode here. :good:
I would like to translate it to german, is this possible? Edit: Done, send german translation via mail.
Would also be nice to add a shutdown option. I forget often to power off my tablet...
Click to expand...
Click to collapse
Many thanks for your German translation (sorry only just saw this message).
If possible can we have start and end time along with frequency to continue...Thanks in advance
It is still excellent app for Android 4.4.4 (SlimKat rom)
Thanks again for made it!
That's weird, new 1.5.0 forgets to turn off airplane mode on my Y300, Android 4.4.4 if "postpone if in use" is checked.
Thanks for this small app... wans't working with plain su but after switching to Super SU it works great !
I found it can't reboot in android 4.4.2. other in ok.
could you share the code?
Hello. I have problem with TT and android 6.01. I can't get the airplane mode on and off, it doesn't work. My device if off course rooted.
Edit: I had fight with it 2 days, and now it works great. Thx
Don't work anymore with Nougat 7.1.1
I've just found this app and am testing it on my S3 Mini, so far is working ok but I'd like to toggle the Airplane mode on an hourly basis during the day to keep the phone awake on my Home Signal Femtocell. For some reason both my Samsung phones lose connectivity with the Home Signal, although they both show a full signal.
Is there a config file that I can edit to put all the on / off entries in?
Thanks for the app in any case.
Hello @ergodicity, I just realize today that this app doesn't exist in playstore anymore. Did you retrieve this app or google did it? How come?
Hi
ipoel said:
Hello @ergodicity, I just realize today that this app doesn't exist in playstore anymore. Did you retrieve this app or google did it? How come?
Click to expand...
Click to collapse
I think Google has removed it because it doesn't target the latest API.
As it was a free app and it was increasingly difficult to keep it updated to support various phones and devices which I don't have to test with anyway, I've not updated it in a long time, and it likely needs some work to bring it up to the latest API version. I've left Android development to work on other things so I have no plans to update it, very sorry. I would recommend Phone Schedule (from the play store) for a more capable alternative.
Hi everyone...
I was at the gas station last night, and thought I'd try using NFC/Google Wallet to try paying for something for the first time.
I went in to turn on NFC, and found that the option is completely grayed out. (The button is set to "on", but its grayed out, and cannot be turned off)
Android Beam is disabled/grayed out.
S Beam is enabled, but I can't seem to change it.
Tap and Pay is disabled, and says, "NFC is turned off".
Something is clearly FUBAR'd here.
I've tried rebooting a couple times.
I've tried pulling the battery (yes, its the original OEM battery).
I've tried wiping data for NFC.
I tried re-installing the stock ROM, and it didn't fix anything.
Any other suggestions?
Thanks..
Just a follow up here... I've also tried a complete wipe of the device... still no go.
sloheim said:
Just a follow up here... I've also tried a complete wipe of the device... still no go.
Click to expand...
Click to collapse
Still running ktoonsez kernel ?
DEATHWISH .500 said:
Still running ktoonsez kernel ?
Click to expand...
Click to collapse
Yes.
And when I did a complete wipe and re-install, I was able to verify that its happening with the stock kernel also, so I don't believe it to be a kernel issue.
I was able to try a different battery today... from someone else with an S5, and the same problem exists.
My next step is to try unrooting and going back to complete stock... obviously I'd like to avoid this if at all possible.
Any other suggestions? Anyone?
Well, I did it today.. unrooted, went back to full stock everything... and I still cant change the NFC setting on my S5.
If anyone has any other suggestions, I'm more than open to anything at this point...
sloheim said:
Well, I did it today.. unrooted, went back to full stock everything... and I still cant change the NFC setting on my S5.
If anyone has any other suggestions, I'm more than open to anything at this point...
Click to expand...
Click to collapse
Do you have insurance ? I would think about taking it to a Sprint store and see what they say. You might have a hardware problem
DEATHWISH .500 said:
Do you have insurance ? I would think about taking it to a Sprint store and see what they say. You might have a hardware problem
Click to expand...
Click to collapse
No, but I may get it for this. What a bummer.
Could someone be so kind as to post a copy of their /data/data/com.android.nfc/shared_prefs/SamsungNfcPrefs.xml file for me?
Also, can you tell me if you have an nxpdevicehost.xml file in that same directory?
Thanks!
Here are the latest details. I feel like I'm so close, yet so far.
Background:
When I would reboot my S5, the NFC setting would be set to "On", but disabled and wouldn't let me change it. On top of that, my phone would never go into Deep Sleep. After exhaustive research, it appears that the phone was constantly trying to enable NFC, which prevented it from hitting Deep Sleep.
I've dug thru a lot of the AOSP code, and discovered the following.
- If I change the nfc_on tag from true to false in my NfcServicePrefs.xml, and add a line setting first_boot = false, NFC does not try to turn on when I reboot the next time (This solves my deep sleep problem).
- If I try to manually turn NFC on after that, it gets stuck the same as before I made any changes to the XML file.
- Based on this code, it looks like there is a java call to "mDeviceHost.initialize()". I'm guessing this is where I'm getting borked.
- The initalize function, found here, seems to want a file called NxpDeviceHost.XML. I cannot find this file anyplace on my S5.
My assumption here is that Samsung forked this process and made their own internal changes. I'm looking at AOSP code, but that doesn't help if Samsung changed things on their end.
Can ANYONE help me debug things from here? I'm a developer by trade, but have never worked in JAVA (although I've figured out how to read enough of it to become dangerous). I dont need a lot of hand-holding... just a push in the right direction here.
Thanks!
sloheim said:
Could someone be so kind as to post a copy of their /data/data/com.android.nfc/shared_prefs/SamsungNfcPrefs.xml file for me?
Also, can you tell me if you have an nxpdevicehost.xml file in that same directory?
Thanks!
Click to expand...
Click to collapse
Once I'm off work Friday night I'll get ya a copy of that file if you still need it
DEATHWISH .500 said:
Once I'm off work Friday night I'll get ya a copy of that file if you still need it
Click to expand...
Click to collapse
Still looking for any help I can get. Thanks.
Actually contents of both XML files in the /data/data/com.android.nfc/shared_prefs would be appreciated.
sloheim said:
Still looking for any help I can get. Thanks.
Actually contents of both XML files in the /data/data/com.android.nfc/shared_prefs would be appreciated.
Click to expand...
Click to collapse
Here ya go. Attached is a zip with everything that was in the shared-prefs folder
I have the same issue on an LG-e970. The NFC option is checked and grayed out, I can't change it. It's always been this way since I got the phone. The new problem in the past 48 hours is some OTA update is causing Nfc Service to prevent the phone from sleeping, but I have no idea what it is. I thought maybe Google Wallet so I uninstalled it, but the problem remains. It happened well after the Android 4.4.4 Cm11-M8 update for this phone. I filed a bug at code google dot com bug ID 74037, which this silly forum won't let me post because I'm too new and it doesn't understand the difference between a google code URL and spam.
Weird. So I powered off the phone, let it charge to 100%, booted in safe mode, Settings > Storage > Cache and reset it, rebooted in normal mode, and let the phone sit unused for 1 hour. The problem with Nfc Service is not occurring, the phone is sleeping most of the time now. When I go to Settings > More > NFC is unchecked, not grayed out. Inexplicable, because I've had no way to uncheck it.
So I just checked it, and it immediately grays out so I can't uncheck it again. I'm leaving the phone unused for another hour and see where things are at.
chrismurphy said:
I just checked it, and it immediately grays out so I can't uncheck it again. I'm leaving the phone unused for another hour and see where things are at.
Click to expand...
Click to collapse
Nfc Service is once again the top battery consumer and won't let the system sleep. The bugreport for the state with the problem (in contrast to the report for the state without the problem):
many instances of:
07-24 11:23:16.870 1064 8319 E NFCJNI : emergency_recovery: NFC stack dead-locked
and also
Wake lock 1027 NfcService:mRoutingWakeLock: 1h 6m 26s 537ms (0 times) realtime
Wake lock NfcService:mRoutingWakeLock: 1h 6m 26s 537ms partial (0 times) realtime
Wake Locks: size=1
PARTIAL_WAKE_LOCK 'NfcService:mRoutingWakeLock' (uid=1027, pid=1064, ws=null)
I've booted recovery, formatted /cache and erased Dalvik cache, see where that goes... obviously if I can figure out how to disable the NFC option again, that solves the no sleep problem.
had same issue but with note 3. It was kernel issue so reverted to the previous kernel i was on and its o
Sorry to bring this thread back to life, but I'm having the same issue and would like to know which solution worked out for you. Thanks.
Is it normal for the GPS status icon to always be present in the right side of the status bar on Lollipop (V5.02)?
Location is enabled and is set to high accuracy. No apps are running (or present in the recent apps list) that make constant use of the GPS (IE: Maps).
I'm curious if this is normal behavior on this device. I have 3 other devices to compare to that have the same apps and location settings :
- Galaxy S3 -- Icon is always present when location is enabled (Android 4.4)
- Nexus 5 -- Icon only appears when an app requests use of the GPS (Android 5.1.1)
- Nexus 9 -- Icon only appears when an app requests use of the GPS (Android 5.1.1)
the.teejster said:
Is it normal for the GPS status icon to always be present in the right side of the status bar ?
Location is enabled and is set to high accuracy. No apps are running (or present in the recent apps list) that make constant use of the GPS (IE: Maps).
I'm curious if this is normal behavior on this device. I have 3 other devices to compare to that have the same apps and location settings :
- Galaxy S3 -- Icon is always present when location is enabled (Android 4.4)
- Nexus 5 -- Icon only appears when an app requests use of the GPS (Android 5.1.1)
- Nexus 9 -- Icon only appears when an app requests use of the GPS (Android 5.1.1)
Click to expand...
Click to collapse
It does not turn off automatically unless you are running an app to do so. My battery saver app lets you specify a list of apps that need gps...when I run the app it turns on gps...when the app exits it turns gps off. There is also a free version of it..search for "Greeenpower"...it does require root for an app to toggle gps under lollipop.
Thanks for the reply but I didn't think that applied to Android V4.x and UP.
You are supposed to be able to keep your location toggle set on ON all the time and Android is supposed to only enable it when an app requests it.. I can clearly see this behaviour on both my Nexus devices running lollipop.
Since this phone is as close to stock android as I've ever seen I'm wondering if anyone else is observing the same behaviour I am or if else might be keeping it forced on unknowingly.
famewolf said:
It does not turn off automatically unless you are running an app to do so. My battery saver app lets you specify a list of apps that need gps...when I run the app it turns on gps...when the app exits it turns gps off. There is also a free version of it..search for "Greeenpower"...it does require root for an app to toggle gps under lollipop.
Click to expand...
Click to collapse
the.teejster said:
Thanks for the reply but I didn't think that applied to Android V4.x and UP.
You are supposed to be able to keep your location toggle set on ON all the time and Android is supposed to only enable it when an app requests it.. I can clearly see this behaviour on both my Nexus devices running lollipop.
Since this phone is as close to stock android as I've ever seen I'm wondering if anyone else is observing the same behaviour I am or if else might be keeping it forced on unknowingly.
Click to expand...
Click to collapse
Mine is also constantly on.
Macklessdaddy said:
Mine is also constantly on.
Click to expand...
Click to collapse
Mine is constantly on, like now.
the.teejster said:
Thanks for the reply but I didn't think that applied to Android V4.x and UP.
You are supposed to be able to keep your location toggle set on ON all the time and Android is supposed to only enable it when an app requests it.. I can clearly see this behaviour on both my Nexus devices running lollipop.
Since this phone is as close to stock android as I've ever seen I'm wondering if anyone else is observing the same behaviour I am or if else might be keeping it forced on unknowingly.
Click to expand...
Click to collapse
Well no offense but yours must be magic then cause I own both a nexus 4 and 5 and the gps doesn't turn off unless you or an app turns it off...same with bluetooth and wifi for that matter.
famewolf said:
Well no offense but yours must be magic then cause I own both a nexus 4 and 5 and the gps doesn't turn off unless you or an app turns it off...same with bluetooth and wifi for that matter.
Click to expand...
Click to collapse
I don't think he means it turns off in the settings. But the location active icon in the status bar only comes on when an app is actively using it. My nexus 4 does this. The idol the icon is always there.
IMO, its probably just a software GUI change that Alcatel did. Unless it is draining the battery more than usual.
Non taken .. LOL..
Bluetooth and Wifi, when on do constantly show up on my nexus devices..
Location icon however, on stock lollipop will only appear when the GPS actually is in use. IE: It will appear when I load up google maps and disappear when I turn it off (on stock 5.1.1 on nexus 5 and 9).
I thought this was a feature baked into lollipop which is why I was asking. But from I'm hearing it's not.
Thanks everyone for taking the time to reply.. much appreciated.
BTW:
Looks like it's default behavior on at least one other device:
http://talk.sonymobile.com/t5/Xperi...t-appear-in-statusbar-on-lollipop/td-p/975946
Location
famewolf said:
Well no offense but yours must be magic then cause I own both a nexus 4 and 5 and the gps doesn't turn off unless you or an app turns it off...same with bluetooth and wifi for that matter.
Click to expand...
Click to collapse
Maybe there is a secret Chinese system app that is continually tracking you with location? Haha
I was concerned about this too, and looked into it, I can 100% confirm that it's a software change. On the stock Idol 3 ROM, the location icon in the task bar merely shows that location is on, NOT THAT GPS is active.
If you're skeptical, download a GPS monitor app (some available without root, better ones available with root). You can confirm for yourself that the GPS monitor pings each and every time you use a location-based app (map, weather, etc), but not otherwise, even though the location icon is on.
It's constantly on for my Idol 3, but not my Moto X with CM 12.1.
A fix for this problem, if you have Xposed installed:
http://repo.xposed.info/module/com.xinlu.location_icon_fix
polygonal said:
A fix for this problem, if you have Xposed installed:
http://repo.xposed.info/module/com.xinlu.location_icon_fix
Click to expand...
Click to collapse
Very nice! Thanks for creating the module! Out of curiosity do you get the popup every time you install an app or module to select whether to install to internal, external or let the system decide?
famewolf said:
Very nice! Thanks for creating the module! Out of curiosity do you get the popup every time you install an app or module to select whether to install to internal, external or let the system decide?
Click to expand...
Click to collapse
Yes, I do. If I remember correctly, this started to happen around the time of the last update from Alcatel?
polygonal said:
Yes, I do. If I remember correctly, this started to happen around the time of the last update from Alcatel?
Click to expand...
Click to collapse
Thanks for the reply. Nice to know it's not just MY phone. On my 6045i it's been happening quite a while if not from the beginning but it's very annoying as I have not yet found a way to disable it. Even running "pm set-install-location" from a shell doesn't stop the popup. Normally the setting would be under settings, apps or settings, storage but doesn't appear to be.
I'd compare this to some manufacturers adding an NFC icon. They think the user wants to know (all the time) if a setting is on or off.
the icon appears for me always; even after I turn location OFF in the settings...
so is it a bug or is it on purpose?
i've noticed if you turn off the location and then back on, the icon doesn't show up until something does request location, but then after that the icon stays there forever
ps. i'm glad i found this thread i thought i was going crazy
Thanks for the module.
**TheDuke** said:
I was concerned about this too, and looked into it, I can 100% confirm that it's a software change. On the stock Idol 3 ROM, the location icon in the task bar merely shows that location is on, NOT THAT GPS is active.
If you're skeptical, download a GPS monitor app (some available without root, better ones available with root). You can confirm for yourself that the GPS monitor pings each and every time you use a location-based app (map, weather, etc), but not otherwise, even though the location icon is on.
Click to expand...
Click to collapse
Please, could you suggest an app for GPS monitoring? I'm on a Xperia M4 Aqua Android 5.0.2 and facing the same problem. It's driving me crazy...
OK guys I hope this hasn't already been covered but here goes anyway. I have found this fix for notifications not arriving when doze is enabled. Iff you go into the particular app e.g what's app then into data usage you must select the following settings see pic below. then all the notifications will arrive straight away regardless of doze state.
sam00561 said:
OK guys I hope this hasn't already been covered but here goes anyway. I have found this fix for notifications not arriving when doze is enabled. Iff you go into the particular app e.g what's app then into data usage you must select the following settings see pic below. then all the notifications will arrive straight away regardless of doze state.
Click to expand...
Click to collapse
Yes that seems to be the problem. I had made a post months ago. It's very hidden feature by Lenovo and I think it's wrong to pre-restrict all background data. User should decide what to do.
I think they lenovo did it to block unnecessary data usage but i agree it is not needed and people are thinking their is something wrong with their phones.
Thanks for the tip
Thanks Sam, I saw this on the JJ review of Nougat. Is this for Nougat as my MM P2 settings don't look like the screenshot.
Sent from my Lenovo P2a42 using Tapatalk
Hi yes it is for Nougat the comment posted on JJs review regarding this fix was posted by me also.
Confusing settings these as the first one makes it look like enabling the "Restrict background data" option will disable background data, when in fact it does the opposite. You need to have both of these options enabled so the sliders are green, then you need to open Settings > Power Manager > Battery Optimization
Then you need to search for the apps that you need to fix notifications and change the option so it says "Don't optimize". Then the phone won't 'helpfully' close the app when the phone has been unused for a long time. This is why notifications are stopping.
precisely i agree quite confusing it took me a while i had to get a friend to send me whats app messages continuously untill i figured all this out but im glad i finally did.
If you make the changes to fix the notifications, shut down and power the phone back on rather than do a reboot. The settings don't seem to work until the phone has properly rebooted.
Is it worth noting that elsewhere it's stated that turning off doze altogether (using ADB) might be a saner option? Consensus seems to indicate it's basically a curse with little value, and that would certainly hold water in light of the battery capacity of the P2.
https://forum.xda-developers.com/lenovo-p2/help/regretting-purchase-t3611968
I think the following helps. Credit goes to JasonMR and manototh (Taken from oneplus.net forum)
JasonMR
KitKat
JasonMR, Nov 2, 2016 :
Guys, to avoid having to run the ADB command after each reboot follow these instructions (please note, the files should be downloaded to a PC and then transferred to your phone via USB otherwise they mess up sometimes):
You need to enable USB debugging mode in Developer options first
Download and install this apk and transfer it to your phones storage - https://drive.google.com/file/d/0BxD...w?usp=drivesdk
Then connect phone to PC and allow the drivers to install
Download and install ADB here - https://drive.google.com/file/d/0B0M...ljU2NPR0k/view
Go into the ADB folder, hold shift, right click and select "Open command prompt here"
Type the command: adb devices (now hit enter)
It should return your phones serial number is connected correctly
Run this command in ADB: adb -d shell pm grant com.adamioan.scriptrunner android.permission.DUMP (now hit enter)
Download this file and transfer it to your phones storage - https://drive.google.com/open?id=0Bx...VA4YmxGTS1OX3c
Open the SH Script runner app and tap the three dots in the top right corner, select "Load" and locate the file from teh previous step
Click the Circle button with the play sign at the top of the screen
You should see the message "Idle mode disabled" which means that Doze has now been disabled.
Whenever you reboot your phone, open the SH Script runner and the command will still be there, just click the play button to run the script again.
And that is it, two clicks to disable Doze after each reboot.
Full credit to manototh for putting this together originally.
Doze does not need disabling iff you follow my advice in the initial post i have tried and tested this and can confirm it works fully.
This is really frustrating. No matter what settings I use I still don't get notifications after a while. I don't want to go modifying my phone, can someone post a step by step if they have it working properly?
Spacedog79 said:
This is really frustrating. No matter what settings I use I still don't get notifications after a while. I don't want to go modifying my phone, can someone post a step by step if they have it working properly?
Click to expand...
Click to collapse
Follow my ordinal post and also go into battery optimisation and disable optimization for things like sms eggs what's app Facebook etc all the things you need notifications for should be disabled from sleep mode under battery optimization.
Like this
sam00561 said:
Like this
Click to expand...
Click to collapse
Yes thats exactly how I've done it. I've also tried every combination of settings under Apps for Unrestricted data usage.
And also the setting here
sam00561 said:
And also the setting here
Click to expand...
Click to collapse
Yep doesn't work either.
Perhaps your only option left is to try the disable doze app which has worked for many people but it's a paid app.
Just to update it does seem to be working properly now. I'm not 100% sure but I think turning the phone all the way off and on again instead of rebooting with the settings correct had the desired effect.