feat: 修改Android.bp为gradle的配置完成

This commit is contained in:
2024-12-12 10:47:02 +08:00
parent ab4348bcd2
commit ea31ed79bf
11 changed files with 105 additions and 36 deletions

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="content_protection_preference_subpage"
android:title="@string/content_protection_preference_title">
<com.android.settingslib.widget.TopIntroPreference
android:key="content_protection_preference_top_intro"
android:title="@string/content_protection_preference_subpage_summary"
settings:searchable="false"/>
<com.android.settings.widget.SettingsMainSwitchPreference
android:key="content_protection_preference_user_consent_switch"
android:title="@string/content_protection_preference_user_consent_switch_title"
settings:controller=
"com.android.settings.security.ContentProtectionTogglePreferenceController"/>
<com.android.settingslib.widget.IllustrationPreference
android:key="content_protection_preference_subpage_illustration"
android:selectable="false"
settings:lottie_rawRes="@drawable/content_protection_preference_illustration"
settings:searchable="false" />
<com.android.settingslib.RestrictedSwitchPreference
android:key="content_protection_preference_user_consent_work_profile_switch"
android:title="@string/content_protection_preference_user_consent_work_profile_switch_title"
settings:controller="com.android.settings.security.ContentProtectionWorkSwitchController"
settings:restrictedSwitchSummary="@string/summary_placeholder"
settings:useAdditionalSummary="true"/>
<com.android.settingslib.widget.FooterPreference
android:key="content_protection_preference_subpage_footer"
android:title="@string/content_protection_preference_subpage_info" />
</PreferenceScreen>

View File

@@ -235,7 +235,7 @@
<string name="share" msgid="8502235338607613795">"分享"</string>
<string name="add" msgid="8335206931421683426">"添加"</string>
<string name="remove" msgid="1028414219245072102">"移除"</string>
<string name="settings_label" msgid="943294133671632976">"设置"</string>
<string name="settings_label" msgid="943294133671632976">"Cariad设置"</string>
<string name="settings_label_launcher" msgid="820982375501978609">"设置"</string>
<string name="settings_shortcut" msgid="8548239727871847171">"设置快捷方式"</string>
<string name="airplane_mode" msgid="3196085857882526817">"飞行模式"</string>

View File

@@ -549,7 +549,7 @@
<string name="remove">Remove</string>
<!-- Title of the Settings activity shown within the application itself. -->
<string name="settings_label">Settings</string>
<string name="settings_label">Cariad Settings</string>
<!-- Title of the Settings activity shown in the Launcher. [CHAR LIMIT=20] -->
<string name="settings_label_launcher">Settings</string>
<!-- Label for option to select a settings panel as a shortcut -->