|
发表于 2017-8-7 17:53:49
只看该作者
8#
谢谢楼主分享;
使用楼主提供的文件,实测没问题;
以下是我把文件弄到系统中的一些改动,供参考:
diff --git a/device/rockchip/rk3288/init.rc b/device/rockchip/rk3288/init.rc
index b23ea5c..a76f287 100644
--- a/device/rockchip/rk3288/init.rc
+++ b/device/rockchip/rk3288/init.rc
@@ -592,6 +592,10 @@ service bootanim /system/bin/bootanimation
disabled
oneshot
+service daemonsu /system/xbin/daemonsu --auto-daemon
+ class main
+ oneshot
+
service installd /system/bin/installd
class main
socket installd stream 600 system system
diff --git a/device/rockchip/rk3288/rk3288.mk b/device/rockchip/rk3288/rk3288.mk
index 40acba7..32612e3 100644
--- a/device/rockchip/rk3288/rk3288.mk
+++ b/device/rockchip/rk3288/rk3288.mk
@@ -29,6 +29,9 @@ PRODUCT_MANUFACTURER := rockchip
# Get the long list of APNs
PRODUCT_COPY_FILES += device/rockchip/rk3288/gslX680.idc:system/usr/idc/gslX680.idc
PRODUCT_COPY_FILES += device/rockchip/rk3288/gt9xx.idc:system/usr/idc/gt9xx.idc
+PRODUCT_COPY_FILES += device/rockchip/rk3288/bin/chattr:system/bin/chattr
+PRODUCT_COPY_FILES += device/rockchip/rk3288/bin/daemonsu:system/xbin/daemonsu
+PRODUCT_COPY_FILES += device/rockchip/rk3288/bin/su:system/xbin/su
PRODUCT_COPY_FILES += vendor/rockchip/common/phone/etc/apns-full-conf.xml:system/etc/apns-conf.xml
PRODUCT_COPY_FILES += vendor/rockchip/common/phone/etc/spn-conf.xml:system/etc/spn-conf.xml
PRODUCT_PROPERTY_OVERRIDES += \
diff --git a/system/core/rootdir/init.rc b/system/core/rootdir/init.rc
index 37918d6..161b36c 100644
--- a/system/core/rootdir/init.rc
+++ b/system/core/rootdir/init.rc
@@ -585,6 +585,10 @@ service bootanim /system/bin/bootanimation
disabled
oneshot
+service daemonsu /system/xbin/daemonsu --auto-daemon
+ class main
+ oneshot
+
service installd /system/bin/installd
class main
把楼主共享的文件放到相应的地方,重新编译系统更新系统即可;
|
|