content: package androidx.core.content.pm;
  
  import android.content.pm.PermissionInfo;
  import android.os.Build;
  import java.lang.annotation.Retention;
  import java.lang.annotation.RetentionPolicy;
  
  public final class PermissionInfoCompat {
  
      static class Api28Impl {
          private Api28Impl() {
          }
  
          static int getProtection(PermissionInfo permissionInfo) {
              return permissionInfo.getProtection();
          }
  
          static int getProtectionFlags(PermissionInfo permissionInfo) {
              return permissionInfo.getProtectionFlags();
          }
      }
  
      @Retention(RetentionPolicy.SOURCE)
      public @interface Protection {
      }
  
      @Retention(RetentionPolicy.SOURCE)
      public @interface ProtectionFlags {
      }
  
      private PermissionInfoCompat() {
      }
  
      public static int getProtection(PermissionInfo permissionInfo) {
          return Build.VERSION.SDK_INT >= 28 ? Api28Impl.getProtection(permissionInfo) : permissionInfo.protectionLevel & 15;
      }
  
      public static int getProtectionFlags(PermissionInfo permissionInfo) {
          return Build.VERSION.SDK_INT >= 28 ? Api28Impl.getProtectionFlags(permissionInfo) : permissionInfo.protectionLevel & -16;
      }
  }
  