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

Commit aa8ceca8 authored by Xin Li's avatar Xin Li Committed by Gerrit Code Review
Browse files

Merge "Merge 24Q3 to AOSP main" into main

parents 2618069b 530714ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ func (this *CcAconfigLibraryCallbacks) GeneratorBuildActions(ctx cc.ModuleContex
		Args: map[string]string{
			"gendir": this.generatedDir.String(),
			"mode":   mode,
			"debug":  strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorageCc()),
			"debug":  strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorage()),
		},
	})

+2 −1
Original line number Diff line number Diff line
@@ -64,11 +64,12 @@ var (
				` && ${aconfig} create-rust-lib` +
				`    --mode ${mode}` +
				`    --cache ${in}` +
				`    --allow-instrumentation ${debug}` +
				`    --out ${gendir}`,
			CommandDeps: []string{
				"$aconfig",
			},
		}, "gendir", "mode")
		}, "gendir", "mode", "debug")
)

func init() {
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ package codegen

import (
	"fmt"
	"strconv"

	"android/soong/android"
	"android/soong/rust"
@@ -82,6 +83,7 @@ func (a *aconfigDecorator) GenerateSource(ctx rust.ModuleContext, deps rust.Path
		Args: map[string]string{
			"gendir": generatedDir.String(),
			"mode":   mode,
			"debug":  strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorage()),
		},
	})
	a.BaseSourceProvider.OutputFiles = android.Paths{generatedSource}
+21 −20
Original line number Diff line number Diff line
@@ -464,6 +464,7 @@ func getApiLevelsMapReleasedVersions() (map[string]int, error) {
		"S-V2":            32,
		"Tiramisu":        33,
		"UpsideDownCake":  34,
		"VanillaIceCream": 35,
	}, nil
}

+5 −0
Original line number Diff line number Diff line
@@ -270,6 +270,11 @@ func (c Config) ReleaseHiddenApiExportableStubs() bool {
		Bool(c.config.productVariables.HiddenapiExportableStubs)
}

// Enable read flag from new storage
func (c Config) ReleaseReadFromNewStorage() bool {
	return c.config.productVariables.GetBuildFlagBool("RELEASE_READ_FROM_NEW_STORAGE")
}

// A DeviceConfig object represents the configuration for a particular device
// being built. For now there will only be one of these, but in the future there
// may be multiple devices being built.
Loading