xref: /aosp_15_r20/prebuilts/runtime/update.py (revision 924841fff420cd6b931e1027ee46b85e0a18fe17)
1*924841ffSAndroid Build Coastguard Worker#!/usr/bin/env -S python3 -B
2*924841ffSAndroid Build Coastguard Worker#
3*924841ffSAndroid Build Coastguard Worker# Copyright (C) 2019 The Android Open Source Project
4*924841ffSAndroid Build Coastguard Worker#
5*924841ffSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
6*924841ffSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
7*924841ffSAndroid Build Coastguard Worker# You may obtain a copy of the License at
8*924841ffSAndroid Build Coastguard Worker#
9*924841ffSAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
10*924841ffSAndroid Build Coastguard Worker#
11*924841ffSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
12*924841ffSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
13*924841ffSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*924841ffSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
15*924841ffSAndroid Build Coastguard Worker# limitations under the License.
16*924841ffSAndroid Build Coastguard Worker#
17*924841ffSAndroid Build Coastguard Worker"""Downloads adb prebuilt from the build server."""
18*924841ffSAndroid Build Coastguard Workerimport os
19*924841ffSAndroid Build Coastguard Workerimport sys
20*924841ffSAndroid Build Coastguard Worker
21*924841ffSAndroid Build Coastguard WorkerTHIS_DIR = os.path.realpath(os.path.dirname(__file__))
22*924841ffSAndroid Build Coastguard Worker
23*924841ffSAndroid Build Coastguard Workersys.path.append(THIS_DIR + '/common/python')
24*924841ffSAndroid Build Coastguard Worker
25*924841ffSAndroid Build Coastguard Workerimport update_prebuilts as update
26*924841ffSAndroid Build Coastguard Worker
27*924841ffSAndroid Build Coastguard Workeradb_install_list = [
28*924841ffSAndroid Build Coastguard Worker    update.InstallEntry('sdk', 'adb', 'adb', need_exec=True),
29*924841ffSAndroid Build Coastguard Worker]
30*924841ffSAndroid Build Coastguard Worker
31*924841ffSAndroid Build Coastguard Workeradb_extracted_list = [
32*924841ffSAndroid Build Coastguard Worker]
33*924841ffSAndroid Build Coastguard Worker
34*924841ffSAndroid Build Coastguard Workerif __name__ == '__main__':
35*924841ffSAndroid Build Coastguard Worker    args = update.parse_args()
36*924841ffSAndroid Build Coastguard Worker    update.main(args, THIS_DIR, 'adb', adb_install_list, adb_extracted_list)
37