Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc836f66 authored by Jae Seo's avatar Jae Seo
Browse files

Revert "TIF: Temporarily disable permission check for parental controls"

This reverts commit 9d197941afcef7853578fcd2d704d6f97dde0902.

Change-Id: Ib376f3d4deddf72b94a5195f7aeafafd3ed189e8
parent 550c4b0d
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -996,13 +996,12 @@ public final class TvInputManagerService extends SystemService {
        }

        private void ensureParentalControlsPermission() {
            // STOPSHIP: Uncomment when b/16984416 is resolved.
            //if (mContext.checkCallingPermission(
            //        android.Manifest.permission.MODIFY_PARENTAL_CONTROLS)
            //        != PackageManager.PERMISSION_GRANTED) {
            //    throw new SecurityException(
            //            "The caller does not have parental controls permission");
            //}
            if (mContext.checkCallingPermission(
                    android.Manifest.permission.MODIFY_PARENTAL_CONTROLS)
                    != PackageManager.PERMISSION_GRANTED) {
                throw new SecurityException(
                        "The caller does not have parental controls permission");
            }
        }

        @Override