Android 5.1 framework修改

1.修改默认无锁屏
frameworks\base\packages\SettingsProvider\res\values\defaults.xml

true

2.设置屏幕休眠时间(5分钟)

frameworks\base\packages\SettingsProvider\res\values\defaults.xml

300000

3.修改开机默认亮度

frameworks\base\packages\SettingsProvider\res\values\defaults.xml

255

4.修改PhoneStateBar显示图标
frameworks\base\packages\SystemUI\res\values\config.xml


        inversion,cell,rotation,location,hotknot,audioprofile
    

5.修改系统默认语言
build/target/product/full_base.mk

PRODUCT_LOCALES := zh_CN

6.vendor下的应用刷机第一次想要启动
frameworks\base\services\core\java\com\android\server\am\ActivityManagerService.java 6938行左右

for (int i=0; i

intent.addFlags(Intent.FLAG_RECEIVER_NO_ABORT);下添加一行intent.setFlags(32);

7.隐藏状态栏

frameworks/base/core/res/res/values/dimens.xml  

status_bar_height 值改为0dp

8.framework.jar路径

out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar

9.屏蔽所有物理按键

frameworks\base\services\core\java\com\android\server\wm\WindowManagerService.java

computeScreenConfigurationLocked 方法将hardKeyboardAvailable改为false。

boolean hardKeyboardAvailable = false;

Android 5.1 framework修改_第1张图片

10.默认打开usb调试

\build\core\main.mk
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1

你可能感兴趣的:(Android)