1#!/bin/bash 2# Copyright (C) 2024 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# Run this script to add the new unresolved intents to Settings manifest.xml file. 16if [[ -z "$ANDROID_BUILD_TOP" ]]; then 17 echo 'ANDROID_BUILD_TOP environment variable is empty; did you forget to run `lunch`?' 18 exit 1 19fi 20PROJECT_TOP=$ANDROID_BUILD_TOP/packages/apps/Car/Settings 21python3 $PROJECT_TOP/tools/handleintents/auto_add_intents.py \ 22 -i $ANDROID_BUILD_TOP/frameworks/base/core/java/android/provider/Settings.java \ 23 -o $PROJECT_TOP/AndroidManifest.xml \ 24 -p ACTION_ \ 25 -f $PROJECT_TOP/tools/handleintents/intent_format.txt \ 26 -t $PROJECT_TOP/tools/handleintents/target_string.txt \ 27 -e 28