xref: /aosp_15_r20/prebuilts/runtime/appcompat/update.py (revision 924841fff420cd6b931e1027ee46b85e0a18fe17)
1*924841ffSAndroid Build Coastguard Worker#!/usr/bin/env -S python -B
2*924841ffSAndroid Build Coastguard Worker#
3*924841ffSAndroid Build Coastguard Worker# Copyright (C) 2018 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 appcompat prebuilts 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 Workerappcompat_install_list = [
28*924841ffSAndroid Build Coastguard Worker    update.InstallEntry('sdk_phone_x86_64-sdk', 'veridex.zip', 'veridex-linux.zip', need_unzip=True),
29*924841ffSAndroid Build Coastguard Worker    update.InstallEntry('sdk_phone_armv7-sdk_mac', 'veridex.zip', 'veridex-mac.zip'),
30*924841ffSAndroid Build Coastguard Worker]
31*924841ffSAndroid Build Coastguard Worker
32*924841ffSAndroid Build Coastguard Workerappcompat_extracted_list = [
33*924841ffSAndroid Build Coastguard Worker    update.InstallEntry('sdk_phone_arm64', 'hiddenapi-flags.csv', 'hiddenapi-flags.csv'),
34*924841ffSAndroid Build Coastguard Worker]
35*924841ffSAndroid Build Coastguard Worker
36*924841ffSAndroid Build Coastguard Workerif __name__ == '__main__':
37*924841ffSAndroid Build Coastguard Worker    args = update.parse_args()
38*924841ffSAndroid Build Coastguard Worker    update.main(args, THIS_DIR, 'appcompat', appcompat_install_list, appcompat_extracted_list)
39