diff options
| author | Jiakai Zhang <jiakaiz@google.com> | 2023-02-08 01:19:19 +0800 |
|---|---|---|
| committer | Jiakai Zhang <jiakaiz@google.com> | 2023-02-08 19:25:37 +0800 |
| commit | 3317ce725d00bf9e000d8a0bf03e6780f2bce2ba (patch) | |
| tree | 2b9d69c98371490d587c25f996a13b1153b90576 /dexpreopt | |
| parent | 2411ffded8915926efb79813248e86d8347c224f (diff) | |
Install system server jar profiles into the APEX.
After this change, if profile-guided compilation is enabled for an APEX
system server jar, the profile will be installed next to the jar with
the ".prof" suffix, ("javalib/<name>.jar.prof"). This file will later be
used by odrefresh and dexpreopt from prebuilt APEX.
Bug: 241823638
Test: m nothing
Test: -
1. Patch ag/20581649 PS2.
2. banchan com.android.btservices x86_64 && m
3. Check that "javalib/service-bluetooth.jar.prof" exists in the APEX.
Change-Id: Ibcfc6257dade92bd40a6d4b7368148717d0863b9
Diffstat (limited to 'dexpreopt')
| -rw-r--r-- | dexpreopt/dexpreopt.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dexpreopt/dexpreopt.go b/dexpreopt/dexpreopt.go index e3404a541..a590c72a5 100644 --- a/dexpreopt/dexpreopt.go +++ b/dexpreopt/dexpreopt.go @@ -101,6 +101,10 @@ func GenerateDexpreoptRule(ctx android.BuilderContext, globalSoong *GlobalSoongC } func dexpreoptDisabled(ctx android.PathContext, global *GlobalConfig, module *ModuleConfig) bool { + if ctx.Config().UnbundledBuild() { + return true + } + if contains(global.DisablePreoptModules, module.Name) { return true } |
