1 [GELJSW-561] - 【G209 瑞盛G3511】待机壁纸:增加附件中的壁纸资源,默认"咖啡闲情"
frameworks/base/core/res/res/drawable-mdpi/default_wallpaper_ruisheng_gf.png
frameworks/base/core/java/android/app/WallpaperManager.java
frameworks/base/policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java
packages/apps/Launcher_Ragentek/res/values-mdpi/wallpapers.xml
packages/apps/Launcher_Ragentek/res/drawable-mdpi/*.*
2
rgt_projects/g209l_rs_dazhong_a1/ProjectConfig.mk
frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
external/sqlite/android/OldPhoneNumberUtils.cpp
//日历默认月视图
packages/apps/Calendar/src/com/android/calendar/GeneralPreferences.java
//Modify GYSLSW-89 liukui 20130521 (on) 105
//public static final int DEFAULT_START_VIEW = CalendarController.ViewType.WEEK; 106
public static final int DEFAULT_START_VIEW = CalendarController.ViewType.MONTH; 107
//Modify GYSLSW-89 liukui 20130521 (off)
======================================
//music 是否在播放
/**
* @return Whether music is being played right now.
*/
boolean isMusicActive() {
final AudioManager am = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE);
if (am == null) {
Log.w(TAG, "isMusicActive: couldn't get AudioManager reference");
return false;
}
return am.isMusicActive();
}
svn log --stop-on-copy svn://192.168.10.22/ALPS_GB2_V2.17_MT6515_NAND_6628_RGT/branches/xiazhengguo/g209_20130217_GELJSW-1058
svn merge -r 9788:HEAD svn://192.168.10.22/ALPS_GB2_V2.17_MT6515_NAND_6628_RGT/branches/xiazhengguo/g209_20130217_GELJSW-1058
./mk -o=TARGET_BUILD_VARIANT=user g101l_sk_d1 new
./mk -o=TARGET_BUILD_VARIANT=user g101l_sk_d1 otapackage
./mk -o=TARGET_BUILD_VARIANT=user g209l_chw_a2 update-modem
////////////////////////////////////////
svn export svn://192.168.10.22/ALPS_GB2_V2.10_MT6515_MT6626_NAND/trunk trunk_sk && svn export svn://192.168.10.22/ALPS_GB2_V2.10_MT6515_MT6626_NAND_RGT/branches/xiazhengguo/g101_sk_0201_GYLYSW-347 rgt_sk &&
cp -rf rgt_sk/* trunk_sk && cd trunk_sk && ./mk -o=TARGET_BUILD_VARIANT=user g101l_sk_d1 new;
/////////////////////////// ///////////////////////
2598 git status
2599 git add packages/apps/WeatherAll_Samsung/res/values-ar/string.xml
2600 git staus
2601 git status
2602 git commit -m "GTBLESW-315 weather StringIndexOutOfBoundsException of monthnames"
2603 git push origin HEAD:refs/for/master
2604 git log
2605 git branch
2606 git checkout g803_sq
2607 git branch
2608 git cherry-pick ebd2a1e4f138b72ad570cd00a9639072b2421e49
2609 git log
2610 git push origin HEAD:refs/for/g803_sq
2611 git branch
2612 git checkout g803_jk
2613 git branch
2614 git cherry-pick ebd2a1e4f138b72ad570cd00a9639072b2421e49
2615 git log
2616 git push origin HEAD:refs/for/g803_jk
2072 git add customUI/g800_a_gupai/frameworks/base/core/res/res/drawable-hdpi/
2073 git add customUI/g800_a_gupai/mediatek/frameworks/
2074 git commit -m "GBLLSW-29: add new lockscreen pics for g800."
2075 git pull --rebase
2076 git push origin HEAD:refs/for/master
2077 git pull --rebase
///////////////////////////////////// /////////////////////
//手机默认字体大小
/branches/chenweiwei/G503_cww_20121227_GWLSSW-1764/frameworks/base/core/java/android/content/res/Configuration.java
setToDefaults()
//未知来源打开
loadBooleanSetting(stmt, Settings.Secure.INSTALL_NON_MARKET_APPS,
R.bool.def_install_non_market_apps_sq);
//
loadIntegerSetting(stmt, Settings.System.SCREEN_BRIGHTNESS,R.integer.def_screen_brightness_sq);
loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT, R.integer.def_screen_off_timeout);
//键盘发不同的声音。
branches/zhoufei/GWLYSW-779/customUI/SAMSUNG/packages/apps/Contacts/src/com/android/contacts/TwelveKeyDialer.java
customPlayTone(ToneGenerator.TONE_DTMF_1)
private void customPlayTone(int tone) {
mDTMFToneEnabled = Settings.System.getInt(getContentResolver(),
Settings.System.DTMF_TONE_WHEN_DIALING, 1) == 1;
if(ContactsApp.getInstance() == null){
return;
}
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
int ringerMode = audioManager.getRingerMode();
if ((ringerMode == AudioManager.RINGER_MODE_SILENT)
|| (ringerMode == AudioManager.RINGER_MODE_VIBRATE)) {
if (FeatureOption.RGT_PLAYTONE_IN_SLIENTMODE) {
mDTMFToneEnabled = true;
} else {
return;
}
}
// if local tone playback is disabled, just return.
if (!mDTMFToneEnabled) {
return;
}
String musicPath = "/system/media/audio/ui/";
switch(tone){
case 0:
musicPath += "zero.ogg";
break;
case 11:
musicPath += "pound.ogg";
break;
}
Uri soundUri = Uri.parse("file://" + musicPath);
try
{
Ringtone mCustomTone = RingtoneManager.getRingtone(ContactsApp.getInstance(), soundUri);
if (mCustomTone == null) {
return;
}
mCustomTone.setStreamType(AudioManager.STREAM_SYSTEM);
mCustomTone.play();
if (mCustomToneTemp != null) {
mCustomToneTemp.stop();
}
mCustomToneTemp = mCustomTone;
}catch (Exception e){
Log.i(TAG, "customPlayTone IOException");
}
}
//mtk80908 end
===============播放系统音频文件===============
import android.media.AudioManager;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
final boolean plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0;
// add GWLQSW-447 hujiaxuan 20130409 on
static boolean isPlugged;
synchronized void playSound(boolean plugged) {
Slog.d(TAG, "hjx playSound:"+plugged+isPlugged);
if (plugged && (isPlugged != plugged)) {
try {
String soundPath = "file:///system/media/audio/notifications/whistle.mp3";
final Uri soundUri = Uri.parse(soundPath);
if (soundUri != null) {
final Ringtone sfx = RingtoneManager.getRingtone(mContext,
soundUri);
if (sfx != null) {
sfx.setStreamType(AudioManager.STREAM_NOTIFICATION);
Log.e(TAG, "HJX sfx.isPlaying():" + sfx.isPlaying());
sfx.play();
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
isPlugged = plugged;
}
// add GWLQSW-447 hujiaxuan 20130409 off
--------------------------------
//工程模式,*#37*#
1 reciever
Uri engineerUri = Uri.parse("android_secret_code://9646633");
if (intent.getAction().equals(SECRET_CODE_ACTION)) {
Uri uri = intent.getData();
if (uri.equals(engineerUri)) {
Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(new ComponentName("com.mediatek.engineermode",
"com.mediatek.engineermode.EngineerMode"));
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
2 注册号吗
<receiver android:name="TestingSettingsBroadcastReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SECRET_CODE" />
<data android:scheme="android_secret_code" android:host="9999" />
<data android:scheme="android_secret_code" android:host="3366463"/>
<data android:scheme="android_secret_code" android:host="66" />
</intent-filter>
</receiver>
3 SpecialCharSequenceMgr.java
private static final String MMI_ENGINEERING_MODE_DISPLAY = "*#9646633#";
static boolean handleSecretCodeOther(Context context, String input) {
if(MMI_ENGINEERING_MODE_DISPLAY.equals(input)){
Log.i("qinxu", "handleInternalVersionNumberDisplay 7777 ");
Intent intent = new Intent(Intents.SECRET_CODE_ACTION,
Uri.parse("android_secret_code://" + input.substring(2, len - 1)));
context.sendBroadcast(intent);
//adb调试打开。
SystemProperties.set("persist.service.adb.enable", "1" );
//---------- 四种声音的开关。-----
loadBooleanSetting(stmt, Settings.System.HAPTIC_FEEDBACK_ENABLED,
R.bool.def_haptic_feedback);
loadIntegerSetting(stmt, Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
R.integer.def_lockscreen_sounds_enabled);
loadBooleanSetting(stmt, Settings.System.SOUND_EFFECTS_ENABLED,
R.bool.def_sound_effects_enabled);
loadSetting(stmt, Settings.System.DTMF_TONE_WHEN_DIALING, 0);
//音量面板
1 frameworks\base\core\java\android\view\VolumePanel.java
//解屏反馈声音改大点。并打开这个声音。
1 frameworks/base/media/java/android/media/AudioService.java
private static final int SOUND_EFFECT_DEFAULT_VOLUME_DB = -10;// 原来-20
2 /home/xzg/xzg_share/g503_g301/trunk503_x1/frameworks/base/packages/SettingsProvider/res/values/default.xml
<!-- Default for UI touch sounds enabled -->
<bool name="def_sound_effects_enabled">false</bool>
3 mediatek/source/frameworks/media/audio/java/com/mediatek/audioprofile/AudioProfileManager.java
frameworks/base/media/java/android/media/AudioService.java
//字体。
mText.setTypeface(Typeface.createFromAsset(getAssets(),
"fonts/HandmadeTypewriter.ttf"));
//ringtone可以添加曲目 Music
1 AndroidManifest.xml
添加
<activity android:name="com.android.music.MusicPicker"
<intent-filter>
<action android:name="android.intent.action.RINGTONE_PICKER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
2 MusicPicker.java
private int ringtoneType = -1;
--oncreate(){
if (Intent.ACTION_GET_CONTENT.equals(getIntent().getAction())) {
//GEYQSW-218 20120925 wugang off
mBaseUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
} else if ("android.intent.action.RINGTONE_PICKER".equals(getIntent().getAction())) {
ringtoneType = this.getIntent().getIntExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, -1);
Log.d("music","=====MusicPicker->setRingtone : action="+getIntent().getAction());
Log.d("music","=====MusicPicker->setRingtone : ringtoneType="+ringtoneType);
// if (RingtoneManager.TYPE_RINGTONE == ringtoneType) {
// isSetRingtone = true;
// }
mBaseUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
} else {
mBaseUri = getIntent().getData();
if (mBaseUri == null) {
MusicLogUtils.w(TAG, "No data URI given to PICK action");
finish();
return;
}
}
--
public void onClick(View v) {
switch (v.getId()) {
case R.id.okayButton:
if (mSelectedId >= 0) {
//GEYQSW-218 20120925 wugang on
if (RingtoneManager.TYPE_RINGTONE == ringtoneType) {
ContentResolver resolver = this.getContentResolver();
try {
ContentValues values = new ContentValues(1);
values.put(MediaStore.Audio.Media.IS_RINGTONE, "1");
resolver.update(mSelectedUri, values, null, null);
} catch (UnsupportedOperationException ex) {
ex.printStackTrace();
}
Settings.System.putString(resolver, Settings.System.RINGTONE, mSelectedUri.toString());
Log.d("music","=====MusicPicker->onClick TYPE_RINGTONE: mSelectedUri="+mSelectedUri);
} else {
if (RingtoneManager. TYPE_NOTIFICATION == ringtoneType) {
ContentResolver resolver = this.getContentResolver();
try {
ContentValues values = new ContentValues(1);
values.put(MediaStore.Audio.Media.IS_NOTIFICATION, "1");
resolver.update(mSelectedUri, values, null, null);
} catch (UnsupportedOperationException ex) {
ex.printStackTrace();
}
}
Intent resultIntent = new Intent();
resultIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI, mSelectedUri);
// add by chenweiwei for GEYQSW-381 20121016 start
resultIntent.setData(mSelectedUri);
// add by chenweiwei for GEYQSW-381 20121016 end
setResult(RESULT_OK, resultIntent);
}
finish();
}
break;
case R.id.cancelButton:
finish();
break;
}
}
//默认browser的主页
packages/apps/Browser/src/com/android/browser/BrowserSettings.java
packages/apps/Browser/res/values/strings.xml
packages/apps/Browser/src/com/android/browser/BrowserHomepagePreference.java
packages/apps/Browser/src/com/android/browser/BrowserProvider.java
//默认铃声
/branches/hujun/g209_20120911_hujun_GELJSW-618/build/target/product/core.mk
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/Android.mk
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/XEKaudios
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/XEKaudios/izoom-alarm.wma
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/XEKaudios/izoom-case.wma
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/XEKaudios/izoom-notification.wma
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/XEKaudios/izoom-ringtone.wma
/branches/hujun/g209_20120911_hujun_GELJSW-618/frameworks/base/data/sounds/XEKaudios/ringone01.wma
//mtk芯片:// 9306455377
MT6575是WCDMA+GSM版的1G单核
MT6515是GSM的1G单核(可外加射频模块支持TD或其他制式)
MT6577是WCDMA+GSM版的1G双核
MT6517是GSM的1G双核(可外加射频模块支持TD或其他制式)
//加字库
build/target/product/languages_full.mkcustomUI/SAMSUNG_GS/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/InputLanguageSelection.java
customUI/SAMSUNG_GS/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
/external/skia/src/ports/SkFontHost_android.cpp
//录音默认高
mSelectedFormat = mPrefs.getInt(SELECTED_RECORDING_FORMAT, HIGH);
//2--------设墙纸:
frameworks/base/services/java/com/android/server/WallpaperManagerService.java
frameworks/base/core/java/android/app/WallpaperManager.java
/branches/tangxu/g209_20120911_tx_GELJSW-614/packages/apps/Launcher_Ragentek/res/drawable-mdpi/wallpaper_xek_04.jpg
/branches/tangxu/g209_20120911_tx_GELJSW-614/packages/apps/Launcher_Ragentek/res/drawable-mdpi/wallpaper_xek_04_small.jpg
/branches/tangxu/g209_20120911_tx_GELJSW-614/packages/apps/Launcher_Ragentek/res/drawable-mdpi/wallpaper_xek_default.jpg
/branches/tangxu/g209_20120911_tx_GELJSW-614/packages/apps/Launcher_Ragentek/res/drawable-mdpi/wallpaper_xek_default_small.jpg
/branches/tangxu/g209_20120911_tx_GELJSW-614/packages/apps/Launcher_Ragentek/src/com/ragentek_bu1/launcher2/WallpaperChooser.java
/branches/tangxu/g209_20120911_tx_GELJSW-614/frameworks/base/core/res/res/drawable-mdpi/default_wallpaper_xek.jpg
/branches/tangxu/g209_20120911_tx_GELJSW-614/packages/apps/Launcher_Ragentek/res/values-mdpi/wallpapers.xml
//4 ------ 手机logo位置:
1 logo: /mediatek/custom/common/uboot/logo/hvga
//5 列出当前所有的文件(除.svn文件),并写入到file3.txt中
find . -name *.* | grep -v '.svn' | tee file3.txt
find . -name *.* | tee file3.txt
//6 ------ 默认新得里时区:
1 packages/apps/Settings/res/xml/timezones.xml
<timezone id="Asia/Calcutta">New Delhi</timezone>
2 packages/apps/Settings/res/xml-hi/timezones.xml
<timezone id="Asia/Calcutta">?? ??????</timezone>
3 packages/apps/Settings/res/xml-zh-rCN/timezones.xml
<timezone id="Asia/Calcutta">新德里</timezone>
4 /rgt_projects/g101l_base/buildinfo.sh(build/tools/buildinfo.sh)
# add BUG_ID:GELJSW-252 xiazhengguo 201200719(on)
echo "persist.sys.timezone=Asia/Seoul"
echo "persist.sys.timezone=Asia/Calcutta"
# add BUG_ID:GELJSW-252 xiazhengguo 201200719(off)
5 /build/target/product/core.mk
#add by xiazhengguo 20120802 GELLSW-441 start
ifeq ($(RGT_CUSTOM), g209l_chw_a2)
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.language=en \
persist.sys.country=US
endif
#add by xiazhengguo 20120802 GELLSW-441 end
//7 compile the boot.img -------------
./mk g209l_xek_m2 r k bootimage
//8 only compile contacts ----------
cd packages/apps/Contacts/
TARGET_PRODUCT=ratech15cu_nand_6626_gb2 mm
// 9 默认日期格式 =====
frameworks/base/packages/SettingsProvider/res/values/defaults.xml
<!-- add pengshaopeng 20120913 on -->
<string name="def_date_format" translatable="false">dd-MM-yyyy</string>
<!-- add pengshaopeng 20120913 off -->
//10 ------------- 默认日期:2012-1-1 ---------------
mediatek/custom/ratech15cu_nand_6628_gb2/preloader/inc/cust_rtc.h
// modified by [email protected] 2012.08.16 [GYELSW-42]
#define RTC_DEFAULT_YEA 2012
#define RTC_DEFAULT_MTH 1
#define RTC_DEFAULT_DOM 1
en_US(英语)
in_ID(印尼语)
ms_MY(马来)
de_DE(德语)
es_ES(西班牙语)
fr_FR(法)
it_IT(意)
cs_CZ(捷兄)
da_DK(丹麦)
iw_IL(希伯莱)
nl_NL(荷兰)
no_NO nb_NO nn_No(挪威)????
pl_PL(波兰)
ro_RO(罗马)
ko_KR (韩文)
pt_PT (葡萄牙)
vi_VN (越南)
tr_TR (土耳其0
ru_RU (俄国语)
ar_EG(阿拉伯语)
th_TH(泰国)
hu_HU(匈牙利)
sr_YU (塞尔维亚)
el_GR (希腊)
bg_BG(保加利亚)
sl_SI(斯洛文尼亚)
fi_FI(芬兰语)
sv_SE (瑞典)
zh_TW (中文繁体)
zh_CN(简体中文)
hi_IN (印度语)
ta_IN (坦泰米尔)
ur_PK (乌尔都语-巴基斯坦)
bn_IN (孟加拉)
// -------- mtk android 4.0 设置静音模式。-----------
frameworkd/base/media/java/android/media/AudioService.java
import android.app.Service;
import com.mediatek.audioprofile.AudioProfileManager;
import com.mediatek.audioprofile.AudioProfileManager.Scenario;
private AudioProfileManager mProfileManager;
mProfileManager = (AudioProfileManager)context.getSystemService(Context.AUDIOPROFILE_SERVICE);
mProfileManager.setActiveProfile("mtk_audioprofile_silent");
18221578721 孟小
// ------- 发布user版本要拷的两个文件,以及编译user版本的命令:--------
mediatek/custom/common/modem/ratech15cu_nand_6626_gprs_g101/BPLGUInfoCustomApp_MT6575_S01_MAUI_11AMD_W11_50_SP_V21
.mediatek/source/cgen/APDB_MT6575_S01_ALPS.GB2.MP_
// -----11111----------关于型号、version、显示、蓝牙。-------------------
rgt_projects\g209l_rs_a1\g209l_rs_a1.sh
rgt_projects\g209l_rs_a1\build\core\Makefile ----- 型号 I7002
rgt_projects\g209l_rs_a1\build\core\version_defaults.mk -- "关于手机"里的Android version
kernel\drivers\usb\gadget\android.c --- 连接PC时驱动显示
frameworks\base\core\jni\android_bluetooth_common.h --- 蓝牙 izoom
///-----22222----------改听筒参数-------------------
mediatek/custom/ratech15cu_nand_6626_gb2/cgen/inc/audio_volume_custom_default.h
-- 116行
#define AUD_VOLUME_SPH \
64,76,88,100,112,124,136,\
52,64,76,88,100,112,124,\
56,68,80,92,104,116,128
#endif
耳机参数:
mediatek/custom/ratech15cu_nand_6626_gb2/cgen/inc/audio_volume_custom_default.h
#if defined(G101L_BASE)
#define AUD_VOLUME_MEDIA \
100,148,148,148,128,104,128,\
0,43,85,128,171,200,230,\
0,43,85,128,171,213,255
//-----33333--------- 去掉天气 ----------------
build/target/common.mk
//关机灭屏时间改为20秒。
frameworks/base/core/java/com/android/internal/app/ShutdownThread.java
//如何抓log
1保证手机有t卡
2 t卡根目录:\mtklog\mdlog\下放入catcher_filter.bin文件
2 *#7548135*#进入工程模式--》点systemlog--》mobile-->
start,然后切换modem标签下,选择sd mode,再点击start.
3 然后,等待log.
4 待测完后,最后把\mtklog目录拷给我们。
//显示电量的百分比。
trunk_g101_sk_d1/mediatek/platform/mt6575/uboot/mt6575_bat.c
1661行
{
// add by xiazhengguo for display percint 0912 on
ShowChargePercent(prog);
// or ShowChargePercent(bat_volt_check_point);
// add by xiazhengguo for display percint 0912 off
mt65xx_disp_show_battery_capacity(prog);
}
//修改开关机动画,语言
:
rgt_projects/g206l_rs_c/ ProjectConfig.mk//--------这个文件里面指定了开关机“动画”,开关机“声音”,开关机“logo”的文件夹,
mediatek/source/operator/OP02/SPEC0200/operator_packages/bootanim/ bootanimation/G206L_RS_C_GFIVE/WVGA/ bootanimation.zip
mediatek/source/operator/OP02/SPEC0200/operator_packages/bootanim/ bootaudio/G206L_RS_C_GFIVE / bootaudio.mp3
mediatek/source/operator/OP02/SPEC0200/operator_packages/bootanim/ shutanimation/G206L_RS_C_GFIVE /WVGA/ shutanimation.zip
mediatek/source/operator/OP02/SPEC0200/operator_packages/bootanim/ shutaudio /G206L_RS_C_GFIVE / shutaudio.mp3
mediatek/custom/common/uboot/logo/rs_c_gfive_wvga 文件夹//这个文件里存放了,开机的图片的,注:这里的图片名,与文件夹名是相关的
,要修改图片名字的呦。
mediatek/custom/common/uboot/logo/chw_hvga
//测试指令为*#37*#
修改文件:
packages/apps/Contacts/src/com/android/contacts/SpecialCharSequenceMgr.java
packages/apps/Settings/AndroidManifest.xml
packages/apps/Settings/src/com/android/settings/TestingSettingsBroadcastReceiver.java
//Add GYLLSW-11 ningyaoyun 20120420(on)
private void reStartAudioPlayback() {
// Shamelessly copied from MediaPlaybackService.java, which
// should be public, but isn't.
Intent i = new Intent("com.android.music.musicservicecommand");
i.putExtra("command", "togglepause");
sendBroadcast(i);
}
//Add GYLLSW-11 ningyaoyun 20120420(off)
//添加widget并在默认桌面上。
Sending build\target\product\common.mk
Sending package\ apps\BtToggleWidget\res\drawable\appwidget_bg.png
Sending package\ apps\Launcher_Ragentek\res\xml\default_workspace.xml
Sending package\apps\BtToggleWidget\*.*
Sending mediatek/source/operator/OP02/SPEC0200/SEGA/OverLayResource/packages/apps/Launcher2/res/xml/default_workspace.xml
//htc_weather
Sending build\target\product\common.mk
Sending package\apps\Launcher2/src/com/android/launcher2/Launcher.java
Sending mediatek/source/operator/OP02/SPEC0200/SEGA/OverLayResource/packages/apps/Launcher2/res/xml/default_workspace.xml
Adding Package/apps/WeatherAll/*.*
//改动驱动名字
修改文件:
mediatek/custom/mt6575/kernel/usb/src/mtk_usb_custom.h:53:
#define PRODUCT_STRING "MT65xx Android Phone"
//媒体默认音量
短信,闹钟,来电铃声,在这个文件里改
mediatek/source/frameworks/media/audio/java/com/mediatek/audioprofile/ProfileSettings.java
收音机,多媒体,音乐在这个文件里改。
frameworks/base/media/java/android/media/AudioManager.java
frameworks/base/media/java/android/media/AudioService.java
//隐藏输入法。
private void hideInputMethod() {
InputMethodManager inputMethodManager =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
if(this.getWindow()!=null && this.getWindow().getCurrentFocus()!=null){
inputMethodManager.hideSoftInputFromWindow(this.getWindow().getCurrentFocus().getWindowToken(), 0);
}
}
//声明一个监听拔耳机的receiver.
// We want to pause when the headset is unplugged.
private class AudioBecomingNoisyReceiver extends BroadcastReceiver {
public void register() {
mContext.registerReceiver(this,
new IntentFilter(AudioManager.ACTION_AUDIO_BECOMING_NOISY));
}
public void unregister() {
mContext.unregisterReceiver(this);
}
@Override
public void onReceive(Context context, Intent intent) {
if (mVideoView.isPlaying() && mVideoView.canPause())
pauseVideo();
}
}
使用这个receiver.
mAudioBecomingNoisyReceiver = new AudioBecomingNoisyReceiver();
mAudioBecomingNoisyReceiver.register();
component = Telephony AND status in (Open, "In Progress", Reopened)
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 0.5;
getWindow().setAttributes(lp);
/**
* 获取屏幕亮度
*/
private int getScreenBrightness() {
int nowBrightnessValue = 0;
ContentResolver resolver = getContentResolver();
try {
nowBrightnessValue = android.provider.Settings.System.getInt(resolver,
Settings.System.SCREEN_BRIGHTNESS);
} catch (Exception e) {
e.printStackTrace();
}
return nowBrightnessValue;
}
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = (float) (progress / (MAX_BRIGHTNESS * 1.0));
getWindow().setAttributes(lp);