fix: 引入Settings的Module

This commit is contained in:
2024-12-10 14:57:24 +08:00
parent ad8fc8731d
commit df105485bd
6934 changed files with 896168 additions and 2 deletions

View File

@@ -0,0 +1,68 @@
package {
default_team: "trendy_team_android_settings_app",
default_applicable_licenses: ["packages_apps_Settings_license"],
}
aconfig_declarations {
name: "aconfig_settings_flags",
package: "com.android.settings.flags",
container: "system",
srcs: [
"*.aconfig",
],
}
java_aconfig_library {
name: "aconfig_settings_flags_lib",
aconfig_declarations: "aconfig_settings_flags",
}
aconfig_declarations {
name: "factory_reset_flags",
package: "com.android.settings.factory_reset",
container: "system",
srcs: ["factory_reset/*.aconfig"],
}
java_aconfig_library {
name: "factory_reset_flags_lib",
aconfig_declarations: "factory_reset_flags",
}
aconfig_declarations {
name: "media_drm_flags",
package: "com.android.settings.media_drm",
container: "system",
srcs: ["media_drm/*.aconfig"],
}
java_aconfig_library {
name: "MediaDrmSettingsFlagsLib",
aconfig_declarations: "media_drm_flags",
}
aconfig_declarations {
name: "accessibility_flags",
package: "com.android.settings.accessibility",
container: "system",
srcs: ["accessibility/*.aconfig"],
}
java_aconfig_library {
name: "accessibility_settings_flags_lib",
aconfig_declarations: "accessibility_flags",
}
aconfig_declarations {
name: "development_settings_flags",
package: "com.android.settings.development",
container: "system",
srcs: [
"development/**/*.aconfig",
],
}
java_aconfig_library {
name: "development_settings_flag_lib",
aconfig_declarations: "development_settings_flags",
}

3
Settings/aconfig/OWNERS Normal file
View File

@@ -0,0 +1,3 @@
per-file settings_accessibility_flag_declarations.aconfig = file:/src/com/android/settings/accessibility/OWNERS
per-file settings_biometrics_integration_declarations.aconfig = file:platform/vendor/unbundled_google/packages/SettingsGoogle:/future/biometrics/OWNERS

View File

@@ -0,0 +1 @@
include /src/com/android/settings/accessibility/OWNERS

View File

@@ -0,0 +1,39 @@
package: "com.android.settings.accessibility"
container: "system"
# NOTE: Keep alphabetized to help limit merge conflicts from multiple simultaneous editors.
flag {
name: "edit_shortcuts_in_full_screen"
namespace: "accessibility"
description: "Show the edit shorcuts screen in full screen, since the shortcut options are increasing."
bug: "300302098"
}
flag {
name: "enable_hearing_aid_preset_control"
namespace: "accessibility"
description: "Allows users to control hearing aid preset in the Bluetooth device details page."
bug: "300015207"
}
flag {
name: "enable_hearing_aid_volume_offset_control"
namespace: "accessibility"
description: "Allows users to control hearing aid volume offset in the Bluetooth device details page."
bug: "301198830"
}
flag {
name: "remove_qs_tooltip_in_suw"
namespace: "accessibility"
description: "Don't show quick settings tooltip in SUW, since the user can't use quick settings there."
bug: "294560581"
}
flag {
name: "enable_color_contrast_control"
namespace: "accessibility"
description: "Allows users to control color contrast in the Accessibility settings page."
bug: "246577325"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.development"
container: "system"
flag {
name: "deprecate_list_activity"
namespace: "android_settings"
description: "Feature flag for deprecating ListActivity in Settings"
bug: "299195099"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.factory_reset"
container: "system"
flag {
name: "enable_factory_reset_wizard"
namespace: "wallet_integration"
description: "Gates whether to enable factory reset wizard."
bug: "301283840"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.media_drm"
container: "system"
flag {
name: "force_l3_enabled"
namespace: "media_drm"
description: "Feature flag of forcing L3"
bug: "301669353"
}

View File

@@ -0,0 +1,39 @@
package: "com.android.settings.flags"
container: "system"
# NOTE: Don't add new accessibility flags here, since the package name doesn't follow
# the best practice for setting's feature flag go/settings-trunk-stable
# NOTE: Keep alphabetized to help limit merge conflicts from multiple simultaneous editors.
# NOTE: All Settings flags share the same Flags class, so prefix our
# flags with 'accessibility' to prevent naming collision.
flag {
name: "accessibility_customize_text_reading_preview"
namespace: "accessibility"
description: "Pulls the accessibility text-reading preview pages from a config."
bug: "307481249"
}
flag {
name: "accessibility_show_app_info_button"
namespace: "accessibility"
description: "Shows an 'app info' button on non-framework a11y Service and Activity pages."
bug: "277378550"
}
flag {
name: "separate_accessibility_vibration_settings_fragments"
namespace: "accessibility"
description: "Splits VibrationSettings into two fragments, one per XML resource"
bug: "289967175"
}
flag {
name: "new_hearing_device_pairing_page"
namespace: "accessibility"
description: "New hearing device pairing page with extra MFi+ASHA filtering"
bug: "307473972"
}

View File

@@ -0,0 +1,16 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "biometric_settings_provider"
namespace: "biometrics_framework"
description: "This flag enables or disables the BiometricSettingsProvider"
bug: "303595205"
}
flag {
name: "fingerprint_v2_enrollment"
namespace: "biometrics_framework"
description: "This flag enables or disables the Fingerprint v2 enrollment"
bug: "295206723"
}

View File

@@ -0,0 +1,17 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "sfps_enroll_refinement"
namespace: "biometrics_integration"
description: "This flag controls whether the sfps pause enrollment feature should be enabled"
bug: "288155127"
}
flag {
name: "udfps_enroll_calibration"
namespace: "biometrics_integration"
description: "This flag controls whether the fps enroll calibration feature should be enabled"
bug: "301226085"
}

View File

@@ -0,0 +1,16 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "enable_offload_bluetooth_operations_to_background_thread"
namespace: "pixel_cross_device_control"
description: "Gates whether to offload bluetooth operations to background thread"
bug: "305636727"
}
flag {
name: "enable_bluetooth_profile_toggle_visibility_checker"
namespace: "pixel_cross_device_control"
description: "Gates whether to enable checker for bluetooth profile toggle visibility"
bug: "321178209"
}

