刪除小電池圖標及百分比 a、SystemUI/.../statusbar/policy/BatteryController.java mBatteryPercentageView.setVisibility(View.GONE);———————右上角百分比 c、SystemUI/.../status ...
刪除小電池圖標及百分比
a、SystemUI/.../statusbar/policy/BatteryController.java
mBatteryPercentageView.setVisibility(View.GONE);———————右上角百分比
c、SystemUI/.../statusbar/phone/StatusBarHeaderView.java
註釋((BatteryMeterView) findViewById(R.id.battery)).setBatteryController(batteryController); ——下拉圖標
mBatteryLevel.setVisibility = (View.GONE);———————————鎖屏百分比
e、SystemUI/.../statusbar/phone/KeyguardStatusBarView.java
mBatteryLevel.setVisibility(View.GONE);————————————下拉百分比
註釋((BatteryMeterView) findViewById(R.id.battery)).setBatteryController(batteryController); —鎖屏界面圖標
f、SystemUI/.../statusbar/phone/PhoneStatusBar.java
註釋((BatteryMeterView) mStatusBarView.findViewById(R.id.battery)) ———右上角圖標
註釋dispatchDemoCommandToView(command, args, R.id.battery);
g、SystemUI/.../res/layout/system_icon.xml
註釋battery
h、statusbar/phone/PhoneStatusBarTransitions.java———————解除電池圖標相關屬性設置
註釋mBattery相關的內容
隱藏NOSIM圖標
SystemUI/.../statusbar/SignalClusterView.java
mNoSims.setVisibility(/*mNoSimsVisible ? View.VISIBLE : */View.GONE);
修改壁紙圖片
frameworks/base/core/res/res/drawable-sw720dp-nodpi
修改開機動畫
代碼:bootAnimation.cpp
函數:bool BootAnimation::android()
圖片:frameworks/base/core/res/assets/images/
隱藏全屏提示
frameworks/base/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java
public class ImmersiveModeConfirmation {
public void handleMessage(Message msg) {
switch(msg.what) {
case SHOW:
// handleShow();-----註釋
case PANIC:
// handlePanic();--------註釋
下拉快捷菜單
frameworks/base/packages/SystemUI/res/values/config.xml文件quick_settings_tiles_default_bt
修改滑鼠右鍵功能
/framework/native/services/inputflinger/InputReader.cpp文件
if (mBtnRight) {
//$_rochchips_$_modify_by_huangjc make sure mouse BtnRight for product
/*char *mIsBox = new char[PROPERTY_VALUE_MAX];
property_get("ro.target.product", mIsBox, "tablet");
if(strcmp(mIsBox, "tablet")==0)
result |= AMOTION_EVENT_BUTTON_SECONDARY;
else*/
result |= AMOTION_EVENT_BUTTON_BACK;
}
永不鎖屏
frameworks/base/packages/SettingsProvider/res/values/defaults.xml——————禁止鎖屏
<bool name="def_lockscreen_disabled">false</bool> 改為 true;即預設禁止鎖屏
修改預設時間制式
修改佈局文件
找到frameworks/base/packages/SettingsProvider/res/values/defaults.xml添加
<string name=”time_12_24”translatable=”false”>24</string>
修改Java文件
找到
frameworks/base/packages/SettingsProvider/src/com/android/provider/Settings/Databasehelper.java
在loadSystemSettings()函數添加
loadStringSetting(stmt,Settings.System.TIME_12_24,R.string.time_12_24);
多用戶支持
frameworks/base/core/res/res/values/config.xml
<integer name="config_multiuserMaximumUsers">1</integer> 不允許多用戶;即最大用戶數為1
預設輸入法
frameworks/base/core/res/res/values/config.xml
<string-array name="config_disabledUntilUsedPreinstalledImes" translatable="false">
<item>com.google.android.inputmethod.pinyin/.GooglePinyinIME</item>
去除鎖屏界面No SIM Card
Keyguard/src/com/android/keyguard/CarrierText.java
註釋函數updateCarrierText的setText(displayText);