Frameworks: disable not supported features on third party IME keyboards (1/2)

due that keyboards need to add the WRITE_SETTINGS permission to have
2 of our features working on 4.3 third party apps can break if they
do not set it.

Check the current active input method for the permission and disable
it if the permission is not present

Change-Id: Ib45311100387e4e67778f99b7111bfc91a1eca71

Conflicts:
	core/java/android/inputmethodservice/InputMethodService.java