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

Commit 550c4b0d authored by Jae Seo's avatar Jae Seo
Browse files

TIF: Temporarily disable permission check for parental controls

Bug: 16979343
Change-Id: I00ff70194faaf7218151388dc10ce8e4dd3d2728
parent 177f08e5
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -996,12 +996,13 @@ public final class TvInputManagerService extends SystemService {
        }

        private void ensureParentalControlsPermission() {
            if (mContext.checkCallingPermission(
                    android.Manifest.permission.MODIFY_PARENTAL_CONTROLS)
                    != PackageManager.PERMISSION_GRANTED) {
                throw new SecurityException(
                        "The caller does not have parental controls permission");
            }
            // 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");
            //}
        }

        @Override