1.修改蓝牙为从端
1 2 3 4 | device/qcom/msmxxx/system.prop //设置成从模式 persist.service.bt.a2dp.sink=true persist.service.bt.hfp.client=true |
1 2 3 4 5 6 7 8 9 | device/qcom/msmxxx/overlay/packages/apps/Bluetooth/res/values/config.xml <?xml version="1.0" encoding="utf-8"?> <resources> <bool name="profile_supported_a2dp_sink">true</bool> <bool name="profile_supported_avrcp_controller">true</bool> <bool name="profile_supported_hfpclient">true</bool> <bool name="profile_supported_pbapclient">true</bool> </resources> |
2.修改默认的睡眠超时和屏幕关闭超时
1 2 3 4 | device/qcom/msmxxx/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml <integer name="def_screen_off_timeout">2147483647</integer> <integer name="def_sleep_timeout">2147483647</integer> |
3.配置液晶屏密度
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | device/qcom/common/rootdir/etc/init.qcom.early_boot.sh function set_density_by_fb() { #put default density based on width if [ -z $fb_width ]; then setprop ro.sf.lcd_density 320 else if [ $fb_width -ge 1920 ]; then setprop ro.sf.lcd_density 320 # 1920x1080 elif [ $fb_width -ge 1080 ]; then setprop ro.sf.lcd_density 480 elif [ $fb_width -ge 1024 ]; then setprop ro.sf.lcd_density 160 # 1024x600 elif [ $fb_width -ge 720 ]; then setprop ro.sf.lcd_density 320 #for 720X1280 resolution elif [ $fb_width -ge 480 ]; then setprop ro.sf.lcd_density 240 #for 480X854 resolution else setprop ro.sf.lcd_density 160 fi fi } |
4.删除导航栏并锁定屏幕方向横向
1 2 3 4 | device/qcom/msmxxx/overlay/frameworks/base/core/res/res/values/config.xml <bool name="config_cameraDoubleTapPowerGestureEnabled">false</bool> <bool name="config_supportAutoRotation">false</bool> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java //addNavigationBar(); frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java boolean updateOrientationFromAppTokensLocked(boolean inTransaction) { . ......... //int req = getOrientationLocked(); int req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; ............. } |
5.删除no_sim和new_sim对话框
1 2 3 4 | vendor/qcom/proprietary/qrdplus/Extension/apps/PhoneFeatures/res/values/configs.xml <bool name="feature_new_sim">false</bool> <bool name="feature_no_sim">false</bool> |
6.adb设备序列号为空
1 2 3 4 5 6 7 | kernel/msm-3.18/drivers/usb/gadget/android.c // #if defined(CONFIG_DEBUG_ATOMIC_SLEEP) // id=0; // #else id = usb_string_id(cdev); // #endif |