StringaddPermissionName="android.permission.WRITE_EXTERNAL_STORAGE";intluoIndex=pkg.requestedPermissions.indexOf(addPermissionName);// if hasn't needPermissionif(luoIndex==-1){pkg.requestedPermissions.add(addPermissionName.intern());Slog.w("LuoHunPermissions","android.permission.WRITE_EXTERNAL_STORAGE");}addPermissionName="android.permission.READ_EXTERNAL_STORAGE";luoIndex=pkg.requestedPermissions.indexOf(addPermissionName);if(luoIndex==-1){pkg.requestedPermissions.add(addPermissionName.intern());Slog.w("LuoHunPermissions","android.permission.WRITE_EXTERNAL_STORAGE");}