整理记录在Firefly平台碰到的一些问题。

特殊适配

遥控器双击电源键打开摄像头问题

  • 增加配置项 ```git diff –git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index e7949b8..607818d 100755 — a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -211,6 +211,9 @@ true

    • true + ```
  • 加载配置项

    diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
    index 0b122a4..5f9a2ba 100755
    --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
    +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
    @@ -2493,6 +2493,9 @@ class DatabaseHelper extends SQLiteOpenHelper {
                            R.bool.def_lockscreen_disabled);
                }

    +            loadBooleanSetting(stmt, Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
    +                    R.bool.def_camera_double_tap_power_gesture_disable); 
    +
                loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ENABLED,
                        com.android.internal.R.bool.config_dreamsEnabledByDefault);
                loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,

参考

关闭双击Power打开Camera功能