@@ -0,0 +1,505 @@
+package me.pc.mobile.helper.v14.util;%0A%0Aimport android.content.Context;%0Aimport android.content.pm.PackageManager;%0A%0Apublic final class PermissionAssertUtils %7B%0A%0A%09private PermissionAssertUtils() %7B%7D%0A%0A%09public static void assertPermission(Context ctx, String perm) %7B%0A%09%09final int checkPermission = ctx.getPackageManager().checkPermission(%0A%09%09%09perm, ctx.getPackageName());%0A%09%09if (checkPermission != PackageManager.PERMISSION_GRANTED) %7B%0A%09%09%09throw new SecurityException(%22Permission %22 + perm + %22 is required%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create PermissionAssertUtils.java