Add telephony feature flag lib
Fix: 296290011
Test: basic voice call + data browsing
Change-Id: I4e01184e2f87b75e8d1881d7da9121443d80d6a8
diff --git a/Android.bp b/Android.bp
index dc35c5d..0dab95d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -43,7 +43,8 @@
"PlatformProperties",
"modules-utils-os",
"nist-sip",
- "service-entitlement"
+ "service-entitlement",
+ "telephony_flags-lib",
],
srcs: [
diff --git a/flags/Android.bp b/flags/Android.bp
new file mode 100644
index 0000000..25ddbf9
--- /dev/null
+++ b/flags/Android.bp
@@ -0,0 +1,32 @@
+//
+// 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.
+//
+
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+aconfig_declarations {
+ name: "telephony_flags",
+ package: "com.android.telephony.phone.flags",
+ srcs: [
+ "phone.aconfig",
+ ],
+}
+
+java_aconfig_library {
+ name: "telephony_flags-lib",
+ aconfig_declarations: "telephony_flags"
+}
diff --git a/flags/phone.aconfig b/flags/phone.aconfig
new file mode 100644
index 0000000..014080f
--- /dev/null
+++ b/flags/phone.aconfig
@@ -0,0 +1,8 @@
+package: "com.android.telephony.phone.flags"
+
+flag {
+ name: "work_profile_api_split"
+ namespace: "telephony"
+ description: "To support separation between personal and work from TelephonyManager and SubscriptionManager API perspective."
+ bug: "296076674"
+}