Merge "TIF: Temporarily disable permission check for parental controls" into lmp-dev

This commit is contained in:
Jae Seo
2014-08-13 01:13:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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