Re-add auto brightness configuration UI (2/2).

Change-Id: I6c56a48fa2145c58a5f203ed56051451ef3f977d
Fix app ops details not displaying permissions under certain conditions.

If there's a permission that is not granted, the loop is aborted instead
of just skipping said permission.

Change-Id: Icca567ebdd818f40ad6619f258c77590074d1deb
Merge "Fix app ops details not displaying permissions under certain conditions." into cm-10.2
Merge "Re-add auto brightness configuration UI (2/2)." into cm-10.2
Merge remote-tracking branch 'upstream/cm-10.2' into cm-10.2