From 5e72edbea1eca767c479d17aaffd304fd1ac056c Mon Sep 17 00:00:00 2001 From: Vachounet Date: Fri, 21 Apr 2017 11:13:16 +0200 Subject: [PATCH] potter: set DTV prop and load DTV module for XT1683 --- init/init_potter.cpp | 4 ++++ rootdir/etc/init.qcom.rc | 3 +++ 2 files changed, 7 insertions(+) diff --git a/init/init_potter.cpp b/init/init_potter.cpp index 32cc91a..737da11 100644 --- a/init/init_potter.cpp +++ b/init/init_potter.cpp @@ -78,6 +78,10 @@ void vendor_load_properties() property_set("ro.hw.nfc", "true"); } + if (sku == "XT1683") { + property_set("ro.hw.dtv", "true"); + } + sysinfo(&sys); if (sys.totalram > 3072ull * 1024 * 1024) { diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 166ac17..c497e40 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -804,6 +804,9 @@ service iprenew_wigig0 /system/bin/dhcpcd -n on property:wifi.ftmd.load=true insmod /system/lib/modules/pronto/pronto_wlan.ko con_mode=5 +on property:ro.hw.dtv=true + insmod /system/lib/modules/isdbt.ko + service wlan_logging /system/bin/cnss_diag -q -f class main user system