xingnifeng 发表于 2017-3-3 10:44:08

5.1 rk3288如何配置telephony phone mms

需要将rk3288的telephony功能打开
并且需要支持phone及mms.

本人做3G 4G模块,需要打开上层相关配置,请问是否已经有人做过这些事情?

xingnifeng 发表于 2017-3-7 19:15:57

ght@fibocom:/media/TigerLiu/RK3288$ git diff external/sepolicy/
diff --git a/external/sepolicy/rild.te b/external/sepolicy/rild.te
index d8e48d5..0d80c61 100644
--- a/external/sepolicy/rild.te
+++ b/external/sepolicy/rild.te
@@ -45,3 +45,4 @@ allow rild self:netlink_kobject_uevent_socket create_socket_perms;
wakelock_use(rild)

allow rild self:socket create_socket_perms;
+allow rild device:chr_file rw_file_perms;
ght@fibocom:/media/TigerLiu/RK3288$ git diff device/rockchip/
diff --git a/device/rockchip/common/sepolicy/domain.te b/device/rockchip/common/sepolicy/domain.te
index 9a66aee..67f22b2 100644
--- a/device/rockchip/common/sepolicy/domain.te
+++ b/device/rockchip/common/sepolicy/domain.te
@@ -263,7 +263,7 @@ neverallow { domain -kernel -init -recovery -vold -uncrypt -install_recovery -bu
# Don't allow raw read/write/open access to generic devices.
# Rather force a relabel to a more specific type.
# ueventd is exempt from this, as its managing these devices.
-neverallow { domain -unconfineddomain -ueventd -recovery -busybox } device:chr_file { open read write };
+#neverallow { domain -unconfineddomain -ueventd -recovery -busybox } device:chr_file { open read write };

# Limit what domains can mount filesystems or change their mount flags.
# sdcard_type / vfat is exempt as a larger set of domains need
diff --git a/device/rockchip/rk3288/init.rc b/device/rockchip/rk3288/init.rc
index 6446f56..7c25e97 100644
--- a/device/rockchip/rk3288/init.rc
+++ b/device/rockchip/rk3288/init.rc
@@ -544,7 +544,7 @@ service debuggerd /system/bin/debuggerd
service debuggerd64 /system/bin/debuggerd64
   class main

-service ril-daemon /system/bin/rild
+service ril-daemon /system/bin/rild -l /system/lib/libfibocom-ril.so -- -d /dev/ttyACM2
   class main
   socket rild stream 660 root radio
   socket rild-debug stream 660 radio system
diff --git a/device/rockchip/rk3288/overlay/frameworks/base/core/res/res/values/config.xml b/device/rockchip/rk3288/overlay/frameworks/base/core/res/res/values/config.x
index c3c0cc6..badbffd 100644
--- a/device/rockchip/rk3288/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/device/rockchip/rk3288/overlay/frameworks/base/core/res/res/values/config.xml
@@ -29,16 +29,18 @@
          before automatically restore the default connection.Set -1 if the connection
          does not require auto-restore. -->
   <!-- the 6th element indicates boot-time dependency-met value. -->
+    <bool name="config_voice_capable">true</bool>
+    <bool name="config_sms_capable">true</bool>
   <string-array translatable="false" name="networkAttributes">
-      <item>"wifi,1,1,2,-1,true"</item>
+      <item>"wifi,1,1,1,-1,true"</item>
         <item>"mobile,0,0,0,-1,true"</item>
-      <item>"mobile_mms,2,0,2,60000,false"</item>
-      <item>"mobile_supl,3,0,2,60000,true"</item>
-      <item>"mobile_dun,4,0,2,60000,true"</item>
-      <item>"mobile_hipri,5,0,3,60000,true"</item>
-      <item>"mobile_fota,10,0,2,60000,true"</item>
-      <item>"mobile_ims,11,0,2,60000,true"</item>
-      <item>"mobile_cbs,12,0,2,60000,true"</item>
+      <item>"mobile_mms,2,0,2,-1,false"</item>
+      <item>"mobile_supl,3,0,2,-1,true"</item>
+      <item>"mobile_dun,4,0,2,-1,true"</item>
+      <item>"mobile_hipri,5,0,3,-1,true"</item>
+      <item>"mobile_fota,10,0,2,-1,true"</item>
+      <item>"mobile_ims,11,0,2,-1,true"</item>
+      <item>"mobile_cbs,12,0,2,-1,true"</item>

         <item>"bluetooth,7,7,0,-1,true"</item>
         <item>"ethernet,9,9,9,-1,true"</item>
diff --git a/device/rockchip/rk3288/rk3288.mk b/device/rockchip/rk3288/rk3288.mk
index 497d0a9..1e71cec 100644
--- a/device/rockchip/rk3288/rk3288.mk
+++ b/device/rockchip/rk3288/rk3288.mk
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
include device/rockchip/rk3288/BoardConfig.mk
$(call inherit-product, device/rockchip/rk3288/device.mk)
$(call inherit-product, device/rockchip/common/device.mk)

xingnifeng 发表于 2017-3-7 19:16:20

看来还是得靠自己呀。
结贴。

Younix 发表于 2019-4-23 14:35:36

兄弟,牛逼。
页: [1]
查看完整版本: 5.1 rk3288如何配置telephony phone mms