overlay: Convert NetworkStack overlay to an RRO package
We can't use autogenerated RRO because android:targetName has to be set to "NetworkStackConfig". Change-Id: I6ff8a9c0dbd9607e71de5a65393328fe249a99e8
This commit is contained in:
@@ -196,6 +196,7 @@ PRODUCT_PACKAGE_OVERLAYS += \
|
|||||||
vendor/lineage/overlay/no-rro
|
vendor/lineage/overlay/no-rro
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
NetworkStackOverlay \
|
||||||
TrebuchetOverlay
|
TrebuchetOverlay
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<!-- Configuration for including DHCP client hostname option -->
|
|
||||||
<bool name="config_dhcp_client_hostname">true</bool>
|
|
||||||
</resources>
|
|
9
overlay/rro_packages/NetworkStackOverlay/Android.bp
Normal file
9
overlay/rro_packages/NetworkStackOverlay/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "NetworkStackOverlay",
|
||||||
|
product_specific: true,
|
||||||
|
}
|
14
overlay/rro_packages/NetworkStackOverlay/AndroidManifest.xml
Normal file
14
overlay/rro_packages/NetworkStackOverlay/AndroidManifest.xml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.android.networkstack.overlay">
|
||||||
|
|
||||||
|
<overlay
|
||||||
|
android:isStatic="true"
|
||||||
|
android:priority="100"
|
||||||
|
android:targetPackage="com.android.networkstack"
|
||||||
|
android:targetName="NetworkStackConfig" />
|
||||||
|
</manifest>
|
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 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.
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Configuration for including DHCP client hostname option -->
|
||||||
|
<bool name="config_dhcp_client_hostname">true</bool>
|
||||||
|
|
||||||
|
</resources>
|
Reference in New Issue
Block a user