Battery Image (1-100)

Requirements:

  • Apktool
  • Root Explorer
  • Notepad++
  • Brain
  • Framework-res.apk
  • SystemUI.apk
  • 1-100 Battery Image
Screenshot:

Steps

  1. Decompile using APKTOOL (use CMD) -> windows + r then type CMD. Type this code
  • apktool if framework-res.apk
  • apktool if SystemUI.apk
  • apktool d System.apk
     2.  Find (stat_sys_battery.xml) -> SystemUI\res\drawable
     3. Open it using Notepad++
          <?xml version="1.0" encoding="utf-8"?>
<level-list
  xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
    <item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="2" />
    <item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="3" />
    <item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="4" />
    <item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="5" />
    <item android:drawable="@drawable/stat_sys_battery_6" android:maxLevel="6" />
    <item android:drawable="@drawable/stat_sys_battery_7" android:maxLevel="7" />
    <item android:drawable="@drawable/stat_sys_battery_8" android:maxLevel="8" />
    <item android:drawable="@drawable/stat_sys_battery_9" android:maxLevel="9" />
    <item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
    .
    .
    .
         <item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="96" />
    <item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="97" />
    <item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="98" />
    <item android:drawable="@drawable/stat_sys_battery_99" android:maxLevel="99" />
    <item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>

      4. then Save it
      5. Charging (stat_sys_battery_charge.xml) ->SystemUI\res\drawable (Note: item android:duration="1000" it dependes on your phone some time 1500)
      <?xml version="1.0" encoding="utf-8"?>
<level-list
  xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:maxLevel="0">
        <animation-list android:oneshot="false"
          xmlns:android="http://schemas.android.com/apk/res/android">
            <item android:duration="1000" android:drawable="@drawable/stat_sys_battery_0" />
            <item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim0" />
        </animation-list>
    </item>
    <item android:maxLevel="1">
        <animation-list android:oneshot="false"
          xmlns:android="http://schemas.android.com/apk/res/android">
            <item android:duration="1000" android:drawable="@drawable/stat_sys_battery_1" />
            <item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim1" />
        </animation-list>
    </item>
    <item android:maxLevel="2">
        <animation-list android:oneshot="false"
          xmlns:android="http://schemas.android.com/apk/res/android">
            <item android:duration="1000" android:drawable="@drawable/stat_sys_battery_2" />
            <item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim2" />
        </animation-list>
    </item>
.
.
.
.
    <item android:maxLevel="99">
        <animation-list android:oneshot="false"
          xmlns:android="http://schemas.android.com/apk/res/android">
            <item android:duration="1000" android:drawable="@drawable/stat_sys_battery_99" />
            <item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim99" />
        </animation-list>
    </item>
    <item android:maxLevel="100">
        <animation-list android:oneshot="false"
          xmlns:android="http://schemas.android.com/apk/res/android">
            <item android:duration="1000" android:drawable="@drawable/stat_sys_battery_100" />
            <item android:duration="500" android:drawable="@drawable/stat_sys_battery_charge_anim100" />
        </animation-list>
    </item>
</level-list>
     6. Save it
     7. go back in CMD
     8. Type this code
  • apktool b SystemUI
      Note: there should no Erros
      your modded file will be in "dist" folder.
     7. go to original folder.. copy 2 file (META-INF & AndroidManifest.xml) ->SystemUI\original
     8. paste it on your modded ->SystemUI\dist
     9. now push it on your phone
   10. Congrats

 

Comments

Popular posts from this blog

OPlus Service Center and Drop Off Center