From 80eb080036456b6e5a2322c57a52de25baa1b4be Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Mon, 12 Apr 2021 11:06:03 -0700 Subject: [PATCH 1/2] Rename AutomotiveOS to car-lib Android Auto team is Splitting this repo by the library they exemplify, instead of the platform Bug: 181573450 --- AutomotiveOS/README.md | 10 ---------- README.md | 2 -- .../CarGearViewerKotlin/.gitignore | 0 .../CarGearViewerKotlin/.google/packaging.yaml | 0 .../CarGearViewerKotlin/README.md | 0 .../CarGearViewerKotlin/automotive/build.gradle | 0 .../automotive/src/main/AndroidManifest.xml | 0 .../java/com/example/cargearviewer/MainActivity.kt | 0 .../res/drawable-v24/ic_launcher_foreground.xml | 0 .../main/res/drawable/ic_launcher_background.xml | 0 .../src/main/res/layout/activity_main.xml | 0 .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-hdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher_round.png | Bin .../automotive/src/main/res/values/strings.xml | 0 .../CarGearViewerKotlin/build.gradle | 0 .../CarGearViewerKotlin/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 .../CarGearViewerKotlin/gradlew | 0 .../CarGearViewerKotlin/gradlew.bat | 0 .../CarGearViewerKotlin/settings.gradle | 0 31 files changed, 12 deletions(-) delete mode 100644 AutomotiveOS/README.md rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/.gitignore (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/.google/packaging.yaml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/README.md (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/build.gradle (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/java/com/example/cargearviewer/MainActivity.kt (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/drawable-v24/ic_launcher_foreground.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/drawable/ic_launcher_background.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/layout/activity_main.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher_round.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher_round.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher_round.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/automotive/src/main/res/values/strings.xml (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/build.gradle (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/gradle.properties (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.jar (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.properties (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/gradlew (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/gradlew.bat (100%) rename {AutomotiveOS => car-lib}/CarGearViewerKotlin/settings.gradle (100%) diff --git a/AutomotiveOS/README.md b/AutomotiveOS/README.md deleted file mode 100644 index 79d6a77..0000000 --- a/AutomotiveOS/README.md +++ /dev/null @@ -1,10 +0,0 @@ -Android Automotive OS Samples -========================= - -This repository contains a set of individual Android Studio projects to help you get started -writing apps for Android Automotive OS. - -Android Automotive OS is an Android-based infotainment system that is built in to vehicles. -The car's system is a stand-alone Android device that is optimized for driving. - -Instead of using your phone app, users install your app directly onto the head unit. diff --git a/README.md b/README.md index 3f30aa4..560fcca 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,3 @@ The samples are categorized by the libraries they use to integrate with the car: and charging apps for the Android Auto-compatible cars. The app may be running in a phone connected to the car or in the Android Automotive OS running in the car. -- Android Automotive OS - Android-based infotainment system that is built in to vehicles. -The car's system is a stand-alone Android device that is optimized for driving. diff --git a/AutomotiveOS/CarGearViewerKotlin/.gitignore b/car-lib/CarGearViewerKotlin/.gitignore similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/.gitignore rename to car-lib/CarGearViewerKotlin/.gitignore diff --git a/AutomotiveOS/CarGearViewerKotlin/.google/packaging.yaml b/car-lib/CarGearViewerKotlin/.google/packaging.yaml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/.google/packaging.yaml rename to car-lib/CarGearViewerKotlin/.google/packaging.yaml diff --git a/AutomotiveOS/CarGearViewerKotlin/README.md b/car-lib/CarGearViewerKotlin/README.md similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/README.md rename to car-lib/CarGearViewerKotlin/README.md diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/build.gradle b/car-lib/CarGearViewerKotlin/automotive/build.gradle similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/build.gradle rename to car-lib/CarGearViewerKotlin/automotive/build.gradle diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/java/com/example/cargearviewer/MainActivity.kt b/car-lib/CarGearViewerKotlin/automotive/src/main/java/com/example/cargearviewer/MainActivity.kt similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/java/com/example/cargearviewer/MainActivity.kt rename to car-lib/CarGearViewerKotlin/automotive/src/main/java/com/example/cargearviewer/MainActivity.kt diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/drawable-v24/ic_launcher_foreground.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/drawable/ic_launcher_background.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/drawable/ic_launcher_background.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/drawable/ic_launcher_background.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/layout/activity_main.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/res/layout/activity_main.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/layout/activity_main.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/layout/activity_main.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher_round.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher_round.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/values/strings.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/res/values/strings.xml similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/automotive/src/main/res/values/strings.xml rename to car-lib/CarGearViewerKotlin/automotive/src/main/res/values/strings.xml diff --git a/AutomotiveOS/CarGearViewerKotlin/build.gradle b/car-lib/CarGearViewerKotlin/build.gradle similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/build.gradle rename to car-lib/CarGearViewerKotlin/build.gradle diff --git a/AutomotiveOS/CarGearViewerKotlin/gradle.properties b/car-lib/CarGearViewerKotlin/gradle.properties similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/gradle.properties rename to car-lib/CarGearViewerKotlin/gradle.properties diff --git a/AutomotiveOS/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.jar b/car-lib/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.jar rename to car-lib/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.jar diff --git a/AutomotiveOS/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.properties b/car-lib/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.properties rename to car-lib/CarGearViewerKotlin/gradle/wrapper/gradle-wrapper.properties diff --git a/AutomotiveOS/CarGearViewerKotlin/gradlew b/car-lib/CarGearViewerKotlin/gradlew similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/gradlew rename to car-lib/CarGearViewerKotlin/gradlew diff --git a/AutomotiveOS/CarGearViewerKotlin/gradlew.bat b/car-lib/CarGearViewerKotlin/gradlew.bat similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/gradlew.bat rename to car-lib/CarGearViewerKotlin/gradlew.bat diff --git a/AutomotiveOS/CarGearViewerKotlin/settings.gradle b/car-lib/CarGearViewerKotlin/settings.gradle similarity index 100% rename from AutomotiveOS/CarGearViewerKotlin/settings.gradle rename to car-lib/CarGearViewerKotlin/settings.gradle From 674ca75ed48f5ea5b648fabc29e6fffc6abaf5ad Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Wed, 14 Apr 2021 11:54:46 -0700 Subject: [PATCH 2/2] Add distractionOptimized to the MainActivity It allows demo-ing the app properly, otherwise the activity gets blocked by UX Restriction system. --- .../CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/car-lib/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml b/car-lib/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml index 01dd611..42f43a0 100644 --- a/car-lib/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml +++ b/car-lib/CarGearViewerKotlin/automotive/src/main/AndroidManifest.xml @@ -29,6 +29,8 @@ android:supportsRtl="true" android:theme="@android:style/Theme.DeviceDefault.NoActionBar"> + +