Split TeleService into a client apk and a lib.
The client apk has the manifest and the lib has the code
and resources. This is being done so that the apk can run
under the phone shareduid, while the lib can be part of telephony
mainline module and be updatable.
Test: basic telephony sanity & atest TeleServiceTests
Bug: 144806641
Change-Id: I3cd7dd692ec9325a10aa7ae63e77240c7ad58112
diff --git a/client/Android.bp b/client/Android.bp
new file mode 100644
index 0000000..45c6527
--- /dev/null
+++ b/client/Android.bp
@@ -0,0 +1,41 @@
+// Copyright 2019 Google Inc. All rights reserved.
+//
+// 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.
+
+// Build the Phone app which includes the emergency dialer. See Contacts
+// for the 'other' dialer.
+
+android_app {
+ name: "TeleService",
+
+ libs: [
+ "telephony-common",
+ "voip-common",
+ "ims-common",
+ "libprotobuf-java-lite",
+ "TeleServiceLib",
+ ],
+
+ required: ["TeleServiceLib"],
+
+ platform_apis: true,
+
+ certificate: "platform",
+ privileged: true,
+
+ defaults: ["SettingsLibDefaults"],
+
+ proto: {
+ type: "lite",
+ },
+}