未知来源开关默认值:
frameworks/base/packages/SettingsProvider/res/values/defaults.xml:40: <bool name="def_install_non_market_apps">true</bool>
修改Camere2照片预览方向:
+++ b/LINUX/android/packages/apps/Camera2/src/com/android/camera/util/CameraUtil.java
@@ -1309,7 +1309,7 @@ public class CameraUtil {
boolean isFrontCamera) {
// The sensor of front camera faces in the opposite direction from back camera.
if (isFrontCamera) {
- deviceOrientation = (360 - deviceOrientation) % 360;
+ deviceOrientation = (360 - deviceOrientation + 90) % 360;
}
return (sensorOrientation + deviceOrientation) % 360;
}
修改安全补丁日期:
build/core/version_defaults.mk:106: PLATFORM_SECURITY_PATCH := xxxx-xx-xx
移除闹钟的振动:
+++ b/LINUX/android/packages/apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java
@@ -1126,9 +1126,9 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements
}
if (!mHasVibrator) {
- itemHolder.vibrate.setVisibility(View.INVISIBLE);
+ itemHolder.vibrate.setVisibility(View.GONE);
} else {
- itemHolder.vibrate.setVisibility(View.VISIBLE);
+ itemHolder.vibrate.setVisibility(View.GONE);
移除Lancher欢迎使用界面:
+++ b/LINUX/android/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
@@ -519,12 +519,13 @@ public class Launcher extends Activity
}
+ /*
if (shouldShowIntroScreen()) {
showIntroScreen();
} else {
showFirstRunActivity();
showFirstRunClings();
- }
+ }*/
}
去掉多用户
frameworks/base/core/res/res/values/config.xml
<!-- Google defalut -->
<!-- Maximum number of supported users -->
<integer name="config_multiuserMaximumUsers">1</integer>
<!-- Whether UI for multi user should be shown -->
<bool name="config_enableMultiUserUI">false</bool>
隐藏桌面应用icon:
packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
// Create the ApplicationInfos
for (int i = 0; i < apps.size(); i++) {
LauncherActivityInfoCompat app = apps.get(i);
// This builds the icon bitmaps.
if("com.android.firewall".equals(apps.get(i).getApplicationInfo().packageName)) {
continue;
}
mBgAllAppsList.add(new AppInfo(mContext, app, user, mIconCache));
}
移除小部件:
@@ -3578,6 +3581,19 @@ public class LauncherModel extends BroadcastReceiver
widgetsAndShortcuts.addAll(getWidgetProviders(mApp.getContext(), refresh));
Intent shortcutsIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
widgetsAndShortcuts.addAll(packageManager.queryIntentActivities(shortcutsIntent, 0));
+ for(int i = 0;i < widgetsAndShortcuts.size();i++){
+ Object o = widgetsAndShortcuts.get(i);
+ if(o instanceof LauncherAppWidgetProviderInfo){
+ LauncherAppWidgetProviderInfo info = (LauncherAppWidgetProviderInfo)o;
+ if(info.provider.getPackageName().equals("com.android.mms")) {
+ widgetsAndShortcuts.remove(i);
+ i--;
+ }else if(info.provider.getPackageName().equals("com.android.browser")) {
+ widgetsAndShortcuts.remove(i);
+ i--;
+ }
+ }
+ }
mBgWidgetsModel.setWidgetsAndShortcuts(widgetsAndShortcuts);
}
原生日历默认月视图
b/LINUX/android/packages/apps/Calendar/src/com/android/calendar/GeneralPreferences.java
- public static final int DEFAULT_START_VIEW = CalendarController.ViewType.WEEK;
+ public static final int DEFAULT_START_VIEW = CalendarController.ViewType.MONTH;
Home键长按默认
frameworks/base/core/res/res/values/config.xml
<!-- Control the behavior when the user long presses the home button.
0 - Nothing
1 - Recent apps view in SystemUI
2 - Launch assist intent
This needs to match the constants in
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
-->
<integer name="config_longPressOnHomeBehavior">1</integer>
默认铃声:
++ b/LINUX/android/build/target/product/full_base.mk
@@ -39,7 +39,7 @@ PRODUCT_PACKAGES += \
# Additional settings used in all AOSP builds
PRODUCT_PROPERTY_OVERRIDES := \
ro.config.ringtone=BeatPlucker.ogg \
ro.config.notification_sound=pixiedust.ogg
默认音量大小:
+ b/LINUX/android/frameworks/base/media/java/android/media/AudioSystem.java
@@ -697,7 +697,7 @@ public class AudioSystem
public static int[] DEFAULT_STREAM_VOLUME = new int[] {
4, // STREAM_VOICE_CALL
7, // STREAM_SYSTEM
15, // STREAM_RING
15, // STREAM_MUSIC
6, // STREAM_ALARM
修改桌面应用的标题:
BubbleTextView.java
public void applyFromShortcutInfo(ShortcutInfo info, IconCache iconCache,
boolean setDefaultPadding, boolean promiseStateChanged) {
Bitmap b = info.getIcon(iconCache);
LauncherAppState app = LauncherAppState.getInstance();
FastBitmapDrawable iconDrawable = Utilities.createIconDrawable(b);
iconDrawable.setGhostModeEnabled(info.isDisabled != 0);
setCompoundDrawables(null, iconDrawable, null, null);
if (setDefaultPadding) {
DeviceProfile grid = app.getDynamicGrid().getDeviceProfile();
setCompoundDrawablePadding(grid.iconDrawablePaddingPx);
}
if (info.contentDescription != null) {
setContentDescription(info.contentDescription);
}
setText(info.title);
setTag(info);
//远程工具
if (info.getIntent().getComponent().getPackageName().equals(
"cn.fmsyjhgb")){
setText(getContext().getString(R.string.all_apps_button_label));
}
}