From: Alessandro Astone Date: Sat, 7 Mar 2020 18:00:19 +0000 (+0100) Subject: universal7580: make use of gps_debug.conf to set xtra servers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b1a44a3c7b23a8b3da0926c8190f07e7be6e7a2;p=GitHub%2FLineageOS%2Fandroid_device_samsung_universal7580-common.git 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 --- 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;