What is persist.security.ams.enforcing?
persist.security.ams.enforcing


It's the bane of existence. While this is Set to 1, your SELinux state is enforcing(Click here for a snippet of info)

Changing that to 0 switches SELinux to permissive.

In layman terms, this means that, when set to Enforcing, Android is looking at your attempts to install a ROM, and is denying them. Set it to permissive, and it can't do anything(well, not much).

SELinux does more than this too. Its a good read, that question I linked has some good info, as well as the link in that one.