RK3288开发过程中遇到的问题点和解决方法之Packages

去除桌面渐变黑边

Launcher3/.../Launcher.java

                   SETWorkspaceBackground => setWorkspaceBackground

注释boolean isMultiMode = (0 != Settings.System.getInt(getContentResolver(), "multi_window_config", 0));

添加mLauncherView.setBackground(null);

 

修改桌面布局

/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml

/packages/apps/Launcher3/src/com/android/launcher3/DynamicGrid.java

 

修改“设置”页面布局

Settings/res/xml/dashboard_categories.xml——————————删除对应布局即可

有时还需要去除AndroidManifest.xml中对应的布局

 

修改截屏设置

Settings/.../ ScreenshotSetting.java——————————————设置默认时间

String summary_delay =mDelay.getSharedPreferences().getString("screenshot_delay", "15");

Settings/res/values/arrays.xml———————————————设置截屏延时数组

搜索“<!-- screenshot setting-->”

 

去除“设置”HDMI选项

Settings/.../SettingsActivity.java———————————————修改以下内容

boolean isTablet = "box".equals(SystemProperties.get("ro.target.product", "tablet"));改为

boolean isTablet = true;

 

“无线和网络”—>“更多”

res/xml/wireless_settings.xml

 

永不休眠

Settings/res/xml/display_settings.xml——————————————————删除休眠选项

注释"screen_timeout"

Settings/.../DisplaySettings.java添加if条件,如果没有找到这个preference就不执行相关操作;

   mScreenTimeoutPreference = (ListPreference) findPreference(KEY_SCREEN_TIMEOUT);

if (mScreenTimeoutPreference !=null ) {

....

}

devices/rockchip/rk3288/system.prop ——————————————永不休眠

ro.rk.screenoff_time=2147483647

 

修改内核版本

         /src/com/android/settings/DeviceInfoSettings.java

         //m.group(2) + " " + m.group(3) + "\n" + // x@y.com #1———————————删除第二行

 

修改“版本号”

  /build/core/build_id.mk----------------->export BUILD_ID=xxx

  /build/core/Makefile--->BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S) ==>BUILD_NUMBER := $(shell date +%Y%m%d.%H%M%S)

  /build/core/version_defaults.mk--># BUILD_DISPLAY_ID := $(build_desc)==>BUILD_DISPLAY_ID := $(BUILD_ID).$(BUILD_NUMBER)

posted @ 2017-02-13 18:15  Mr古月  阅读(2102)  评论(0编辑  收藏  举报