1# 2# Copyright (C) 2019 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 17shareduid_violation_modules_filename := $(PRODUCT_OUT)/shareduid_violation_modules.json 18 19find_shareduid_script := $(BUILD_SYSTEM)/tasks/find-shareduid-violation.py 20 21$(shareduid_violation_modules_filename): $(INSTALLED_SYSTEMIMAGE_TARGET) \ 22 $(INSTALLED_RAMDISK_TARGET) \ 23 $(INSTALLED_BOOTIMAGE_TARGET) \ 24 $(INSTALLED_USERDATAIMAGE_TARGET) \ 25 $(INSTALLED_VENDORIMAGE_TARGET) \ 26 $(INSTALLED_PRODUCTIMAGE_TARGET) \ 27 $(INSTALLED_PRODUCT_SERVICESIMAGE_TARGET) 28 29$(shareduid_violation_modules_filename): $(find_shareduid_script) 30$(shareduid_violation_modules_filename): $(AAPT2) 31 $(find_shareduid_script) $(PRODUCT_OUT) $(AAPT2) > $@ 32$(call dist-for-goals,droidcore,$(shareduid_violation_modules_filename)) 33