Merge "Also consider secondary storage when verifying paths" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
36c931b31a
@@ -306,8 +306,10 @@ public class MtpDatabase {
|
||||
try {
|
||||
File f = new File(path);
|
||||
String canonical = f.getCanonicalPath();
|
||||
if (canonical.startsWith(mMediaStoragePath)) {
|
||||
return true;
|
||||
for (String root: mStorageMap.keySet()) {
|
||||
if (canonical.startsWith(root)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
// ignore
|
||||
|
||||
Reference in New Issue
Block a user