Canonicalize file paths before comparing

Fix for MMS attachment sending errors.

Bug: 20205459
Change-Id: I30ed77ba33fc0a11f9d78c589f7d60d1019830ce
diff --git a/src/com/android/providers/telephony/MmsProvider.java b/src/com/android/providers/telephony/MmsProvider.java
index 710fa43..bd31cc1 100644
--- a/src/com/android/providers/telephony/MmsProvider.java
+++ b/src/com/android/providers/telephony/MmsProvider.java
@@ -859,11 +859,11 @@
         try {
             File filePath = new File(path);
             if (!filePath.getCanonicalPath()
-                    .startsWith(getContext().getDir(PARTS_DIR_NAME, 0).getPath())) {
+                    .startsWith(getContext().getDir(PARTS_DIR_NAME, 0).getCanonicalPath())) {
                 Log.e(TAG, "openFile: path "
                         + filePath.getCanonicalPath()
                         + " does not start with "
-                        + getContext().getDir(PARTS_DIR_NAME, 0).getPath());
+                        + getContext().getDir(PARTS_DIR_NAME, 0).getCanonicalPath());
                 // Don't care return value
                 filePath.delete();
                 return null;