Revert "Add support for HW Rotation Lock"

This reverts commit 7517b3dd211b3afc9908db3178c03ef6be7279af.

Conflicts:
	core/res/res/values/symbols.xml

Change-Id: I6f09f4d39560bc6da4f45089f6f4992422d3ed33
We are on J-Rom

Change-Id: I293475ad5d571f9ccd5ac6d66693f90832f58b72
Convert all selinux_android_restorecon and _setfilecon calls to new API.

libselinux selinux_android_restorecon API is changing to the more
general interface with flags and dropping the older variants.

Also get rid of the old, no longer used selinux_android_setfilecon API
and rename selinux_android_setfilecon2 to it as it is the only API in use.

Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Allow PMS to restorecon directories under /data.

This change applies a relabel to both /data/data and
/data/user directories on boot. Not every boot will
apply this relabeling however. The appropriate
seapp_contexts is hashed and compared to
/data/system/seapp_hash to decide if the relabel
should occur.

Change-Id: I05e8b438950ddb908e46c9168ea6ee601e6d674f
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

Conflicts:
	services/java/com/android/server/pm/SELinuxMMAC.java