1、解决声音播放有尾声的问题。
diff --git a/alps/frameworks/av/services/audioflinger/AudioFlinger.h b/alps/frameworks/av/services/audioflinger/AudioFlinger.h
index dacb270..ff15d43 100755
--- a/alps/frameworks/av/services/audioflinger/AudioFlinger.h
+++ b/alps/frameworks/av/services/audioflinger/AudioFlinger.h
@@ -102,7 +102,7 @@ class ServerProxy;
// This is typically due to audio mixer and resampler limitations.
#define FCC_8 8 // FCC_8 = Fixed Channel Count 8
-static const nsecs_t kDefaultStandbyTimeInNsecs = seconds(3);
+static const nsecs_t kDefaultStandbyTimeInNsecs = seconds(0.6); // 3->0.6 fix by lwz FAQ[FAQ08024]
#define MAX_GAIN 4096.0f
#define MAX_GAIN_INT 0x1000
2、去掉掉电2秒内自动开机的功能 /alps/vendor/mediatek/proprietary/bootable/bootloader/preloader/custom/aeon6753_65u_m0/inc/cust_rtc.h
+++ b/alps/vendor/mediatek/proprietary/bootable/bootloader/preloader/custom/aeon6753_65u_m0/inc/cust_rtc.h
@@ -42,9 +42,9 @@
* Month (MTH) : 1 ~ 12
* Day of Month (DOM): 1 ~ 31
*/
-#define RTC_DEFAULT_YEA 2010
-#define RTC_DEFAULT_MTH 1
+#define RTC_DEFAULT_YEA 2017
+#define RTC_DEFAULT_MTH 8
#define RTC_DEFAULT_DOM 1
-#define RTC_2SEC_REBOOT_ENABLE 1
+#define RTC_2SEC_REBOOT_ENABLE 0
#define RTC_2SEC_MODE 2
#endif /* __CUST_RTC_H__ */
3、调整字体大小
--- a/alps/frameworks/base/core/java/android/content/res/Configuration.java
+++ b/alps/frameworks/base/core/java/android/content/res/Configuration.java
@@ -835,7 +835,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration
//fontScale = 1.45f;
//2020.03.07 modification by lwz
if(1==YlDefineSystemProperties.YL_MMI_INT_DEFAULT_FONT_SCALE_TYPE){
- fontScale = 1.65f;
+ fontScale = 1.45f;
}else if(2==YlDefineSystemProperties.YL_MMI_INT_DEFAULT_FONT_SCALE_TYPE){
fontScale = 1.15f;
}else if(3==YlDefineSystemProperties.YL_MMI_INT_DEFAULT_FONT_SCALE_TYPE){
--- a/alps/packages/apps/Settings/res/values/arrays.xml
+++ b/alps/packages/apps/Settings/res/values/arrays.xml
@@ -150,7 +150,7 @@
<item>0.85</item>
<item>1.0</item>
<item>1.15</item>
- <item>1.65</item>
+ <item>1.45</item>
</string-array>
<!-- TTS settings -->
4、调整旋钮键值中断
--- a/alps/kernel-3.18/drivers/input/keyboard/mediatek/kpd.c
+++ b/alps/kernel-3.18/drivers/input/keyboard/mediatek/kpd.c
@@ -795,9 +795,9 @@ static void voldown_keymap_handler(unsigned long data)
if( down != up )
{
// send kpd down key
- input_report_key(kpd_input_dev, 250/*250*/, 1);
+ input_report_key(kpd_input_dev, 249/*250*/, 1);
input_sync(kpd_input_dev);
- input_report_key(kpd_input_dev, 250/*250*/, 0);
+ input_report_key(kpd_input_dev, 249/*250*/, 0);
input_sync(kpd_input_dev);
// vol_key_state=0;
kpd_print("report Linux keycode(KEY_VOLUMEUP)(%d,%d)%d \n",down,up,io);
@@ -805,9 +805,9 @@ static void voldown_keymap_handler(unsigned long data)
}
else
{
- input_report_key(kpd_input_dev, 249/*249*/, 1);
+ input_report_key(kpd_input_dev, 250/*249*/, 1);
input_sync(kpd_input_dev);
- input_report_key(kpd_input_dev, 249/*249*/, 0);
+ input_report_key(kpd_input_dev, 250/*249*/, 0);
input_sync(kpd_input_dev);
kpd_print("report Linux keycode(KEY_VOLUMEDOWN)(%d,%d)%d \n",down,up, io);
5、北斗无数据调整
--- a/alps/vendor/mediatek/proprietary/hardware/connectivity/gps/HAL/gps_mtk_aosp.c
+++ b/alps/vendor/mediatek/proprietary/hardware/connectivity/gps/HAL/gps_mtk_aosp.c
@@ -246,7 +246,7 @@ static int gps_epo_file_count = 0;
static char gps_epo_file_name[GPS_EPO_FILE_LEN] = {0};
static char gps_epo_md_file_name[GPS_EPO_FILE_LEN] = {0};
static int gps_epo_type = 0; // o for G+G;1 for GPS only, default is G+G
-static int gnss_mode = 2;
+static int gnss_mode = 1;
const char *mnl_prop_path[] = {
"/data/misc/gps/mnl.prop", /*mainly for target*/
"/sbin/mnl.prop", /*mainly for emulator*/
--- a/alps/vendor/mediatek/proprietary/hardware/connectivity/gps/mnl/mnl_aosp/mnld/src/mnld.c
+++ b/alps/vendor/mediatek/proprietary/hardware/connectivity/gps/mnl/mnl_aosp/mnld/src/mnld.c
@@ -566,7 +566,7 @@ MNL_CONFIG_T mnl_config =
.TIME_INTERVAL = 10,
.u1AgpsMachine = 0, // default use spirent "0"
.ACCURACY_SNR = 1,
- .GNSSOPMode = 2, // 0: G+G; 1: G+B
+ .GNSSOPMode = 1, // 0: G+G; 1: G+B
.dbglog_file_max_size = 20*1024*1024,
.dbglog_folder_max_size = 240*1024*1024
};