View File

@@ -0,0 +1,23 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "enable_subsequent_pair_settings_integration"
namespace: "pixel_cross_device_control"
description: "Gates whether to enable subsequent pair Settings integration."
bug: "299405720"
}
flag {
name: "enable_auth_challenge_for_usb_preferences"
namespace: "safety_center"
description: "Gates whether to require an auth challenge for changing USB preferences"
bug: "317367746"
}
flag {
name: "enable_saved_devices_order_by_recency"
namespace: "pixel_cross_device_control"
description: "Order the saved bluetooth devices by most recently connected."
bug: "306160434"
}

View File

@@ -0,0 +1,21 @@
package: "com.android.settings.flags"
container: "system"
# NOTE: Keep alphabetized to help limit merge conflicts from multiple simultaneous editors.
# NOTE: All Settings flags share the same Flags class, so prefix our
# flags with 'development' to prevent naming collision.
flag {
name: "development_game_default_frame_rate"
namespace: "game"
description: "This flag guards the new behavior with the addition of Game Default Frame Rate feature."
bug: "286084594"
}
flag {
name: "development_hdr_sdr_ratio"
namespace: "core_graphics"
description: "Shows hdr/sdr dev opton on the development options page from aconfig"
bug: "291863102"
}

View File

@@ -0,0 +1,10 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "protect_screen_timeout_with_auth"
namespace: "safety_center"
description: "Require an auth challenge for increasing screen timeout."
bug: "315937886"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "new_apn_page_enabled"
namespace: "settings_experience"
description: "Change to the new APN page."
bug: "298906796"
}

View File

@@ -0,0 +1,23 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "show_factory_reset_cancel_button"
namespace: "android_settings"
description: "This flag controls whether to show a Cancel button when factory reset"
bug: "300634367"
}
flag {
name: "mainline_module_explicit_intent"
namespace: "android_settings"
description: "Enabling will provide an explicit package name for Intent to update mainline modules"
bug: "278987474"
}
flag {
name: "app_archiving"
namespace: "android_settings"
description: "Feature flag to enable the archiving feature."
bug: "323164382"
}

View File

@@ -0,0 +1,16 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "terms_of_address_enabled"
namespace: "globalintl"
description: "Feature flag for Terms of Address"
bug: "297798866"
}
flag {
name: "locale_notification_enabled"
namespace: "globalintl"
description: "Feature flag for locale notification"
bug: "301380610"
}

View File

@@ -0,0 +1,10 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "dedupe_dnd_settings_channels"
namespace: "systemui"
description: "Controls adding group names to channel names in the DND>Apps settings page"
bug: "294333850"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "enable_sound_backup"
namespace: "onboarding_experience"
description: "Feature flag for B&R sound settings."
bug: "278975761"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "enable_volume_plus_quick_settings"
namespace: "pixel_cross_device_control"
description: "Gates whether to enable VolumePlus quick settings panel."
bug: "309052662"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "enable_perform_backup_tasks_in_settings"
namespace: "backstage_power"
description: "Enable the Perform Backup Tasks screen in Settings"
bug: "320563660"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "protect_lock_after_timeout_with_auth"
namespace: "safety_center"
description: "Require an auth challenge to open Lock after timeout page"
bug: "315937886"
}

View File

@@ -0,0 +1,16 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "remove_key_hide_enable_2g"
namespace: "cellular_security"
description: "Stop honoring CarrierConfigManager.KEY_HIDE_ENABLE_2G. Allow 2G toggle cannot be hidden from users by carriers."
bug: "300248708"
}
flag {
name: "is_dual_sim_onboarding_enabled"
namespace: "settings_experience"
description: "Control the Dual SIM onobarding feature"
bug: "298898436"
}

View File

@@ -0,0 +1,9 @@
package: "com.android.settings.flags"
container: "system"
flag {
name: "enable_voice_activation_apps_in_settings"
namespace: "permissions"
description: "Enable voice activation apps in Settings"
bug: "303727896"
}