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

Commit f682410c authored by Ulyana Trafimovich's avatar Ulyana Trafimovich Committed by Gerrit Code Review
Browse files

Merge "Don't enforce <uses-library> checks if dexpreopt for apps is disabled."

parents 755b10fe 39dd0a4b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1294,7 +1294,8 @@ func (u *usesLibrary) verifyUsesLibraries(ctx android.ModuleContext, inputFile a
	// check is not necessary, and although it is good to have, it is difficult to maintain on
	// non-linux build platforms where dexpreopt is generally disabled (the check may fail due to
	// various unrelated reasons, such as a failure to get manifest from an APK).
	if dexpreopt.GetGlobalConfig(ctx).DisablePreopt {
	global := dexpreopt.GetGlobalConfig(ctx)
	if global.DisablePreopt || global.OnlyPreoptBootImageAndSystemServer {
		return inputFile
	}