yashsingh1/xdaforums huggingface dataset:
[Moto X General] jayboyyyy:
so the apk you deleted is in a way hard coded into touchless controls. I don't know how or anything but using logic it must be.

Explanation: When you use touchless controls it appears like you are using google now but you actually aren't. Moto has its own voice recognition that it runs first to see if it can run the command you asked for. if it doesn't know the command or fails to recognize it then it sends it to google now to try and figure out what you said. So I believe that when you see the google now when you first activate it, that part is "hard coded" by motorola to do something different than if you activated google now by clicking on the search bar on your phone. Hopefully that all made sense. The explanation of what touchless controls does is on their website. I think I found it under FAQ where people asked "why certain commands sometimes show up with different interfaces" for instance sending a text can appear differently based on whether google now ran the command or moto's command recognition software ran the command.
[Moto X General] emerica243:
Makes sense. Well, im going to run the same test again tonight to see if i get 0% drain over the whole 8 hours again. If i do, im guessing its safe the say the idle drain is coming from the touchless controls \ factory provided Velvet.apk.

also, unfortunately i tried to uninstall the market Google search i installed for this test and restore the Velvet.apk back from titanium, but its not working. Titanium is just restoring the com.android.google.search.apk. not sure how or why, so needless to say touchless controls is half broken and doesnt launch google search after it takes my command. I even tried copying the Velvet.apk from the system dump back but it still doesnt get launched. Might need to do a factory reset in the end to get back to normal.
[Moto X General] FSXv13:
I'm down to 16 hours now (down from over 24 hours), so I am going to start taking this a bit more seriously. 7 of those hours were sleep hours. No bueno.

Another thing I noticed was that my phone goes from 85% straight to charged... I just pulled it off the charger and was going to take a screenshot but it reset the stats. is this normal behavior for anyone else?
[Moto X General] jayboyyyy:
ooohhh ****. I didn't even notice that you got no drain at all lol. But it seems you actually gained battery as the night went on. Definitely need another run at it before you change anything. That is truely weird. Much more intriguing then i initially thought. I'm thinking (especially since your battery seemed to go down then increase) that it has to do with reporting how much battery drain their actually was, but I hope I'm wrong.

When you moved the apk back did you give it the right permissions? what I would do to see if it fixes it put it in system app manually as you said you said you did. make sure permissions are rw-r-r. then go back to tibu and restore the data only for the app to see if that works. also the apk from the stock firmware might have been updated already before you made a tibu of it. so maybe after you put it in manually see if you can get it to update (if there was one) before you restore data from tibu.

its probably just a battery reporting issue. On my first devices it rebooted on its own once and dropped 5% when it came back. i think battery reporting is more of an estimation than a true report. Once it reboots i think it may actually calculate the battery (this is based on what I have seen others say not on something I read from a article or anything). You may have a faulty device or perhaps just a reboot will fix it.
[Moto X General] emerica243:
Jay,

I tried restoring app+data, app only, data only, etc etc. The outcome was always the same. I also set those permissions as well. One thing im noticing though is i swear when i looked at the Velvet.apk before i did the backup of it, it had a weird red icon. But now when im putting it back(from the system dump mind you, its the blue Google search icon). Can you look in root explorer on yoru phone and see what yours looks like, and it is 9.4MB?
[Moto X General] jayboyyyy:
mine is blue and Im on vzw and it is 9.43. So after you install it check permissions then back up data. go and wipe dalvik because the way moto wrote the code for these things gets a little sketchy and it may need to re-optimize paths and such. to do this i use adb but you can probably do it with an emulator.

adb shell
su
rm -rf /data/dalvik-cache
exit
exit
adb reboot *OR* adb reboot recovery
[Moto X General] tjohnstone3:
I'm on Verizon (rooted) and I don't seem to have the velvet.apk. I did use TiBu to uninstall Google Search and then re-installed in from the play store, would that be what removed the .apk?

However, it does seem as if all touchless controls are working just fine for me. I can call, do searches, etc...
[Moto X General] jayboyyyy:
I think you just solved the problem for emerica. The reason his touchless controls aren't running is because of the new play services he downloaded. Not because of the velvet.apk. I am interested to know what the difference in the two are.

Emerica, you should try putting your old google play services back instead of the one from the play store and see if you can get it working. Assuming you can. Then try removing the velvet apk again and replace it with google search and see what happens during the night. Of course I think you should run a second test on the same set up you had last night before you do this, but I would be interested to see the effects of running the different google search apk. Maybe the only difference is that the Motorola command recognition is absent form the play store one but it isn't absent in the velvet apk... just a thought.
[Moto X General] tjohnstone3:
That's the thing tho, and I didn't mention this in my original email because I wasn't thinking about it having an affect, but I also uninstalled Google Play Services and re-installed from the play store.

I did this after i read some people had gotten better results by doing this (in the Bad Idle Drain thread on Motorola Forums). I haven't had a chance yet to see if has any affect for me.
[Moto X General] jayboyyyy:
well maybe it had to do with how each of you "uninstalled" the app. Not sure how Tibu uninstalls things or if you can even uninstall that app without tibu. Maybe since he hasn't said he has wiped dalvik-cache yet that could fix the problem. There are so many variables that clearly exists since you both did the same thing and got different results.
[Moto X General] emerica243:
Gonna redo test 5 tonight before anything else. But for what its worth, when i factory reset my phone originally, and proceeded to update all the apps, i did see Google Play Services update itsself. So if anyone restores with the original stock fw (not the recent ota) i know for a fact Google Play Services updates, or atleast is updatable. So that shouldnt be a problem. The same goes with Google Search. There is an update, coming from the stock fw.

Really the ONLY thing i find weird is i told titanium backup to backup google search, which was Velvet.apk. Then i removed it, and installed Google Search from the store, which put com.android.googlesearch.quickbox.apk into System/Apps. Then i removed that, and restored my backup, which SHOULD of to my knowledge, put Velvet.apk back. But it did not, it kept putting com.android.googlesearch.quickbox.apk back. Thats what doesnt make any sense to me. After tonights retest im going to try the dalvik clearing tip,
[Moto X General] emerica243:
Well I think that pretty much confirms what uses the idle battery drain on this phone. Another night with 9 hours of idle and 0.1% drain per hour.
[Moto X General] juancaperez2000:
[MENTION=834765]Emerica[/MENTION] could you tell me under which name i could find google play services trying to unistall this but does not find it
[Moto X General] eeshlikhith:
So you dont have touchless controls after doing this?
[Moto X General] emerica243:
You have HALF touchless controls. Basically touchless controls still works as far as up to launching google search. It takes your command, then shows a toast of Opening Google Search, but it never opens. Im still trying to figure out why or how it calls it. Im guessing it has something to do with the factory Velvet.apk(com.google.android.googlequicksearchbox) which shows as version 2.6.7.7. If dont remove Velvet.apk but just install the update for google search in market, it does updates the timestamp on Velvet.apk. So im not sure how to trouble shoot from here.

---------- Post added at 04:19 PM ---------- Previous post was at 04:12 PM ----------

Its a system app, you need root to remove it, and then reboot, and then launch google maps and youll get a auto notification to install it from play store
[Moto X General] jayboyyyy:
Well we know that it doesn't have to do with the apk because someone else said they did the same thing and don't have the velvet.apk and their touch less controls work fine. You try wiping dalvik cache yet. And possibly data for all Google related things.
[Moto X General] adrialk:
I just disabled Google search and network location... (not rooted). I also disabled Google play services and then re-enabled and updated to the latest version. We'll see if I notice the same improvement.

I get the same behavior where touchless controls work, but obviously Google search doesn't open.

