diff options
author | nailyk-fr <nailyk_git@nailyk.fr> | 2017-04-28 15:07:40 +0200 |
---|---|---|
committer | nailyk-fr <nailyk_git@nailyk.fr> | 2017-05-10 11:15:40 +0000 |
commit | bd03c504e298e968aba8a584b37ca60692e7c2cd (patch) | |
tree | ea67de784f3393515a59ee051f2afc2e9ee5d3dc /rootdir | |
parent | 765df75917ac3fe3da5d1dd092d8c33c0983f9d6 (diff) |
shinano-common: init: Rework permissions
* Some services where start with incorrect rights.
* Create tee /data folder
* Keystore and qseecomd are needed for encryption/decryption
and shouldnot be restarted at framework changes.
Change-Id: If1c7c0ba3602dccb8cb65dbe9193221438785c0a
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.camera.rc | 18 | ||||
-rw-r--r-- | rootdir/init.qcom.rc | 7 |
2 files changed, 15 insertions, 10 deletions
diff --git a/rootdir/init.camera.rc b/rootdir/init.camera.rc index b97bd37..8e139e9 100644 --- a/rootdir/init.camera.rc +++ b/rootdir/init.camera.rc @@ -15,7 +15,7 @@ # on init - export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so:/system/bin/credmgrd|libshims_signal.so:/system/bin/iddd|libshims_idd.so:/system/bin/suntrold|libshims_signal.so + export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so:/system/bin/credmgrd|libshims_signal.so:/system/bin/iddd|libshims_idd.so:/system/bin/suntrold|libshims_signal.so:/system/vendor/lib/libwvm.so|libdtcpipplayer.so mkdir /idd 0751 idd idd mkdir /rca 0750 idd idd @@ -95,7 +95,9 @@ on post-fs-data # SONY: Import MiscTA to System properties exec -- /system/bin/taimport property - + setprop init.taimport.ready true + # taimport ready, use this as trigger for multi-cdf-symlinker + service taimport /system/bin/taimport class late_start user root @@ -142,12 +144,6 @@ service scd /system/bin/scd user system group system - # All services that use qseecomd daemon listeners should - # start on sys.listeners.registered property to make sure that - # all of its service listeners are registered before calling them - on property:sys.listeners.registered=true - start wvkbd_installer - #service wvkbd_installer /system/bin/logwrapper /system/bin/wvkbd service wvkbd_installer /system/bin/wvkbd user system @@ -155,6 +151,12 @@ service wvkbd_installer /system/bin/wvkbd oneshot disabled +# All services that use qseecomd daemon listeners should +# start on sys.listeners.registered property to make sure that +# all of its service listeners are registered before calling them +on property:sys.listeners.registered=true + start wvkbd_installer + #service qcamerasvr /system/bin/logwrapper /system/bin/mm-qcamera-daemon service qcamerasvr /system/bin/mm-qcamera-daemon class late_start diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 5204ae8..95d3bc5 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -373,6 +373,9 @@ on post-fs-data setprop vold.post_fs_data_done 1 + # Create directory for TZ Apps + mkdir /data/misc/qsee 0770 system system + # SONY: Create a dir on data partition not to be deleted during mr and wipedata mkdir /data/persist 0770 system system @@ -419,7 +422,7 @@ on property:ro.radio.noril=true service qseecomd /system/bin/qseecomd class core user root - group drmpc root + group drmrpc root service p2p_supplicant /system/bin/wpa_supplicant \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ @@ -457,7 +460,7 @@ on property:ro.data.large_tcp_window_size=true service loc_launcher /system/bin/loc_launcher #loc_launcher will start as root and set its uid to gps class late_start - group gps qcom_oncrpc inet net_raw qcom_diag net_admin wifi + group gps inet net_raw qcom_diag net_admin wifi service scdnotifier_nitz /system/bin/scdnotifier nitz class main |