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

Unverified Commit 083aa4a4 authored by Michael Bestas's avatar Michael Bestas
Browse files

Merge commit 'cda08bfb' into lineage-23.0

* commit 'cda08bfb': (25 commits)
  Add apexd.mainline_patch_level_2 to PRODUCT_PACKAGES
  Version bump to BP2A.250605.031.A5 [core/build_id.mk]
  Version bump to BP2A.250805.005 [core/build_id.mk]
  Version bump to BP2A.250805.004 [core/build_id.mk]
  Version bump to BP2A.250805.003 [core/build_id.mk]
  Version bump to BP2A.250805.002 [core/build_id.mk]
  Version bump to BP2A.250605.031.A4 [core/build_id.mk]
  Version bump to BP2A.250705.008.A1 [core/build_id.mk]
  Change the logic of checking if open source notice should be displayed
  Version bump to BP2A.250605.006.E4 [core/build_id.mk]
  Version bump to BP2A.250605.031.T1 [core/build_id.mk]
  Version bump to BP2A.250705.008 [core/build_id.mk]
  Version bump to BP2A.250605.031.A3 [core/build_id.mk]
  Version bump to BP2A.250705.007 [core/build_id.mk]
  Version bump to BP2A.250705.006 [core/build_id.mk]
  Update html notice to include a notice of requesting source code
  Version bump to BP2A.250705.004 [core/build_id.mk]
  Version bump to BP2A.250605.006.E3 [core/build_id.mk]
  Version bump to BP2A.250705.003 [core/build_id.mk]
  Version bump to BP2A.250705.002 [core/build_id.mk]
  ...

Change-Id: I11e82de2e03d10ed78d1fe418b2caf209fc0d710
parents 4e5717d8 cda08bfb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,4 +18,4 @@
# (like "CRB01").  It must be a single word, and is
# capitalized by convention.

BUILD_ID=BP2A.250605.031.A2
BUILD_ID=BP2A.250805.005
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ PRODUCT_PACKAGES += \
    android.test.mock \
    android.test.runner \
    apexd \
    apexd.mainline_patch_level_2 \
    appops \
    app_process \
    appwidget \
+1 −0
Original line number Diff line number Diff line
@@ -536,6 +536,7 @@ system_image_defaults {
        "android.software.window_magnification.prebuilt.xml", // handheld_system
        "android.system.suspend-service",
        "apexd",
        "apexd.mainline_patch_level_2",
        "appops",
        "approved-ogki-builds.xml", // base_system
        "appwidget",
+22 −0
Original line number Diff line number Diff line
@@ -241,6 +241,17 @@ func htmlNotice(ctx *context, files ...string) error {
		fmt.Fprintf(ctx.stdout, "  <h1>%s</h1>\n", html.EscapeString(ctx.product))
	}
	ids := make(map[string]string)

	// MD5 hash of File build/soong/licenses/opensourcerequest
	opensourcerequestHash := "67459f64e6325b6ffaa3e53946688e6f"
	opensourcerequestNotice := false
	for h := range ni.Hashes() {
		if h.String() == opensourcerequestHash {
			opensourcerequestNotice = true
			break
		}
	}

	if ctx.includeTOC {
		fmt.Fprintln(ctx.stdout, "  <ul class=\"toc\">")
		i := 0
@@ -250,6 +261,9 @@ func htmlNotice(ctx *context, files ...string) error {
			ids[installPath] = id
			fmt.Fprintf(ctx.stdout, "    <li id=\"%s\"><strong>%s</strong>\n      <ul>\n", id, html.EscapeString(ctx.strip(installPath)))
			for _, h := range ni.InstallHashes(installPath) {
				if h.String() == opensourcerequestHash {
					continue
				}
				libs := ni.InstallHashLibs(installPath, h)
				fmt.Fprintf(ctx.stdout, "        <li><a href=\"#%s\">%s</a>\n", h.String(), html.EscapeString(strings.Join(libs, ", ")))
			}
@@ -257,7 +271,15 @@ func htmlNotice(ctx *context, files ...string) error {
		}
		fmt.Fprintln(ctx.stdout, "  </ul><!-- toc -->")
	}

	if opensourcerequestNotice {
		fmt.Fprintln(ctx.stdout, "  <hr>")
		fmt.Fprintln(ctx.stdout, "  <strong>", html.EscapeString(string(ni.HashTextOfMd5(opensourcerequestHash))), "</strong>")
	}
	for h := range ni.Hashes() {
		if h.String() == opensourcerequestHash {
			continue
		}
		fmt.Fprintln(ctx.stdout, "  <hr>")
		for _, libName := range ni.HashLibs(h) {
			fmt.Fprintf(ctx.stdout, "  <strong>%s</strong> used by:\n    <ul class=\"file-list\">\n", html.EscapeString(libName))
+6 −1
Original line number Diff line number Diff line
@@ -325,6 +325,11 @@ func (ni *NoticeIndex) HashText(h hash) []byte {
	return ni.text[h]
}

func (ni *NoticeIndex) HashTextOfMd5(s string) []byte {
	h := hash{key: s}
	return ni.text[h]
}

// getLibName returns the name of the library associated with `noticeFor`.
func (ni *NoticeIndex) getLibName(noticeFor *TargetNode, h hash) (string, error) {
	for _, text := range noticeFor.LicenseTexts() {