Skip to content

Commit

Permalink
Add 'vendor.' prefix to a vendor daemon name
Browse files Browse the repository at this point in the history
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a sailfish device
Bug: 36796459
Change-Id: I5af6535272dd9d6423482e895cb7b46e483e1978
  • Loading branch information
nocry22 committed Sep 20, 2017
1 parent ee9e731 commit c335406
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 62 deletions.
12 changes: 6 additions & 6 deletions init.common.diag.rc.userdebug
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,24 @@ on property:sys.usb.config=diag,serial_cdev,serial_tty,rmnet_ipa,mass_storage,ad
setprop sys.usb.state ${sys.usb.config}

on property:persist.sys.cnss.diag_qxdm=true
start cnss_diag
start vendor.cnss_diag

on property:persist.sys.cnss.diag_qxdm=false
stop cnss_diag
stop vendor.cnss_diag

on property:persist.sys.cnss.diag_txt=true
start cnss_diag_txt
start vendor.cnss_diag_txt

on property:persist.sys.cnss.diag_txt=false
stop cnss_diag_txt
stop vendor.cnss_diag_txt

service cnss_diag /vendor/bin/cnss_diag -q -u
service vendor.cnss_diag /vendor/bin/cnss_diag -q -u
class late_start
user system
group system
oneshot

service cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag/cnss_diag.conf
service vendor.cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag/cnss_diag.conf
class late_start
user system
group system
Expand Down
6 changes: 3 additions & 3 deletions init.common.nanohub.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ on post-fs
## ensure correct calibration file permissions
chown root system /persist/sensorcal.json
chmod 0640 /persist/sensorcal.json
start flash-nanohub-fw
start vendor.flash-nanohub-fw

on post-fs-data
mkdir /data/vendor/sensor
chown root system /data/vendor/sensor
chmod 0770 /data/vendor/sensor

service flash-nanohub-fw /vendor/bin/nanoapp_cmd download
service vendor.flash-nanohub-fw /vendor/bin/nanoapp_cmd download
oneshot
disabled
user root
group system

service nanohub_slpi /vendor/bin/nanohub_slpi
service vendor.nanohub_slpi /vendor/bin/nanohub_slpi
class late_start
user root
group system
Expand Down
Loading

0 comments on commit c335406

Please sign in to comment.