Backported cling protections from android.