T820 Dev 02 Landscape GoogleSearch zhCN

发布于 2024-03-28  39 次阅读


一、旋转屏幕

  理论上来说应该使用persist.default.rotation,但是有股神秘的力量(UNISOC的狗屎代码)会让系统无法正常开机。

./frameworks/base/services/core/java/com/android/server/wm/DisplayRotation

//UNISOC: [PAD FEATURE]Add property for screen orientation customization
// private static int mCustomRotation = SystemProperties.getInt("persist.default.rotation",
//     Surface.ROTATION_0);
private static int mCustomRotation = Surface.ROTATION_90;

二、移除谷歌搜索栏

./packages/apps/Launcher3/src/com/android/Launcher3/config/FeatureFlags.java

//     public static final boolean QSB_ON_FIRST_SCREEN = BuildConfig.QSB_ON_FIRST_SCREEN
//                     && !SystemProperties.getBoolean("ro.launcher.disable_qsb_on_first_screen", false);
        public static final boolean QSB_ON_FIRST_SCREEN = false;

三、默认中文

find ./ -name '*' | xargs grep -r 'PRODUCT_DEFAULT_LOCALE'

./build/make/core/sysprop.mk:

PRODUCT_DEFAULT_LOCALE = "zh-CN"

修改system/build.prop的方法:

  1. ./build/make/core/sysprop.mk中添加变量。
  2. ./build/make/tools/build.info中添加echo。