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

Commit 217dcf90 authored by Samiul Islam's avatar Samiul Islam
Browse files

Flag guard uses-static-library parsing changes

While nobody is using the new API created by the new logic, the parsing
logic itself can throw validation error which we need to avoid.

Bug: 372862145
Test: atest ApkLiteParseUtilsTest
FLAG: android.content.pm.sdk_dependency_installer
Change-Id: Ifbaa22046f1c8c06ff4051eb818edde08ae22d4b
parent 05d3573f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -587,6 +587,9 @@ public class ApkLiteParseUtils {
                                    /*allowDuplicates=*/ true);
                            break;
                        case TAG_USES_STATIC_LIBRARY:
                            if (!android.content.pm.Flags.sdkDependencyInstaller()) {
                                break;
                            }
                            String usesStaticLibName = parser.getAttributeValue(
                                    ANDROID_RES_NAMESPACE, "name");
                            long usesStaticLibVersion = parser.getAttributeIntValue(