删除小电池图标及百分比

  1. 右上角百分比
    /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
    1
    mBatteryPercentageView.setVisibility(View.GONE); 
  2. 下拉图标
    /frameworks/base/packages/SystemUI/src/com/android/systemui/phone/StatusBarHeaderView.java
    1
    2
    3
    \\注释((BatteryMeterView) findViewById(R.id.battery)).setBatteryController(batteryController);

    mBatteryLevel.setVisibility = (View.GONE); —锁屏百分比
  3. 下拉百分比
    /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
    1
    2
    3
    mBatteryLevel.setVisibility(View.GONE);

    \\注释((BatteryMeterView) findViewById(R.id.battery)).setBatteryController(batteryController); —锁屏界面图标
  4. 右上角图标
    /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
    1
    2
    3
    //注释((BatteryMeterView) mStatusBarView.findViewById(R.id.battery)) —右上角图标

    //注释dispatchDemoCommandToView(command, args, R.id.battery);
  5. 注释battery
    /frameworks/base/packages/SystemUI/res/layout/system_icon.xml
    1
    注释battery 
  6. 解除电池图标相关属性设置
    /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarTransitions.java —解除电池图标相关属性设置
    1
    注释mBattery相关的内容