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

Commit 907f3e3e authored by Winson Chiu's avatar Winson Chiu
Browse files

Deprecate PackageParser main class and add OWNERS

This wasn't deprecated in the original refactor because there was no
publicly exposed alternative that encapsulated all the functionality.
There are also some subclasses which are still used as they haven't
been copied to the parsing subpackage yet.

But this has lead to contributors making changes to PackageParser, not
realizing that the class is unused. So it's worth marking it deprecated
just so it's obvious to anyone editing the code.

The changes made since last release seem mostly unconsequential, so
they will not be reverted, but no additional new code should be added.

Also protects PackageParser and core parsing with OWNERS.

Test: none, docs change

Change-Id: I9d80132503b3a5a3384abbe6b0b1fbb752029710
parent f83bccb0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
per-file PackageParser.java = chiuwinson@google.com
+6 −0
Original line number Diff line number Diff line
@@ -143,8 +143,14 @@ import java.util.UUID;
 * <li>All installations must contain a single base APK.
 * </ul>
 *
 * @deprecated This class is mostly unused and no new changes should be added to it. Use
 * {@link android.content.pm.parsing.ParsingPackageUtils} and related parsing v2 infrastructure in
 * the core/services parsing subpackages. Or for a quick parse of a provided APK, use
 * {@link PackageManager#getPackageArchiveInfo(String, int)}.
 *
 * @hide
 */
@Deprecated
public class PackageParser {

    public static final boolean DEBUG_JAR = false;
+5 −0
Original line number Diff line number Diff line
# Bug component: 36137

chiuwinson@google.com
patb@google.com
toddke@google.com