yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] pupiloalpha:
New battd in battery fix

With Defy red lens that use Battery fix, this archive is replaced. I think that I cant use this.

What you think aboute that?

Quarx2k? Any other guys?
[Defy Android Development] Gafanhotz:
Since a fewer builds ago you don't have to flash the battery fix anymore. Because the rom backups the battery battd files automatically. Just flash the new battd and it's done. Next time you flash an Quarx's build, you don't have to flash anything more. Just the rom zip and reboot.

Btw, hope we'll receive an new build with this battd and bluetooth zip integrated. The only thing left to put the "stable" on the version name is adding the support for upnp (dlna) applications like an dlna streaming server. (For who those don't know what is it: an wifi server where you can stream videos and music for devices like your tv, your consoles and etc.)

I'll install the new battd and will report any errors later. Thanks Quarx! :o
[Defy Android Development] Gafanhotz:
Quarx didn't said to delete the /data/battd directory, only it's files... It's an system directory, needed to save battery info! Maybe to delete it's files is better delete the directory and then re-create it?
[Defy Android Development] Gafanhotz:
Noticed that after the new battd the phone is a lot slow to charge... Anyone more can confirm?
[Defy Android Development] soyusado:
I noticed that, but I didn't observed any jumps, maybe the problem it's solved, but I'm going to for the device to discharge to be hundred percent sure.

Sent from my Defy running Android 4.1.2 thanks to Quarx.
[Defy Android Development] rsk_kelkar:
i am on bl7 defy+.

I deleted the files in /data/battd foler

created a folder tmp in /data

deleted the battd file in /system/bin

pasted then new battdfile in /system/bin

after restart my battery percentage went from 91 to 100. What does this actually do? is my phone not charging to the fullest now?

strange:

even when the phone is not plugged in to any usb nor charger status bar shows 100% battery. It always used to show 99% when unplugged
[Defy Android Development] kapil_dheer:
Exactly the same is my experience.....I tried it on latest build. I was at 69% when I installed this and restarted and it showed me 100%.

The battery voltage shown was 4200mv. Earlier values were 4176 for full charge. And it stays at 100% for the last 10min. Earlier it used to get to 99 as soon as I unplugged it.

Are there files safe to be installed on cm7.2 by maniac...so that I can try this on my other defy.
[Defy Android Development] fairxda:
Yes, I can confirm.

Drain over night is very good.

But working with the defy+ the battery-drain seems more than before.

Here the result over night.
[Defy Android Development] theclaytons:
I've Installed new battd on defy red lense with defy+ after market battery. Was fully charged and battery stayed at 99%.

Will be interesting to see what battery reads after several hours.
[Defy Android Development] Gafanhotz:
Well, didn't happened to me. When I disconnected from the charger battery jumped to 99%. And when I've installed the new battd, battery only dropped 2% because of the reboot. Maybe is MB525 with an incompatibility problem?

---

Since a few builds ago I've noticed that the screen is draining a lot from the battery. Wasn't this fixed in CM9?
[Defy Android Development] ktmbikerman:
New battd working as expected on my defy+
[Defy Android Development] nidhish91:
Donno why cant i switch calls on Jellybean.. tired of this issue ;/

S3nt fr0m my D3fy 0n J3llyb34n
[Defy Android Development] Quarx:
It's only numbers, we can set any value for display

https://github.com/Quarx2k/android_...works/base/core/res/res/xml/power_profile.xml

It's doesn't mean anything.
[Defy Android Development] Bender662:
I have on my phone a 24 sept builld with red lens,if i update to this do i need to install battery fix and red fix? or are they included?
[Defy Android Development] krkdesigns:
The latest build needs battery fix and BT fix... also refer to the other post in the support forum.

This is what i did.

Clean wipe.

flash the latest build, gapps.

bootmenu without restart again.

Tools.

System or whatever.

do a data n cache wipe to ext4.

Reboot.

Flash the BT fix, battery zip check previous notes.

Reboot.

I followed this cos someone told me to do so. :)
[Defy Android Development] veimus:
Quarx can you add to kernel "2way call recording patch" ?? :fingers-crossed:
[Defy Android Development] fairxda:
If one do not want a clean wipe:

Not to forget to backup data before format to ext4 if one want them back again.

Then you can restore them after formatting to ext4.
[Defy Android Development] Fight4Music:
Fist unofficial CM10.1

http://xdaforums.com/showthread.php?t=2010217

Maybe Quarx had enough freetime this weekend :)

