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 16# Run this script to regenerate the overlayable.xml file. 17 18if [[ -z "$ANDROID_BUILD_TOP" ]]; then 19 echo 'ANDROID_BUILD_TOP environment variable is empty; did you forget to run `lunch`?' 20 exit 1 21fi 22 23PROJECT_TOP=$ANDROID_BUILD_TOP/packages/apps/Car/Launcher 24 25python3 $ANDROID_BUILD_TOP/packages/apps/Car/systemlibs/tools/rro/generate-overlayable.py \ 26 -n CarLauncher \ 27 -r $PROJECT_TOP/res \ 28 -e $PROJECT_TOP/res/values/overlayable.xml \ 29 -o $PROJECT_TOP/res/values/overlayable.xml 30