# Fix proprietary blobs
BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary
-patchelf --replace-needed libgui.so libsensor.so $BLOB_ROOT/bin/gpsd
+patchelf --replace-needed libgui.so libsensor.so $BLOB_ROOT/vendor/bin/gpsd
# replace SSLv3_client_method with SSLv23_method
-sed -i "s/SSLv3_client_method/SSLv23_method\x00\x00\x00\x00\x00\x00/" $BLOB_ROOT/bin/gpsd
+sed -i "s/SSLv3_client_method/SSLv23_method\x00\x00\x00\x00\x00\x00/" $BLOB_ROOT/vendor/bin/gpsd
"${MY_DIR}/setup-makefiles.sh"
lib/libmpp.so
# Mobicore
-bin/mcDriverDaemon
+bin/mcDriverDaemon:vendor/bin/mcDriverDaemon
lib/libMcClient.so
lib/libMcRegistry.so
lib/libsensorlistener.so
# GPS
-bin/gpsd
-bin/gps.cer
+bin/gpsd:vendor/bin/gpsd
+bin/gps.cer:vendor/bin/gps.cer
lib/hw/gps.default.so:lib/hw/gps.universal7580.so
lib/libwrappergps.so
lib/libfloatingfeature.so
vendor/lib/egl/libGLES_mali.so
# Mobicore
-bin/cs
+bin/cs:vendor/bin/cs
# protobuf
lib/libprotobuf-cpp-fl26.so|f2436050b38e5acb63d36ad7b24a0c2612d68749
chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state
# Parse hardware revision (needs to happen before cbd starts)
-service modemloader /system/bin/modemloader
+service modemloader /vendor/bin/modemloader
class core
oneshot
on property:ro.modemloader.done=1
enable cpboot-daemon
-service cpboot-daemon /system/bin/cbd -d -tss310 -bm -mm -P platform/13540000.dwmmc0/by-name/RADIO
+service cpboot-daemon /vendor/bin/cbd -d -tss310 -bm -mm -P platform/13540000.dwmmc0/by-name/RADIO
class main
user root
group radio cache inet misc audio sdcard_rw log sdcard_r shell
copy /system/etc/battery_charging_temp.data /sys/class/power_supply/battery/batt_temp_table
# MobiCore startup
-service mobicore /system/bin/mcDriverDaemon -r /system/app/FFFFFFFF000000000000000000000001.drbin -r /system/app/mcRegistry/ffffffffd0000000000000000000000a.tlbin -r /system/app/mcRegistry/ffffffffd00000000000000000000016.tlbin
+service mobicore /vendor/bin/mcDriverDaemon -r /vendor/app/FFFFFFFF000000000000000000000001.drbin -r /vendor/app/mcRegistry/ffffffffd0000000000000000000000a.tlbin -r /vendor/app/mcRegistry/ffffffffd00000000000000000000016.tlbin
class core
user system
group system
chown system radio /sys/class/sensors/irled_remote/irled_send_result
# GPS
-service gpsd /system/bin/gpsd -c /system/etc/gps.xml
+service gpsd /vendor/bin/gpsd -c /system/etc/gps.xml
class main
user gps
group system wakelock inet net_raw
# DRK/CS service
-service cs_service /system/bin/cs
+service cs_service /vendor/bin/cs
class main
user system
group system
start cs_service
write /proc/iccc_ready 1
-service sswap /system/bin/sswap -s -f 1024
+service sswap /vendor/bin/sswap -s -f 1024
class core
user root
group root
#write /proc/sys/net/ipv4/tcp_adv_win_scale 2
# Run deferred initcalls of builtin kernel modules (bcmdhd)
-service wifiloader /system/bin/wifiloader
+service wifiloader /vendor/bin/wifiloader
class main
oneshot
# modem daemon sec label
type cpboot-daemon, domain;
-type cpboot-daemon_exec, exec_type, file_type;
+type cpboot-daemon_exec, exec_type, file_type, vendor_file_type;
net_domain(cpboot-daemon)
init_daemon_domain(cpboot-daemon)
# deamons
#
-/system/bin/mcDriverDaemon u:object_r:tee_exec:s0
-/system/bin/modemloader u:object_r:modemloader_exec:s0
-/system/bin/wifiloader u:object_r:wifiloader_exec:s0
+/(vendor|system/vendor)/bin/mcDriverDaemon u:object_r:tee_exec:s0
+/(vendor|system/vendor)/bin/modemloader u:object_r:modemloader_exec:s0
+/(vendor|system/vendor)/bin/wifiloader u:object_r:wifiloader_exec:s0
-/system/bin/cbd u:object_r:cpboot-daemon_exec:s0
-/system/bin/gpsd u:object_r:gpsd_exec:s0
-/system/bin/sswap u:object_r:sswap_exec:s0
+/(vendor|system/vendor)/bin/cbd u:object_r:cpboot-daemon_exec:s0
+/(vendor|system/vendor)/bin/gpsd u:object_r:gpsd_exec:s0
+/(vendor|system/vendor)/bin/sswap u:object_r:sswap_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-exynos u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0
type gpsd, domain;
-type gpsd_exec, exec_type, file_type;
+type gpsd_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(gpsd)
#### modemloader
#
type modemloader, domain;
-type modemloader_exec, exec_type, file_type;
+type modemloader_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(modemloader)
type sswap, domain;
-type sswap_exec, exec_type, file_type;
+type sswap_exec, exec_type, file_type, vendor_file_type;
type sswap_device, dev_type;
init_daemon_domain(sswap);
#### wifiloader
#
type wifiloader, domain;
-type wifiloader_exec, exec_type, file_type;
+type wifiloader_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(wifiloader)
unix_socket_connect(wifiloader, property, init)