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
Test: manually verified that earlier bugs b/146087645, b/146034680,
b/146109167 are not seen
Bug: 144806641
Change-Id: If9f7bd6a50fce2b8e819479c2765240c5292a251
diff --git a/client/Android.bp b/client/Android.bp
new file mode 100644
index 0000000..4b832f7
--- /dev/null
+++ b/client/Android.bp
@@ -0,0 +1,45 @@
+// 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",
+    ],
+
+    srcs: [
+        "src/**/*.java"
+    ],
+
+    required: ["TeleServiceLib"],
+
+    platform_apis: true,
+
+    certificate: "platform",
+    privileged: true,
+
+    defaults: ["SettingsLibDefaults"],
+
+    proto: {
+        type: "lite",
+    },
+}