summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:10:47 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:10:47 +0000
commit5537a72a1167755e8d96609b468284915d2b36c6 (patch)
treec71597e1cfb293ee439517941c332e0c881ac024
parent117d988b57d0fee3364c9756a361c9bcc3d6361d (diff)
parentb0872e64fbaa6c5611474212d67ddd305fea3943 (diff)
downloadDialerPrebuilt-5537a72a1167755e8d96609b468284915d2b36c6.tar.gz
Snap for 10453563 from b0872e64fbaa6c5611474212d67ddd305fea3943 to mainline-neuralnetworks-releaseaml_neu_341010080aml_neu_341010000
Change-Id: Id28a9ac53562dc195bf92c8dae9a32bb9a07bba0
-rw-r--r--Android.bp30
-rw-r--r--CarDialerApp.apkbin0 -> 4543506 bytes
-rw-r--r--OWNERS8
-rw-r--r--ReadMe.txt3
-rw-r--r--preinstalled-packages-com.android.car.dialer.xml24
-rwxr-xr-xupdate_prebuilt.sh29
6 files changed, 94 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..4e6dccf
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,30 @@
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_app_import {
+ name: "CarDialerApp",
+ apk: "CarDialerApp.apk",
+ privileged: true,
+ certificate: "platform",
+ required: [
+ "allowed_privapp_com.android.car.dialer",
+ "preinstalled-packages-com.android.car.dialer.xml",
+ ],
+ overrides: ["Dialer"],
+ // This flag is needed because we're inehriting 2 `uses-library` tags from `androidx.window`
+ // that it's coming from Compose support in `car-ui-lib` in the manifest. And Soong is
+ // enforcing that both the shared libraries must be in the image. But since both of them are
+ // set to optional we can use the following flag to ignore the build error.
+ optional_uses_libs: [
+ "androidx.window.extensions",
+ "androidx.window.sidecar"
+ ]
+}
+
+prebuilt_etc {
+ name: "preinstalled-packages-com.android.car.dialer.xml",
+ src: "preinstalled-packages-com.android.car.dialer.xml",
+ sub_dir: "sysconfig",
+}
diff --git a/CarDialerApp.apk b/CarDialerApp.apk
new file mode 100644
index 0000000..2a9c358
--- /dev/null
+++ b/CarDialerApp.apk
Binary files differ
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..672c16d
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,8 @@
+# TLs
+igorr@google.com
+yiqunw@google.com
+arnaudberry@google.com
+
+# Engs
+pyli@google.com
+
diff --git a/ReadMe.txt b/ReadMe.txt
new file mode 100644
index 0000000..c37d14c
--- /dev/null
+++ b/ReadMe.txt
@@ -0,0 +1,3 @@
+This apk was built with the code released to aosp on June 23, 2022.
+To fetch and build the code, please follow the steps described here:
+https://source.android.com/docs/devices/automotive/unbundled_apps/integration
diff --git a/preinstalled-packages-com.android.car.dialer.xml b/preinstalled-packages-com.android.car.dialer.xml
new file mode 100644
index 0000000..e2c7f70
--- /dev/null
+++ b/preinstalled-packages-com.android.car.dialer.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2022 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
+ -->
+<!-- System packages to preinstall, per user type.
+ Documentation at frameworks/base/data/etc/preinstalled-packages-platform.xml
+-->
+<config>
+ <install-in-user-type package="com.android.car.dialer">
+ <install-in user-type="FULL" />
+ </install-in-user-type>
+</config>
diff --git a/update_prebuilt.sh b/update_prebuilt.sh
new file mode 100755
index 0000000..8b8f9e0
--- /dev/null
+++ b/update_prebuilt.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+set -eu
+
+# Usage: update_prebuilt.sh BUILD_ID
+
+if [ -z "${1+x}" ]
+then
+ echo "build id is required"
+ exit 1
+fi
+
+function downloadApp {
+ TARGET=car_apps_gradle-all
+ # See go/fetch_artifact for details on fetch_artifact. To install it use:
+ # sudo glinux-add-repo android stable && \
+ # sudo apt update && \
+ # sudo apt install android-fetch-artifact
+
+ CMD="fetch_artifact --bid $1 --target $TARGET --use_oauth2"
+
+ $CMD $2 $2
+}
+
+
+cd $(dirname $0)
+
+downloadApp $1 "CarDialerApp.apk"
+
+echo "Done. Don't forget to test and commit the new artifact."