• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[HUAWEI] Offline charge fix for every Huawei Treble Enabled Phone

Search This thread

Dil3mm4

Senior Member
Mar 22, 2018
370
2,169
Huawei, again, wew.

At the moment, charging offline while on GSI, reboots the phone to the OS.

So, let's simply fix that by:

  1. Downloading this zip;
  2. Pushing it by any means* in the path /vendor/etc/charger (please don't create duplicates path like /vendor/etc/charger/charger, make sure you do it correctly)
  3. Execute:
Code:
ln -s /vendor/etc/charger /system/etc/charger



*You can actually use adb within OS:
adb root
adb remount
adb push​
or you can mount all partitions within TWRP Mount option, and just push the dir via adb.

Peace.
 

osk4rin

Senior Member
Sep 7, 2015
643
119
San Diego
Huawei, again, wew.

At the moment, charging offline while on GSI, reboots the phone to the OS.

So, let's simply fix that by:

Downloading this zip;
Pushing it by any means* in the path /vendor/etc/charger (please don't create duplicates path like /vendor/etc/charger/charger, make sure you do it correctly)
Execute:





*You can actually use adb within OS:
adb root
adb remount
adb push
or you can mount all partitions within TWRP Mount option, and just push the dir via adb.

Peace.
Error pushing on adb, Doesn't work on mate 9,will appreciate if you provide more instructions for installation.
Thank you!
 
  • Like
Reactions: hacker812c

Darkest-Dark

Senior Member
Mar 26, 2018
62
52
The partitions are mostly to small partitioned... On honor 9 lite i used product partition instead...

Its not forever... every dirty flash on system or updating vendor security patch level will drop it. A magisk module dont work cause its mounted to late...
 
  • Like
Reactions: hacker812c

Dil3mm4

Senior Member
Mar 22, 2018
370
2,169
The partitions are mostly to small partitioned... On honor 9 lite i used product partition instead...

Its not forever... every dirty flash on system or updating vendor security patch level will drop it. A magisk module dont work cause its mounted to late...

"Nothing lasts forever and we both know hearts can change"
-Guns 'N' Roses

Anyways, yeah, updates on vendor will wipe this "hack".
But, better than nothing :p
 

steven360

Senior Member
Jun 12, 2017
785
246
No need for this if you wipe data with stock recovery and then flash ROM + GApps, and then factory reset in stock recovery. My phone chargea fine in "offline mode."
 
  • Like
Reactions: hacker812c

Copkiller2010

Senior Member
Apr 2, 2011
176
48
Münster
Thanks for this Fix. Works awesome on Mate 10 lite with RR Official.
I installed on other way cause ADB provided to many Error Messages.

Downloaded ZIP
Extraxted ZIP File
Copied the extracted Folder to /vendor/etc/ with Root Explorer. (Asked me to mount as R/W. Says YES)
This Takes some minutes.
Rebooted to TWRP, mounted system and vendor
Opened the TWRP Terminal and executed the Command
ln -s /vendor/etc/charger /system/etc/charger

Done and works awesome :) Thank you Dil3mm4 !
 

Marcopoloy13

Senior Member
Dec 18, 2010
162
42
Wuppertal
Huawei, again, wew.

At the moment, charging offline while on GSI, reboots the phone to the OS.

So, let's simply fix that by:

  1. Downloading this zip;
  2. Pushing it by any means* in the path /vendor/etc/charger (please don't create duplicates path like /vendor/etc/charger/charger, make sure you do it correctly)
  3. Execute:
Code:
ln -s /vendor/etc/charger /system/etc/charger



*You can actually use adb within OS:
adb root
adb remount
adb push​
or you can mount all partitions within TWRP Mount option, and just push the dir via adb.

Peace.

Hey,

I did everything like destriben, but it did not work for my Mediapad M5,
it still boots up when I wanted to change while my device is powered off.
 

leap_ahead

Senior Member
Jul 2, 2009
3,223
618
Dude, there is this new term called reading the thread, i know it's a bit hard to take in at first, but you'll get the hang of it. If you can't read, then you shouldn't be here. :cowboy:

I read the instruction.but many user and me have problem with this,
so its not my false
 

steven360

Senior Member
Jun 12, 2017
785
246
I read the instruction.but many user and me have problem with this,
so its not my false
if many users, including you, that have this problem, then all of you should read the thread, again and again until you understand :)

the instructions are very clear on what to do.
 

Copkiller2010

Senior Member
Apr 2, 2011
176
48
Münster
I have already post a second variant of tutorial. Works 100% and its easy.

TUT 2:

Downloaded ZIP
Extraxted ZIP File
Copied the extracted Folder to /vendor/etc/ with Root Explorer. (Asked me to mount as R/W. Says YES)
This Takes some minutes.
Rebooted to TWRP, mounted system and vendor
Opened the TWRP Terminal and executed the Command
ln -s /vendor/etc/charger /system/etc/charger

Reboot and done
 
Last edited:
  • Like
Reactions: tw1st3d83

arizshah

Senior Member
Feb 11, 2011
95
29
Karachi
www.facebook.com
I have already post a second variant of tutorial. Works 100% and its easy.

TUT 2:

Downloaded ZIP
Extraxted ZIP File
Copied the extracted Folder to /vendor/etc/ with Root Explorer. (Asked me to mount as R/W. Says YES)
This Takes some minutes.
Rebooted to TWRP, mounted system and vendor
Opened the TWRP Terminal and executed the Command
ln -s /vendor/etc/charger /system/etc/charger

Reboot and done

same things done but not working, huawei p20 lite android 10
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    Huawei, again, wew.

    At the moment, charging offline while on GSI, reboots the phone to the OS.

    So, let's simply fix that by:

    1. Downloading this zip;
    2. Pushing it by any means* in the path /vendor/etc/charger (please don't create duplicates path like /vendor/etc/charger/charger, make sure you do it correctly)
    3. Execute:
    Code:
    ln -s /vendor/etc/charger /system/etc/charger



    *You can actually use adb within OS:
    adb root
    adb remount
    adb push​
    or you can mount all partitions within TWRP Mount option, and just push the dir via adb.

    Peace.
    2
    The partitions are mostly to small partitioned... On honor 9 lite i used product partition instead...

    Its not forever... every dirty flash on system or updating vendor security patch level will drop it. A magisk module dont work cause its mounted to late...

    "Nothing lasts forever and we both know hearts can change"
    -Guns 'N' Roses

    Anyways, yeah, updates on vendor will wipe this "hack".
    But, better than nothing :p
    2
    Thanks for this Fix. Works awesome on Mate 10 lite with RR Official.
    I installed on other way cause ADB provided to many Error Messages.

    Downloaded ZIP
    Extraxted ZIP File
    Copied the extracted Folder to /vendor/etc/ with Root Explorer. (Asked me to mount as R/W. Says YES)
    This Takes some minutes.
    Rebooted to TWRP, mounted system and vendor
    Opened the TWRP Terminal and executed the Command
    ln -s /vendor/etc/charger /system/etc/charger

    Done and works awesome :) Thank you Dil3mm4 !
    1
    Huawei, again, wew.

    At the moment, charging offline while on GSI, reboots the phone to the OS.

    So, let's simply fix that by:

    Downloading this zip;
    Pushing it by any means* in the path /vendor/etc/charger (please don't create duplicates path like /vendor/etc/charger/charger, make sure you do it correctly)
    Execute:





    *You can actually use adb within OS:
    adb root
    adb remount
    adb push
    or you can mount all partitions within TWRP Mount option, and just push the dir via adb.

    Peace.
    Error pushing on adb, Doesn't work on mate 9,will appreciate if you provide more instructions for installation.
    Thank you!
    1
    same things done but not working, huawei p20 lite android 10
    it's other files for p20 lite, anyway used them it ends up in black screen then boots, is our model missing something to run it properly?