Can you try idling from 95% instead of 100%? Reduces the likelihood of the battery meter playing games.
[Moto X General] emerica243:
Jayboyy, I tried wiping Dalvik, no change. Seems me and that other guy did the same thing. Yet his is working. However he IS on verizon. Does verizons system have a Velvet.apk even in it?
[Moto X General] aldouse:
I'm on Verizon... I got the velvet.apk there too.
[Moto X General] tjohnstone3:
Verizon does have the Velvet.apk, but it's just like what you saw, when I removed it (via TiBu) and re-installed from the play store it was not there, it was just Google Search (com.whatever).
[Moto X General] emerica243:
And your touchless controls successfully launches Google Search with your query still? Did you remove Google Play Services and reinstall it from Play Store as well?
[Moto X General] Jexx11:
For what its worth, I'm on the Verizon Moto X DE and I do not see any Velvet.apk anywhere on my phone, nor in TiBu.
[Moto X General] emerica243:
Went back to full stock again, and after last night, back to 0.5%/hr
[Moto X General] ram130:
What did you do after going back to full stock to get that 0.5?
[Moto X General] emerica243:
Froze apks, disabled location reporting. And disabled remote device location
[Moto X General] FSXv13:
Wiped yesterday and had even worse battery life. I lost 40 percent in a little over 3 hours.

This is ridiculous. After the wipe, I charged up and it skipped from 92 percent to full as you can see.

Just downloaded betterbatterystats but I installed wake lock detector this morning.

My screen on time is 2 hours and 11 minutes at almost the lowest setting.
[Moto X General] emerica243:
Looks like your power manager service wake lock is out of control
[Moto X General] FSXv13:
According to better battery stats, that's just a collection of partials. I'm charging from 1% as we speak. Did you see my charging screenshot where it jumped from 93% to full? I feel like my battery is not charging all the way...

I have BBS installed now so I am going to see what the hell is eating up battery cause it certainly isn't location services or touchless controls or nlp cause I had just wiped the phone.

Going to charge to 100% then wipe again. I have nothing better to do while watching football I suppose. Really annoying though. My screen was DEVOURING battery as well if you saw in that screenshot. Not sure what's going on. Like I said, first weekend I was able to get 4 hours of screen on over the course of 29ish hours.

At the rate it is now, 4 hours of screen on will kill the phone in that amount of time.
[Moto X General] 9kracing:
You can see the phone was hunting for signal. As soon as you got on wifi the battery drain tapered out.
[Moto X General] FSXv13:
I was out and about in NYC, my apartment has a meh signal but outside it should never be a problem. I just took it off the charger now, going to see how this goes.

WIll wipe tonight during MNF if I have to and let it charge overnight.
[Moto X General] :
I've had this phone for a little over a week, it's easily the best phone I've ever had. I'm a bit disappointed with the battery life I have. My phone seems to lose between 2% and 5% life during the middle of the night with night mode on and connected to wifi. I looked at everyone say how their device get 4 hours of on screen time and down to about 35% life left and it's been running for about something like 15 hours. I looked at my battery status and got really sad. Only 1 hour and 22 minutes of screen time and I'm down to 49% life. So basically does anyone have any tips for me about how to fix battery life? I am rooted but didn't change anything other than remove Verizon Bloatware.
[Moto X General] :
Sorry for two posts, it wouldn't let me add the pictures in my first post. Here are screenshots of my phones batter life. It's saddening
[Moto X General] Ctrl-Freak:
If I followed your posts correctly, uninstalling Google Search and Google Play Services was the key to your miraculous standby battery drain. Is there a thread that gave you this idea, and if so do you mind linking it?

FWIW, I am on AT&T and have a /system/app/velvet.apk (Google Search / Google Now), but I think when it updated, it was superseded with /data/app/com.google.android.googlequicksearchbox-1.apk It would surprise me if everyone didn't start with velvet.apk.
[Moto X General] SymbioticGenius:
Who is your service provider?
[Moto X General] FSXv13:
Verizon, sorry.
[Moto X General] rmead01:
does your google search still function?
[Moto X General] Ctrl-Freak:
I haven't done this yet. I am trying to understand the 'line of reasoning' that led to the removal of those apps in order to improve standby battery life. I suspect my results would be the same as emerica243 as we are both on AT&T, and I am hoping there is more information on the subject that he can link.
[Moto X General] kc_sheets:
I think the battery is great, I'm a heavy use at least 6-7 hours of Pandora on wifi, and playing games here and there, and im getting 15+ hours with 10-20% left.
[Moto X General] jayboyyyy:
just speaking to the on screen time part of your question. I found that the phone doesn't use that much more battery when the screen is on as when it is off. Clearly it does use more and if you are using a high system intensive app during this time the drain will be much higher. Basically, if I sit on my phone for 3 hours as oppossed to 1 hour, the battery drain increases but not at the level you might expect. I'm thinking if you used your phone for 3 hours instead of 1 hr and 22 minutes then your battery life might be a little over 40%.
[Moto X General] feelknOck:
The battery life of my phone this normal?

