From 9b1a44a3c7b23a8b3da0926c8190f07e7be6e7a2 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Sat, 7 Mar 2020 19:00:19 +0100 Subject: [PATCH] universal7580: make use of gps_debug.conf to set xtra servers * Just bind mount gps.conf to gps_debug.conf We can't directly build gps_debug.conf because it's a common target and we're not allowed to override targets anymore. * Allow the bind mount in SEPolicy Change-Id: Ia3c96665b50b0fe478e44186d1c65be723acbf5a --- ramdisk/etc/init.samsungexynos7580.rc | 3 +++ sepolicy/init.te | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ramdisk/etc/init.samsungexynos7580.rc b/ramdisk/etc/init.samsungexynos7580.rc index 53cd695..0faf320 100644 --- a/ramdisk/etc/init.samsungexynos7580.rc +++ b/ramdisk/etc/init.samsungexynos7580.rc @@ -274,6 +274,9 @@ on fs # Fingerprint mkdir /dev/validity 0770 system system +# GnssConfiguration doesn't actually look at gps.conf, just the debug file + mount none /system/etc/gps.conf /system/etc/gps_debug.conf bind + # create data/gps for GPS daemon chown root system /dev/ttySAC0 chmod 0660 /dev/ttySAC0 diff --git a/sepolicy/init.te b/sepolicy/init.te index a6114dc..3f462ee 100644 --- a/sepolicy/init.te +++ b/sepolicy/init.te @@ -7,6 +7,9 @@ allow init efs_file:dir mounton; # Mount CPEFS on /cpefs allow init sec_efs_file:dir mounton; +# Allow init to bind mount over system files +allow init system_file:file mounton; + # /dev/block/mmcblk0p[0-9] allow init emmcblk_device:blk_file rw_file_perms; -- 2.20.1