[Galaxy S 4 i9500 Android Development] dar007:
+1

and also it changed the toggles to white.

citymen34 please please add the feature to the systemui so oggs battery mod will work!

here is help for this

OG BATTERY MOD GUIDE FOR KIT KAT ROMS

1. ADD GHAREEB SMALI FOLDER

2. ADD THE FOLLOWING 3 SMALIS:

-	systemui/statusbar/BatteryBar$1.smali

-	systemui/statusbar/BatteryBar$SettingsObserver.smali

-	systemui/statusbar/BatteryBar.smali

-

3. Edit systemui/statusbar/phone/PhoneStatusBar.smali

--- SEARCH FOR:

.field mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

--- CHANGE TO:

.field mBatteryController:Lcom/ghareeb/BatteryMod/BatteryController;

--- SEARCH FOR:

new-instance v25, Lcom/android/systemui/statusbar/policy/BatteryController;

--- CHANGE TO:

new-instance v25, Lcom/ghareeb/BatteryMod/BatteryController;

--- SEARCH FOR:

invoke-direct/range {v25 .. v26}, Lcom/android/systemui/statusbar/policy/BatteryController;-><init>(Landroid/content/Context;)V

--- CHANGE TO:

invoke-direct/range {v25 .. v26}, Lcom/ghareeb/BatteryMod/BatteryController;-><init>(Landroid/content/Context;)V

--- SEARCH FOR:

iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

--- CHANGE TO:

iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/ghareeb/BatteryMod/BatteryController;

--- RIGHT BELOW THIS LINE ADD: (LEAVE ONE SPACE)

.line 722

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/ghareeb/BatteryMod/BatteryController;

move-object/from16 v27, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

move-object/from16 v26, v0

const v28, 0x7f070077

move-object/from16 v0, v26

move/from16 v1, v28

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v26

check-cast v26, Landroid/widget/ImageView;

move-object/from16 v0, v27

move-object/from16 v1, v26

invoke-virtual {v0, v1}, Lcom/ghareeb/BatteryMod/BatteryController;->addIconView(Landroid/widget/ImageView;)V

--- SEARCH FOR: iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSmartBondingController:Lcom/android/systemui/statusbar/policy/SmartBondingController;

RIGHT BELOW ADD:

.line 725

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/ghareeb/BatteryMod/BatteryController;

move-object/from16 v26, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;

move-object/from16 v27, v0

invoke-virtual/range {v26 .. v27}, Lcom/ghareeb/BatteryMod/BatteryController;->addLabelView(Landroid/widget/TextView;)V

4. Edit res/layout/status_bar.xml

---- Search for: <com.android.systemui.BatteryMeterView

Change that line to:

<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent" />

---- Search for: </com.android.systemui.statusbar.phone.PhoneStatusBarView> (LAST LINE)

RIGHT ABOVE THAT LINE ADD:

<com.android.systemui.statusbar.BatteryBar android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />

5. DECOMPILE and COPY ORIGINAL META-INF FOLDER