Why? it seems to me a one-liner: -if(!fp.getCanonicalPath().startsWith(fb.getAbsolutePath()))...
Storage error: Invalid File Access when storage directory linked
security hole in storage