• 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

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?