adb shellを実行し、/ mnt / shell / emulated / 0へのレガシーリンクを探しますが、getCanonicalPathは/ mnt / shell / emulated / 0を取得できませんか?
shell @ android:/ storage / emulated $ ls-llrwxrwxrwxルートルート2012-12-0712:01レガシー->/mnt / shell / emulated / 0
File file = new File("/storage/emulated/legacy");
String pachString = null;
try {
pachString = file.getCanonicalPath();
// prints /storage/emulated/legacy
} catch (IOException e) {
e.printStackTrace();
}