|
发表于 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)
|
|