[Android Themes] androidphone2012:
Stock ROM without battery percent option

http://xdaforums.com/showthread.php?p=38232512#post38232512

Decompile SystemUI.apk

1. in /smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali, find Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

just below

.line 445
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

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

const v10, 0x7f0c002d

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

move-result-object v6

check-cast v6, Landroid/widget/ImageView;

invoke-virtual {v9, v6}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V

right after, add the same and slightly change

.line 13
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

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

const v10, 0x[COLOR="Red"]7f0c0081[/COLOR]

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

move-result-object v6

check-cast v6, Landroid/widget/[COLOR="Blue"]TextView[/COLOR];

invoke-virtual {v9, v6}, Lcom/android/systemui/statusbar/policy/BatteryController;->addLabelView(Landroid/widget/[COLOR="Blue"]TextView[/COLOR];)V

1) never mind about .line number

2) const v10, 0x7f0c0081 in /res/values/public.xml, <public type="id" name="battery_text" id="0x○○○○○○○○" />

3) Image -> Text

then

.line 445
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

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

const v10, 0x7f0c002d

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

move-result-object v6

check-cast v6, Landroid/widget/ImageView;

invoke-virtual {v9, v6}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V

.line 13
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;

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

const v10, 0x7f0c0081

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

move-result-object v6

check-cast v6, Landroid/widget/TextView;

invoke-virtual {v9, v6}, Lcom/android/systemui/statusbar/policy/BatteryController;->addLabelView(Landroid/widget/TextView;)V

2. in /res/layout/status_bar.xml, find

<ImageView android:gravity="center" android:id="@id/battery"...

above, add e.g.

<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="12.0dip" android:textColor="#ff999999" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-3.0dip" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" />