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
This commit is contained in:
committed by
Svetoslav Ganov
parent
9e55fcbdc2
commit
a3c4eb35b1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user