1、默认亮度值

frameworks/base/packages/SettingsProvider/res/values/defaults.xml

  1. <!-- Default screen brightness, from 0 to 255. 102 is 40%. -->
  2. <integer name="def_screen_brightness">102</integer>

2、默认搜索引擎

vendor/mediatek/proprietary/frameworks/base/res/res/values-zh-rCN/donottranslate-new-search_engines.xml

  1. <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  2. <string-array name="new_search_engines" translatable="false">
  3. <item>--</item>
  4. <item>baidu--&#x767e;&#x5ea6;--baidu.com--search_engine_baidu--http://m.baidu.com/s?ie=utf8&amp;word={searchTerms}--UTF-8--http://suggestion.baidu.com/su?wd={searchTerms}</item>
  5. <item>yahoo_cn--&#x4e2d;&#x56fd;&#x96c5;&#x864e;--cn.yahoo.com--search_engine_yahoo--https://sg.search.yahoo.com/search?ei={inputEncoding}&amp;.tsrc=mtkandroid&amp;.intl=cn&amp;.lang=zh-hans-cn&amp;p={searchTerms}--UTF-8--http://sugg.search.yahoo.com/gossip/?output=fxjson&amp;command={searchTerms}</item>
  6. <item>google--Google--google.com--search_engine_google--http://www.google.com/m?hl={language}&amp;ie={inputEncoding}&amp;source=android-browser&amp;q={searchTerms}--UTF-8--http://www.google.com/complete/search?hl={language}&amp;json=true&amp;q={searchTerms}</item>
  7. <item>bing_zh_CN--Bing--bing.com--search_engine_bing--http://www.bing.com/search?setmkt=zh-CN&amp;q={searchTerms}--UTF-8--http://api.bing.com/osjson.aspx?query={searchTerms}&amp;language={language}</item>
  8. </string-array>
  9. </resources>

调整排序,第一个是默认值。


3、默认输入法

在 private void loadSecureSettings(SQLiteDatabase db) 中插入:

  1. // Just Enable TouchPal, not default. By Xia.Fei, 20160830.
  2. loadSetting(stmt, Settings.Secure.ENABLED_INPUT_METHODS,
  3. "com.cootek.smartinputv5/com.cootek.smartinput5.TouchPalIME:com.android.inputmethod.latin/.LatinIME");

4、默认出厂时间

vendor/mediatek/proprietary/bootable/bootloader/preloader/custom/aeon6750_66c_m/inc/cust_rtc.h

  1. #ifndef __CUST_RTC_H__
  2. #define __CUST_RTC_H__
  3. /*
  4. * Default values for RTC initialization
  5. * Year (YEA) : 1970 ~ 2037
  6. * Month (MTH) : 1 ~ 12
  7. * Day of Month (DOM): 1 ~ 31
  8. */
  9. #define RTC_DEFAULT_YEA 2017
  10. #define RTC_DEFAULT_MTH 1
  11. #define RTC_DEFAULT_DOM 1
  12. #define RTC_2SEC_REBOOT_ENABLE 1
  13. #define RTC_2SEC_MODE 2
  14. #endif /* __CUST_RTC_H__ */

vendor/mediatek/proprietary/frameworks/base/res/res/values/config.xml

  1. <!-- default year for first power on-->
  2. <integer name="default_restore_year">2016</integer>

5、默认关闭虚拟按键

device/mediatek/common/overlay/navbar/frameworks/base/core/res/res/values/config.xml
将config_showNavigationBar的值由true改为false。

  1. <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  2. <!-- Whether a software navigation bar should be shown.
  3. NOTE: in the future this may be autodetected from the Configuration. -->
  4. <bool name="config_showNavigationBar">true</bool>
  5. </resources>

同步修改 \device\xxxx\xxxx\system.prop,将下面的值由0改为1。

  1. # temporary enables NAV bar (soft keys)
  2. qemu.hw.mainkeys=0