Results 1 to 17 of 17

Thread: OnePlus One CM13 100% battery BUG

  1. #1
    Join Date
    2013-May
    Posts
    21

    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/nig...60524-0111.zip (at the moment)
    Last edited by 3t3st3r; 2016-05-26 at 00:40.

  2. #2

    details please

    Quote Originally Posted by 3t3st3r View Post
    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.

  3. #3
    Join Date
    2013-May
    Posts
    21
    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/baco...2d1a3b8dca.zip
    TWRP - https://dl.twrp.me/bacon/twrp-3.0.2-0-bacon.img.html
    SuperSU 2.67 - https://download.chainfire.eu/897/Su...0121175247.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
    Last edited by 3t3st3r; 2016-05-10 at 01:37.

  4. #4
    Join Date
    2016-Feb
    Posts
    116
    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:

    Code:
    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.

  5. #5
    Join Date
    2016-Feb
    Posts
    3
    Quote Originally Posted by 3t3st3r View Post
    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...

  6. #6
    Join Date
    2013-May
    Posts
    21
    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!

  7. #7
    Join Date
    2014-Feb
    Posts
    3
    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.

  8. #8
    Join Date
    2016-May
    Posts
    5

    Battery bug 100%

    Quote Originally Posted by Phreya View Post
    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:

    Code:
    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.

  9. #9
    Join Date
    2013-May
    Posts
    21
    Problem solved in this nightmare kernel https://idlekernel.com/nethunter/nig...60524-0111.zip

  10. #10
    Join Date
    2016-May
    Posts
    5
    Quote Originally Posted by 3t3st3r View Post
    Problem solved in this nightmare kernel https://idlekernel.com/nethunter/nig...60524-0111.zip
    This file is to flash on top of Marshmallow and Nethunter full install?

  11. #11
    Join Date
    2013-May
    Posts
    21
    yep, in mine experience on top off this one http://builds.cyngn.com/factory/baco...2d1a3b8dca.zip

    ps. It's mean U need to follow KaliNetHunter build instruction - https://github.com/offensive-securit...ding-Nethunter . but first replace default kernel in kali-nethunter/nethunter-installer/kernels/marshmallow/oneplus1/ dir and then build image and follow LRT instructions
    Last edited by 3t3st3r; 2016-05-27 at 00:06.

  12. #12
    Join Date
    2016-May
    Posts
    5
    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?
    Last edited by itman00; 2016-05-27 at 10:11.

  13. #13
    Join Date
    2013-May
    Posts
    21
    U need clean install

  14. #14
    Join Date
    2016-May
    Posts
    5
    Quote Originally Posted by 3t3st3r View Post
    U need clean install
    Thank you, I will do it.



    Update:

    unfortunately it doesn't worked.
    Last edited by itman00; 2016-05-27 at 19:06.

  15. #15
    Join Date
    2016-Jun
    Posts
    1
    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.

  16. #16
    Join Date
    2014-Oct
    Posts
    1
    I have the same problem, any solution?

  17. #17
    Join Date
    2016-Feb
    Posts
    3
    Question, is someone already working on that issue?
    Last edited by maiki; 2016-06-19 at 08:29.

Similar Threads

  1. Oneplus one install on cm13 by sultan?
    By W4R3Z in forum Installing NetHunter
    Replies: 2
    Last Post: 2017-05-25, 17:54
  2. Can't get Bluetooth to work. OnePlus One + CM13 Net3
    By tooblue4tooth in forum NetHunter General Questions
    Replies: 0
    Last Post: 2016-11-04, 12:30
  3. Replies: 0
    Last Post: 2016-09-29, 13:48
  4. Nethunter - CM13 - OPO
    By N0rthM4n in forum Installing NetHunter
    Replies: 5
    Last Post: 2016-07-23, 12:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •