Android4.2.2源码修改点

· 默认壁纸
 /frameworks/base/core/res/res/drawable-nodpi/default_wallpaper

· 取消闪烁红框
 frameworks\base\services\java\com\android\server\wm\WindowManagerService.java
 L5762: //mStrictModeFlash.setVisibility(on);

· 加大adb截屏缓存
 system\core\adb\framebuffer_service.c
 L59: char buf[1024];

· 设置默认GSM的IMEI码
 frameworks\opt\telephony\src\java\com\android\internal\telephony\gsm\GSMPhone.java
 L125: private String mImei = "000000000000000";

· 关闭GPS
 frameworks/base/packages/SettingsProvider/res/values/defaults.xml
 <string name="def_location_providers_allowed" translatable="false">gps</string>

· USB调试默认设置
 packages/apps/Provision/src/com/android/provision/DefaultActivity.java
 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ADB_ENABLED, 1);  //0代表关闭,1代表打开

· 默认休眠时间
 frameworks/base/packages/SettingsProvider/res/values/default.xml
 <integer name="def_screen_off_timeout">60000</integer>

· 平板模式设置
 frameworks\base\core\res\res\values-sw480dp\bools.xml
 preferences_prefer_dual_pane

· 串口及默认权限
 修改配置后修改init.rc添加权限

· 默认配置:亮度、wifi、屏保时间。。。
 /frameworks/base/packages/SettingsProvider/res/values/defaults.xml

· Binder内存泄露BUG
 /frameworks\native\libs\binder\Parcel.cpp
 L1444:+free(data);

· 未知
 external\kernel-headers\original\linux\android_alarm.h
 L23:+ANDROID_ALARM_RTC_SHUTDOWN_WAKEUP,
 L37:+ANDROID_ALARM_RTC_SHUTDOWN_WAKEUP_MASK = 1U << ANDROID_ALARM_RTC_SHUTDOWN_WAKEUP,

· 未知
external\dhcpcd\dhcp.c
L1051:添加
            if(len > 8)
                len = 8;//hostname too long may load dhcp fail on some router

· 未知
 android4.2\development\apps\Development\AndroidManifest.xml
 L46:+<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
 L120:-GLSTester

· 未知
 android4.2\dalvik\vm\Init.cpp
 L1643:注释掉unshare

· 未知
 android4.2\packages\apps\Music\src\com\android\music\TrackBrowserActivity.java
 L1407:catch exception

· 未知
 android4.2\packages\apps\LegacyCamera\src\com\android\camera\Util.java
 L377:final double ASPECT_TOLERANCE = 0.1;

· 未知
 

posted @ 2013-12-02 18:04  easynote  阅读(593)  评论(0编辑  收藏  举报