• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Copyright (C) 2021 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9#      http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17MY_NAME=$0
18SCRIPT_NAME=${MY_NAME##*/}
19SCRIPT_DIR=${MY_NAME%/$SCRIPT_NAME}
20
21echo "Create sdk_gcar_30.avd"
22AVD_IMG_NAME="sdk_gcar" \
23  ABI="x86_64" \
24  API_LEVEL=30 \
25  DEFAULT_DEVICE_XML="${SCRIPT_DIR}/resource/devices.xml" \
26  "${SCRIPT_DIR}/create_avd.sh"
27
28echo
29echo "Remove sdk_gcar_30.avd"
30rm -r /Users/samlin/.android/avd/sdk_gcar_30.avd || rm /Users/samlin/.android/avd/sdk_gcar_30.ini
31
32echo
33echo "Create sdk_gcar_30.avd again"
34AVD_IMG_NAME="sdk_gcar" \
35  ABI="x86_64" \
36  API_LEVEL=30 \
37  DEFAULT_DEVICE_XML="${SCRIPT_DIR}/resource/devices.xml" \
38  "${SCRIPT_DIR}/create_avd.sh"
39