diff options
-rw-r--r-- | Android.bp | 30 | ||||
-rw-r--r-- | CarDialerApp.apk | bin | 0 -> 4543506 bytes | |||
-rw-r--r-- | OWNERS | 8 | ||||
-rw-r--r-- | ReadMe.txt | 3 | ||||
-rw-r--r-- | preinstalled-packages-com.android.car.dialer.xml | 24 | ||||
-rwxr-xr-x | update_prebuilt.sh | 29 |
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 Binary files differnew file mode 100644 index 0000000..2a9c358 --- /dev/null +++ b/CarDialerApp.apk @@ -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." |