1#!/bin/bash 2# Copyright (C) 2021 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 regenerate the overlayable.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 $ANDROID_BUILD_TOP/packages/apps/Car/tests/tools/rro/generate-overlayable.py \ 22 -n CarSettings \ 23 -r $PROJECT_TOP/res \ 24 -e $PROJECT_TOP/res/values/overlayable.xml $PROJECT_TOP/res/values/preference_keys.xml $PROJECT_TOP/res/values/preference_screen_keys.xml \ 25 -o $PROJECT_TOP/res/values/overlayable.xml 26