What do you think?
[Moto X General] stearic:
What was the screen on time?
[Moto X General] feelknOck:
The question was for me? lol

All were taken just now, the 18:35.
[Moto X General] stearic:
Question was for you, but i mean what was the Time on for the screen? Like in the Screen section how long does it show that you screen was turned on?
[Moto X General] feelknOck:
I could only access the forum and now my X has already been loaded. I will use it all day without giving load again and post all detailed here.

Thank you for your attention. :)
[Moto X General] stearic:
On the regular VZW version i had, i got a bit over 4 hours screen time. Now that i took that back and have the Dev edition of it, i'm going to see what i get for on screen time. 29% battery left, screen at 59% usage, i'm sitting at 3h50min. So i'm betting i may be able to get 4h30min or maybe close to 5h screen time. Considering this is a CDMA device, i'm very happy with that.
[Moto X General] :
When I made this post I think the drain was because I had been playing Simpsons Tapped Out which I know does eat battery. Yesterday I let my battery drain completely and charged to full with it off (it took most 24 hours for it to fully die but that was with screen off almost the whole time and the built in battery saver on). It's now 52% (almost entirely on wifi, about 2 hours on LTE) going on 17 hours 26 minutes with 1 hour 12 minutes of screen on time. The only apps I've used that are some what taxing were navigation for a total of 13 minutes and chrome for a total of 9 minutes. What's using the most battery now is the OS at 24%. Idk I feel like that amount is a bit strange. Does anyone else think so? If anyone has a suggestion to make the battery life a bit better than would be wonderful.
[Moto X General] jayboyyyy:
i think that is pretty good battery life. If you on OST of 4 hours then your phone would probably be pretty low at 17hour run time. I don't think that is very bad at all.

Android OS is sometimes a problem and sometimes not. You can't just look at 24% because the numbers always have to add up to 100%. The things that take the most battery are phone calls, signal strength, and screen time, android OS. If you don't use your screen much or make that many calls then android os might be at 24%. doens't mean it is using that much power, it just means because you did use anything else on your phone that much then the android os used more than those. It is the Operating system of the phone so its going to use some power.

Its better to use apps taht can take you wakelock stuff because looking at the standard battery monitoring software on the phone doesn't give you any real details as to the usage of the battery. It just gives you a comparison which for obvious reasons is not a good diagnosing tool.
[Moto X General] :
I know that the OS will use up battery. I only mentioned it because it's usually screen that uses the most battery. Is battery stats plus a good diagnostic tool?
[Moto X General] FSXv13:
Ok, the battery issue is really starting to bother me.

This is now the second time I have done a clean wipe.

Right before I wiped I charged up and once again, it jumps from he high 80% mark straight to full. I've attached a screenshot for this. It's a little disconcerting that the battery does not seem to be charging to correctly so I think I am going to return the phone. Yes, I charged this thing to full at work when I first got it and then for the next two weeks I went ONLY from full to 2% before charging back to full.

The screenshots of wakelocks and stuff are from the moment I unplugged it AFTER the clean wipe and set up my phone. Nothing was downloaded except default apps which were in need of updating. I froze my verizon apps. After all this was done, I unplugged it and put it next to my bed with it facedown and wifi on. I woke up to 20% battery drain without ever having touched the phone.

