Revert "Find7: Update sepolicy"

This reverts commit 364776e64c34d9ca13b7ad2d03ee36a621fb6cc9.
Find7: remove device_perms header

Change-Id: I6c679c6874aa898d1caa908286505c23512fbd07
Find7: import sepolicy from hammerhead

Change-Id: Idf2c85c75314ea8012309e569942217ed4b824c9
Find7: adjust sepolicy

Initial modifications to make the sepolicy fit our device,
removal of Hammerhead secific feature permissions like
VSS, ramdump or bdaddrloader for broadcom bluetooth

Change-Id: I8af36e345571d25623102aa1b58a9b4dd9f288c2
Find7: extend smdcntl permissions

Change-Id: Ied54942879187413b75950ec4d4f3ddf57474f42
Find7: allow qmuxd to communicate with diag driver

Change-Id: If899dd296ef39dd37e5180197c5063355f58e9bd
Find7: allow thermald to communicate with diag driver

Change-Id: I1a01f429cc32caef82a94930547b4743e5a68d77
Find7: allow zygote to setup stream sockets

Change-Id: I3d50d49911caca6b8757a139135d6f6e5e892199
Find7: switch to aosp platform qualcomm HALs

Change-Id: I9f333bd4dce737c1101baeddb16cf330c2bd801f
Find7: build libqcompostprocbundle

Change-Id: I97863a7a86cb6912ab0eca1424a23f10263b5ce8
tee: allow access to DRM files.

Fixes the following denials:

<5>[   30.703885] type=1400 audit(1386698221.792:59): avc:  denied  { getattr } for  pid=271 comm="qseecomd" path="/persist/widevine/5dsokxEEDXgQhkN50bp-Z2K5InM_/RXFABDUxyT6Q+Zwx9ZhPGOq2Bq8_" dev="mmcblk0p16" ino=22 scontext=u:r:tee:s0 tcontext=u:object_r:persist_drm_file:s0 tclass=file
<5>[   30.704413] type=1400 audit(1386698221.792:60): avc:  denied  { read } for  pid=271 comm="qseecomd" name="RXFABDUxyT6Q+Zwx9ZhPGOq2Bq8_" dev="mmcblk0p16" ino=22 scontext=u:r:tee:s0 tcontext=u:object_r:persist_drm_file:s0 tclass=file
<5>[   30.704539] type=1400 audit(1386698221.792:61): avc:  denied  { open } for  pid=271 comm="qseecomd" name="RXFABDUxyT6Q+Zwx9ZhPGOq2Bq8_" dev="mmcblk0p16" ino=22 scontext=u:r:tee:s0 tcontext=u:object_r:persist_drm_file:s0 tclass=file

Change-Id: Ic4d471672e1cb334695e5b3f199ac5225f1d758b
Remove /data/app/sensor_ctl_socket on boot.

This ensures that any old socket file left by a prior boot
that may have the wrong security context due to old policy
is removed and does not cause any denials.

With this change, flashing KOT49H, booting it fully, and
then reflashing with AOSP master + enforcing sensors+camera
domains yields no denials on this socket and the socket
is correctly re-created in the sensors_socket type.

Change-Id: I15195384b30a6e11781b6e49dd380560e13cf72a
restorecon /data/fdAlbum and /data/misc/audio.

Required to get them into the right security context when
updating from KOT49H to AOSP master without erasing userdata.

Change-Id: Idec946882b00f4deb1f85c4f59495ad4a22d316c
Fix a few restorecon calls.

restorecon /proc does not work; /proc does not support the xattr API
but is internally labeled based on genfs_contexts in policy.

fdAlbum is a file not a directory so we only need a regular restorecon,
and move it to the same location as in other device init*.rc files.

Change-Id: Iad8101039dc7abed53ff113c1cacdf9e428a47a0
Move creation of /data/misc/wifi and /data/misc/dhcp to main init.rc file.

mkdir /data/misc/wifi subdirectories and /data/misc/dhcp is performed
in the various device-specific init*.rc files but seems generic.
Move it to the main init.rc file.

Change-Id: I23aa55f7cf5cdd206aa6198a94ad5455d9396775
Remove audio resampler quality override

Previous override used the (old) Very High Quality setting.

The change means the new Dynamic Medium Quality setting is used
for 44.1 to 48kHz and 48 to 44.1kHz resampling.

This should be faster, with roughly equivalent audio quality.

Also remove deprecated offload disable property.

Change-Id: Iba63e8b69b7c9380ce725eb860f16c8deb13dc9b
Fix SELinux security labels for /data/tombstones

Fix up the SELinux label for any pre-existing files in
/data/tombstones. This is needed to support SELinux policy
for subsystem_ramdump.

Change-Id: I5c3d5d33010ca93edf453a3752e442f7dec7f8f8
Adding opus to media_codecs.xml

Adding an entry to opus software decoder to media_codecs.xml

Change-Id: I43d725274043719d0230f8a1925d402ae893dc66
gps: modify NMEA_PROVIDER to Modem processor

This fixes duplicate NMEA problem observed when NMEA is generated on AP side.

Bug: 12555056
Change-Id: Id2cff5a07a07abf165be7a00f230ae8d1224398c
Find7: Get rid of ctrl_interface=/data/misc/wifi/sockets

Bug: 10893961
Change-Id: I32691ea64962e76ce794002f141c71bda21e31f5