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

Commit 61a30321 authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

Do not enforce partition restrictions on component-override

Previously, any static RRO could change the manifest value of any
resource in any package. The initial component-override change
restricted this to only partitions with the ALLOW_APP_CONFIGS flag
are allowed to configure component enabled state.

This change allows any partition to use component-override.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I035b2233bceb4ed7b091295e5aaa99b61dad851e
parent d35f5713
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -855,11 +855,7 @@ public class SystemConfig {
                        XmlUtils.skipCurrentTag(parser);
                    } break;
                    case "component-override": {
                        if (allowAppConfigs) {
                        readComponentOverrides(parser, permFile);
                        } else {
                            logNotAllowedInPartition(name, permFile, parser);
                        }
                        XmlUtils.skipCurrentTag(parser);
                    } break;
                    case "backup-transport-whitelisted-service": {