Gesendet von meinem MB526 mit Tapatalk 2
[Defy Android Development] GiulioPasini:
"Unknown" battery here O.o
[Defy Android Development] krkdesigns:
Did this happen after flashing the battery zip?
[Defy Android Development] GiulioPasini:
Yes :/
[Defy Android Development] kryptonitiko:
same here.....in recovery it is 35% and on the screen 100%......flashed battd updater 22nov and 23nov linked in this post :(
[Defy Android Development] Vitor_Hugo:
Same happend here :/

I still able to see battery percentage on boot menu, but not anymore when phone is on.

I did:

1. Backup battd file (/system/bin/battd)

2. Backup folder battd (/data/battd)

3. Create folder tmp (/data)

4. Overwrite battd file (/system/bin/battd) with Quarx's one

5. Deleted folder battd (/data/battd) & created a new one named battd

6. Restarted the phone

7. No battery info

So I restored everything back, but still can't see the battery info

Edit: I'm using build 18 november + bluetooth fix

Edit2: Wiped battery stats and cache in Custom Recovery and the bug still present
[Defy Android Development] anupam_aug15:
I am on 9nov build. I tried installing 18nov build following wipe data wipe caché wipe dalvik then installed 18nov build but after that as much I tried I couldn't get any gapps installed. No gapps showed after installation. Then I reverted back to 9nov but no problem there. Where I am wrong.
[Defy Android Development] krkdesigns:
http://xdaforums.com/showthread.php?p=34567036
[Defy Android Development] mahenkpatel:
I did a clean install of 18th November build followed with Bluetooth fix and the Battd updater file posted a few pages back in this thread.

Now I am using my phone from last 4 hours with pretty heavy usage but the battery level is not going down from 100%.

Obviously there is something wrong. anyone can help?

Thanks
[Defy Android Development] krkdesigns:
Which build? Are you on the latest build?
[Defy Android Development] GiulioPasini:
18/11 with the bt fix

---------- Post added at 03:55 PM ---------- Previous post was at 03:54 PM ----------

Me too, I can only see the battery level on BootMenu
[Defy Android Development] krkdesigns:
Even i am the same build, i tried this zip file,

http://xdaforums.com/showthread.php?p=34549028

but battery still drops, may b u can try.
[Defy Android Development] sixSforever:
Settings > System > Status bar > Battery status style: Percentage
[Defy Android Development] K3n H1mur4:
Nope, still 10% only. Already did this.
[Defy Android Development] mihovil13:
On 2007 toggles work and battery is 1%
[Defy Android Development] zakoo2:
nightly report 20/07+

can confirm the internal storage getting full when directly upgraded from previous nightly. make a nandroid backup of the previous nightlies /data, wipe data/cache/dalvik, upgrade newer nightly, restore data.

and it seems that deleting a system app from /system/app solves this bug too, (e.g. OneTimeInitializer is quite a useless app, as it only initializes on first boot, then it will never show again - as implied by the name) so before flashing around, try this!

- battery 1% step works for me.

- notification toggles working like a charm. (although id like it a bit better with black or transparent background. just imo)

will report bugs if i find any that hasnt been around in previous versions.
[Defy Android Development] K3n H1mur4:
Which kernel? I have a red lense Defy, running on froyo kernel. Maybe flashing GB kernel would help?
[Defy Android Development] mosta00:
+1

cm10 kernel
[Defy Android Development] ashish21099:
Its fine. 10% battery steps and usb tethering not working. havnt seen any other issue.
[Defy Android Development] claudiobastos:
BUG REPORT ADB over network doens't work

BR

try to check it, left screen, when get back ADB is not checked.

even if I stay in developer options screen I can't connect on device. :(
[Defy Android Development] sebx_g1:
Build 20/07 still doesn't remember after reboot default keyboard settings :eek:
[Defy Android Development] fabulosospucas:
+1
[Defy Android Development] sixSforever:
Lol ... after wipe dalvik.. no more work :(
[Defy Android Development] Deonix:
That's just a ui design feature. You can have multiple types. It does not change your phone's code. And the code probably has only 10% stepping. The status bar just displays what the system tells it.

Google Now is working brilliant in recognising English as well as Spanish and German, I took it for a spin. JB is great. Cheers to Quarx and Eppy for their hard work.
[Defy Android Development] K3n H1mur4:
For me, it goes into a blank screen (black if I activate it from lock screen), remains there for some time, then the message comes: "Google search isn't responding. Do you want to close it?" - if I choose to wait, it remains on the same screen, then the "isn't responding" popup comes again. Clearing data on the app manager didn't help. Right now, working Google Now is what keeps me from using CM10 as my daily system (using it on virtual system, NAND is CM9 - in which GN worked for the first time, but never again).
[Defy Android Development] trikpa:
few more bugs..

so, there is no flashlight in the notification bar, key backlight doesn't work if on auto brightness, no screen on/off animation, led notification doesn't work, no 1% step battery and for some reason I have two camera and two gallery apps in the app drawer...

edit: and there is no sound after a few seconds in the video recorded :/

I'm on 2007 build, fresh install, wipe everything and froyo kernel...

can I just flash gb kernel without wipe?
[Defy Android Development] tarekh020:
Out of context

Is Epsylon build have the same Bugs as Quarx green lens builds ?

It would be nice if some1 displayed their differences
[Defy Android Development] ppero196:
-On Quarx camera faces don't cause camera to FC, unlike on the Epsylon one

- Epsylon build has lagless bootanimation

I think that's all!

No flashlight in power menu, button backlight not working are the same errors in both 2 build (AFAIK)
[Defy Android Development] ppero196:
EDIT: accidental doublepost!
[Defy Android Development] zakoo2:
really? i would love to see lagless bootanimation on a quarx build :) is there a way to port it?
[Defy Android Development] kelvinmorcillo:
I think some people just forgot that this rom is like, a week older.
[Defy Android Development] ennarr:
Yes, and now Eppy has started working on JB, so the team is full and stronger, just wait few days and you'll see!

Big thanks for our great devs!!! you rock!! :good::good::good::good:
[Defy Android Development] kryptonitiko:
I tried those files!!! Always 100% on the phone....real status just in recovery.....

Sent from my Defy CMX quarxed
[Defy Android Development] yuwei:
Have you ever checked if the permission of /system/bin/battd is set correctly? It should be 0755.
[Defy Android Development] mahenkpatel:
I check the permissions, its 0755 still battery is stuck at 100%
[Defy Android Development] yuwei:
I think the only difference between us is I didn't apply the bluetooth fix and I didn't create /data/tmp (I don't think this matters, though). Mine is working fine.

EDIT: I am using HF5X on Defy red lense.
[Defy Android Development] niksy+:
Quarx is indeed into X910 modding now... I'm thinking of getting one myself, just to follow his work :)

Nevertheless, you can see he's working on DEFY and 4.2 for it, as well! Quarx the man. :)
[Defy Android Development] Vitor_Hugo:
What do you mean? I'm using ES File Explorer, permissions for battd file is:

rw- rw- rw-

User: read and write

Group: read and write

Other: read and write

What 0755 is meant to be? rwx rw- rw-?

Edit: changed permissions to rwx rwx rwx, fixed the problem, got battery percentage (old battd) again :)

But I'm sure it isn't the correct permissions, tell me your permissions to the battd file
[Defy Android Development] GiulioPasini:
Now I just tried to flash the another batt and nothing :P

My Defy is Green Lens with its original battery (2 years old actually)
[Defy Android Development] royale1223:
Most executables in android should be designated permission 755 or rwx rx rx. For more details refer this excellent article : http://www.tuxfiles.org/linuxhelp/filepermissions.html.
[Defy Android Development] EdwardN:
it's probably hex code. "7" = 111, or all enabled. "5" = 101, "3" = 011 etc.
[Defy Android Development] pprakash:
0755 means rwx r-x r-x

User: Read,Write and Execute

Group : Read and Execute

Other: Read and Execute

And this is the permission for battd in my Defy.
[Defy Android Development] elyashiv1994:
Long press search button doesn't work....anybody know why?

sent from my cm10 defy
[Defy Android Development] navinshark:
New Build

Working fine here, do one thing Settings>Systems>Hardware Keys>Enable Custom Keys

Set keys as per u want.
[Defy Android Development] kryptonitiko:
Could u give me a zip file to flash that reset the battery file?? I flashed the 2 zips for battery in the topic and battery stucked at 100% for the whole day....
[Defy Android Development] elyashiv1994:
Its enable...not working

sent from my cm10 defy
[Defy Android Development] GiulioPasini:
Ok, now I saw that my Defy won't charge too, in 4 hours it dropped from 100% to 33% (saw it on BootMenu)

The only way that I found to charge it :P
[Defy Android Development] fairxda:
Does anybody know something about this?

http://quarx2k.ru/cm10-nightly-xt910/
[Defy Android Development] theclaytons:
After a night the battery has dropped to 94% was 97% before going to bed. So far so good.
[Defy Android Development] lubco:
Motorola RAZR XT910
[Defy Android Development] level_666:
It was said many times, quarx also works on Motorola RAZR ( that doesn't means that he will stop on defy ), so please stop spamming this thread.
[Defy Android Development] Gafanhotz:
Guys, just for the info:

The Bluetooth fix on the 20121117 makes the 3G, WiFi and Bluetooth be a LOT more stable. I haven't upgrade to 20121118 because it gone crazy on my phone earlier and on another Defy from a friend of mine. Only solved that craziness with an Wipe Data.
[Defy Android Development] Alka-Seltzer PLUS:
Could please anybody write down the correct ownership for the battd and tmp folders? I got a strange battery " improvement " flashing the fix:

Edit: after 30' I lost another 20% :-o
[Defy Android Development] kryptonitiko:
Does someone solve the 100% fake battery status?? Mine discharged and it shows always 100%.....Is it wipe data the only thing to do?? :crying:
[Defy Android Development] armydog13:
Updated the battd, following the instructions quarx left. HD battery is showing down to 74% but bootmenu is showing 100% perpetually.

Edit: updated permissions for each file and folder. Bootmenu now shows 96%. HD Battery shows 79%. Will see how it goes after next full charge cycle.

sent from xda-developers premium on my MB525 (SOC) running CM10 2012.11.18 nightly. QKernel FTW!! 74 user apps. interactive governor. 300/18,600/33,900/48,1200/63.KSM active. BT fix and Updated battd
[Defy Android Development] ice.modding:
Ey quarx I can use bootmenu manager to install zip CM10 for XT910?

ice tapatalk
[Defy Android Development] Feche:
I installed the new battd with the .zip and it's working great! no problems so far
[Defy Android Development] armydog13:
Any discrepancies between the bootmenu reading and the reading in the OS? By discrepancies I of course mean LARGE discrepancies. :) I have always had minor differences e.g. 10% or so.

sent from xda-developers premium on my MB525 (SOC) running CM10 2012.11.18 nightly. QKernel FTW!!! 74 user apps. interactive governor. 300/18,600/33,900/48,1200/63.KSM active. BT fix and battd update.
[Defy Android Development] lvoonjian8888:
Could anyone help me? I phone was very lag. It's take 20 second to load all my contacts n when the phone still got 20% battery, the whole phone lag untill can't use at all. I did not install many apps. Any clue?

Thanks in advance.
[Defy Android Development] Feche:
58% in OS and 66% on bootmenu
[Defy Android Development] mahenkpatel:
I am not getting the "Clear" button in the notification area.

I have to clear each notification individually and if there are more than 8-10 it becomes annoying everytime.

Ho can I clear all notification in one click??

Thanks
[Defy Android Development] Quarx:
In Bootemnu reading directly from CPCAP and calculate by formula. It's not accurate.

mini = 3500.0;
range = (4050.0 - mini) / 100.0;
percent = (volt_batt - mini) / range;
if (percent > 100) percent = 100;
if (percent < 0) percent = 0;

In Android calculating by battd.(unknown formula)

I'm use SafeStrap for install:) Next time ask questions about xt910 in pm.
[Defy Android Development] cyrusct82:
After 2 full charges I can say that battd it's working very well.
[Defy Android Development] theclaytons:
For me on red lense defy I have 79% after 27 hours with moderate use. I love this new battd version.
[Defy Android Development] turffe:
Unknown - 100% solved

Change system/bin/battd permissions to rwx rwx rwx , after this it showed battery
[Defy Android Development] ppero196:
Pic or it didn't happen

Sent from my Balls of Steel
[Defy Android Development] cyrusct82:
Have you deleted "/data/battd/" and created "/data/tmp" ???
[Defy Android Development] ktmbikerman:
+1... best battery life yet.
[Defy Android Development] turffe:
No, i deleted files in data/batt and copied system/bin/battd & permissions to rwx rwx rwx
[Defy Android Development] cyrusct82:
CREATE THE FOLDER /data/tmp

And set the permissions to rwx r-x r-x
[Defy Android Development] Bé Yêu:
I tryed many setting but still stuck battery at 100% .How to fix it ? Many thanks

Send by Defy MB525 Uprom 4.1.2 Defy+ MB526 using Tapatalk2
[Defy Android Development] ppero196:
Today on Quarx Insider.

4.2 build still not uploaded. Testing in progress

Sent from my Balls of Steel
[Defy Android Development] misiek998:
Is there any chance, to repair "wifi tether"? I wast bougt last time nexus 7 wifi version, and really need this tethering.
[Defy Android Development] ppero196:
Tether works great here.

The one bug in op is about tether not working after its turned off and back on. Reboot solves the problem.

Sent from my Balls of Steel
[Defy Android Development] turffe:
I just deleted battd folder from data, and when in system/bin/battd permisioned to rwx rx rx, and it showed battery.
[Defy Android Development] okij:
Thanks for your explanation about battery level calculating in boot menu!

I'm just wondering what's the difference between the default battd files and your battd file (as you wrote yourself "unknown formula")? Could you please explain this to us?

I'm using your battd file on my Defy+ since Friday now and didn't experience any difference to the default one yet (which worked OK for me).

Yesterday I had the usual ~56 to 49 percent drop as before (which doesn't really bother me since I know that it has to do with some sensor inside the battery).

Now my Defy+ is on its second charge with the new battd file and I'm curiously awaiting if the 5x% to 49% drop occurs again.

If the advantage of the new battd file is that now all different types of batteries work on all Defy(+)'s, than that's fine for me (even if % drops still occur).
[Defy Android Development] TJKV:
I think it is only for use on both types of batteries (HF5X and BF5X), not to stop battery drops...the drop issue is popularly believed to be happening due to battery wear.
[Defy Android Development] Vitor_Hugo:
Hello, could you share your premissions to those files?:

battd file (/system/bin/battd)

tmp folder (/data/tmp)

battd folder inside tmp folder (/data/tmp/battd)

file inside battd folder (/data/tmp/battd)

battd folder (/data/battd)

files inside battd folder (/data/battd)

I got a bad battery life, it's discharging 2 times faster than it used to do in CM 7.2. I'm using the new battd with those permissions

battd file (/system/bin/battd) = rwx r-x r-x

tmp folder (/data) = rwx rwx rwx

battd folder inside tmp folder (/data/tmp/battd) = rwx rwx r-x

file inside battd folder (/data/tmp/battd) = rw- rw- r--

battd folder (/data/battd) = rwx rwx rwx

files inside battd folder (/data/battd) = 893E3F931B005077 (rw- rw- ---) | batt_data (rw- rw- ---) | battery_893E3F931B005077 (rw- rw- rw-) | battery_data (rw- rw- ---)

Here are some screenshots of the battery consumption (I have battery drops from 30% to 19% and from 7% to 4%):
[Defy Android Development] Gafanhotz:
To the guys complaining about the differences in battery meter, remember: The OS when turned on doesn't calculate the full battery charge, when your battery is over, if you plug to the charger you'll see it starting to charge from 5%~7% and not 0%. Why? Because our phone needs an extra charge for clock, date, and other things, and THAT charge Android can't waste. It works like the battery we have on our PC's motherboard.

And by the way, look at Quarx's explanation, it helps a lot to understand the way bootmenu reads the battery.

--------

Just for the info, how old is your battery? Is it the stock battery? (The one that came with the phone?)
[Defy Android Development] okij:
I just checked and have those permissions (which are quite similar to those you reported):

battd file (/system/bin/battd) = rwx r-x r-x

tmp folder (/data/tmp) = rwx rwx rwx

battd folder inside tmp folder (/data/tmp/battd) = rwx rwx r-x

file inside battd folder (/data/tmp/battd) = rw- rw- r--

battd folder (/data/battd) = rwx rwx ---

files inside battd folder (/data/battd): both files (89D4AE562A005026 and batt_data) = rw- rw- ---

Did you already disable "settings > location > access to my location" and "google > maps and latitude" options, since they have some negative impact on battery life?

Also, check if there might be some applications running in background all the time. Some people e.g. reported that WhatsApp is quite resource hungry (I don't use it myself).

Turn off bluetooth and wifi as long as you don't need them. There are programs like Juice Defender that do this automatically for you.

Good luck! :fingers-crossed:

---------- Post added at 02:25 PM ---------- Previous post was at 02:02 PM ----------

I assume the same, though on a German forum (http://www.android-hilfe.de/root-hacking-modding-fuer-motorola-defy-plus/311434-test-custom-kernel-jb-defy-update-11-10-a-32.html#post4558569) someone reported that the battery drops disappeared with the new battd from Quarx.

Even though those battery drops happen (or get worse) due to battery wear (BTW, my Defy+ and its HF5X is just half a year old), I think it still would be possible to have an algorithm which prevents those drops.

The algorithm would "just" have to recognizing a percentage drop and then - after the next recharge - take this drop into account when calculating the new percentages.

For Example: If the battery drops from 59 to 49% (thus 10% is missing), the algorithm should decrease the percenages between 99% (or probably 80%, since this point is also reported by the sensor in the Motorola batteries) and 50% a bit faster than before, so there wouldn't be a drop at 50% anymore.

Anyhow, as Quarx said that the algorithm is unknown to him, I don't think that this suggestion will be implemented. And I can really live with that, as I know that the battery drops are just misreadings / -calculations and that there is no real battery power lost. :)