Seriously considering returning the phone cause of the vibrate (which I could have lived with) and the battery charging weirdly (Can't live with).
[Moto X General] jayboyyyy:
i use better battery stats. I cant speak to others. there is also gsm battery or something like that. And the screen on this phone uses far less power than other phones. at its maximum brightness it pulls like 90mah while the iphone pulls like 250mah or something like that. It hard to compare this phone to another one for more than just that reason. This is has been discussed in depth throughout this thread so I wont talk much about it here.

---------- Post added at 12:29 PM ---------- Previous post was at 12:25 PM ----------

i would return the phone as no one else is reporting similar issues to yours. Well I have seen it a couple of times but for all I know it could have been you posting about it lol. I don't pay too much attention to usernames often.

But I will point out that right after a clean wipe you should let the phone settle for at least a day before testing it. Some people had there battery stats continue to get better over even as long as a week period so I try to wait at least 3 days and often a week before I think I'm getting true battery drain accurately measured.

It could also be how you are rooting or something weird you are doing that you do everytime you set the phone up that you don't notice or don't think matters that others are not doing, but I would still return the phone for a new one because I doubt this is the cause.
[Moto X General] FSXv13:
It's been me and me alone talking about the phone charging weird. Also, I'm not rooted. I'm on a developer edition 100% stock and unmodified.

Thanks for your advice.
[Moto X General] BaconDrips:
pretty happy with it. This is with a lot of gaming (a lot for me), browsing, etc.
[Moto X General] Tgo1014:
That's normal?
[Moto X General] RorixRebel:
can't deny i'm not happy but was expecting more.
[Moto X General] Tgo1014:
Why I can't reach battery life like that?
[Moto X General] ram130:
You root. You mod. Then complain.
[Moto X General] BaconDrips:
I do..that's not even great.

---------- Post added at 11:43 PM ---------- Previous post was at 11:40 PM ----------

I'm at 69% with 12 hours of battery time
[Moto X General] ram130:
I think I'm starting to experience the same thing. But slowly:
[Moto X General] Tgo1014:
How? You got a stock phone? Or you got root to disable some functions?
[Moto X General] BaconDrips:
Stock..I turn off mobile data when I'm using wifi and vice versa..I have the screen at about half brightness.
[Moto X General] Tgo1014:
Well, I don’t have wifi in my job then I keep my 3g working full time. Brightness I keep it in automatic. I guess wifi drain much less battery than those poor Brazilians 3g networks.
[Moto X General] mandrsn1:
What app is that on the top?
[Moto X General] BaconDrips:
auto brightness isn't efficient. set it yourself
[Moto X General] elijahah:
I'm getting the same thing. Not sure what it is but my battery still seems to be lasting 1.5 days so I'm not too concerned.
[Moto X General] ram130:
Battery reborn. Get it here: https://play.google.com/store/apps/details?id=net.hubalek.android.reborn.beta
[Moto X General] mandrsn1:
thanks.
[Moto X General] FSXv13:
I wouldn't either if my battery last a day and a half, but it doesn't. Last night it was below 80% when it did the jump to full. Something is clearly not calibrated correctly.

I'm returning it tomorrow. About to buy another one right now though so I have a new phone on Friday.
[Moto X General] jayboyyyy:
make sure to snap some screen shots of what is going on just in case they don't believe you. or I mean bring your screen shots. It just makes teh process easier when I have had issues like taht on other phones.
[Moto X General] FSXv13:
It's the Dev edition, so I am shipping it back to Motorola, I told them what the issue was and they issued an RA#. I have 30 days to return it even if I just don't like it, so I'm good there. It just sucks cause I have to pay shipping and insurance.

I guess the bonus is I can return it again if the nexus 5 is somehow magically supported on Verizon or there is a price drop on the X.

Who am I kidding, I'm too lazy for that...
[Moto X General] jayboyyyy:
oh I didn't know that. I wouldn't return it just yet. If you are on insurance then it doens't matter when you return it right. Don't you have like ayear or something like that. I might trouble shoot a little more before spending the money for insurance. There could be many things you could try if you searched around that might fix the problem.Also, the calibration issue might only be software not firmware. Maybe some updates fix the issue. IDK but I didn't know when i said return it you would have to return it through insurance and not under the man warranty.
[Moto X General] SymbioticGenius:
I think he meant shipping insurance so he's not responsible if it breaks or is lost in transit