Change the logic of checking if open source notice should be displayed
For APKs embedded in a APEX there are no install files and noticeindex.InstallPaths() returns empty list. So instead of checking hash of opensourcerequest in license hashes of install paths we check it in all license hashes of a module and its transitive dependencies. Bug: 418865751 Test: presubmits Test: ALWAYS_EMBED_NOTICES=true m GooglePermissionController, NOTICE.html.gz in GooglePermissionController.apk should contain the open source request Test: ALWAYS_EMBED_NOTICES=true m com.google.android.permission, NOTICE.html.gz in the embedded GooglePermissionController.apk should contain the open source request (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4bc12dc55a83944e4e42da974ab0b1a9e3280f40) Merged-In: I81fbaf9f35ff643a2b00487cd92e40a27feafa14 Change-Id: I81fbaf9f35ff643a2b00487cd92e40a27feafa14
Loading
Please register or sign in to comment