Migrate to component-override for force enabled/disabled components
Test: pm dump-package com.android.vending | grep disabledComponents -A20 pm dump-package com.google.android.gms | grep disabledComponents -A150 pm dump-package com.google.android.setupwizard | grep disabledComponents -A5 Change-Id: Iddac5f0edc9a312df8d7c436312bad111289c1b4
This commit is contained in:
committed by
Jan Altensen (Stricted)
parent
e96bc80d77
commit
f3cb134b6e
@@ -11,3 +11,10 @@ prebuilt_etc_xml {
|
||||
src: "etc/sensitive_pn.xml",
|
||||
schema: ":spn-schema",
|
||||
}
|
||||
|
||||
prebuilt_etc_xml {
|
||||
name: "lineage-component-overrides.xml",
|
||||
product_specific: true,
|
||||
src: "etc/lineage-component-overrides.xml",
|
||||
sub_dir: "sysconfig",
|
||||
}
|
||||
|
36
prebuilt/common/etc/lineage-component-overrides.xml
Normal file
36
prebuilt/common/etc/lineage-component-overrides.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2024 The LineageOS Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<config>
|
||||
<component-override package="com.android.vending">
|
||||
<component class=".systemupdateactivity.SettingsSecurityEntryPoint" enabled="false" />
|
||||
<component class=".systemupdateactivity.SystemUpdateActivity" enabled="false" />
|
||||
<component class=".systemupdate.SystemUpdateSettingsContentProvider" enabled="false" />
|
||||
</component-override>
|
||||
|
||||
<component-override package="com.google.android.gms">
|
||||
<component class=".update.OtaSuggestionActivity" enabled="false" />
|
||||
<component class=".update.OtaSuggestionSummaryProvider" enabled="false" />
|
||||
<component class=".update.phone.PopupDialog" enabled="false" />
|
||||
<component class=".update.SystemUpdateActivity" enabled="false" />
|
||||
<component class=".update.SystemUpdateGcmTaskService" enabled="false" />
|
||||
<component class=".update.SystemUpdatePersistentListenerService" enabled="false" />
|
||||
<component class=".update.SystemUpdateService" enabled="false" />
|
||||
</component-override>
|
||||
|
||||
<component-override package="com.google.android.setupwizard">
|
||||
<component class=".update.OtaUpdateActivity" enabled="false" />
|
||||
</component-override>
|
||||
</config>
|
Reference in New Issue
Block a user