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

Commit a3c4eb35 authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Move child package feature behind sys prop

Now one can do adb shell setprop/getptop to change
"persist.sys.child_packages_enabled" to true/false to
control whether child packages are supported.

Test: manual

bug:36107077

Change-Id: Ie60e255fd3c248905906cdd5b10adae074c0b717
parent 9e55fcbd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -145,7 +145,12 @@ public class PackageParser {
    private static final boolean DEBUG_PARSER = false;
    private static final boolean DEBUG_BACKUP = false;

    private static final boolean MULTI_PACKAGE_APK_ENABLED = false;
    private static final String PROPERTY_CHILD_PACKAGES_ENABLED =
            "persist.sys.child_packages_enabled";

    private static final boolean MULTI_PACKAGE_APK_ENABLED =
            SystemProperties.getBoolean(PROPERTY_CHILD_PACKAGES_ENABLED, false);

    private static final int MAX_PACKAGES_PER_APK = 5;

    public static final int APK_SIGNING_UNKNOWN = 0;