Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 735caf41 authored by Wei Li's avatar Wei Li Committed by Android Build Coastguard Worker
Browse files

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
parent 10d7f197
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment