View Full Version : OnePlus One CM13 100% battery BUG
OnePlus One 64Gb
Cyanogen OS 13.0-ZHN0EAS2JK
Kali kernel 3.4.111
Everything work like a charm, except battery status indicator. It shows always 100%. But battery work well in real.
# cat /sys/class/power_supply/battery/uevent
shows real POWER_SUPPLY_CAPACITY_LEVEL
and POWER_SUPPLY_STATUS depend on charging it or not.
Clean CM13 don't has this bug.
It appear immediately after flashing NetHunter.
TWRP rescue shell show real percentage.
After full discharge problem appear again, even before power on.
upd.
It looks like problem with healthd or battery driver
healthd: Could not open '/sys/class/power_supply/usb/type'
healthd: Could not open '/sys/class/power_supply/qpnp-dc/type'
healthd: Could not open '/sys/class/power_supply/battery/type'
###
FIXED at https://idlekernel.com/nethunter/nightly/3.1.0-20160524-0111/kernel-nethunter-oneplus1-marshmallow-3.1.0-20160524-0111.zip (at the moment)
viejo verde
2016-05-09, 19:24
OnePlus One 64Gb
Cyanogen OS 13.0-ZHN0EAS2JK
Kali kernel 3.4.111
Everything work like a charm, except battery status indicator. It shows always 100%. But battery work well in real.
# cat /sys/class/power_supply/battery/uevent
shows real POWER_SUPPLY_CAPACITY_LEVEL
and POWER_SUPPLY_STATUS depend on charging it or not.
Clean CM13 don't has this bug.
It appear immediately after flashing NetHunter.
TWRP rescue shell show real percentage.
After full discharge problem appear again, even before power on.
upd.
It looks like problem with healthd or battery driver
healthd: Could not open '/sys/class/power_supply/usb/type'
healthd: Could not open '/sys/class/power_supply/qpnp-dc/type'
healthd: Could not open '/sys/class/power_supply/battery/type'
I have had boot loop problems installing Nethunter lollipop 3.0 on OPO with COS 13.0-ZHN0EAS2JK. I have TWRP 3.02 installed and have tried the LRT scripts as well as manual installing using TWRP. I think the problem is with SuperSU, I have tried UPDATE 2.46 and BETA 2.71. Before I try anything else, please share details on how you installed Nethunter.
U need to build marshmallow first for CM13, not lollipop. After that the only problem I had is in LRT twrpFlash.sh script, with adb key -p for push cmd. In mine it throw an error.
step by step:
1. Building NetHunter
$ git clone https://github.com/offensive-security/kali-nethunter
$ build.py -d oneplus1 --marshmallow --rootfs full
2. Prepare LRT
Files:
CM-fastboot - http://builds.cyngn.com/factory/bacon/cm-13.0-ZNH0EAS2JK-bacon-signed-fastboot-2d1a3b8dca.zip
TWRP - https://dl.twrp.me/bacon/twrp-3.0.2-0-bacon.img.html
SuperSU 2.67 - https://download.chainfire.eu/897/SuperSU/BETA-SuperSU-v2.67-20160121175247.zip
3. Install with LRT (as described at https://github.com/offensive-security/nethunter-LRT)
./oemUnlock.sh
./stockOpoFlash.sh 64gb
./twrpFlash.sh - if got error try to repeat ./oemUnlock.sh step and again ./twrpFlash.sh
If wont help copy all LRT scripts output here
Note that you're trying to build for CM, not COS 13 (your ROM), they're both different ROMs. As far as I know COS 13 hasn't release their code base yet. If you want to use Marshmallow regardless, you'll have to switch to CM (rather than COS, again) and use either my builds:
https://www.androidfilehost.com/?w=profile&uid=24421527759886105
Or the ones you're already trying to use. As far as I know, mine are fresher and more frequently maintained.
OnePlus One 64Gb
Cyanogen OS 13.0-ZHN0EAS2JK
Kali kernel 3.4.111
Everything work like a charm, except battery status indicator. It shows always 100%. But battery work well in real.
# cat /sys/class/power_supply/battery/uevent
shows real POWER_SUPPLY_CAPACITY_LEVEL
and POWER_SUPPLY_STATUS depend on charging it or not.
Clean CM13 don't has this bug.
It appear immediately after flashing NetHunter.
TWRP rescue shell show real percentage.
After full discharge problem appear again, even before power on.
upd.
It looks like problem with healthd or battery driver
healthd: Could not open '/sys/class/power_supply/usb/type'
healthd: Could not open '/sys/class/power_supply/qpnp-dc/type'
healthd: Could not open '/sys/class/power_supply/battery/type'
Same error here...
So my guess is - wrong power driver:
in clean CM it is - qpnp-charger-ee16c400
in kali-cm image - qpnp-charger-ee136000
I have no experience with building arm kernels or images, but maybe someone suggest some manual or topics about how it could be done?
Or at least some reading I can start in?
Will be very grateful!
fittlips
2016-05-19, 05:07
I had the same problem with the 2 x 3.1.0 kernels dl from https://idlekernel.com/nethunter/nightly/
I solved it by installing the latest 3.0.5 kernel.
So it looks like a bug in the 3.1.0 kernel.
Note that you're trying to build for CM, not COS 13 (your ROM), they're both different ROMs. As far as I know COS 13 hasn't release their code base yet. If you want to use Marshmallow regardless, you'll have to switch to CM (rather than COS, again) and use either my builds:
https://www.androidfilehost.com/?w=profile&uid=24421527759886105
Or the ones you're already trying to use. As far as I know, mine are fresher and more frequently maintained.
Hi,
Can you tell me the release version used in your builds?
My build was created like this: "build.py -d oneplus1 --marshmallow --rootfs full" and the Nethunter have the release 3.1.
The installation was done without problems, except this bug of 100% battery permanently, but not before the Nethunter installation.
Thank you for your help.
Problem solved in this nightmare kernel https://idlekernel.com/nethunter/nightly/3.1.0-20160524-0111/kernel-nethunter-oneplus1-marshmallow-3.1.0-20160524-0111.zip
Problem solved in this nightmare kernel https://idlekernel.com/nethunter/nightly/3.1.0-20160524-0111/kernel-nethunter-oneplus1-marshmallow-3.1.0-20160524-0111.zip
This file is to flash on top of Marshmallow and Nethunter full install?
yep, in mine experience on top off this one http://builds.cyngn.com/factory/bacon/cm-13.0-ZNH0EAS2JK-bacon-signed-fastboot-2d1a3b8dca.zip
ps. It's mean U need to follow KaliNetHunter build instruction - https://github.com/offensive-security/kali-nethunter/wiki/Building-Nethunter . but first replace default kernel in kali-nethunter/nethunter-installer/kernels/marshmallow/oneplus1/ dir and then build image and follow LRT instructions
Thank you for your help.
My previous question it's because I have Marshmallow already installed and the Nethunter too with this versions:
- cm-13.0-ZNH0EAS2JK-bacon-signed-e7fe1f7ac5.zip
- python build.py -d oneplus1 --marshmallow --rotfs full
Can I only flash the kernel build you mention in your previous post on top of I have installed or I need to start from beginning with your last instrutions?
U need clean install
Thank you, I will do it.
Update:
unfortunately it doesn't worked.
Hello,
Thank you for this topic cauze im in this situation about the bug 100% stuck battery.
howover i can't find the 3.0.5 kernel on : https://idlekernel.com/nethunter/nightly/ there are only 3.1 kernels, so my question is : does the nethunter-installer/build.py contain the version of this kernel without the battery issue ?
if not, where can i get it ?
Don't know how many battery do you have is just impossible with alfa-card for exemple. Every tools i tried works well, but this beug drive me crazy, i don't know how battery stuff works on android and i look in this way for the moment to figured out.
I have the same problem, any solution?
Question, is someone already working on that issue?