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

Commit 0a2551d0 authored by Jae Seo's avatar Jae Seo Committed by Android Git Automerger
Browse files

am 16b98b6f: Merge "Revert "TIF: Temporarily disable permission check for...

am 16b98b6f: Merge "Revert "TIF: Temporarily disable permission check for parental controls"" into lmp-dev

* commit '16b98b6f7282c3c95cdd9ad4ecc878c95ceb3d43':
  Revert "TIF: Temporarily disable permission check for parental controls"
parents 0e23dd87 5d0ec89d
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1019,13 +1019,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