Add a treble-overlay-wifi5g to declare dual-band wifi. Actual hardware detection is done in rw-system

This commit is contained in:
Pierre-Hugues Husson 2018-07-01 23:03:35 +02:00
parent 7785b155ab
commit b4764c6670
4 changed files with 22 additions and 0 deletions

7
Wifi5G/Android.mk Normal file
View file

@ -0,0 +1,7 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-wifi5g
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.wifi5g"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="persist.sys.overlay.wifi5g"
android:requiredSystemPropertyValue="true"
android:priority="10"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_wifi_dual_band_support">true</bool>
</resources>

View file

@ -9,6 +9,7 @@ PRODUCT_PACKAGES += \
treble-overlay-SystemUI-FalseLocks \
treble-overlay-devinputjack \
treble-overlay-oneplus-op6 \
treble-overlay-wifi5g \
treble-overlay-xiaomi-mi8 \
treble-overlay-xiaomi-mi8ee \
treble-overlay-xiaomi-mi8se \