1、默认亮度值
frameworks/base/packages/SettingsProvider/res/values/defaults.xml
<!-- Default screen brightness, from 0 to 255. 102 is 40%. --><integer name="def_screen_brightness">102</integer>
2、默认搜索引擎
vendor/mediatek/proprietary/frameworks/base/res/res/values-zh-rCN/donottranslate-new-search_engines.xml
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"><string-array name="new_search_engines" translatable="false"><item>--</item><item>baidu--百度--baidu.com--search_engine_baidu--http://m.baidu.com/s?ie=utf8&word={searchTerms}--UTF-8--http://suggestion.baidu.com/su?wd={searchTerms}</item><item>yahoo_cn--中国雅虎--cn.yahoo.com--search_engine_yahoo--https://sg.search.yahoo.com/search?ei={inputEncoding}&.tsrc=mtkandroid&.intl=cn&.lang=zh-hans-cn&p={searchTerms}--UTF-8--http://sugg.search.yahoo.com/gossip/?output=fxjson&command={searchTerms}</item><item>google--Google--google.com--search_engine_google--http://www.google.com/m?hl={language}&ie={inputEncoding}&source=android-browser&q={searchTerms}--UTF-8--http://www.google.com/complete/search?hl={language}&json=true&q={searchTerms}</item><item>bing_zh_CN--Bing--bing.com--search_engine_bing--http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}--UTF-8--http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}</item></string-array></resources>
调整排序,第一个是默认值。
3、默认输入法
在 private void loadSecureSettings(SQLiteDatabase db) 中插入:
// Just Enable TouchPal, not default. By Xia.Fei, 20160830.loadSetting(stmt, Settings.Secure.ENABLED_INPUT_METHODS,"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
#ifndef __CUST_RTC_H__#define __CUST_RTC_H__/** Default values for RTC initialization* Year (YEA) : 1970 ~ 2037* Month (MTH) : 1 ~ 12* Day of Month (DOM): 1 ~ 31*/#define RTC_DEFAULT_YEA 2017#define RTC_DEFAULT_MTH 1#define RTC_DEFAULT_DOM 1#define RTC_2SEC_REBOOT_ENABLE 1#define RTC_2SEC_MODE 2#endif /* __CUST_RTC_H__ */
vendor/mediatek/proprietary/frameworks/base/res/res/values/config.xml
<!-- default year for first power on--><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。
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"><!-- Whether a software navigation bar should be shown.NOTE: in the future this may be autodetected from the Configuration. --><bool name="config_showNavigationBar">true</bool></resources>
同步修改 \device\xxxx\xxxx\system.prop,将下面的值由0改为1。
# temporary enables NAV bar (soft keys)qemu.hw.mainkeys=0
