enforce_permission_counter: Find targets automatically
The target list of enforce_permission_counter can be reconstructed based on the dependencies of the "services" module. Add the ability to soong_lint_fix to collect and parse module_bp_java_deps.json which contains the dependency list. SoongLintFix is split into 2 classes: SoongWrapper and SoongLintFix. The former is used as a general wrapper to invoke Soong and parse the module files. The latter, a subclass of SoongWrapper, contains the calls to the different steps. The building and loading of module-info.json and module_bp_java_deps.json is now done dynamically whenever required. Bug: 298285238 Test: enforce_permission_counter Test: lint_fix --no-fix --check AnnotatedAidlCounter --lint-module AndroidUtilsLintChecker services.autofill Change-Id: I781e9cdf80feb4c4d480673e044d526c528f8412
Loading
Please register or sign in to comment