WLAN通话-通话偏好设置-首选移动网络
framework/base/packages/SettingsProvider/src/com/mediatek/providers/utils/ProviderUtils.java
loadCustomGlobalSettings();
loadSetting(
stmt,
Settings.Global.WFC_IMS_MODE,
getValue(Settings.Global.WFC_IMS_MODE,
ImsConfig.WfcModeFeatureValueConstants.CELLULAR_PREFERRED));
WLAN通话默认开启
framework/base/packages/SettingsProvider/src/com/mediatek/providers/utils/ProviderUtils.java
loadCustomGlobalSettings();
loadSetting(
stmt,
Settings.Global.WFC_IMS_ENABLED,
getValue(Settings.Global.WFC_IMS_ENABLED,
ImsConfig.FeatureValueConstants.ON));
电话拦截
packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
onSuccessfulIncomingCall();
Settings 各级菜单页面加返回按钮
+++ b/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
@@ -700,6 +700,7 @@ public class SettingsActivity extends Activity
mActionBar = getActionBar();
if (mActionBar != null) {
+ mDisplayHomeAsUpEnabled = true;//mh.20180530
mActionBar.setDisplayHomeAsUpEnabled(mDisplayHomeAsUpEnabled);
Settings 添加永不休眠,默认永不休眠
+++ b/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -18,7 +18,7 @@
-->
<resources>
<bool name="def_dim_screen">true</bool>
- <integer name="def_screen_off_timeout">60000</integer>
+ <integer name="def_screen_off_timeout">0</integer>
<integer name="def_sleep_timeout">-1</integer>
<bool name="def_airplane_mode_on">false</bool>
<bool name="def_theater_mode_on">false</bool>
+++ b/frameworks/base/services/core/java/com/android/server/power/PowerManagerService.java
@@ -1871,10 +1871,15 @@ public final class PowerManagerService extends SystemService
nextTimeout = -1;
}
}
- if (mUserActivitySummary != 0 && nextTimeout >= 0) {
- Message msg = mHandler.obtainMessage(MSG_USER_ACTIVITY_TIMEOUT);
- msg.setAsynchronous(true);
- mHandler.sendMessageAtTime(msg, nextTimeout);
+ //mh.20180414
+ if(mScreenOffTimeoutSetting != 0){
+ if (mUserActivitySummary != 0 && nextTimeout >= 0) {
+ Message msg = mHandler.obtainMessage(MSG_USER_ACTIVITY_TIMEOUT);
+ msg.setAsynchronous(true);
+ mHandler.sendMessageAtTime(msg, nextTimeout);
+ }
+ }else {
+ mUserActivitySummary |= USER_ACTIVITY_SCREEN_BRIGHT;
}
} else {
mUserActivitySummary = 0;
+++ b/packages/apps/Settings/res/values-zh-rCN/arrays.xml
@@ -37,6 +37,7 @@
<item msgid="7489864775127957179">"5分钟"</item>
<item msgid="2314124409517439288">"10分钟"</item>
<item msgid="6864027152847611413">"30分钟"</item>
+ <item>永不</item>
</string-array>
+++ b/packages/apps/Settings/res/values/arrays.xml
@@ -48,6 +48,7 @@
<item>5 minutes</item>
<item>10 minutes</item>
<item>30 minutes</item>
+ <item>never</item>
</string-array>
<!-- Do not translate. -->
@@ -66,6 +67,8 @@
<string-array name="screen_timeout_values" translatable="false">
<item>600000</item>
<!-- Do not translate. -->
<item>1800000</item>
+ <!-- mh.20180414 never -->
+ <item>0</item>
</string-array>
(END)
默认给予权限,不要弹出GPS权限请求
+++ b/frameworks/base/core/res/AndroidManifest.xml
@@ -543,7 +543,7 @@
android:permissionGroup="android.permission-group.LOCATION"
android:label="@string/permlab_accessFineLocation"
android:description="@string/permdesc_accessFineLocation"
- android:protectionLevel="dangerous" />
+ android:protectionLevel="normal" />
<!-- Allows an app to access approximate location.
<p>Protection level: dangerous
@@ -552,7 +552,7 @@
android:permissionGroup="android.permission-group.LOCATION"
android:label="@string/permlab_accessCoarseLocation"
android:description="@string/permdesc_accessCoarseLocation"
- android:protectionLevel="dangerous" />
+ android:protectionLevel="normal" />
+++ b/frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -8861,6 +8861,12 @@ public class PackageManagerService extends IPackageManager.Stub {
} break;
}
+ ///mh.20180414
+ if (permissionsState.grantInstallPermission(bp) !=
+ PermissionsState.PERMISSION_OPERATION_FAILURE) {
+ grant = GRANT_INSTALL;
+ }
+
隐藏虚拟导航键
+++ b/device/eastaeon/T008/system.prop
@@ -52,7 +52,7 @@ ro.zygote.preload.enable=0
# temporary enables NAV bar (soft keys)
#add nav bar
-qemu.hw.mainkeys=0
+qemu.hw.mainkeys=1
默认字体大小
+++ b/frameworks/base/core/java/android/content/res/Configuration.java
@@ -830,7 +830,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration
* Set this object to the system defaults.
*/
public void setToDefaults() {
- fontScale = 1;
+ fontScale = 1.3f;///mh.20180318
mcc = mnc = 0;
APP强制横屏显示
+++ b/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -6963,6 +6963,8 @@ public class WindowManagerService extends IWindowManager.Stub
+ " which has " + (altOrientation ? "incompatible" : "compatible")
+ " metrics");
}
+ rotation = 0;///mh.20180316